]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/_gdi_wrap.cpp
Add IsOk's
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
0085ce49 3 * Version 1.3.29
d14a1e28
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
0085ce49 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d14a1e28
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
093d3ff1 27};
d14a1e28
RD
28#endif
29
0085ce49 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
0085ce49 33 * ----------------------------------------------------------------------------- */
d14a1e28 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
0085ce49
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
093d3ff1 46#endif
d14a1e28 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
0085ce49
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
0085ce49
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
0085ce49
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
0085ce49
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
0085ce49
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
c9c7117a 127
0085ce49 128/* Python.h has to appear first */
093d3ff1 129#include <Python.h>
d14a1e28 130
0085ce49 131/* -----------------------------------------------------------------------------
093d3ff1 132 * swigrun.swg
d14a1e28 133 *
0085ce49
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d14a1e28 137
093d3ff1
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d14a1e28 141
093d3ff1
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)
d14a1e28 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
093d3ff1
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
32fe5131 159
093d3ff1 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
093d3ff1 162#endif
32fe5131 163
093d3ff1 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d14a1e28
RD
166#endif
167
0085ce49
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
d14a1e28
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 */
d14a1e28 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 */
0085ce49 325 int owndata; /* flag if the structure owns the clientdata */
d14a1e28
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
093d3ff1
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
0085ce49 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
093d3ff1
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 368 Return 0 if not equal, 1 if equal
093d3ff1
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
093d3ff1
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
093d3ff1 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;
093d3ff1 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
093d3ff1 400 }
32fe5131 401 return equiv;
093d3ff1
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
093d3ff1
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
093d3ff1 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);
093d3ff1
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
093d3ff1
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
0085ce49 481 if (!type) return NULL;
093d3ff1
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
093d3ff1
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
32fe5131
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
093d3ff1
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
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);
093d3ff1 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
0085ce49
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);
093d3ff1 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);
093d3ff1 591 }
32fe5131
RD
592
593 /* neither found a match */
594 return 0;
093d3ff1
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
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;
093d3ff1 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
093d3ff1
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
32fe5131 619 register const unsigned char *eu = u + sz;
093d3ff1 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
0085ce49 622 register unsigned char uu;
093d3ff1
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
093d3ff1
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d14a1e28 682
093d3ff1
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d14a1e28
RD
695
696#ifdef __cplusplus
697}
698#endif
699
0085ce49
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
d14a1e28 714
0085ce49
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
093d3ff1 764#endif
0085ce49
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c32bde28 799
093d3ff1 800/* -----------------------------------------------------------------------------
0085ce49 801 * error manipulation
093d3ff1 802 * ----------------------------------------------------------------------------- */
d14a1e28 803
0085ce49
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}
d14a1e28 846
0085ce49
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
093d3ff1 935#endif
d14a1e28 936
0085ce49
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
093d3ff1 940
0085ce49
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
093d3ff1
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d14a1e28 951
093d3ff1 952/* Constant Types */
093d3ff1
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
0085ce49
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
093d3ff1 964} swig_const_info;
d14a1e28 965
994141e6 966#ifdef __cplusplus
0085ce49
RD
967#if 0
968{ /* cc-mode */
969#endif
093d3ff1
RD
970}
971#endif
994141e6 972
15afbcd0 973
0085ce49
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
093d3ff1
RD
978 * pyrun.swg
979 *
0085ce49
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
093d3ff1 983 *
0085ce49 984 * ----------------------------------------------------------------------------- */
15afbcd0 985
093d3ff1 986/* Common SWIG API */
994141e6 987
d1a49b78
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
0085ce49
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
994141e6 1000
0085ce49
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)
994141e6 1004
0085ce49
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)
d14a1e28 1008
0085ce49
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)
994141e6 1012
0085ce49
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
c32bde28 1017
0085ce49 1018/* Runtime API */
994141e6 1019
0085ce49
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
0085ce49
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
994141e6 1030
0085ce49 1031/* Runtime API implementation */
c32bde28 1032
0085ce49 1033/* Error manipulation */
c32bde28 1034
0085ce49
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
c32bde28 1041}
15afbcd0 1042
0085ce49
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
c32bde28 1048}
15afbcd0 1049
0085ce49 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
0085ce49 1052/* Set a constant value */
c32bde28 1053
0085ce49
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
15afbcd0
RD
1058}
1059
0085ce49 1060/* Append a value to the result obj */
69223c70 1061
0085ce49
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
093d3ff1 1088 } else {
0085ce49
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);
15afbcd0 1100 }
0085ce49
RD
1101 return result;
1102#endif
093d3ff1 1103}
15afbcd0 1104
0085ce49 1105/* Unpack the argument tuple */
15afbcd0 1106
0085ce49
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
093d3ff1
RD
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 1609#if PY_VERSION_HEX >= 0x02020000
093d3ff1 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
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 */
093d3ff1
RD
1613#endif
1614 };
1615
0085ce49 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
093d3ff1 1618 if (!type_init) {
0085ce49
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
093d3ff1 1632#endif
0085ce49
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
093d3ff1 1651#if PY_VERSION_HEX >= 0x02020000
0085ce49
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
093d3ff1
RD
1672#endif
1673#if PY_VERSION_HEX >= 0x02030000
0085ce49 1674 0, /* tp_del */
093d3ff1
RD
1675#endif
1676#ifdef COUNT_ALLOCS
0085ce49 1677 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1678#endif
0085ce49 1679 };
32fe5131 1680 pyswigobject_type = tmp;
0085ce49 1681 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1 1682 type_init = 1;
c32bde28 1683 }
32fe5131 1684 return &pyswigobject_type;
15afbcd0
RD
1685}
1686
093d3ff1 1687SWIGRUNTIME PyObject *
0085ce49 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
093d3ff1 1689{
0085ce49
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 }
0085ce49 1697 return (PyObject *)sobj;
15afbcd0
RD
1698}
1699
093d3ff1
RD
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
0085ce49 1707 swig_type_info *ty;
093d3ff1
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
0085ce49 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
093d3ff1
RD
1713{
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);
1719 }
0085ce49 1720 fputs(v->ty->name,fp);
093d3ff1
RD
1721 fputs(">", fp);
1722 return 0;
1723}
c32bde28 1724
093d3ff1
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
15afbcd0 1727{
093d3ff1
RD
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
0085ce49 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1731 } else {
0085ce49 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
093d3ff1 1733 }
c32bde28
RD
1734}
1735
093d3ff1
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))){
0085ce49 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1742 } else {
0085ce49 1743 return PyString_FromString(v->ty->name);
093d3ff1
RD
1744 }
1745}
c32bde28 1746
093d3ff1
RD
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
c32bde28 1749{
0085ce49
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);
c32bde28
RD
1754}
1755
0085ce49 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
093d3ff1
RD
1757
1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
0085ce49
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
093d3ff1
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
0085ce49 1837 0, /* tp_del */
093d3ff1
RD
1838#endif
1839#ifdef COUNT_ALLOCS
0085ce49 1840 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1841#endif
0085ce49 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
0085ce49 1844 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
093d3ff1
RD
1848}
1849
1850SWIGRUNTIME PyObject *
0085ce49 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
c32bde28 1852{
0085ce49
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
093d3ff1 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
0085ce49
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 }
093d3ff1 1865 }
0085ce49 1866 return (PyObject *) sobj;
994141e6
RD
1867}
1868
0085ce49 1869SWIGRUNTIME swig_type_info *
093d3ff1
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
0085ce49
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
093d3ff1 1880}
15afbcd0 1881
093d3ff1 1882/* -----------------------------------------------------------------------------
0085ce49 1883 * pointers/data manipulation
093d3ff1
RD
1884 * ----------------------------------------------------------------------------- */
1885
0085ce49
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
093d3ff1 1891
0085ce49
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
093d3ff1 1898
0085ce49 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
093d3ff1 1900
0085ce49
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
15afbcd0 1903{
0085ce49
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
093d3ff1 1926 } else {
0085ce49
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
093d3ff1 1929 }
093d3ff1 1930 }
0085ce49
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;
15afbcd0 1947 }
15afbcd0
RD
1948}
1949
0085ce49
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 }
093d3ff1 1961 }
0085ce49 1962 return 0;
994141e6
RD
1963}
1964
0085ce49
RD
1965/* Convert a pointer value */
1966
093d3ff1 1967SWIGRUNTIME int
0085ce49
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
093d3ff1 1992 } else {
0085ce49
RD
1993 if (ptr) *ptr = vptr;
1994 break;
093d3ff1 1995 }
093d3ff1 1996 }
0085ce49
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
093d3ff1
RD
2042 }
2043}
994141e6 2044
0085ce49
RD
2045/* Convert a function ptr value */
2046
093d3ff1 2047SWIGRUNTIME int
0085ce49
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
093d3ff1 2051 } else {
0085ce49
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
d1a49b78 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
0085ce49
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
093d3ff1
RD
2069 }
2070}
d14a1e28 2071
0085ce49 2072/* Convert a packed value value */
093d3ff1 2073
093d3ff1 2074SWIGRUNTIME int
0085ce49
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 }
7e63a440 2084 }
0085ce49
RD
2085 return SWIG_OK;
2086}
d14a1e28 2087
0085ce49
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
c32bde28 2091
0085ce49
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
d14a1e28 2096
0085ce49
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
093d3ff1 2115 }
0085ce49
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
093d3ff1 2120 }
0085ce49
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
093d3ff1 2126 }
0085ce49
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
093d3ff1 2140 }
0085ce49
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
093d3ff1 2147 }
0085ce49
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
093d3ff1 2158}
d14a1e28 2159
0085ce49
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
093d3ff1 2175#endif
0085ce49
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
d14a1e28 2180
0085ce49
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
093d3ff1 2191 } else {
0085ce49 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2193 }
0085ce49 2194 return SWIG_Py_Void();
15afbcd0 2195 }
0085ce49
RD
2196}
2197
2198/* Create a new pointer object */
093d3ff1 2199
093d3ff1 2200SWIGRUNTIME PyObject *
0085ce49 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2202 if (!ptr) {
0085ce49
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
093d3ff1 2213 }
093d3ff1 2214 }
0085ce49 2215 return robj;
093d3ff1 2216 }
c32bde28
RD
2217}
2218
0085ce49
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
093d3ff1 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
0085ce49 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
994141e6
RD
2224}
2225
093d3ff1
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) {
093d3ff1
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
15afbcd0 2241#else
093d3ff1
RD
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
15afbcd0 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
093d3ff1 2251}
d14a1e28 2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
0085ce49 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");
0085ce49 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
0085ce49 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));
0085ce49 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
0085ce49 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
0085ce49 2281 return SWIG_OK;
093d3ff1 2282}
32fe5131 2283#endif
d14a1e28 2284
0085ce49
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);
0085ce49 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);
0085ce49
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
d14a1e28 2314
0085ce49
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
093d3ff1 2320}
d14a1e28 2321
0085ce49
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
fc46b7f3
RD
2466#define SWIGTYPE_p_buffer swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
2468#define SWIGTYPE_p_double swig_types[2]
2469#define SWIGTYPE_p_form_ops_t swig_types[3]
2470#define SWIGTYPE_p_int swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
2474#define SWIGTYPE_p_wxANIHandler swig_types[8]
2475#define SWIGTYPE_p_wxAcceleratorTable swig_types[9]
2476#define SWIGTYPE_p_wxActivateEvent swig_types[10]
2477#define SWIGTYPE_p_wxAlphaPixelData swig_types[11]
2478#define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[12]
72ef6efb
RD
2479#define SWIGTYPE_p_wxArrayDouble swig_types[13]
2480#define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481#define SWIGTYPE_p_wxBitmap swig_types[15]
2482#define SWIGTYPE_p_wxBoxSizer swig_types[16]
2483#define SWIGTYPE_p_wxBrush swig_types[17]
2484#define SWIGTYPE_p_wxBrushList swig_types[18]
2485#define SWIGTYPE_p_wxBufferedDC swig_types[19]
2486#define SWIGTYPE_p_wxBufferedPaintDC swig_types[20]
2487#define SWIGTYPE_p_wxCURHandler swig_types[21]
2488#define SWIGTYPE_p_wxChar swig_types[22]
2489#define SWIGTYPE_p_wxChildFocusEvent swig_types[23]
2490#define SWIGTYPE_p_wxClientDC swig_types[24]
2491#define SWIGTYPE_p_wxClipboardTextEvent swig_types[25]
2492#define SWIGTYPE_p_wxCloseEvent swig_types[26]
2493#define SWIGTYPE_p_wxColor swig_types[27]
2494#define SWIGTYPE_p_wxColour swig_types[28]
2495#define SWIGTYPE_p_wxColourDatabase swig_types[29]
2496#define SWIGTYPE_p_wxCommandEvent swig_types[30]
2497#define SWIGTYPE_p_wxContextMenuEvent swig_types[31]
2498#define SWIGTYPE_p_wxControl swig_types[32]
2499#define SWIGTYPE_p_wxControlWithItems swig_types[33]
2500#define SWIGTYPE_p_wxCursor swig_types[34]
2501#define SWIGTYPE_p_wxDC swig_types[35]
2502#define SWIGTYPE_p_wxDash swig_types[36]
2503#define SWIGTYPE_p_wxDateEvent swig_types[37]
2504#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[38]
2505#define SWIGTYPE_p_wxDropFilesEvent swig_types[39]
2506#define SWIGTYPE_p_wxDuplexMode swig_types[40]
2507#define SWIGTYPE_p_wxEffects swig_types[41]
2508#define SWIGTYPE_p_wxEncodingConverter swig_types[42]
2509#define SWIGTYPE_p_wxEraseEvent swig_types[43]
2510#define SWIGTYPE_p_wxEvent swig_types[44]
2511#define SWIGTYPE_p_wxEvtHandler swig_types[45]
2512#define SWIGTYPE_p_wxFSFile swig_types[46]
2513#define SWIGTYPE_p_wxFileSystem swig_types[47]
2514#define SWIGTYPE_p_wxFlexGridSizer swig_types[48]
2515#define SWIGTYPE_p_wxFocusEvent swig_types[49]
2516#define SWIGTYPE_p_wxFont swig_types[50]
2517#define SWIGTYPE_p_wxFontList swig_types[51]
2518#define SWIGTYPE_p_wxFontMapper swig_types[52]
2519#define SWIGTYPE_p_wxGBSizerItem swig_types[53]
2520#define SWIGTYPE_p_wxGCDC swig_types[54]
2521#define SWIGTYPE_p_wxGDIObjListBase swig_types[55]
2522#define SWIGTYPE_p_wxGDIObject swig_types[56]
2523#define SWIGTYPE_p_wxGIFHandler swig_types[57]
2524#define SWIGTYPE_p_wxGraphicsContext swig_types[58]
2525#define SWIGTYPE_p_wxGraphicsPath swig_types[59]
2526#define SWIGTYPE_p_wxGridBagSizer swig_types[60]
2527#define SWIGTYPE_p_wxGridSizer swig_types[61]
2528#define SWIGTYPE_p_wxHeaderButtonParams swig_types[62]
2529#define SWIGTYPE_p_wxICOHandler swig_types[63]
2530#define SWIGTYPE_p_wxIcon swig_types[64]
2531#define SWIGTYPE_p_wxIconBundle swig_types[65]
2532#define SWIGTYPE_p_wxIconLocation swig_types[66]
2533#define SWIGTYPE_p_wxIconizeEvent swig_types[67]
2534#define SWIGTYPE_p_wxIdleEvent swig_types[68]
2535#define SWIGTYPE_p_wxImage swig_types[69]
2536#define SWIGTYPE_p_wxImageHandler swig_types[70]
2537#define SWIGTYPE_p_wxImageList swig_types[71]
2538#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[72]
2539#define SWIGTYPE_p_wxInitDialogEvent swig_types[73]
2540#define SWIGTYPE_p_wxJPEGHandler swig_types[74]
2541#define SWIGTYPE_p_wxKeyEvent swig_types[75]
2542#define SWIGTYPE_p_wxLanguageInfo swig_types[76]
2543#define SWIGTYPE_p_wxLayoutConstraints swig_types[77]
2544#define SWIGTYPE_p_wxLocale swig_types[78]
2545#define SWIGTYPE_p_wxMask swig_types[79]
2546#define SWIGTYPE_p_wxMaximizeEvent swig_types[80]
2547#define SWIGTYPE_p_wxMemoryDC swig_types[81]
2548#define SWIGTYPE_p_wxMenu swig_types[82]
2549#define SWIGTYPE_p_wxMenuBar swig_types[83]
2550#define SWIGTYPE_p_wxMenuEvent swig_types[84]
2551#define SWIGTYPE_p_wxMenuItem swig_types[85]
2552#define SWIGTYPE_p_wxMetaFile swig_types[86]
2553#define SWIGTYPE_p_wxMetaFileDC swig_types[87]
2554#define SWIGTYPE_p_wxMirrorDC swig_types[88]
2555#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[89]
2556#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[90]
2557#define SWIGTYPE_p_wxMouseEvent swig_types[91]
2558#define SWIGTYPE_p_wxMoveEvent swig_types[92]
2559#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[93]
2560#define SWIGTYPE_p_wxNativeFontInfo swig_types[94]
2561#define SWIGTYPE_p_wxNativePixelData swig_types[95]
2562#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[96]
2563#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[97]
2564#define SWIGTYPE_p_wxNcPaintEvent swig_types[98]
2565#define SWIGTYPE_p_wxNotifyEvent swig_types[99]
2566#define SWIGTYPE_p_wxObject swig_types[100]
2567#define SWIGTYPE_p_wxPCXHandler swig_types[101]
2568#define SWIGTYPE_p_wxPNGHandler swig_types[102]
2569#define SWIGTYPE_p_wxPNMHandler swig_types[103]
2570#define SWIGTYPE_p_wxPaintDC swig_types[104]
2571#define SWIGTYPE_p_wxPaintEvent swig_types[105]
2572#define SWIGTYPE_p_wxPalette swig_types[106]
2573#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[107]
2574#define SWIGTYPE_p_wxPaperSize swig_types[108]
2575#define SWIGTYPE_p_wxPen swig_types[109]
2576#define SWIGTYPE_p_wxPenList swig_types[110]
2577#define SWIGTYPE_p_wxPixelDataBase swig_types[111]
2578#define SWIGTYPE_p_wxPoint swig_types[112]
2579#define SWIGTYPE_p_wxPoint2D swig_types[113]
2580#define SWIGTYPE_p_wxPostScriptDC swig_types[114]
2581#define SWIGTYPE_p_wxPrintData swig_types[115]
2582#define SWIGTYPE_p_wxPrinterDC swig_types[116]
2583#define SWIGTYPE_p_wxPseudoDC swig_types[117]
2584#define SWIGTYPE_p_wxPyApp swig_types[118]
2585#define SWIGTYPE_p_wxPyCommandEvent swig_types[119]
2586#define SWIGTYPE_p_wxPyEvent swig_types[120]
2587#define SWIGTYPE_p_wxPyFontEnumerator swig_types[121]
2588#define SWIGTYPE_p_wxPyImageHandler swig_types[122]
2589#define SWIGTYPE_p_wxPyLocale swig_types[123]
2590#define SWIGTYPE_p_wxPySizer swig_types[124]
2591#define SWIGTYPE_p_wxPyValidator swig_types[125]
2592#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[126]
2593#define SWIGTYPE_p_wxRect swig_types[127]
2594#define SWIGTYPE_p_wxRegion swig_types[128]
2595#define SWIGTYPE_p_wxRegionIterator swig_types[129]
2596#define SWIGTYPE_p_wxRendererNative swig_types[130]
2597#define SWIGTYPE_p_wxRendererVersion swig_types[131]
2598#define SWIGTYPE_p_wxScreenDC swig_types[132]
2599#define SWIGTYPE_p_wxScrollEvent swig_types[133]
2600#define SWIGTYPE_p_wxScrollWinEvent swig_types[134]
2601#define SWIGTYPE_p_wxSetCursorEvent swig_types[135]
2602#define SWIGTYPE_p_wxShowEvent swig_types[136]
2603#define SWIGTYPE_p_wxSize swig_types[137]
2604#define SWIGTYPE_p_wxSizeEvent swig_types[138]
2605#define SWIGTYPE_p_wxSizer swig_types[139]
2606#define SWIGTYPE_p_wxSizerItem swig_types[140]
2607#define SWIGTYPE_p_wxSplitterRenderParams swig_types[141]
2608#define SWIGTYPE_p_wxStaticBoxSizer swig_types[142]
2609#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[143]
2610#define SWIGTYPE_p_wxStockGDI swig_types[144]
2611#define SWIGTYPE_p_wxString swig_types[145]
2612#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[146]
2613#define SWIGTYPE_p_wxTIFFHandler swig_types[147]
2614#define SWIGTYPE_p_wxUpdateUIEvent swig_types[148]
2615#define SWIGTYPE_p_wxValidator swig_types[149]
2616#define SWIGTYPE_p_wxWindow swig_types[150]
2617#define SWIGTYPE_p_wxWindowCreateEvent swig_types[151]
2618#define SWIGTYPE_p_wxWindowDC swig_types[152]
2619#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[153]
2620#define SWIGTYPE_p_wxXPMHandler swig_types[154]
2621static swig_type_info *swig_types[156];
2622static swig_module_info swig_module = {swig_types, 155, 0, 0, 0, 0};
32fe5131
RD
2623#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2624#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d14a1e28 2625
093d3ff1 2626/* -------- TYPES TABLE (END) -------- */
d14a1e28 2627
0085ce49
RD
2628#if (PY_VERSION_HEX <= 0x02000000)
2629# if !defined(SWIG_PYTHON_CLASSIC)
2630# error "This python version requires to use swig with the '-classic' option"
2631# endif
2632#endif
2633#if (PY_VERSION_HEX <= 0x02020000)
2634# error "This python version requires to use swig with the '-nomodern' option"
2635#endif
2636#if (PY_VERSION_HEX <= 0x02020000)
2637# error "This python version requires to use swig with the '-nomodernargs' option"
2638#endif
2639#ifndef METH_O
2640# error "This python version requires to use swig with the '-nofastunpack' option"
2641#endif
d14a1e28 2642
093d3ff1
RD
2643/*-----------------------------------------------
2644 @(target):= _gdi_.so
2645 ------------------------------------------------*/
2646#define SWIG_init init_gdi_
d14a1e28 2647
093d3ff1 2648#define SWIG_name "_gdi_"
d14a1e28 2649
0085ce49 2650#define SWIGVERSION 0x010329
d14a1e28 2651
d14a1e28 2652
0085ce49
RD
2653#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2654#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d14a1e28
RD
2655
2656
0085ce49
RD
2657#include <stdexcept>
2658
2659
2660namespace swig {
2661 class PyObject_ptr {
2662 protected:
2663 PyObject *_obj;
2664
2665 public:
2666 PyObject_ptr() :_obj(0)
2667 {
093d3ff1 2668 }
0085ce49
RD
2669
2670 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2671 {
2672 Py_XINCREF(_obj);
093d3ff1 2673 }
0085ce49
RD
2674
2675 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2676 {
2677 if (initial_ref) Py_XINCREF(_obj);
2678 }
2679
2680 PyObject_ptr & operator=(const PyObject_ptr& item)
2681 {
2682 Py_XINCREF(item._obj);
2683 Py_XDECREF(_obj);
2684 _obj = item._obj;
2685 return *this;
2686 }
2687
2688 ~PyObject_ptr()
2689 {
2690 Py_XDECREF(_obj);
2691 }
2692
2693 operator PyObject *() const
2694 {
2695 return _obj;
2696 }
2697
2698 PyObject *operator->() const
2699 {
2700 return _obj;
2701 }
2702 };
093d3ff1 2703}
d14a1e28 2704
994141e6 2705
0085ce49
RD
2706namespace swig {
2707 struct PyObject_var : PyObject_ptr {
2708 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2709
2710 PyObject_var & operator = (PyObject* obj)
2711 {
2712 Py_XDECREF(_obj);
2713 _obj = obj;
2714 return *this;
69223c70 2715 }
0085ce49 2716 };
15afbcd0
RD
2717}
2718
2719
0085ce49
RD
2720#include "wx/wxPython/wxPython.h"
2721#include "wx/wxPython/pyclasses.h"
2722
2723
2724 static const wxString wxPyEmptyString(wxEmptyString);
2725
01f6b6d3
RD
2726 #define SWIG_From_long PyInt_FromLong
2727
2728
2729SWIGINTERNINLINE PyObject *
2730SWIG_From_int (int value)
2731{
2732 return SWIG_From_long (value);
2733}
2734
2735
0085ce49
RD
2736#include <limits.h>
2737#ifndef LLONG_MIN
2738# define LLONG_MIN LONG_LONG_MIN
2739#endif
2740#ifndef LLONG_MAX
2741# define LLONG_MAX LONG_LONG_MAX
2742#endif
2743#ifndef ULLONG_MAX
2744# define ULLONG_MAX ULONG_LONG_MAX
2745#endif
b88bce5f 2746
b88bce5f 2747
50efceee
RD
2748SWIGINTERN int
2749SWIG_AsVal_long (PyObject* obj, long* val)
2750{
2751 if (PyNumber_Check(obj)) {
2752 if (val) *val = PyInt_AsLong(obj);
2753 return SWIG_OK;
2754 }
2755 return SWIG_TypeError;
2756}
2757
2758
093d3ff1 2759SWIGINTERN int
0085ce49 2760SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
093d3ff1
RD
2761{
2762 long v = 0;
2763 if (SWIG_AsVal_long(obj, &v) && v < 0) {
0085ce49 2764 return SWIG_TypeError;
093d3ff1
RD
2765 }
2766 else if (val)
2767 *val = (unsigned long)v;
0085ce49 2768 return SWIG_OK;
093d3ff1 2769}
d14a1e28
RD
2770
2771
093d3ff1 2772SWIGINTERN int
0085ce49
RD
2773SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2774{
093d3ff1 2775 unsigned long v;
0085ce49
RD
2776 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2777 if (SWIG_IsOK(res)) {
2778 if ((v > UCHAR_MAX)) {
2779 return SWIG_OverflowError;
093d3ff1 2780 } else {
0085ce49 2781 if (val) *val = static_cast< unsigned char >(v);
093d3ff1 2782 }
0085ce49
RD
2783 }
2784 return res;
093d3ff1 2785}
33b885b9 2786
d14a1e28 2787
0085ce49
RD
2788SWIGINTERNINLINE PyObject*
2789SWIG_From_unsigned_SS_long (unsigned long value)
093d3ff1 2790{
0085ce49
RD
2791 return (value > LONG_MAX) ?
2792 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
093d3ff1 2793}
d14a1e28 2794
d14a1e28 2795
0085ce49
RD
2796SWIGINTERNINLINE PyObject *
2797SWIG_From_unsigned_SS_char (unsigned char value)
2798{
2799 return SWIG_From_unsigned_SS_long (value);
2800}
d14a1e28 2801
e9d6f3a4
RD
2802SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2803 wxColour temp, *obj = &temp;
2804 if ( other == Py_None ) return false;
2805 if ( ! wxColour_helper(other, &obj) ) {
2806 PyErr_Clear();
2807 return false;
2808 }
2809 return self->operator==(*obj);
2810 }
2811SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2812 wxColour temp, *obj = &temp;
2813 if ( other == Py_None ) return true;
2814 if ( ! wxColour_helper(other, &obj)) {
2815 PyErr_Clear();
2816 return true;
2817 }
2818 return self->operator!=(*obj);
2819 }
fc46b7f3
RD
2820
2821SWIGINTERN int
2822SWIG_AsVal_bool (PyObject *obj, bool *val)
2823{
2824 if (obj == Py_True) {
2825 if (val) *val = true;
2826 return SWIG_OK;
2827 } else if (obj == Py_False) {
2828 if (val) *val = false;
2829 return SWIG_OK;
2830 } else {
2831 long v = 0;
2832 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2833 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2834 return res;
2835 }
2836}
2837
2838SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2839 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
093d3ff1
RD
2840 int red = -1;
2841 int green = -1;
2842 int blue = -1;
fc46b7f3 2843 int alpha = wxALPHA_OPAQUE;
093d3ff1
RD
2844 if (self->Ok()) {
2845 red = self->Red();
2846 green = self->Green();
2847 blue = self->Blue();
fc46b7f3 2848 alpha = self->Alpha();
093d3ff1
RD
2849 }
2850 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2851 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2852 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2853 if (includeAlpha)
2854 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
093d3ff1
RD
2855 return rv;
2856 }
0085ce49 2857SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
093d3ff1
RD
2858 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2859 }
d14a1e28 2860
0085ce49
RD
2861SWIGINTERN int
2862SWIG_AsVal_int (PyObject * obj, int *val)
093d3ff1 2863{
0085ce49
RD
2864 long v;
2865 int res = SWIG_AsVal_long (obj, &v);
2866 if (SWIG_IsOK(res)) {
2867 if ((v < INT_MIN || v > INT_MAX)) {
2868 return SWIG_OverflowError;
2869 } else {
2870 if (val) *val = static_cast< int >(v);
2871 }
2872 }
2873 return res;
d14a1e28
RD
2874}
2875
0085ce49 2876SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
093d3ff1
RD
2877 wxDash* dashes;
2878 int count = self->GetDashes(&dashes);
5a446332 2879 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2880 PyObject* retval = PyList_New(0);
2881 for (int x=0; x<count; x++) {
2882 PyObject* pyint = PyInt_FromLong(dashes[x]);
2883 PyList_Append(retval, pyint);
2884 Py_DECREF(pyint);
2885 }
2886 wxPyEndBlockThreads(blocked);
2887 return retval;
2888 }
0085ce49 2889SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2890 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2891 int size = PyList_Size(pyDashes);
2892 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d14a1e28 2893
093d3ff1
RD
2894 // black magic warning! The array of wxDashes needs to exist as
2895 // long as the pen does because wxPen does not copy the array. So
2896 // stick a copy in a Python string object and attach it to _self,
2897 // and then call SetDashes with a pointer to that array. Then
2898 // when the Python pen object is destroyed the array will be
2899 // cleaned up too.
2900 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2901 PyObject_SetAttrString(_self, "_dashes", strDashes);
2902
2903 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2904 delete [] dashes;
2905 Py_DECREF(strDashes);
2906 wxPyEndBlockThreads(blocked);
2907 }
0085ce49
RD
2908SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2909SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d14a1e28 2910
fc46b7f3
RD
2911#include <wx/rawbmp.h>
2912
2913
093d3ff1 2914#include <wx/image.h>
b88bce5f 2915
093d3ff1
RD
2916 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2917 char** cArray = NULL;
2918 int count;
2919
2920 if (!PyList_Check(listOfStrings)) {
2921 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2922 return NULL;
2923 }
2924 count = PyList_Size(listOfStrings);
2925 cArray = new char*[count];
2926
2927 for(int x=0; x<count; x++) {
2928 // TODO: Need some validation and error checking here
2929 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2930 }
2931 return cArray;
b88bce5f 2932 }
b88bce5f
RD
2933
2934
0085ce49 2935SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2936 char** cArray = NULL;
2937 wxBitmap* bmp;
2938
2939 cArray = ConvertListOfStrings(listOfStrings);
2940 if (! cArray)
2941 return NULL;
2942 bmp = new wxBitmap(cArray);
2943 delete [] cArray;
2944 return bmp;
2945 }
0085ce49 2946SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2947 char* buf;
2948 Py_ssize_t length;
2949 PyString_AsStringAndSize(bits, &buf, &length);
2950 return new wxBitmap(buf, width, height, depth);
2951 }
0085ce49 2952SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
093d3ff1
RD
2953 wxSize size(self->GetWidth(), self->GetHeight());
2954 return size;
2955 }
0085ce49 2956SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
093d3ff1
RD
2957 wxMask *mask = new wxMask(*self, colour);
2958 self->SetMask(mask);
2959 }
0085ce49 2960SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
093d3ff1
RD
2961 self->SetWidth(size.x);
2962 self->SetHeight(size.y);
2963 }
0085ce49
RD
2964SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2965SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
fc46b7f3
RD
2966
2967// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2968// appears to me that the other platforms are already doing it, so I'll just
2969// automatically do it for wxMSW here.
2970#ifdef __WXMSW__
195a89b4
RD
2971#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2972#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
fc46b7f3
RD
2973#else
2974#define wxPy_premultiply(p, a) (p)
2975#define wxPy_unpremultiply(p, a) (p)
2976#endif
2977
2978
2979 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2980 buffer data, int DATASIZE,
2981 buffer alpha, int ALPHASIZE)
2982 {
2983 if (DATASIZE != width*height*3) {
2984 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2985 return NULL;
2986 }
2987
2988 if (ALPHASIZE != width*height) {
2989 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
2990 return NULL;
2991 }
2992
2993 wxBitmap* bmp = new wxBitmap(width, height, 32);
2994 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
2995 if (! pixData) {
2996 // raise an exception...
2997 wxPyErr_SetString(PyExc_RuntimeError,
2998 "Failed to gain raw access to bitmap data.");
2999 return NULL;
3000 }
3001
3002 pixData.UseAlpha();
3003 wxAlphaPixelData::Iterator p(pixData);
3004 for (int y=0; y<height; y++) {
3005 wxAlphaPixelData::Iterator rowStart = p;
3006 for (int x=0; x<width; x++) {
3007 byte a = *(alpha++);
3008 p.Red() = wxPy_premultiply(*(data++), a);
3009 p.Green() = wxPy_premultiply(*(data++), a);
3010 p.Blue() = wxPy_premultiply(*(data++), a);
3011 p.Alpha() = a;
3012 ++p;
3013 }
3014 p = rowStart;
3015 p.OffsetY(pixData, 1);
3016 }
3017 return bmp;
3018 }
3019
3020 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3021 {
3022 if (DATASIZE != width*height*3) {
3023 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3024 return NULL;
3025 }
3026
3027 wxBitmap* bmp = new wxBitmap(width, height, 24);
3028 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3029 if (! pixData) {
3030 // raise an exception...
3031 wxPyErr_SetString(PyExc_RuntimeError,
3032 "Failed to gain raw access to bitmap data.");
3033 return NULL;
3034 }
3035
3036 wxNativePixelData::Iterator p(pixData);
3037 for (int y=0; y<height; y++) {
3038 wxNativePixelData::Iterator rowStart = p;
3039 for (int x=0; x<width; x++) {
3040 p.Red() = *(data++);
3041 p.Green() = *(data++);
3042 p.Blue() = *(data++);
3043 ++p;
3044 }
3045 p = rowStart;
3046 p.OffsetY(pixData, 1);
3047 }
3048 return bmp;
3049 }
3050
3051
3052 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3053 {
3054 if (DATASIZE != width*height*4) {
3055 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3056 return NULL;
3057 }
3058
3059 wxBitmap* bmp = new wxBitmap(width, height, 32);
3060 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3061 if (! pixData) {
3062 // raise an exception...
3063 wxPyErr_SetString(PyExc_RuntimeError,
3064 "Failed to gain raw access to bitmap data.");
3065 return NULL;
3066 }
3067
3068 pixData.UseAlpha();
3069 wxAlphaPixelData::Iterator p(pixData);
3070 for (int y=0; y<height; y++) {
3071 wxAlphaPixelData::Iterator rowStart = p;
3072 for (int x=0; x<width; x++) {
3073 byte a = data[3];
3074 p.Red() = wxPy_premultiply(*(data++), a);
3075 p.Green() = wxPy_premultiply(*(data++), a);
3076 p.Blue() = wxPy_premultiply(*(data++), a);
3077 p.Alpha() = a; data++;
3078 ++p;
3079 }
3080 p = rowStart;
3081 p.OffsetY(pixData, 1);
3082 }
3083 return bmp;
3084 }
3085
3086
3087 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3088
3089SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3090SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3091SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3092 self->Red() = red;
3093 self->Green() = green;
3094 self->Blue() = blue;
3095 }
3096SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3097 PyObject* rv = PyTuple_New(3);
3098 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3099 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3100 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3101 return rv;
3102 }
3103
3104 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3105
3106SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3107SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3108SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3109 self->Red() = wxPy_premultiply(red, alpha);
3110 self->Green() = wxPy_premultiply(green, alpha);
3111 self->Blue() = wxPy_premultiply(blue, alpha);
3112 self->Alpha() = alpha;
3113 }
3114SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3115 PyObject* rv = PyTuple_New(4);
3116 int red = self->Red();
3117 int green = self->Green();
3118 int blue = self->Blue();
3119 int alpha = self->Alpha();
3120
3121 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3122 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3123 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3124 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3125 return rv;
3126 }
0085ce49 3127SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
093d3ff1
RD
3128 if ( !colour.Ok() )
3129 return new wxMask(bitmap, *wxBLACK);
3130 else
3131 return new wxMask(bitmap, colour);
3132 }
d14a1e28 3133
093d3ff1 3134#include <wx/iconbndl.h>
d14a1e28 3135
0085ce49 3136SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
093d3ff1
RD
3137 wxIcon* icon = new wxIcon();
3138 icon->CopyFromBitmap(bmp);
3139 return icon;
3140 }
0085ce49 3141SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
093d3ff1
RD
3142 char** cArray = NULL;
3143 wxIcon* icon;
d14a1e28 3144
093d3ff1
RD
3145 cArray = ConvertListOfStrings(listOfStrings);
3146 if (! cArray)
3147 return NULL;
3148 icon = new wxIcon(cArray);
3149 delete [] cArray;
3150 return icon;
3151 }
0085ce49 3152SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d14a1e28
RD
3153
3154
d14a1e28 3155
093d3ff1 3156 return new wxIconLocation(*filename);
d14a1e28 3157
093d3ff1 3158 }
0085ce49 3159SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d14a1e28
RD
3160
3161
d14a1e28 3162
093d3ff1 3163 // do nothing
d14a1e28 3164
093d3ff1 3165 }
0085ce49 3166SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
b88bce5f
RD
3167
3168
093d3ff1
RD
3169
3170 return -1;
3171
3172 }
0085ce49 3173SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
093d3ff1 3174#ifdef __WXGTK__
7557b9b5
RD
3175 wxImage img(cursorName, type);
3176 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3177 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3178 return new wxCursor(img);
093d3ff1 3179#else
7557b9b5 3180 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
093d3ff1
RD
3181#endif
3182 }
3183
3184
0085ce49 3185SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
093d3ff1
RD
3186 (*self) ++;
3187 }
0085ce49 3188SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
093d3ff1
RD
3189 return self->operator bool();
3190 }
3191
3192#include <wx/fontutil.h>
3193#include <wx/fontmap.h>
3194#include <wx/fontenum.h>
3195
0085ce49 3196SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
093d3ff1
RD
3197 return self->ToString();
3198 }
3199
3200 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3201 static wxNativeEncodingInfo info;
3202 if ( wxGetNativeFontEncoding(encoding, &info) )
3203 return &info;
3204 else
3205 return NULL;
3206 }
3207
0085ce49
RD
3208
3209SWIGINTERNINLINE PyObject *
3210SWIG_From_size_t (size_t value)
3211{
3212 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3213}
3214
3215
3216SWIGINTERNINLINE int
3217SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3218{
3219 unsigned long v;
3220 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3221 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3222 return res;
3223}
3224
3225SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
093d3ff1
RD
3226 wxFontEncoding alt_enc;
3227 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3228 return PyInt_FromLong(alt_enc);
3229 else {
3230 Py_INCREF(Py_None);
3231 return Py_None;
3232 }
3233 }
0085ce49 3234SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3235 wxNativeFontInfo nfi;
3236 nfi.FromString(info);
3237 return new wxFont(nfi);
3238 }
0085ce49 3239SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3240 return wxFont::New(pointSize, family, flags, face, encoding);
3241 }
0085ce49 3242SWIGINTERN 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
3243 return wxFontBase::New(pixelSize, family,
3244 style, weight, underlined,
3245 face, encoding);
3246 }
0085ce49 3247SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3248 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3249 }
0085ce49
RD
3250SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3251SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
093d3ff1
RD
3252
3253class wxPyFontEnumerator : public wxFontEnumerator {
3254public:
3255 wxPyFontEnumerator() {}
3256 ~wxPyFontEnumerator() {}
3257
3258 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3259 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3260
3261 PYPRIVATE;
3262};
3263
3264IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3265IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3266
3267
704eda0c 3268SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3269 PyObject* ret;
704eda0c 3270 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3271 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3272 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3273 wxPyEndBlockThreads(blocked);
3274 return ret;
093d3ff1 3275 }
704eda0c 3276SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3277 PyObject* ret;
704eda0c 3278 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3279 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3280 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3281 wxPyEndBlockThreads(blocked);
3282 return ret;
093d3ff1
RD
3283 }
3284
3285#include <locale.h>
3286
0085ce49 3287SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3288 wxLocale* loc;
3289 if (language == -1)
3290 loc = new wxLocale();
3291 else
3292 loc = new wxLocale(language, flags);
3293 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3294 // for the floating point conversions and such to work right.
3295#if PY_VERSION_HEX < 0x02040000
3296 setlocale(LC_NUMERIC, "C");
3297#endif
3298 return loc;
3299 }
0085ce49 3300SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
093d3ff1
RD
3301 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3302 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3303 // for the floating point conversions and such to work right.
3304#if PY_VERSION_HEX < 0x02040000
3305 setlocale(LC_NUMERIC, "C");
3306#endif
3307 return rc;
3308 }
0085ce49 3309SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3310 bool rc = self->Init(language, flags);
3311 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3312 // for the floating point conversions and such to work right.
3313#if PY_VERSION_HEX < 0x02040000
3314 setlocale(LC_NUMERIC, "C");
3315#endif
3316 return rc;
3317 }
3318
fc46b7f3
RD
3319class wxPyLocale : public wxLocale
3320{
3321public:
3322 wxPyLocale();
3323
3324 wxPyLocale(const wxChar *szName, // name (for messages)
3325 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3326 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3327 bool bLoadDefault = true, // preload wxstd.mo?
3328 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3329
3330 wxPyLocale(int language, // wxLanguage id or custom language
3331 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3332
3333 ~wxPyLocale();
3334
3335 virtual const wxChar *GetString(const wxChar *szOrigString,
3336 const wxChar *szDomain = NULL) const;
3337 virtual const wxChar *GetString(const wxChar *szOrigString,
3338 const wxChar *szOrigString2, size_t n,
3339 const wxChar *szDomain = NULL) const;
3340
3341 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3342 const wxChar *szDomain = NULL) const;
3343 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3344 const wxChar *szOrigString2, size_t n,
3345 const wxChar *szDomain = NULL) const;
3346
3347 PYPRIVATE;
3348private:
3349 DECLARE_NO_COPY_CLASS(wxPyLocale)
3350};
3351
3352wxPyLocale::wxPyLocale() : wxLocale()
3353{
3354}
3355
3356wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3357 const wxChar *szShort, // dir prefix (for msg files)
3358 const wxChar *szLocale, // locale (for setlocale)
3359 bool bLoadDefault, // preload wxstd.mo?
3360 bool bConvertEncoding) // convert Win<->Unix if necessary?
3361 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3362{
3363}
3364
3365wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3366 int flags) : wxLocale(language, flags)
3367{
3368}
3369
3370wxPyLocale::~wxPyLocale()
3371{
3372}
3373
3374const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3375 const wxChar *szDomain) const
3376{
3377 wxChar *str = GetSingularString(szOrigString, szDomain);
3378 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3379}
3380
3381const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3382 const wxChar *szOrigString2, size_t n,
3383 const wxChar *szDomain) const
3384{
3385 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3386 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3387}
3388
3389wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3390 const wxChar *szDomain) const
3391{
3392 bool found;
3393 static wxString str;
3394 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.
3395 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3396 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3397 PyObject* param1 = wx2PyString(szOrigString);
3398 PyObject* param2 = wx2PyString(szDomain);
3399 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3400 Py_DECREF(param1);
3401 Py_DECREF(param2);
3402 if (ret) {
3403 str = Py2wxString(ret);
3404 Py_DECREF(ret);
3405 }
3406 }
3407 wxPyEndBlockThreads(blocked);
3408 return (found ? (wxChar*)str.c_str() : NULL);
3409}
3410
3411wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3412 const wxChar *szOrigString2, size_t n,
3413 const wxChar *szDomain) const
3414{
3415 bool found;
3416 static wxString str;
3417 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.
3418 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3419 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3420 PyObject* param1 = wx2PyString(szOrigString);
3421 PyObject* param2 = wx2PyString(szOrigString2);
3422 PyObject* param4 = wx2PyString(szDomain);
3423 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3424 Py_DECREF(param1);
3425 Py_DECREF(param2);
3426 Py_DECREF(param4);
3427 if( ret) {
3428 str = Py2wxString(ret);
3429 Py_DECREF(ret);
3430 }
3431 }
3432 wxPyEndBlockThreads(blocked);
3433 return (found ? (wxChar*)str.c_str() : NULL);
3434}
3435
3436SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3437 wxPyLocale* loc;
3438 if (language == -1)
3439 loc = new wxPyLocale();
3440 else
3441 loc = new wxPyLocale(language, flags);
3442 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3443 // for the floating point conversions and such to work right.
3444#if PY_VERSION_HEX < 0x02040000
3445 setlocale(LC_NUMERIC, "C");
3446#endif
3447 return loc;
3448 }
3449
093d3ff1
RD
3450#include "wx/wxPython/pydrawxxx.h"
3451
0085ce49 3452SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
093d3ff1
RD
3453 wxColour col;
3454 self->GetPixel(x, y, &col);
3455 return col;
3456 }
0085ce49 3457SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
093d3ff1
RD
3458 wxColour col;
3459 self->GetPixel(pt, &col);
3460 return col;
3461 }
3462
3463SWIGINTERN int
0085ce49 3464SWIG_AsVal_double (PyObject *obj, double* val)
093d3ff1
RD
3465{
3466 if (PyNumber_Check(obj)) {
3467 if (val) *val = PyFloat_AsDouble(obj);
0085ce49 3468 return SWIG_OK;
093d3ff1 3469 }
0085ce49 3470 return SWIG_TypeError;
093d3ff1
RD
3471}
3472
0085ce49 3473SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
093d3ff1
RD
3474 wxRect rv;
3475 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3476 return rv;
3477 }
0085ce49 3478SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
093d3ff1
RD
3479 wxRect rect;
3480 self->GetClippingBox(rect);
3481 return rect;
3482 }
0085ce49 3483SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
093d3ff1
RD
3484 wxArrayInt widths;
3485 self->GetPartialTextExtents(text, widths);
3486 return widths;
3487 }
3488
0085ce49 3489 #define SWIG_From_double PyFloat_FromDouble
093d3ff1 3490
0085ce49 3491SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3492 self->SetLogicalOrigin(point.x, point.y);
3493 }
0085ce49 3494SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3495 self->SetDeviceOrigin(point.x, point.y);
3496 }
0085ce49 3497SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3498 self->CalcBoundingBox(point.x, point.y);
3499 }
0085ce49 3500SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3501 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3502 }
0085ce49 3503SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3504 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3505 }
0085ce49 3506SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3507 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3508 }
0085ce49 3509SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3510 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3511 }
0085ce49 3512SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3513 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3514 }
0085ce49 3515SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
093d3ff1
RD
3516 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3517 }
3518
3519static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3520 *x1 = dc->MinX();
3521 *y1 = dc->MinY();
3522 *x2 = dc->MaxX();
3523 *y2 = dc->MaxY();
3524}
3525
3526
3527#include <wx/dcbuffer.h>
3528
3529
3530#include <wx/dcps.h>
3531
3532
3533class wxMetaFile : public wxObject {
3534public:
3535 wxMetaFile(const wxString&)
3536 { wxPyRaiseNotImplemented(); }
3537};
3538
3539class wxMetaFileDC : public wxClientDC {
3540public:
3541 wxMetaFileDC(const wxString&, int, int, const wxString&)
3542 { wxPyRaiseNotImplemented(); }
3543};
3544
3545
3546
3547class wxPrinterDC : public wxClientDC {
3548public:
3549 wxPrinterDC(const wxPrintData&)
3550 { wxPyRaiseNotImplemented(); }
3551
3552};
3553
3554
72ef6efb
RD
3555#include <wx/graphics.h>
3556
3557
3558#if !wxUSE_GRAPHICS_CONTEXT
3559// C++ stub classes for platforms that don't have wxGraphicsContext yet.
3560
3561class wxGraphicsPath
3562{
3563public :
3564 wxGraphicsPath() {
3565 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3566 PyErr_SetString(PyExc_NotImplementedError,
3567 "wxGraphicsPath is not available on this platform.");
3568 wxPyEndBlockThreads(blocked);
3569 }
3570 virtual ~wxGraphicsPath() {}
3571
3572 void MoveToPoint( wxDouble, wxDouble ) {}
3573 void AddLineToPoint( wxDouble, wxDouble ) {}
3574 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3575 void CloseSubpath() {}
3576 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3577 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3578
3579 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3580 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3581 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3582 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3583
3584 wxPoint2DDouble GetCurrentPoint() { return wxPoint2DDouble(0,0); }
3585 void MoveToPoint( const wxPoint2DDouble& ) {}
3586 void AddLineToPoint( const wxPoint2DDouble&) {}
3587 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3588 void AddArc( const wxPoint2DDouble&, wxDouble, wxDouble, wxDouble, bool) {}
3589};
3590
3591
3592class wxGraphicsContext
3593{
3594public:
3595 wxGraphicsContext() {
3596 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3597 PyErr_SetString(PyExc_NotImplementedError,
3598 "wxGraphicsContext is not available on this platform.");
3599 wxPyEndBlockThreads(blocked);
3600 }
3601 virtual ~wxGraphicsContext() {}
3602
3603 static wxGraphicsContext* Create( const wxWindowDC&) {
3604 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3605 PyErr_SetString(PyExc_NotImplementedError,
3606 "wxGraphicsPath is not available on this platform.");
3607 wxPyEndBlockThreads(blocked);
3608 return NULL;
3609 }
3610
3611 wxGraphicsPath * CreatePath() { return NULL; }
3612 void PushState() {}
3613 void PopState() {}
3614 void Clip( const wxRegion & ) {}
3615 void Translate( wxDouble , wxDouble ) {}
3616 void Scale( wxDouble , wxDouble ) {}
3617 void Rotate( wxDouble ) {}
3618 void SetPen( const wxPen & ) {}
3619 void SetBrush( const wxBrush & ) {}
3620 void SetLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3621 const wxColour&, const wxColour&) {}
3622 void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3623 const wxColour &, const wxColour &) {}
3624 void SetFont( const wxFont & ) {}
3625 void SetTextColor( const wxColour & ) {}
3626 void StrokePath( const wxGraphicsPath * ) {}
3627 void FillPath( const wxGraphicsPath *, int ) {}
3628 void DrawPath( const wxGraphicsPath *, int ) {}
3629 void DrawText( const wxString &, wxDouble , wxDouble ) {}
3630 void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3631 void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3632 wxDouble *, wxDouble * ) const {}
3633 void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3634 void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3635 void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3636 void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3637 void StrokeLines( size_t , const wxPoint2DDouble *) {}
3638 void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3639 void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3640 void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3641 void DrawEllipse( wxDouble , wxDouble, wxDouble , wxDouble) {}
3642 void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3643};
3644
3645
3646class wxGCDC: public wxWindowDC
3647{
3648public:
3649 wxGCDC(const wxWindowDC&) {
3650 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3651 PyErr_SetString(PyExc_NotImplementedError,
3652 "wxGCDC is not available on this platform.");
3653 wxPyEndBlockThreads(blocked);
3654 }
3655
3656 wxGCDC() {
3657 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3658 PyErr_SetString(PyExc_NotImplementedError,
3659 "wxGCDC is not available on this platform.");
3660 wxPyEndBlockThreads(blocked);
3661 }
3662
3663 virtual ~wxGCDC() {}
3664
3665 wxGraphicsContext* GetGraphicContext() { return NULL; }
3666};
3667
3668#endif
3669
3670
093d3ff1 3671
0085ce49 3672SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
093d3ff1
RD
3673 self->AddColour(name, wxColour(red, green, blue));
3674 }
3675
50efceee
RD
3676 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3677 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3678 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3679 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3680
3681
093d3ff1
RD
3682#include <wx/effects.h>
3683
8d38bd1d
RD
3684
3685#include "wx/renderer.h"
3686
3687
32fe5131 3688SWIGINTERNINLINE PyObject*
0085ce49 3689 SWIG_From_bool (bool value)
8d38bd1d 3690{
0085ce49 3691 return PyBool_FromLong(value ? 1 : 0);
8d38bd1d
RD
3692}
3693
27e45892
RD
3694
3695#include "wx/wxPython/pseudodc.h"
3696
3697SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3698 wxRect rect;
3699 self->GetIdBounds(id, rect);
3700 return rect;
3701 }
093d3ff1
RD
3702#ifdef __cplusplus
3703extern "C" {
3704#endif
0085ce49
RD
3705SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3706 PyObject *resultobj = 0;
3707 wxGDIObject *result = 0 ;
3708
3709 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3710 {
3711 if (!wxPyCheckForApp()) SWIG_fail;
3712 PyThreadState* __tstate = wxPyBeginAllowThreads();
3713 result = (wxGDIObject *)new wxGDIObject();
3714 wxPyEndAllowThreads(__tstate);
3715 if (PyErr_Occurred()) SWIG_fail;
3716 }
3717 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3718 return resultobj;
3719fail:
3720 return NULL;
093d3ff1
RD
3721}
3722
3723
0085ce49
RD
3724SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3725 PyObject *resultobj = 0;
3726 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3727 void *argp1 = 0 ;
3728 int res1 = 0 ;
3729 PyObject *swig_obj[1] ;
3730
3731 if (!args) SWIG_fail;
3732 swig_obj[0] = args;
3733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3734 if (!SWIG_IsOK(res1)) {
3735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3736 }
3737 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3738 {
3739 PyThreadState* __tstate = wxPyBeginAllowThreads();
3740 delete arg1;
093d3ff1 3741
0085ce49
RD
3742 wxPyEndAllowThreads(__tstate);
3743 if (PyErr_Occurred()) SWIG_fail;
3744 }
3745 resultobj = SWIG_Py_Void();
3746 return resultobj;
3747fail:
3748 return NULL;
d14a1e28
RD
3749}
3750
3751
0085ce49
RD
3752SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3753 PyObject *resultobj = 0;
3754 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3755 bool result;
3756 void *argp1 = 0 ;
3757 int res1 = 0 ;
3758 PyObject *swig_obj[1] ;
3759
3760 if (!args) SWIG_fail;
3761 swig_obj[0] = args;
3762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3763 if (!SWIG_IsOK(res1)) {
3764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3765 }
3766 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3767 {
3768 PyThreadState* __tstate = wxPyBeginAllowThreads();
3769 result = (bool)(arg1)->IsNull();
3770 wxPyEndAllowThreads(__tstate);
3771 if (PyErr_Occurred()) SWIG_fail;
3772 }
3773 {
3774 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3775 }
3776 return resultobj;
3777fail:
3778 return NULL;
3779}
3780
3781
3782SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3783 PyObject *obj;
3784 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3785 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3786 return SWIG_Py_Void();
3787}
3788
3789SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3790 return SWIG_Python_InitShadowInstance(args);
3791}
3792
3793SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3794 PyObject *resultobj = 0;
3795 byte arg1 = (byte) 0 ;
3796 byte arg2 = (byte) 0 ;
3797 byte arg3 = (byte) 0 ;
fc46b7f3 3798 byte arg4 = (byte) wxALPHA_OPAQUE ;
0085ce49
RD
3799 wxColour *result = 0 ;
3800 unsigned char val1 ;
3801 int ecode1 = 0 ;
3802 unsigned char val2 ;
3803 int ecode2 = 0 ;
3804 unsigned char val3 ;
3805 int ecode3 = 0 ;
fc46b7f3
RD
3806 unsigned char val4 ;
3807 int ecode4 = 0 ;
0085ce49
RD
3808 PyObject * obj0 = 0 ;
3809 PyObject * obj1 = 0 ;
3810 PyObject * obj2 = 0 ;
fc46b7f3 3811 PyObject * obj3 = 0 ;
0085ce49 3812 char * kwnames[] = {
fc46b7f3 3813 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
0085ce49
RD
3814 };
3815
fc46b7f3 3816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
3817 if (obj0) {
3818 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3819 if (!SWIG_IsOK(ecode1)) {
3820 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3821 }
3822 arg1 = static_cast< byte >(val1);
3823 }
3824 if (obj1) {
3825 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3826 if (!SWIG_IsOK(ecode2)) {
3827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3828 }
3829 arg2 = static_cast< byte >(val2);
3830 }
3831 if (obj2) {
3832 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3833 if (!SWIG_IsOK(ecode3)) {
3834 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3835 }
3836 arg3 = static_cast< byte >(val3);
3837 }
fc46b7f3
RD
3838 if (obj3) {
3839 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3840 if (!SWIG_IsOK(ecode4)) {
3841 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3842 }
3843 arg4 = static_cast< byte >(val4);
3844 }
0085ce49
RD
3845 {
3846 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 3847 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
0085ce49
RD
3848 wxPyEndAllowThreads(__tstate);
3849 if (PyErr_Occurred()) SWIG_fail;
3850 }
3851 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3852 return resultobj;
3853fail:
3854 return NULL;
d14a1e28
RD
3855}
3856
3857
0085ce49
RD
3858SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3859 PyObject *resultobj = 0;
3860 wxString *arg1 = 0 ;
3861 wxColour *result = 0 ;
3862 bool temp1 = false ;
3863 PyObject * obj0 = 0 ;
3864 char * kwnames[] = {
3865 (char *) "colorName", NULL
3866 };
3867
3868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3869 {
3870 arg1 = wxString_in_helper(obj0);
3871 if (arg1 == NULL) SWIG_fail;
3872 temp1 = true;
3873 }
3874 {
3875 if (!wxPyCheckForApp()) SWIG_fail;
3876 PyThreadState* __tstate = wxPyBeginAllowThreads();
3877 result = (wxColour *)new wxColour((wxString const &)*arg1);
3878 wxPyEndAllowThreads(__tstate);
3879 if (PyErr_Occurred()) SWIG_fail;
3880 }
3881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3882 {
3883 if (temp1)
3884 delete arg1;
3885 }
3886 return resultobj;
3887fail:
3888 {
3889 if (temp1)
3890 delete arg1;
3891 }
3892 return NULL;
d14a1e28
RD
3893}
3894
3895
0085ce49
RD
3896SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3897 PyObject *resultobj = 0;
3898 unsigned long arg1 ;
3899 wxColour *result = 0 ;
3900 unsigned long val1 ;
3901 int ecode1 = 0 ;
3902 PyObject * obj0 = 0 ;
3903 char * kwnames[] = {
3904 (char *) "colRGB", NULL
3905 };
3906
3907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3908 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3909 if (!SWIG_IsOK(ecode1)) {
3910 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3911 }
3912 arg1 = static_cast< unsigned long >(val1);
3913 {
3914 PyThreadState* __tstate = wxPyBeginAllowThreads();
3915 result = (wxColour *)new wxColour(arg1);
3916 wxPyEndAllowThreads(__tstate);
3917 if (PyErr_Occurred()) SWIG_fail;
3918 }
3919 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3920 return resultobj;
3921fail:
3922 return NULL;
d14a1e28
RD
3923}
3924
3925
0085ce49
RD
3926SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3927 PyObject *resultobj = 0;
3928 wxColour *arg1 = (wxColour *) 0 ;
3929 void *argp1 = 0 ;
3930 int res1 = 0 ;
3931 PyObject *swig_obj[1] ;
3932
3933 if (!args) SWIG_fail;
3934 swig_obj[0] = args;
3935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3936 if (!SWIG_IsOK(res1)) {
3937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3938 }
3939 arg1 = reinterpret_cast< wxColour * >(argp1);
3940 {
3941 PyThreadState* __tstate = wxPyBeginAllowThreads();
3942 delete arg1;
d14a1e28 3943
0085ce49
RD
3944 wxPyEndAllowThreads(__tstate);
3945 if (PyErr_Occurred()) SWIG_fail;
3946 }
3947 resultobj = SWIG_Py_Void();
3948 return resultobj;
3949fail:
3950 return NULL;
d14a1e28
RD
3951}
3952
3953
0085ce49
RD
3954SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3955 PyObject *resultobj = 0;
3956 wxColour *arg1 = (wxColour *) 0 ;
3957 byte result;
3958 void *argp1 = 0 ;
3959 int res1 = 0 ;
3960 PyObject *swig_obj[1] ;
3961
3962 if (!args) SWIG_fail;
3963 swig_obj[0] = args;
3964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3965 if (!SWIG_IsOK(res1)) {
3966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3967 }
3968 arg1 = reinterpret_cast< wxColour * >(argp1);
3969 {
3970 PyThreadState* __tstate = wxPyBeginAllowThreads();
3971 result = (byte)(arg1)->Red();
3972 wxPyEndAllowThreads(__tstate);
3973 if (PyErr_Occurred()) SWIG_fail;
3974 }
3975 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3976 return resultobj;
3977fail:
3978 return NULL;
d14a1e28
RD
3979}
3980
3981
0085ce49
RD
3982SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3983 PyObject *resultobj = 0;
3984 wxColour *arg1 = (wxColour *) 0 ;
3985 byte result;
3986 void *argp1 = 0 ;
3987 int res1 = 0 ;
3988 PyObject *swig_obj[1] ;
3989
3990 if (!args) SWIG_fail;
3991 swig_obj[0] = args;
3992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3993 if (!SWIG_IsOK(res1)) {
3994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3995 }
3996 arg1 = reinterpret_cast< wxColour * >(argp1);
3997 {
3998 PyThreadState* __tstate = wxPyBeginAllowThreads();
3999 result = (byte)(arg1)->Green();
4000 wxPyEndAllowThreads(__tstate);
4001 if (PyErr_Occurred()) SWIG_fail;
4002 }
4003 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4004 return resultobj;
4005fail:
4006 return NULL;
5cbf236d
RD
4007}
4008
4009
0085ce49
RD
4010SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4011 PyObject *resultobj = 0;
4012 wxColour *arg1 = (wxColour *) 0 ;
4013 byte result;
4014 void *argp1 = 0 ;
4015 int res1 = 0 ;
4016 PyObject *swig_obj[1] ;
4017
4018 if (!args) SWIG_fail;
4019 swig_obj[0] = args;
4020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4021 if (!SWIG_IsOK(res1)) {
4022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4023 }
4024 arg1 = reinterpret_cast< wxColour * >(argp1);
4025 {
4026 PyThreadState* __tstate = wxPyBeginAllowThreads();
4027 result = (byte)(arg1)->Blue();
4028 wxPyEndAllowThreads(__tstate);
4029 if (PyErr_Occurred()) SWIG_fail;
4030 }
4031 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4032 return resultobj;
4033fail:
4034 return NULL;
d14a1e28
RD
4035}
4036
4037
fc46b7f3
RD
4038SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4039 PyObject *resultobj = 0;
4040 wxColour *arg1 = (wxColour *) 0 ;
4041 byte result;
4042 void *argp1 = 0 ;
4043 int res1 = 0 ;
4044 PyObject *swig_obj[1] ;
4045
4046 if (!args) SWIG_fail;
4047 swig_obj[0] = args;
4048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4049 if (!SWIG_IsOK(res1)) {
4050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4051 }
4052 arg1 = reinterpret_cast< wxColour * >(argp1);
4053 {
4054 PyThreadState* __tstate = wxPyBeginAllowThreads();
4055 result = (byte)(arg1)->Alpha();
4056 wxPyEndAllowThreads(__tstate);
4057 if (PyErr_Occurred()) SWIG_fail;
4058 }
4059 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4060 return resultobj;
4061fail:
4062 return NULL;
4063}
4064
4065
0085ce49
RD
4066SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4067 PyObject *resultobj = 0;
4068 wxColour *arg1 = (wxColour *) 0 ;
4069 bool result;
4070 void *argp1 = 0 ;
4071 int res1 = 0 ;
4072 PyObject *swig_obj[1] ;
4073
4074 if (!args) SWIG_fail;
4075 swig_obj[0] = args;
4076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4077 if (!SWIG_IsOK(res1)) {
4078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
4079 }
4080 arg1 = reinterpret_cast< wxColour * >(argp1);
4081 {
4082 PyThreadState* __tstate = wxPyBeginAllowThreads();
4083 result = (bool)(arg1)->Ok();
4084 wxPyEndAllowThreads(__tstate);
4085 if (PyErr_Occurred()) SWIG_fail;
4086 }
4087 {
4088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4089 }
4090 return resultobj;
4091fail:
4092 return NULL;
4093}
4094
4095
4096SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4097 PyObject *resultobj = 0;
4098 wxColour *arg1 = (wxColour *) 0 ;
4099 byte arg2 ;
4100 byte arg3 ;
4101 byte arg4 ;
fc46b7f3 4102 byte arg5 = (byte) wxALPHA_OPAQUE ;
0085ce49
RD
4103 void *argp1 = 0 ;
4104 int res1 = 0 ;
4105 unsigned char val2 ;
4106 int ecode2 = 0 ;
4107 unsigned char val3 ;
4108 int ecode3 = 0 ;
4109 unsigned char val4 ;
4110 int ecode4 = 0 ;
fc46b7f3
RD
4111 unsigned char val5 ;
4112 int ecode5 = 0 ;
0085ce49
RD
4113 PyObject * obj0 = 0 ;
4114 PyObject * obj1 = 0 ;
4115 PyObject * obj2 = 0 ;
4116 PyObject * obj3 = 0 ;
fc46b7f3 4117 PyObject * obj4 = 0 ;
0085ce49 4118 char * kwnames[] = {
fc46b7f3 4119 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
0085ce49
RD
4120 };
4121
fc46b7f3 4122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
0085ce49
RD
4123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4124 if (!SWIG_IsOK(res1)) {
4125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4126 }
4127 arg1 = reinterpret_cast< wxColour * >(argp1);
4128 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4129 if (!SWIG_IsOK(ecode2)) {
4130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4131 }
4132 arg2 = static_cast< byte >(val2);
4133 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4134 if (!SWIG_IsOK(ecode3)) {
4135 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4136 }
4137 arg3 = static_cast< byte >(val3);
4138 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4139 if (!SWIG_IsOK(ecode4)) {
4140 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4141 }
4142 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4143 if (obj4) {
4144 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4145 if (!SWIG_IsOK(ecode5)) {
4146 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4147 }
4148 arg5 = static_cast< byte >(val5);
4149 }
0085ce49
RD
4150 {
4151 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4152 (arg1)->Set(arg2,arg3,arg4,arg5);
0085ce49
RD
4153 wxPyEndAllowThreads(__tstate);
4154 if (PyErr_Occurred()) SWIG_fail;
4155 }
4156 resultobj = SWIG_Py_Void();
4157 return resultobj;
4158fail:
4159 return NULL;
4160}
4161
4162
4163SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4164 PyObject *resultobj = 0;
4165 wxColour *arg1 = (wxColour *) 0 ;
4166 unsigned long arg2 ;
4167 void *argp1 = 0 ;
4168 int res1 = 0 ;
4169 unsigned long val2 ;
4170 int ecode2 = 0 ;
4171 PyObject * obj0 = 0 ;
4172 PyObject * obj1 = 0 ;
4173 char * kwnames[] = {
4174 (char *) "self",(char *) "colRGB", NULL
4175 };
4176
4177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4179 if (!SWIG_IsOK(res1)) {
4180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4181 }
4182 arg1 = reinterpret_cast< wxColour * >(argp1);
4183 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4184 if (!SWIG_IsOK(ecode2)) {
4185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4186 }
4187 arg2 = static_cast< unsigned long >(val2);
4188 {
4189 PyThreadState* __tstate = wxPyBeginAllowThreads();
4190 (arg1)->Set(arg2);
4191 wxPyEndAllowThreads(__tstate);
4192 if (PyErr_Occurred()) SWIG_fail;
4193 }
4194 resultobj = SWIG_Py_Void();
4195 return resultobj;
4196fail:
4197 return NULL;
4198}
4199
4200
4201SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4202 PyObject *resultobj = 0;
4203 wxColour *arg1 = (wxColour *) 0 ;
4204 wxString *arg2 = 0 ;
4205 void *argp1 = 0 ;
4206 int res1 = 0 ;
4207 bool temp2 = false ;
4208 PyObject * obj0 = 0 ;
4209 PyObject * obj1 = 0 ;
4210 char * kwnames[] = {
4211 (char *) "self",(char *) "colourName", NULL
4212 };
4213
4214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4216 if (!SWIG_IsOK(res1)) {
4217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4218 }
4219 arg1 = reinterpret_cast< wxColour * >(argp1);
4220 {
4221 arg2 = wxString_in_helper(obj1);
4222 if (arg2 == NULL) SWIG_fail;
4223 temp2 = true;
4224 }
4225 {
4226 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4227 (arg1)->Set((wxString const &)*arg2);
0085ce49
RD
4228 wxPyEndAllowThreads(__tstate);
4229 if (PyErr_Occurred()) SWIG_fail;
4230 }
4231 resultobj = SWIG_Py_Void();
4232 {
4233 if (temp2)
4234 delete arg2;
4235 }
4236 return resultobj;
4237fail:
4238 {
4239 if (temp2)
4240 delete arg2;
4241 }
4242 return NULL;
d14a1e28
RD
4243}
4244
4245
01f6b6d3
RD
4246SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4247 PyObject *resultobj = 0;
4248 wxColour *arg1 = (wxColour *) 0 ;
4249 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4250 wxString result;
4251 void *argp1 = 0 ;
4252 int res1 = 0 ;
4253 long val2 ;
4254 int ecode2 = 0 ;
4255 PyObject * obj0 = 0 ;
4256 PyObject * obj1 = 0 ;
4257 char * kwnames[] = {
4258 (char *) "self",(char *) "flags", NULL
4259 };
4260
4261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4263 if (!SWIG_IsOK(res1)) {
4264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4265 }
4266 arg1 = reinterpret_cast< wxColour * >(argp1);
4267 if (obj1) {
4268 ecode2 = SWIG_AsVal_long(obj1, &val2);
4269 if (!SWIG_IsOK(ecode2)) {
4270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4271 }
4272 arg2 = static_cast< long >(val2);
4273 }
4274 {
4275 PyThreadState* __tstate = wxPyBeginAllowThreads();
4276 result = ((wxColour const *)arg1)->GetAsString(arg2);
4277 wxPyEndAllowThreads(__tstate);
4278 if (PyErr_Occurred()) SWIG_fail;
4279 }
4280 {
4281#if wxUSE_UNICODE
4282 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4283#else
4284 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4285#endif
4286 }
4287 return resultobj;
4288fail:
4289 return NULL;
4290}
4291
4292
0085ce49
RD
4293SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4294 PyObject *resultobj = 0;
4295 wxColour *arg1 = (wxColour *) 0 ;
4296 long result;
4297 void *argp1 = 0 ;
4298 int res1 = 0 ;
4299 PyObject *swig_obj[1] ;
4300
4301 if (!args) SWIG_fail;
4302 swig_obj[0] = args;
4303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4304 if (!SWIG_IsOK(res1)) {
4305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4306 }
4307 arg1 = reinterpret_cast< wxColour * >(argp1);
4308 {
4309 PyThreadState* __tstate = wxPyBeginAllowThreads();
4310 result = (long)((wxColour const *)arg1)->GetPixel();
4311 wxPyEndAllowThreads(__tstate);
4312 if (PyErr_Occurred()) SWIG_fail;
4313 }
4314 resultobj = SWIG_From_long(static_cast< long >(result));
4315 return resultobj;
4316fail:
4317 return NULL;
4318}
4319
4320
4321SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4322 PyObject *resultobj = 0;
4323 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4324 PyObject *arg2 = (PyObject *) 0 ;
0085ce49
RD
4325 bool result;
4326 void *argp1 = 0 ;
4327 int res1 = 0 ;
0085ce49
RD
4328 PyObject * obj0 = 0 ;
4329 PyObject * obj1 = 0 ;
4330 char * kwnames[] = {
e9d6f3a4 4331 (char *) "self",(char *) "other", NULL
0085ce49
RD
4332 };
4333
4334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4336 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4338 }
4339 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4340 arg2 = obj1;
0085ce49 4341 {
e9d6f3a4 4342 result = (bool)wxColour___eq__(arg1,arg2);
0085ce49
RD
4343 if (PyErr_Occurred()) SWIG_fail;
4344 }
4345 {
4346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4347 }
4348 return resultobj;
4349fail:
4350 return NULL;
4351}
4352
4353
4354SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4355 PyObject *resultobj = 0;
4356 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4357 PyObject *arg2 = (PyObject *) 0 ;
0085ce49
RD
4358 bool result;
4359 void *argp1 = 0 ;
4360 int res1 = 0 ;
0085ce49
RD
4361 PyObject * obj0 = 0 ;
4362 PyObject * obj1 = 0 ;
4363 char * kwnames[] = {
e9d6f3a4 4364 (char *) "self",(char *) "other", NULL
0085ce49
RD
4365 };
4366
4367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4369 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4371 }
4372 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4373 arg2 = obj1;
0085ce49 4374 {
e9d6f3a4 4375 result = (bool)wxColour___ne__(arg1,arg2);
0085ce49
RD
4376 if (PyErr_Occurred()) SWIG_fail;
4377 }
4378 {
4379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4380 }
4381 return resultobj;
4382fail:
4383 return NULL;
d14a1e28
RD
4384}
4385
4386
fc46b7f3 4387SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
4388 PyObject *resultobj = 0;
4389 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4390 bool arg2 = (bool) false ;
0085ce49
RD
4391 PyObject *result = 0 ;
4392 void *argp1 = 0 ;
4393 int res1 = 0 ;
fc46b7f3
RD
4394 bool val2 ;
4395 int ecode2 = 0 ;
4396 PyObject * obj0 = 0 ;
4397 PyObject * obj1 = 0 ;
4398 char * kwnames[] = {
4399 (char *) "self",(char *) "includeAlpha", NULL
4400 };
0085ce49 4401
fc46b7f3
RD
4402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
0085ce49
RD
4404 if (!SWIG_IsOK(res1)) {
4405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4406 }
4407 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4408 if (obj1) {
4409 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4410 if (!SWIG_IsOK(ecode2)) {
4411 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4412 }
4413 arg2 = static_cast< bool >(val2);
4414 }
0085ce49 4415 {
fc46b7f3 4416 result = (PyObject *)wxColour_Get(arg1,arg2);
0085ce49
RD
4417 if (PyErr_Occurred()) SWIG_fail;
4418 }
4419 resultobj = result;
4420 return resultobj;
4421fail:
4422 return NULL;
d14a1e28
RD
4423}
4424
4425
0085ce49
RD
4426SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4427 PyObject *resultobj = 0;
4428 wxColour *arg1 = (wxColour *) 0 ;
4429 unsigned long result;
4430 void *argp1 = 0 ;
4431 int res1 = 0 ;
4432 PyObject *swig_obj[1] ;
4433
4434 if (!args) SWIG_fail;
4435 swig_obj[0] = args;
4436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4437 if (!SWIG_IsOK(res1)) {
4438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4439 }
4440 arg1 = reinterpret_cast< wxColour * >(argp1);
4441 {
0085ce49 4442 result = (unsigned long)wxColour_GetRGB(arg1);
0085ce49
RD
4443 if (PyErr_Occurred()) SWIG_fail;
4444 }
4445 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4446 return resultobj;
4447fail:
4448 return NULL;
4449}
4450
4451
4452SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4453 PyObject *obj;
4454 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4455 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4456 return SWIG_Py_Void();
4457}
4458
4459SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4460 return SWIG_Python_InitShadowInstance(args);
4461}
4462
4463SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4464 PyObject *resultobj = 0;
4465 int arg1 ;
4466 unsigned char *arg2 = (unsigned char *) 0 ;
4467 unsigned char *arg3 = (unsigned char *) 0 ;
4468 unsigned char *arg4 = (unsigned char *) 0 ;
4469 wxPalette *result = 0 ;
4470 int val1 ;
4471 int ecode1 = 0 ;
4472 void *argp2 = 0 ;
4473 int res2 = 0 ;
4474 void *argp3 = 0 ;
4475 int res3 = 0 ;
4476 void *argp4 = 0 ;
4477 int res4 = 0 ;
4478 PyObject * obj0 = 0 ;
4479 PyObject * obj1 = 0 ;
4480 PyObject * obj2 = 0 ;
4481 PyObject * obj3 = 0 ;
4482 char * kwnames[] = {
4483 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4484 };
4485
4486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4487 ecode1 = SWIG_AsVal_int(obj0, &val1);
4488 if (!SWIG_IsOK(ecode1)) {
4489 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4490 }
4491 arg1 = static_cast< int >(val1);
4492 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4493 if (!SWIG_IsOK(res2)) {
4494 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4495 }
4496 arg2 = reinterpret_cast< unsigned char * >(argp2);
4497 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4498 if (!SWIG_IsOK(res3)) {
4499 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4500 }
4501 arg3 = reinterpret_cast< unsigned char * >(argp3);
4502 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4503 if (!SWIG_IsOK(res4)) {
4504 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4505 }
4506 arg4 = reinterpret_cast< unsigned char * >(argp4);
4507 {
4508 if (!wxPyCheckForApp()) SWIG_fail;
4509 PyThreadState* __tstate = wxPyBeginAllowThreads();
4510 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4511 wxPyEndAllowThreads(__tstate);
4512 if (PyErr_Occurred()) SWIG_fail;
4513 }
4514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4515 return resultobj;
4516fail:
4517 return NULL;
d14a1e28
RD
4518}
4519
4520
0085ce49
RD
4521SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4522 PyObject *resultobj = 0;
4523 wxPalette *arg1 = (wxPalette *) 0 ;
4524 void *argp1 = 0 ;
4525 int res1 = 0 ;
4526 PyObject *swig_obj[1] ;
4527
4528 if (!args) SWIG_fail;
4529 swig_obj[0] = args;
4530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4531 if (!SWIG_IsOK(res1)) {
4532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4533 }
4534 arg1 = reinterpret_cast< wxPalette * >(argp1);
4535 {
4536 PyThreadState* __tstate = wxPyBeginAllowThreads();
4537 delete arg1;
d14a1e28 4538
0085ce49
RD
4539 wxPyEndAllowThreads(__tstate);
4540 if (PyErr_Occurred()) SWIG_fail;
4541 }
4542 resultobj = SWIG_Py_Void();
4543 return resultobj;
4544fail:
4545 return NULL;
4546}
4547
4548
4549SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4550 PyObject *resultobj = 0;
4551 wxPalette *arg1 = (wxPalette *) 0 ;
4552 byte arg2 ;
4553 byte arg3 ;
4554 byte arg4 ;
4555 int result;
4556 void *argp1 = 0 ;
4557 int res1 = 0 ;
4558 unsigned char val2 ;
4559 int ecode2 = 0 ;
4560 unsigned char val3 ;
4561 int ecode3 = 0 ;
4562 unsigned char val4 ;
4563 int ecode4 = 0 ;
4564 PyObject * obj0 = 0 ;
4565 PyObject * obj1 = 0 ;
4566 PyObject * obj2 = 0 ;
4567 PyObject * obj3 = 0 ;
4568 char * kwnames[] = {
4569 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4570 };
4571
4572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4574 if (!SWIG_IsOK(res1)) {
4575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4576 }
4577 arg1 = reinterpret_cast< wxPalette * >(argp1);
4578 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4579 if (!SWIG_IsOK(ecode2)) {
4580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4581 }
4582 arg2 = static_cast< byte >(val2);
4583 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4584 if (!SWIG_IsOK(ecode3)) {
4585 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4586 }
4587 arg3 = static_cast< byte >(val3);
4588 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4589 if (!SWIG_IsOK(ecode4)) {
4590 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4591 }
4592 arg4 = static_cast< byte >(val4);
4593 {
4594 PyThreadState* __tstate = wxPyBeginAllowThreads();
4595 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4596 wxPyEndAllowThreads(__tstate);
4597 if (PyErr_Occurred()) SWIG_fail;
4598 }
4599 resultobj = SWIG_From_int(static_cast< int >(result));
4600 return resultobj;
4601fail:
4602 return NULL;
4603}
4604
4605
4606SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4607 PyObject *resultobj = 0;
4608 wxPalette *arg1 = (wxPalette *) 0 ;
4609 int arg2 ;
4610 byte *arg3 = (byte *) 0 ;
4611 byte *arg4 = (byte *) 0 ;
4612 byte *arg5 = (byte *) 0 ;
4613 bool result;
4614 void *argp1 = 0 ;
4615 int res1 = 0 ;
4616 int val2 ;
4617 int ecode2 = 0 ;
4618 byte temp3 ;
4619 int res3 = SWIG_TMPOBJ ;
4620 byte temp4 ;
4621 int res4 = SWIG_TMPOBJ ;
4622 byte temp5 ;
4623 int res5 = SWIG_TMPOBJ ;
4624 PyObject * obj0 = 0 ;
4625 PyObject * obj1 = 0 ;
4626 char * kwnames[] = {
4627 (char *) "self",(char *) "pixel", NULL
4628 };
4629
4630 arg3 = &temp3;
4631 arg4 = &temp4;
4632 arg5 = &temp5;
4633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4635 if (!SWIG_IsOK(res1)) {
4636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4637 }
4638 arg1 = reinterpret_cast< wxPalette * >(argp1);
4639 ecode2 = SWIG_AsVal_int(obj1, &val2);
4640 if (!SWIG_IsOK(ecode2)) {
4641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4642 }
4643 arg2 = static_cast< int >(val2);
4644 {
4645 PyThreadState* __tstate = wxPyBeginAllowThreads();
4646 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4647 wxPyEndAllowThreads(__tstate);
4648 if (PyErr_Occurred()) SWIG_fail;
4649 }
4650 {
4651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4652 }
4653 if (SWIG_IsTmpObj(res3)) {
4654 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4655 } else {
4656 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4657 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4658 }
4659 if (SWIG_IsTmpObj(res4)) {
4660 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4661 } else {
4662 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4663 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4664 }
4665 if (SWIG_IsTmpObj(res5)) {
4666 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4667 } else {
4668 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4669 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4670 }
4671 return resultobj;
4672fail:
4673 return NULL;
d14a1e28
RD
4674}
4675
4676
0085ce49
RD
4677SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4678 PyObject *resultobj = 0;
4679 wxPalette *arg1 = (wxPalette *) 0 ;
4680 int result;
4681 void *argp1 = 0 ;
4682 int res1 = 0 ;
4683 PyObject *swig_obj[1] ;
4684
4685 if (!args) SWIG_fail;
4686 swig_obj[0] = args;
4687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4688 if (!SWIG_IsOK(res1)) {
4689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4690 }
4691 arg1 = reinterpret_cast< wxPalette * >(argp1);
4692 {
4693 PyThreadState* __tstate = wxPyBeginAllowThreads();
4694 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4695 wxPyEndAllowThreads(__tstate);
4696 if (PyErr_Occurred()) SWIG_fail;
4697 }
4698 resultobj = SWIG_From_int(static_cast< int >(result));
4699 return resultobj;
4700fail:
4701 return NULL;
d14a1e28
RD
4702}
4703
4704
0085ce49
RD
4705SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4706 PyObject *resultobj = 0;
4707 wxPalette *arg1 = (wxPalette *) 0 ;
4708 bool result;
4709 void *argp1 = 0 ;
4710 int res1 = 0 ;
4711 PyObject *swig_obj[1] ;
4712
4713 if (!args) SWIG_fail;
4714 swig_obj[0] = args;
4715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4716 if (!SWIG_IsOK(res1)) {
4717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4718 }
4719 arg1 = reinterpret_cast< wxPalette * >(argp1);
4720 {
4721 PyThreadState* __tstate = wxPyBeginAllowThreads();
4722 result = (bool)(arg1)->Ok();
4723 wxPyEndAllowThreads(__tstate);
4724 if (PyErr_Occurred()) SWIG_fail;
4725 }
4726 {
4727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4728 }
4729 return resultobj;
4730fail:
4731 return NULL;
4732}
4733
4734
4735SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4736 PyObject *obj;
4737 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4738 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4739 return SWIG_Py_Void();
4740}
4741
4742SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4743 return SWIG_Python_InitShadowInstance(args);
4744}
4745
4746SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4747 PyObject *resultobj = 0;
4748 wxColour *arg1 = 0 ;
4749 int arg2 = (int) 1 ;
4750 int arg3 = (int) wxSOLID ;
4751 wxPen *result = 0 ;
4752 wxColour temp1 ;
4753 int val2 ;
4754 int ecode2 = 0 ;
4755 int val3 ;
4756 int ecode3 = 0 ;
4757 PyObject * obj0 = 0 ;
4758 PyObject * obj1 = 0 ;
4759 PyObject * obj2 = 0 ;
4760 char * kwnames[] = {
4761 (char *) "colour",(char *) "width",(char *) "style", NULL
4762 };
4763
4764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4765 {
4766 arg1 = &temp1;
4767 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4768 }
4769 if (obj1) {
4770 ecode2 = SWIG_AsVal_int(obj1, &val2);
4771 if (!SWIG_IsOK(ecode2)) {
4772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4773 }
4774 arg2 = static_cast< int >(val2);
4775 }
4776 if (obj2) {
4777 ecode3 = SWIG_AsVal_int(obj2, &val3);
4778 if (!SWIG_IsOK(ecode3)) {
4779 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4780 }
4781 arg3 = static_cast< int >(val3);
4782 }
4783 {
4784 if (!wxPyCheckForApp()) SWIG_fail;
4785 PyThreadState* __tstate = wxPyBeginAllowThreads();
4786 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4787 wxPyEndAllowThreads(__tstate);
4788 if (PyErr_Occurred()) SWIG_fail;
4789 }
4790 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4791 return resultobj;
4792fail:
4793 return NULL;
d14a1e28
RD
4794}
4795
4796
0085ce49
RD
4797SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4798 PyObject *resultobj = 0;
4799 wxPen *arg1 = (wxPen *) 0 ;
4800 void *argp1 = 0 ;
4801 int res1 = 0 ;
4802 PyObject *swig_obj[1] ;
4803
4804 if (!args) SWIG_fail;
4805 swig_obj[0] = args;
4806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4807 if (!SWIG_IsOK(res1)) {
4808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4809 }
4810 arg1 = reinterpret_cast< wxPen * >(argp1);
4811 {
4812 PyThreadState* __tstate = wxPyBeginAllowThreads();
4813 delete arg1;
d14a1e28 4814
0085ce49
RD
4815 wxPyEndAllowThreads(__tstate);
4816 if (PyErr_Occurred()) SWIG_fail;
4817 }
4818 resultobj = SWIG_Py_Void();
4819 return resultobj;
4820fail:
4821 return NULL;
d14a1e28
RD
4822}
4823
4824
0085ce49
RD
4825SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4826 PyObject *resultobj = 0;
4827 wxPen *arg1 = (wxPen *) 0 ;
4828 int result;
4829 void *argp1 = 0 ;
4830 int res1 = 0 ;
4831 PyObject *swig_obj[1] ;
4832
4833 if (!args) SWIG_fail;
4834 swig_obj[0] = args;
4835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4836 if (!SWIG_IsOK(res1)) {
4837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4838 }
4839 arg1 = reinterpret_cast< wxPen * >(argp1);
4840 {
4841 PyThreadState* __tstate = wxPyBeginAllowThreads();
4842 result = (int)(arg1)->GetCap();
4843 wxPyEndAllowThreads(__tstate);
4844 if (PyErr_Occurred()) SWIG_fail;
4845 }
4846 resultobj = SWIG_From_int(static_cast< int >(result));
4847 return resultobj;
4848fail:
4849 return NULL;
d14a1e28
RD
4850}
4851
4852
0085ce49
RD
4853SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4854 PyObject *resultobj = 0;
4855 wxPen *arg1 = (wxPen *) 0 ;
4856 wxColour result;
4857 void *argp1 = 0 ;
4858 int res1 = 0 ;
4859 PyObject *swig_obj[1] ;
4860
4861 if (!args) SWIG_fail;
4862 swig_obj[0] = args;
4863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4864 if (!SWIG_IsOK(res1)) {
4865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4866 }
4867 arg1 = reinterpret_cast< wxPen * >(argp1);
4868 {
4869 PyThreadState* __tstate = wxPyBeginAllowThreads();
4870 result = (arg1)->GetColour();
4871 wxPyEndAllowThreads(__tstate);
4872 if (PyErr_Occurred()) SWIG_fail;
4873 }
4874 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4875 return resultobj;
4876fail:
4877 return NULL;
d14a1e28
RD
4878}
4879
4880
0085ce49
RD
4881SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4882 PyObject *resultobj = 0;
4883 wxPen *arg1 = (wxPen *) 0 ;
4884 int result;
4885 void *argp1 = 0 ;
4886 int res1 = 0 ;
4887 PyObject *swig_obj[1] ;
4888
4889 if (!args) SWIG_fail;
4890 swig_obj[0] = args;
4891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4892 if (!SWIG_IsOK(res1)) {
4893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4894 }
4895 arg1 = reinterpret_cast< wxPen * >(argp1);
4896 {
4897 PyThreadState* __tstate = wxPyBeginAllowThreads();
4898 result = (int)(arg1)->GetJoin();
4899 wxPyEndAllowThreads(__tstate);
4900 if (PyErr_Occurred()) SWIG_fail;
4901 }
4902 resultobj = SWIG_From_int(static_cast< int >(result));
4903 return resultobj;
4904fail:
4905 return NULL;
d14a1e28
RD
4906}
4907
4908
0085ce49
RD
4909SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4910 PyObject *resultobj = 0;
4911 wxPen *arg1 = (wxPen *) 0 ;
4912 int result;
4913 void *argp1 = 0 ;
4914 int res1 = 0 ;
4915 PyObject *swig_obj[1] ;
4916
4917 if (!args) SWIG_fail;
4918 swig_obj[0] = args;
4919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4920 if (!SWIG_IsOK(res1)) {
4921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4922 }
4923 arg1 = reinterpret_cast< wxPen * >(argp1);
4924 {
4925 PyThreadState* __tstate = wxPyBeginAllowThreads();
4926 result = (int)(arg1)->GetStyle();
4927 wxPyEndAllowThreads(__tstate);
4928 if (PyErr_Occurred()) SWIG_fail;
4929 }
4930 resultobj = SWIG_From_int(static_cast< int >(result));
4931 return resultobj;
4932fail:
4933 return NULL;
3adfb63b
RD
4934}
4935
4936
0085ce49
RD
4937SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4938 PyObject *resultobj = 0;
4939 wxPen *arg1 = (wxPen *) 0 ;
4940 int result;
4941 void *argp1 = 0 ;
4942 int res1 = 0 ;
4943 PyObject *swig_obj[1] ;
4944
4945 if (!args) SWIG_fail;
4946 swig_obj[0] = args;
4947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4948 if (!SWIG_IsOK(res1)) {
4949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4950 }
4951 arg1 = reinterpret_cast< wxPen * >(argp1);
4952 {
4953 PyThreadState* __tstate = wxPyBeginAllowThreads();
4954 result = (int)(arg1)->GetWidth();
4955 wxPyEndAllowThreads(__tstate);
4956 if (PyErr_Occurred()) SWIG_fail;
4957 }
4958 resultobj = SWIG_From_int(static_cast< int >(result));
4959 return resultobj;
4960fail:
4961 return NULL;
d14a1e28
RD
4962}
4963
4964
0085ce49
RD
4965SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4966 PyObject *resultobj = 0;
4967 wxPen *arg1 = (wxPen *) 0 ;
4968 bool result;
4969 void *argp1 = 0 ;
4970 int res1 = 0 ;
4971 PyObject *swig_obj[1] ;
4972
4973 if (!args) SWIG_fail;
4974 swig_obj[0] = args;
4975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4976 if (!SWIG_IsOK(res1)) {
4977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4978 }
4979 arg1 = reinterpret_cast< wxPen * >(argp1);
4980 {
4981 PyThreadState* __tstate = wxPyBeginAllowThreads();
4982 result = (bool)(arg1)->Ok();
4983 wxPyEndAllowThreads(__tstate);
4984 if (PyErr_Occurred()) SWIG_fail;
4985 }
4986 {
4987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4988 }
4989 return resultobj;
4990fail:
4991 return NULL;
4992}
4993
4994
4995SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4996 PyObject *resultobj = 0;
4997 wxPen *arg1 = (wxPen *) 0 ;
4998 int arg2 ;
4999 void *argp1 = 0 ;
5000 int res1 = 0 ;
5001 int val2 ;
5002 int ecode2 = 0 ;
5003 PyObject * obj0 = 0 ;
5004 PyObject * obj1 = 0 ;
5005 char * kwnames[] = {
5006 (char *) "self",(char *) "cap_style", NULL
5007 };
5008
5009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5011 if (!SWIG_IsOK(res1)) {
5012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5013 }
5014 arg1 = reinterpret_cast< wxPen * >(argp1);
5015 ecode2 = SWIG_AsVal_int(obj1, &val2);
5016 if (!SWIG_IsOK(ecode2)) {
5017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5018 }
5019 arg2 = static_cast< int >(val2);
5020 {
5021 PyThreadState* __tstate = wxPyBeginAllowThreads();
5022 (arg1)->SetCap(arg2);
5023 wxPyEndAllowThreads(__tstate);
5024 if (PyErr_Occurred()) SWIG_fail;
5025 }
5026 resultobj = SWIG_Py_Void();
5027 return resultobj;
5028fail:
5029 return NULL;
5030}
5031
5032
5033SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5034 PyObject *resultobj = 0;
5035 wxPen *arg1 = (wxPen *) 0 ;
5036 wxColour *arg2 = 0 ;
5037 void *argp1 = 0 ;
5038 int res1 = 0 ;
5039 wxColour temp2 ;
5040 PyObject * obj0 = 0 ;
5041 PyObject * obj1 = 0 ;
5042 char * kwnames[] = {
5043 (char *) "self",(char *) "colour", NULL
5044 };
5045
5046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5048 if (!SWIG_IsOK(res1)) {
5049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5050 }
5051 arg1 = reinterpret_cast< wxPen * >(argp1);
5052 {
5053 arg2 = &temp2;
5054 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5055 }
5056 {
5057 PyThreadState* __tstate = wxPyBeginAllowThreads();
5058 (arg1)->SetColour(*arg2);
5059 wxPyEndAllowThreads(__tstate);
5060 if (PyErr_Occurred()) SWIG_fail;
5061 }
5062 resultobj = SWIG_Py_Void();
5063 return resultobj;
5064fail:
5065 return NULL;
5066}
5067
5068
5069SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5070 PyObject *resultobj = 0;
5071 wxPen *arg1 = (wxPen *) 0 ;
5072 int arg2 ;
5073 void *argp1 = 0 ;
5074 int res1 = 0 ;
5075 int val2 ;
5076 int ecode2 = 0 ;
5077 PyObject * obj0 = 0 ;
5078 PyObject * obj1 = 0 ;
5079 char * kwnames[] = {
5080 (char *) "self",(char *) "join_style", NULL
5081 };
5082
5083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5085 if (!SWIG_IsOK(res1)) {
5086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5087 }
5088 arg1 = reinterpret_cast< wxPen * >(argp1);
5089 ecode2 = SWIG_AsVal_int(obj1, &val2);
5090 if (!SWIG_IsOK(ecode2)) {
5091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5092 }
5093 arg2 = static_cast< int >(val2);
5094 {
5095 PyThreadState* __tstate = wxPyBeginAllowThreads();
5096 (arg1)->SetJoin(arg2);
5097 wxPyEndAllowThreads(__tstate);
5098 if (PyErr_Occurred()) SWIG_fail;
5099 }
5100 resultobj = SWIG_Py_Void();
5101 return resultobj;
5102fail:
5103 return NULL;
5104}
5105
5106
5107SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5108 PyObject *resultobj = 0;
5109 wxPen *arg1 = (wxPen *) 0 ;
5110 int arg2 ;
5111 void *argp1 = 0 ;
5112 int res1 = 0 ;
5113 int val2 ;
5114 int ecode2 = 0 ;
5115 PyObject * obj0 = 0 ;
5116 PyObject * obj1 = 0 ;
5117 char * kwnames[] = {
5118 (char *) "self",(char *) "style", NULL
5119 };
5120
5121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5123 if (!SWIG_IsOK(res1)) {
5124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5125 }
5126 arg1 = reinterpret_cast< wxPen * >(argp1);
5127 ecode2 = SWIG_AsVal_int(obj1, &val2);
5128 if (!SWIG_IsOK(ecode2)) {
5129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5130 }
5131 arg2 = static_cast< int >(val2);
5132 {
5133 PyThreadState* __tstate = wxPyBeginAllowThreads();
5134 (arg1)->SetStyle(arg2);
5135 wxPyEndAllowThreads(__tstate);
5136 if (PyErr_Occurred()) SWIG_fail;
5137 }
5138 resultobj = SWIG_Py_Void();
5139 return resultobj;
5140fail:
5141 return NULL;
5142}
5143
5144
5145SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5146 PyObject *resultobj = 0;
5147 wxPen *arg1 = (wxPen *) 0 ;
5148 int arg2 ;
5149 void *argp1 = 0 ;
5150 int res1 = 0 ;
5151 int val2 ;
5152 int ecode2 = 0 ;
5153 PyObject * obj0 = 0 ;
5154 PyObject * obj1 = 0 ;
5155 char * kwnames[] = {
5156 (char *) "self",(char *) "width", NULL
5157 };
5158
5159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5161 if (!SWIG_IsOK(res1)) {
5162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5163 }
5164 arg1 = reinterpret_cast< wxPen * >(argp1);
5165 ecode2 = SWIG_AsVal_int(obj1, &val2);
5166 if (!SWIG_IsOK(ecode2)) {
5167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5168 }
5169 arg2 = static_cast< int >(val2);
5170 {
5171 PyThreadState* __tstate = wxPyBeginAllowThreads();
5172 (arg1)->SetWidth(arg2);
5173 wxPyEndAllowThreads(__tstate);
5174 if (PyErr_Occurred()) SWIG_fail;
5175 }
5176 resultobj = SWIG_Py_Void();
5177 return resultobj;
5178fail:
5179 return NULL;
5180}
5181
5182
5183SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5184 PyObject *resultobj = 0;
5185 wxPen *arg1 = (wxPen *) 0 ;
5186 int arg2 ;
5187 wxDash *arg3 = (wxDash *) 0 ;
5188 void *argp1 = 0 ;
5189 int res1 = 0 ;
5190 PyObject * obj0 = 0 ;
5191 PyObject * obj1 = 0 ;
5192 char * kwnames[] = {
5193 (char *) "self",(char *) "dashes", NULL
5194 };
5195
5196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5198 if (!SWIG_IsOK(res1)) {
5199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5200 }
5201 arg1 = reinterpret_cast< wxPen * >(argp1);
5202 {
5203 arg2 = PyList_Size(obj1);
5204 arg3 = (wxDash*)byte_LIST_helper(obj1);
5205 if (arg3 == NULL) SWIG_fail;
5206 }
5207 {
5208 PyThreadState* __tstate = wxPyBeginAllowThreads();
5209 (arg1)->SetDashes(arg2,arg3);
5210 wxPyEndAllowThreads(__tstate);
5211 if (PyErr_Occurred()) SWIG_fail;
5212 }
5213 resultobj = SWIG_Py_Void();
5214 {
5215 if (arg3) delete [] arg3;
5216 }
5217 return resultobj;
5218fail:
5219 {
5220 if (arg3) delete [] arg3;
5221 }
5222 return NULL;
d14a1e28
RD
5223}
5224
5225
0085ce49
RD
5226SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5227 PyObject *resultobj = 0;
5228 wxPen *arg1 = (wxPen *) 0 ;
5229 PyObject *result = 0 ;
5230 void *argp1 = 0 ;
5231 int res1 = 0 ;
5232 PyObject *swig_obj[1] ;
5233
5234 if (!args) SWIG_fail;
5235 swig_obj[0] = args;
5236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5237 if (!SWIG_IsOK(res1)) {
5238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5239 }
5240 arg1 = reinterpret_cast< wxPen * >(argp1);
5241 {
5242 PyThreadState* __tstate = wxPyBeginAllowThreads();
5243 result = (PyObject *)wxPen_GetDashes(arg1);
5244 wxPyEndAllowThreads(__tstate);
5245 if (PyErr_Occurred()) SWIG_fail;
5246 }
5247 resultobj = result;
5248 return resultobj;
5249fail:
5250 return NULL;
5251}
5252
5253
5254SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5255 PyObject *resultobj = 0;
5256 wxPen *arg1 = (wxPen *) 0 ;
5257 PyObject *arg2 = (PyObject *) 0 ;
5258 PyObject *arg3 = (PyObject *) 0 ;
5259 void *argp1 = 0 ;
5260 int res1 = 0 ;
5261 PyObject * obj0 = 0 ;
5262 PyObject * obj1 = 0 ;
5263 PyObject * obj2 = 0 ;
5264 char * kwnames[] = {
5265 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5266 };
5267
5268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5270 if (!SWIG_IsOK(res1)) {
5271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5272 }
5273 arg1 = reinterpret_cast< wxPen * >(argp1);
5274 arg2 = obj1;
5275 arg3 = obj2;
5276 {
5277 PyThreadState* __tstate = wxPyBeginAllowThreads();
5278 wxPen__SetDashes(arg1,arg2,arg3);
5279 wxPyEndAllowThreads(__tstate);
5280 if (PyErr_Occurred()) SWIG_fail;
5281 }
5282 resultobj = SWIG_Py_Void();
5283 return resultobj;
5284fail:
5285 return NULL;
d14a1e28
RD
5286}
5287
5288
0085ce49
RD
5289SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5290 PyObject *resultobj = 0;
5291 wxPen *arg1 = (wxPen *) 0 ;
5292 int result;
5293 void *argp1 = 0 ;
5294 int res1 = 0 ;
5295 PyObject *swig_obj[1] ;
5296
5297 if (!args) SWIG_fail;
5298 swig_obj[0] = args;
5299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5300 if (!SWIG_IsOK(res1)) {
5301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5302 }
5303 arg1 = reinterpret_cast< wxPen * >(argp1);
5304 {
5305 PyThreadState* __tstate = wxPyBeginAllowThreads();
5306 result = (int)((wxPen const *)arg1)->GetDashCount();
5307 wxPyEndAllowThreads(__tstate);
5308 if (PyErr_Occurred()) SWIG_fail;
5309 }
5310 resultobj = SWIG_From_int(static_cast< int >(result));
5311 return resultobj;
5312fail:
5313 return NULL;
5314}
5315
5316
5317SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5318 PyObject *resultobj = 0;
5319 wxPen *arg1 = (wxPen *) 0 ;
5320 wxPen *arg2 = (wxPen *) 0 ;
5321 bool result;
5322 void *argp1 = 0 ;
5323 int res1 = 0 ;
5324 void *argp2 = 0 ;
5325 int res2 = 0 ;
5326 PyObject * obj0 = 0 ;
5327 PyObject * obj1 = 0 ;
5328 char * kwnames[] = {
5329 (char *) "self",(char *) "other", NULL
5330 };
5331
5332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5334 if (!SWIG_IsOK(res1)) {
5335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5336 }
5337 arg1 = reinterpret_cast< wxPen * >(argp1);
5338 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5339 if (!SWIG_IsOK(res2)) {
5340 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5341 }
5342 arg2 = reinterpret_cast< wxPen * >(argp2);
5343 {
5344 PyThreadState* __tstate = wxPyBeginAllowThreads();
5345 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5346 wxPyEndAllowThreads(__tstate);
5347 if (PyErr_Occurred()) SWIG_fail;
5348 }
5349 {
5350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5351 }
5352 return resultobj;
5353fail:
5354 return NULL;
5355}
5356
5357
5358SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5359 PyObject *resultobj = 0;
5360 wxPen *arg1 = (wxPen *) 0 ;
5361 wxPen *arg2 = (wxPen *) 0 ;
5362 bool result;
5363 void *argp1 = 0 ;
5364 int res1 = 0 ;
5365 void *argp2 = 0 ;
5366 int res2 = 0 ;
5367 PyObject * obj0 = 0 ;
5368 PyObject * obj1 = 0 ;
5369 char * kwnames[] = {
5370 (char *) "self",(char *) "other", NULL
5371 };
5372
5373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5375 if (!SWIG_IsOK(res1)) {
5376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5377 }
5378 arg1 = reinterpret_cast< wxPen * >(argp1);
5379 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5380 if (!SWIG_IsOK(res2)) {
5381 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5382 }
5383 arg2 = reinterpret_cast< wxPen * >(argp2);
5384 {
5385 PyThreadState* __tstate = wxPyBeginAllowThreads();
5386 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5387 wxPyEndAllowThreads(__tstate);
5388 if (PyErr_Occurred()) SWIG_fail;
5389 }
5390 {
5391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5392 }
5393 return resultobj;
5394fail:
5395 return NULL;
d14a1e28
RD
5396}
5397
5398
0085ce49
RD
5399SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5400 PyObject *obj;
5401 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5402 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5403 return SWIG_Py_Void();
d14a1e28
RD
5404}
5405
0085ce49
RD
5406SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5407 return SWIG_Python_InitShadowInstance(args);
5408}
d14a1e28 5409
0085ce49
RD
5410SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5411 PyObject *resultobj = 0;
5412 wxColour *arg1 = 0 ;
5413 int arg2 = (int) wxSOLID ;
5414 wxBrush *result = 0 ;
5415 wxColour temp1 ;
5416 int val2 ;
5417 int ecode2 = 0 ;
5418 PyObject * obj0 = 0 ;
5419 PyObject * obj1 = 0 ;
5420 char * kwnames[] = {
5421 (char *) "colour",(char *) "style", NULL
5422 };
5423
5424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5425 {
5426 arg1 = &temp1;
5427 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5428 }
5429 if (obj1) {
5430 ecode2 = SWIG_AsVal_int(obj1, &val2);
5431 if (!SWIG_IsOK(ecode2)) {
5432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5433 }
5434 arg2 = static_cast< int >(val2);
5435 }
5436 {
5437 if (!wxPyCheckForApp()) SWIG_fail;
5438 PyThreadState* __tstate = wxPyBeginAllowThreads();
5439 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5440 wxPyEndAllowThreads(__tstate);
5441 if (PyErr_Occurred()) SWIG_fail;
5442 }
5443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5444 return resultobj;
5445fail:
5446 return NULL;
5447}
5448
5449
5450SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5451 PyObject *resultobj = 0;
5452 wxBitmap *arg1 = 0 ;
5453 wxBrush *result = 0 ;
5454 void *argp1 = 0 ;
5455 int res1 = 0 ;
5456 PyObject * obj0 = 0 ;
5457 char * kwnames[] = {
5458 (char *) "stippleBitmap", NULL
5459 };
5460
5461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5462 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5463 if (!SWIG_IsOK(res1)) {
5464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5465 }
5466 if (!argp1) {
5467 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5468 }
5469 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5470 {
5471 if (!wxPyCheckForApp()) SWIG_fail;
5472 PyThreadState* __tstate = wxPyBeginAllowThreads();
5473 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5474 wxPyEndAllowThreads(__tstate);
5475 if (PyErr_Occurred()) SWIG_fail;
5476 }
5477 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5478 return resultobj;
5479fail:
5480 return NULL;
d14a1e28
RD
5481}
5482
5483
0085ce49
RD
5484SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5485 PyObject *resultobj = 0;
5486 wxBrush *arg1 = (wxBrush *) 0 ;
5487 void *argp1 = 0 ;
5488 int res1 = 0 ;
5489 PyObject *swig_obj[1] ;
5490
5491 if (!args) SWIG_fail;
5492 swig_obj[0] = args;
5493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5494 if (!SWIG_IsOK(res1)) {
5495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5496 }
5497 arg1 = reinterpret_cast< wxBrush * >(argp1);
5498 {
5499 PyThreadState* __tstate = wxPyBeginAllowThreads();
5500 delete arg1;
d14a1e28 5501
0085ce49
RD
5502 wxPyEndAllowThreads(__tstate);
5503 if (PyErr_Occurred()) SWIG_fail;
5504 }
5505 resultobj = SWIG_Py_Void();
5506 return resultobj;
5507fail:
5508 return NULL;
5509}
5510
5511
5512SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5513 PyObject *resultobj = 0;
5514 wxBrush *arg1 = (wxBrush *) 0 ;
5515 wxColour *arg2 = 0 ;
5516 void *argp1 = 0 ;
5517 int res1 = 0 ;
5518 wxColour temp2 ;
5519 PyObject * obj0 = 0 ;
5520 PyObject * obj1 = 0 ;
5521 char * kwnames[] = {
5522 (char *) "self",(char *) "col", NULL
5523 };
5524
5525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5527 if (!SWIG_IsOK(res1)) {
5528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5529 }
5530 arg1 = reinterpret_cast< wxBrush * >(argp1);
5531 {
5532 arg2 = &temp2;
5533 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5534 }
5535 {
5536 PyThreadState* __tstate = wxPyBeginAllowThreads();
5537 (arg1)->SetColour((wxColour const &)*arg2);
5538 wxPyEndAllowThreads(__tstate);
5539 if (PyErr_Occurred()) SWIG_fail;
5540 }
5541 resultobj = SWIG_Py_Void();
5542 return resultobj;
5543fail:
5544 return NULL;
5545}
5546
5547
5548SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5549 PyObject *resultobj = 0;
5550 wxBrush *arg1 = (wxBrush *) 0 ;
5551 int arg2 ;
5552 void *argp1 = 0 ;
5553 int res1 = 0 ;
5554 int val2 ;
5555 int ecode2 = 0 ;
5556 PyObject * obj0 = 0 ;
5557 PyObject * obj1 = 0 ;
5558 char * kwnames[] = {
5559 (char *) "self",(char *) "style", NULL
5560 };
5561
5562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5564 if (!SWIG_IsOK(res1)) {
5565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5566 }
5567 arg1 = reinterpret_cast< wxBrush * >(argp1);
5568 ecode2 = SWIG_AsVal_int(obj1, &val2);
5569 if (!SWIG_IsOK(ecode2)) {
5570 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5571 }
5572 arg2 = static_cast< int >(val2);
5573 {
5574 PyThreadState* __tstate = wxPyBeginAllowThreads();
5575 (arg1)->SetStyle(arg2);
5576 wxPyEndAllowThreads(__tstate);
5577 if (PyErr_Occurred()) SWIG_fail;
5578 }
5579 resultobj = SWIG_Py_Void();
5580 return resultobj;
5581fail:
5582 return NULL;
5583}
5584
5585
5586SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5587 PyObject *resultobj = 0;
5588 wxBrush *arg1 = (wxBrush *) 0 ;
5589 wxBitmap *arg2 = 0 ;
5590 void *argp1 = 0 ;
5591 int res1 = 0 ;
5592 void *argp2 = 0 ;
5593 int res2 = 0 ;
5594 PyObject * obj0 = 0 ;
5595 PyObject * obj1 = 0 ;
5596 char * kwnames[] = {
5597 (char *) "self",(char *) "stipple", NULL
5598 };
5599
5600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5602 if (!SWIG_IsOK(res1)) {
5603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5604 }
5605 arg1 = reinterpret_cast< wxBrush * >(argp1);
5606 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5607 if (!SWIG_IsOK(res2)) {
5608 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5609 }
5610 if (!argp2) {
5611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5612 }
5613 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5614 {
5615 PyThreadState* __tstate = wxPyBeginAllowThreads();
5616 (arg1)->SetStipple((wxBitmap const &)*arg2);
5617 wxPyEndAllowThreads(__tstate);
5618 if (PyErr_Occurred()) SWIG_fail;
5619 }
5620 resultobj = SWIG_Py_Void();
5621 return resultobj;
5622fail:
5623 return NULL;
d14a1e28
RD
5624}
5625
5626
0085ce49
RD
5627SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5628 PyObject *resultobj = 0;
5629 wxBrush *arg1 = (wxBrush *) 0 ;
5630 wxColour result;
5631 void *argp1 = 0 ;
5632 int res1 = 0 ;
5633 PyObject *swig_obj[1] ;
5634
5635 if (!args) SWIG_fail;
5636 swig_obj[0] = args;
5637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5638 if (!SWIG_IsOK(res1)) {
5639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5640 }
5641 arg1 = reinterpret_cast< wxBrush * >(argp1);
5642 {
5643 PyThreadState* __tstate = wxPyBeginAllowThreads();
5644 result = ((wxBrush const *)arg1)->GetColour();
5645 wxPyEndAllowThreads(__tstate);
5646 if (PyErr_Occurred()) SWIG_fail;
5647 }
5648 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5649 return resultobj;
5650fail:
5651 return NULL;
d14a1e28
RD
5652}
5653
5654
0085ce49
RD
5655SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5656 PyObject *resultobj = 0;
5657 wxBrush *arg1 = (wxBrush *) 0 ;
5658 int result;
5659 void *argp1 = 0 ;
5660 int res1 = 0 ;
5661 PyObject *swig_obj[1] ;
5662
5663 if (!args) SWIG_fail;
5664 swig_obj[0] = args;
5665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5666 if (!SWIG_IsOK(res1)) {
5667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5668 }
5669 arg1 = reinterpret_cast< wxBrush * >(argp1);
5670 {
5671 PyThreadState* __tstate = wxPyBeginAllowThreads();
5672 result = (int)((wxBrush const *)arg1)->GetStyle();
5673 wxPyEndAllowThreads(__tstate);
5674 if (PyErr_Occurred()) SWIG_fail;
5675 }
5676 resultobj = SWIG_From_int(static_cast< int >(result));
5677 return resultobj;
5678fail:
5679 return NULL;
d14a1e28
RD
5680}
5681
5682
0085ce49
RD
5683SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5684 PyObject *resultobj = 0;
5685 wxBrush *arg1 = (wxBrush *) 0 ;
5686 wxBitmap *result = 0 ;
5687 void *argp1 = 0 ;
5688 int res1 = 0 ;
5689 PyObject *swig_obj[1] ;
5690
5691 if (!args) SWIG_fail;
5692 swig_obj[0] = args;
5693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5694 if (!SWIG_IsOK(res1)) {
5695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5696 }
5697 arg1 = reinterpret_cast< wxBrush * >(argp1);
5698 {
5699 PyThreadState* __tstate = wxPyBeginAllowThreads();
5700 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5701 wxPyEndAllowThreads(__tstate);
5702 if (PyErr_Occurred()) SWIG_fail;
5703 }
5704 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5705 return resultobj;
5706fail:
5707 return NULL;
d14a1e28
RD
5708}
5709
5710
0085ce49
RD
5711SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5712 PyObject *resultobj = 0;
5713 wxBrush *arg1 = (wxBrush *) 0 ;
5714 bool result;
5715 void *argp1 = 0 ;
5716 int res1 = 0 ;
5717 PyObject *swig_obj[1] ;
5718
5719 if (!args) SWIG_fail;
5720 swig_obj[0] = args;
5721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5722 if (!SWIG_IsOK(res1)) {
5723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5724 }
5725 arg1 = reinterpret_cast< wxBrush * >(argp1);
5726 {
5727 PyThreadState* __tstate = wxPyBeginAllowThreads();
5728 result = (bool)((wxBrush const *)arg1)->IsHatch();
5729 wxPyEndAllowThreads(__tstate);
5730 if (PyErr_Occurred()) SWIG_fail;
5731 }
5732 {
5733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5734 }
5735 return resultobj;
5736fail:
5737 return NULL;
f78cc896
RD
5738}
5739
5740
0085ce49
RD
5741SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5742 PyObject *resultobj = 0;
5743 wxBrush *arg1 = (wxBrush *) 0 ;
5744 bool result;
5745 void *argp1 = 0 ;
5746 int res1 = 0 ;
5747 PyObject *swig_obj[1] ;
5748
5749 if (!args) SWIG_fail;
5750 swig_obj[0] = args;
5751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5752 if (!SWIG_IsOK(res1)) {
5753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5754 }
5755 arg1 = reinterpret_cast< wxBrush * >(argp1);
5756 {
5757 PyThreadState* __tstate = wxPyBeginAllowThreads();
5758 result = (bool)(arg1)->Ok();
5759 wxPyEndAllowThreads(__tstate);
5760 if (PyErr_Occurred()) SWIG_fail;
5761 }
5762 {
5763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5764 }
5765 return resultobj;
5766fail:
5767 return NULL;
d14a1e28
RD
5768}
5769
5770
0085ce49
RD
5771SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5772 PyObject *obj;
5773 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5774 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5775 return SWIG_Py_Void();
d14a1e28
RD
5776}
5777
0085ce49
RD
5778SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5779 return SWIG_Python_InitShadowInstance(args);
5780}
d14a1e28 5781
0085ce49
RD
5782SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5783 PyObject *resultobj = 0;
5784 wxString *arg1 = 0 ;
5785 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5786 wxBitmap *result = 0 ;
5787 bool temp1 = false ;
5788 int val2 ;
5789 int ecode2 = 0 ;
5790 PyObject * obj0 = 0 ;
5791 PyObject * obj1 = 0 ;
5792 char * kwnames[] = {
5793 (char *) "name",(char *) "type", NULL
5794 };
5795
5796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5797 {
5798 arg1 = wxString_in_helper(obj0);
5799 if (arg1 == NULL) SWIG_fail;
5800 temp1 = true;
5801 }
5802 if (obj1) {
5803 ecode2 = SWIG_AsVal_int(obj1, &val2);
5804 if (!SWIG_IsOK(ecode2)) {
5805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5806 }
5807 arg2 = static_cast< wxBitmapType >(val2);
5808 }
5809 {
5810 if (!wxPyCheckForApp()) SWIG_fail;
5811 PyThreadState* __tstate = wxPyBeginAllowThreads();
5812 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5813 wxPyEndAllowThreads(__tstate);
5814 if (PyErr_Occurred()) SWIG_fail;
5815 }
5816 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5817 {
5818 if (temp1)
5819 delete arg1;
5820 }
5821 return resultobj;
5822fail:
5823 {
5824 if (temp1)
5825 delete arg1;
5826 }
5827 return NULL;
d14a1e28
RD
5828}
5829
5830
0085ce49
RD
5831SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5832 PyObject *resultobj = 0;
5833 wxBitmap *arg1 = (wxBitmap *) 0 ;
5834 void *argp1 = 0 ;
5835 int res1 = 0 ;
5836 PyObject *swig_obj[1] ;
5837
5838 if (!args) SWIG_fail;
5839 swig_obj[0] = args;
5840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5841 if (!SWIG_IsOK(res1)) {
5842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5843 }
5844 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5845 {
0085ce49 5846 delete arg1;
66c033b4 5847
0085ce49
RD
5848 if (PyErr_Occurred()) SWIG_fail;
5849 }
5850 resultobj = SWIG_Py_Void();
5851 return resultobj;
5852fail:
5853 return NULL;
5854}
5855
5856
5857SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5858 PyObject *resultobj = 0;
5859 int arg1 ;
5860 int arg2 ;
5861 int arg3 = (int) -1 ;
5862 wxBitmap *result = 0 ;
5863 int val1 ;
5864 int ecode1 = 0 ;
5865 int val2 ;
5866 int ecode2 = 0 ;
5867 int val3 ;
5868 int ecode3 = 0 ;
5869 PyObject * obj0 = 0 ;
5870 PyObject * obj1 = 0 ;
5871 PyObject * obj2 = 0 ;
5872 char * kwnames[] = {
5873 (char *) "width",(char *) "height",(char *) "depth", NULL
5874 };
5875
5876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5877 ecode1 = SWIG_AsVal_int(obj0, &val1);
5878 if (!SWIG_IsOK(ecode1)) {
5879 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5880 }
5881 arg1 = static_cast< int >(val1);
5882 ecode2 = SWIG_AsVal_int(obj1, &val2);
5883 if (!SWIG_IsOK(ecode2)) {
5884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5885 }
5886 arg2 = static_cast< int >(val2);
5887 if (obj2) {
5888 ecode3 = SWIG_AsVal_int(obj2, &val3);
5889 if (!SWIG_IsOK(ecode3)) {
5890 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5891 }
5892 arg3 = static_cast< int >(val3);
5893 }
5894 {
5895 if (!wxPyCheckForApp()) SWIG_fail;
5896 PyThreadState* __tstate = wxPyBeginAllowThreads();
5897 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5898 wxPyEndAllowThreads(__tstate);
5899 if (PyErr_Occurred()) SWIG_fail;
5900 }
5901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5902 return resultobj;
5903fail:
5904 return NULL;
5905}
5906
5907
5908SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5909 PyObject *resultobj = 0;
5910 wxIcon *arg1 = 0 ;
5911 wxBitmap *result = 0 ;
5912 void *argp1 = 0 ;
5913 int res1 = 0 ;
5914 PyObject * obj0 = 0 ;
5915 char * kwnames[] = {
5916 (char *) "icon", NULL
5917 };
5918
5919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5920 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5921 if (!SWIG_IsOK(res1)) {
5922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5923 }
5924 if (!argp1) {
5925 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5926 }
5927 arg1 = reinterpret_cast< wxIcon * >(argp1);
5928 {
5929 if (!wxPyCheckForApp()) SWIG_fail;
5930 PyThreadState* __tstate = wxPyBeginAllowThreads();
5931 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5932 wxPyEndAllowThreads(__tstate);
5933 if (PyErr_Occurred()) SWIG_fail;
5934 }
5935 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5936 return resultobj;
5937fail:
5938 return NULL;
5939}
5940
5941
5942SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5943 PyObject *resultobj = 0;
5944 wxImage *arg1 = 0 ;
5945 int arg2 = (int) -1 ;
5946 wxBitmap *result = 0 ;
5947 void *argp1 = 0 ;
5948 int res1 = 0 ;
5949 int val2 ;
5950 int ecode2 = 0 ;
5951 PyObject * obj0 = 0 ;
5952 PyObject * obj1 = 0 ;
5953 char * kwnames[] = {
5954 (char *) "image",(char *) "depth", NULL
5955 };
5956
5957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5958 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5959 if (!SWIG_IsOK(res1)) {
5960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5961 }
5962 if (!argp1) {
5963 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5964 }
5965 arg1 = reinterpret_cast< wxImage * >(argp1);
5966 if (obj1) {
5967 ecode2 = SWIG_AsVal_int(obj1, &val2);
5968 if (!SWIG_IsOK(ecode2)) {
5969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5970 }
5971 arg2 = static_cast< int >(val2);
5972 }
5973 {
5974 if (!wxPyCheckForApp()) SWIG_fail;
5975 PyThreadState* __tstate = wxPyBeginAllowThreads();
5976 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5977 wxPyEndAllowThreads(__tstate);
5978 if (PyErr_Occurred()) SWIG_fail;
5979 }
5980 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5981 return resultobj;
5982fail:
5983 return NULL;
66c033b4
RD
5984}
5985
5986
0085ce49
RD
5987SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5988 PyObject *resultobj = 0;
5989 PyObject *arg1 = (PyObject *) 0 ;
5990 wxBitmap *result = 0 ;
5991 PyObject * obj0 = 0 ;
5992 char * kwnames[] = {
5993 (char *) "listOfStrings", NULL
5994 };
5995
5996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5997 arg1 = obj0;
5998 {
5999 if (!wxPyCheckForApp()) SWIG_fail;
6000 PyThreadState* __tstate = wxPyBeginAllowThreads();
6001 result = (wxBitmap *)new_wxBitmap(arg1);
6002 wxPyEndAllowThreads(__tstate);
6003 if (PyErr_Occurred()) SWIG_fail;
6004 }
6005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6006 return resultobj;
6007fail:
6008 return NULL;
6009}
6010
6011
6012SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6013 PyObject *resultobj = 0;
6014 PyObject *arg1 = (PyObject *) 0 ;
6015 int arg2 ;
6016 int arg3 ;
6017 int arg4 = (int) 1 ;
6018 wxBitmap *result = 0 ;
6019 int val2 ;
6020 int ecode2 = 0 ;
6021 int val3 ;
6022 int ecode3 = 0 ;
6023 int val4 ;
6024 int ecode4 = 0 ;
6025 PyObject * obj0 = 0 ;
6026 PyObject * obj1 = 0 ;
6027 PyObject * obj2 = 0 ;
6028 PyObject * obj3 = 0 ;
6029 char * kwnames[] = {
6030 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6031 };
6032
6033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6034 arg1 = obj0;
6035 ecode2 = SWIG_AsVal_int(obj1, &val2);
6036 if (!SWIG_IsOK(ecode2)) {
6037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6038 }
6039 arg2 = static_cast< int >(val2);
6040 ecode3 = SWIG_AsVal_int(obj2, &val3);
6041 if (!SWIG_IsOK(ecode3)) {
6042 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6043 }
6044 arg3 = static_cast< int >(val3);
6045 if (obj3) {
6046 ecode4 = SWIG_AsVal_int(obj3, &val4);
6047 if (!SWIG_IsOK(ecode4)) {
6048 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6049 }
6050 arg4 = static_cast< int >(val4);
6051 }
6052 {
6053 if (!wxPyCheckForApp()) SWIG_fail;
6054 PyThreadState* __tstate = wxPyBeginAllowThreads();
6055 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6056 wxPyEndAllowThreads(__tstate);
6057 if (PyErr_Occurred()) SWIG_fail;
6058 }
6059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6060 return resultobj;
6061fail:
6062 return NULL;
d14a1e28
RD
6063}
6064
6065
0085ce49
RD
6066SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6067 PyObject *resultobj = 0;
6068 wxBitmap *arg1 = (wxBitmap *) 0 ;
6069 bool result;
6070 void *argp1 = 0 ;
6071 int res1 = 0 ;
6072 PyObject *swig_obj[1] ;
6073
6074 if (!args) SWIG_fail;
6075 swig_obj[0] = args;
6076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6077 if (!SWIG_IsOK(res1)) {
6078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
6079 }
6080 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6081 {
0085ce49 6082 result = (bool)(arg1)->Ok();
0085ce49
RD
6083 if (PyErr_Occurred()) SWIG_fail;
6084 }
6085 {
6086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6087 }
6088 return resultobj;
6089fail:
6090 return NULL;
d14a1e28
RD
6091}
6092
6093
0085ce49
RD
6094SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6095 PyObject *resultobj = 0;
6096 wxBitmap *arg1 = (wxBitmap *) 0 ;
6097 int result;
6098 void *argp1 = 0 ;
6099 int res1 = 0 ;
6100 PyObject *swig_obj[1] ;
6101
6102 if (!args) SWIG_fail;
6103 swig_obj[0] = args;
6104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6105 if (!SWIG_IsOK(res1)) {
6106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6107 }
6108 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6109 {
0085ce49 6110 result = (int)(arg1)->GetWidth();
0085ce49
RD
6111 if (PyErr_Occurred()) SWIG_fail;
6112 }
6113 resultobj = SWIG_From_int(static_cast< int >(result));
6114 return resultobj;
6115fail:
6116 return NULL;
d14a1e28
RD
6117}
6118
6119
0085ce49
RD
6120SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6121 PyObject *resultobj = 0;
6122 wxBitmap *arg1 = (wxBitmap *) 0 ;
6123 int result;
6124 void *argp1 = 0 ;
6125 int res1 = 0 ;
6126 PyObject *swig_obj[1] ;
6127
6128 if (!args) SWIG_fail;
6129 swig_obj[0] = args;
6130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6131 if (!SWIG_IsOK(res1)) {
6132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6133 }
6134 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6135 {
0085ce49 6136 result = (int)(arg1)->GetHeight();
0085ce49
RD
6137 if (PyErr_Occurred()) SWIG_fail;
6138 }
6139 resultobj = SWIG_From_int(static_cast< int >(result));
6140 return resultobj;
6141fail:
6142 return NULL;
d14a1e28
RD
6143}
6144
6145
0085ce49
RD
6146SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6147 PyObject *resultobj = 0;
6148 wxBitmap *arg1 = (wxBitmap *) 0 ;
6149 int result;
6150 void *argp1 = 0 ;
6151 int res1 = 0 ;
6152 PyObject *swig_obj[1] ;
6153
6154 if (!args) SWIG_fail;
6155 swig_obj[0] = args;
6156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6157 if (!SWIG_IsOK(res1)) {
6158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6159 }
6160 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6161 {
0085ce49 6162 result = (int)(arg1)->GetDepth();
0085ce49
RD
6163 if (PyErr_Occurred()) SWIG_fail;
6164 }
6165 resultobj = SWIG_From_int(static_cast< int >(result));
6166 return resultobj;
6167fail:
6168 return NULL;
d14a1e28
RD
6169}
6170
6171
0085ce49
RD
6172SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6173 PyObject *resultobj = 0;
6174 wxBitmap *arg1 = (wxBitmap *) 0 ;
6175 wxSize result;
6176 void *argp1 = 0 ;
6177 int res1 = 0 ;
6178 PyObject *swig_obj[1] ;
6179
6180 if (!args) SWIG_fail;
6181 swig_obj[0] = args;
6182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6183 if (!SWIG_IsOK(res1)) {
6184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6185 }
6186 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6187 {
0085ce49 6188 result = wxBitmap_GetSize(arg1);
0085ce49
RD
6189 if (PyErr_Occurred()) SWIG_fail;
6190 }
6191 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6192 return resultobj;
6193fail:
6194 return NULL;
d14a1e28
RD
6195}
6196
6197
0085ce49
RD
6198SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6199 PyObject *resultobj = 0;
6200 wxBitmap *arg1 = (wxBitmap *) 0 ;
6201 SwigValueWrapper<wxImage > result;
6202 void *argp1 = 0 ;
6203 int res1 = 0 ;
6204 PyObject *swig_obj[1] ;
6205
6206 if (!args) SWIG_fail;
6207 swig_obj[0] = args;
6208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6209 if (!SWIG_IsOK(res1)) {
6210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6211 }
6212 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6213 {
0085ce49 6214 result = ((wxBitmap const *)arg1)->ConvertToImage();
0085ce49
RD
6215 if (PyErr_Occurred()) SWIG_fail;
6216 }
6217 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6218 return resultobj;
6219fail:
6220 return NULL;
d14a1e28
RD
6221}
6222
6223
0085ce49
RD
6224SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6225 PyObject *resultobj = 0;
6226 wxBitmap *arg1 = (wxBitmap *) 0 ;
6227 wxMask *result = 0 ;
6228 void *argp1 = 0 ;
6229 int res1 = 0 ;
6230 PyObject *swig_obj[1] ;
6231
6232 if (!args) SWIG_fail;
6233 swig_obj[0] = args;
6234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6235 if (!SWIG_IsOK(res1)) {
6236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6237 }
6238 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6239 {
0085ce49 6240 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
0085ce49
RD
6241 if (PyErr_Occurred()) SWIG_fail;
6242 }
6243 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6244 return resultobj;
6245fail:
6246 return NULL;
6247}
6248
6249
6250SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6251 PyObject *resultobj = 0;
6252 wxBitmap *arg1 = (wxBitmap *) 0 ;
6253 wxMask *arg2 = (wxMask *) 0 ;
6254 void *argp1 = 0 ;
6255 int res1 = 0 ;
6256 int res2 = 0 ;
6257 PyObject * obj0 = 0 ;
6258 PyObject * obj1 = 0 ;
6259 char * kwnames[] = {
6260 (char *) "self",(char *) "mask", NULL
6261 };
6262
6263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6265 if (!SWIG_IsOK(res1)) {
6266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6267 }
6268 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6269 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6270 if (!SWIG_IsOK(res2)) {
6271 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6272 }
6273 {
0085ce49 6274 (arg1)->SetMask(arg2);
0085ce49
RD
6275 if (PyErr_Occurred()) SWIG_fail;
6276 }
6277 resultobj = SWIG_Py_Void();
6278 return resultobj;
6279fail:
6280 return NULL;
6281}
6282
6283
6284SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6285 PyObject *resultobj = 0;
6286 wxBitmap *arg1 = (wxBitmap *) 0 ;
6287 wxColour *arg2 = 0 ;
6288 void *argp1 = 0 ;
6289 int res1 = 0 ;
6290 wxColour temp2 ;
6291 PyObject * obj0 = 0 ;
6292 PyObject * obj1 = 0 ;
6293 char * kwnames[] = {
6294 (char *) "self",(char *) "colour", NULL
6295 };
6296
6297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6299 if (!SWIG_IsOK(res1)) {
6300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6301 }
6302 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6303 {
6304 arg2 = &temp2;
6305 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6306 }
6307 {
0085ce49 6308 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
0085ce49
RD
6309 if (PyErr_Occurred()) SWIG_fail;
6310 }
6311 resultobj = SWIG_Py_Void();
6312 return resultobj;
6313fail:
6314 return NULL;
6315}
6316
6317
6318SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6319 PyObject *resultobj = 0;
6320 wxBitmap *arg1 = (wxBitmap *) 0 ;
6321 wxRect *arg2 = 0 ;
6322 SwigValueWrapper<wxBitmap > result;
6323 void *argp1 = 0 ;
6324 int res1 = 0 ;
6325 wxRect temp2 ;
6326 PyObject * obj0 = 0 ;
6327 PyObject * obj1 = 0 ;
6328 char * kwnames[] = {
6329 (char *) "self",(char *) "rect", NULL
6330 };
6331
6332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6334 if (!SWIG_IsOK(res1)) {
6335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6336 }
6337 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6338 {
6339 arg2 = &temp2;
6340 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6341 }
6342 {
0085ce49 6343 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
0085ce49
RD
6344 if (PyErr_Occurred()) SWIG_fail;
6345 }
6346 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6347 return resultobj;
6348fail:
6349 return NULL;
6350}
6351
6352
6353SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6354 PyObject *resultobj = 0;
6355 wxBitmap *arg1 = (wxBitmap *) 0 ;
6356 wxString *arg2 = 0 ;
6357 wxBitmapType arg3 ;
6358 wxPalette *arg4 = (wxPalette *) NULL ;
6359 bool result;
6360 void *argp1 = 0 ;
6361 int res1 = 0 ;
6362 bool temp2 = false ;
6363 int val3 ;
6364 int ecode3 = 0 ;
6365 void *argp4 = 0 ;
6366 int res4 = 0 ;
6367 PyObject * obj0 = 0 ;
6368 PyObject * obj1 = 0 ;
6369 PyObject * obj2 = 0 ;
6370 PyObject * obj3 = 0 ;
6371 char * kwnames[] = {
6372 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6373 };
6374
6375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6377 if (!SWIG_IsOK(res1)) {
6378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6379 }
6380 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6381 {
6382 arg2 = wxString_in_helper(obj1);
6383 if (arg2 == NULL) SWIG_fail;
6384 temp2 = true;
6385 }
6386 ecode3 = SWIG_AsVal_int(obj2, &val3);
6387 if (!SWIG_IsOK(ecode3)) {
6388 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6389 }
6390 arg3 = static_cast< wxBitmapType >(val3);
6391 if (obj3) {
6392 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6393 if (!SWIG_IsOK(res4)) {
6394 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6395 }
0085ce49
RD
6396 arg4 = reinterpret_cast< wxPalette * >(argp4);
6397 }
6398 {
0085ce49 6399 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
0085ce49
RD
6400 if (PyErr_Occurred()) SWIG_fail;
6401 }
6402 {
6403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6404 }
6405 {
6406 if (temp2)
6407 delete arg2;
6408 }
6409 return resultobj;
6410fail:
6411 {
6412 if (temp2)
6413 delete arg2;
6414 }
6415 return NULL;
6416}
6417
6418
6419SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6420 PyObject *resultobj = 0;
6421 wxBitmap *arg1 = (wxBitmap *) 0 ;
6422 wxString *arg2 = 0 ;
6423 wxBitmapType arg3 ;
6424 bool result;
6425 void *argp1 = 0 ;
6426 int res1 = 0 ;
6427 bool temp2 = false ;
6428 int val3 ;
6429 int ecode3 = 0 ;
6430 PyObject * obj0 = 0 ;
6431 PyObject * obj1 = 0 ;
6432 PyObject * obj2 = 0 ;
6433 char * kwnames[] = {
6434 (char *) "self",(char *) "name",(char *) "type", NULL
6435 };
6436
6437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6439 if (!SWIG_IsOK(res1)) {
6440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6441 }
6442 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6443 {
6444 arg2 = wxString_in_helper(obj1);
6445 if (arg2 == NULL) SWIG_fail;
6446 temp2 = true;
6447 }
6448 ecode3 = SWIG_AsVal_int(obj2, &val3);
6449 if (!SWIG_IsOK(ecode3)) {
6450 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6451 }
6452 arg3 = static_cast< wxBitmapType >(val3);
6453 {
0085ce49 6454 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
0085ce49
RD
6455 if (PyErr_Occurred()) SWIG_fail;
6456 }
6457 {
6458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6459 }
6460 {
6461 if (temp2)
6462 delete arg2;
6463 }
6464 return resultobj;
6465fail:
6466 {
6467 if (temp2)
6468 delete arg2;
6469 }
6470 return NULL;
d04418a7
RD
6471}
6472
6473
0085ce49
RD
6474SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6475 PyObject *resultobj = 0;
6476 wxBitmap *arg1 = (wxBitmap *) 0 ;
6477 wxPalette *result = 0 ;
6478 void *argp1 = 0 ;
6479 int res1 = 0 ;
6480 PyObject *swig_obj[1] ;
6481
6482 if (!args) SWIG_fail;
6483 swig_obj[0] = args;
6484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6485 if (!SWIG_IsOK(res1)) {
6486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6487 }
6488 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6489 {
0085ce49 6490 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
0085ce49
RD
6491 if (PyErr_Occurred()) SWIG_fail;
6492 }
6493 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6494 return resultobj;
6495fail:
6496 return NULL;
6497}
6498
6499
6500SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6501 PyObject *resultobj = 0;
6502 wxBitmap *arg1 = (wxBitmap *) 0 ;
6503 wxIcon *arg2 = 0 ;
6504 bool result;
6505 void *argp1 = 0 ;
6506 int res1 = 0 ;
6507 void *argp2 = 0 ;
6508 int res2 = 0 ;
6509 PyObject * obj0 = 0 ;
6510 PyObject * obj1 = 0 ;
6511 char * kwnames[] = {
6512 (char *) "self",(char *) "icon", NULL
6513 };
6514
6515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6517 if (!SWIG_IsOK(res1)) {
6518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6519 }
6520 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6521 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6522 if (!SWIG_IsOK(res2)) {
6523 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6524 }
6525 if (!argp2) {
6526 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6527 }
6528 arg2 = reinterpret_cast< wxIcon * >(argp2);
6529 {
0085ce49 6530 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
0085ce49
RD
6531 if (PyErr_Occurred()) SWIG_fail;
6532 }
6533 {
6534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6535 }
6536 return resultobj;
6537fail:
6538 return NULL;
6539}
6540
6541
6542SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6543 PyObject *resultobj = 0;
6544 wxBitmap *arg1 = (wxBitmap *) 0 ;
6545 int arg2 ;
6546 void *argp1 = 0 ;
6547 int res1 = 0 ;
6548 int val2 ;
6549 int ecode2 = 0 ;
6550 PyObject * obj0 = 0 ;
6551 PyObject * obj1 = 0 ;
6552 char * kwnames[] = {
6553 (char *) "self",(char *) "height", NULL
6554 };
6555
6556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6558 if (!SWIG_IsOK(res1)) {
6559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6560 }
6561 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6562 ecode2 = SWIG_AsVal_int(obj1, &val2);
6563 if (!SWIG_IsOK(ecode2)) {
6564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6565 }
6566 arg2 = static_cast< int >(val2);
6567 {
0085ce49 6568 (arg1)->SetHeight(arg2);
0085ce49
RD
6569 if (PyErr_Occurred()) SWIG_fail;
6570 }
6571 resultobj = SWIG_Py_Void();
6572 return resultobj;
6573fail:
6574 return NULL;
6575}
6576
6577
6578SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6579 PyObject *resultobj = 0;
6580 wxBitmap *arg1 = (wxBitmap *) 0 ;
6581 int arg2 ;
6582 void *argp1 = 0 ;
6583 int res1 = 0 ;
6584 int val2 ;
6585 int ecode2 = 0 ;
6586 PyObject * obj0 = 0 ;
6587 PyObject * obj1 = 0 ;
6588 char * kwnames[] = {
6589 (char *) "self",(char *) "width", NULL
6590 };
6591
6592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6594 if (!SWIG_IsOK(res1)) {
6595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6596 }
6597 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6598 ecode2 = SWIG_AsVal_int(obj1, &val2);
6599 if (!SWIG_IsOK(ecode2)) {
6600 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6601 }
6602 arg2 = static_cast< int >(val2);
6603 {
0085ce49 6604 (arg1)->SetWidth(arg2);
0085ce49
RD
6605 if (PyErr_Occurred()) SWIG_fail;
6606 }
6607 resultobj = SWIG_Py_Void();
6608 return resultobj;
6609fail:
6610 return NULL;
6611}
6612
6613
6614SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6615 PyObject *resultobj = 0;
6616 wxBitmap *arg1 = (wxBitmap *) 0 ;
6617 int arg2 ;
6618 void *argp1 = 0 ;
6619 int res1 = 0 ;
6620 int val2 ;
6621 int ecode2 = 0 ;
6622 PyObject * obj0 = 0 ;
6623 PyObject * obj1 = 0 ;
6624 char * kwnames[] = {
6625 (char *) "self",(char *) "depth", NULL
6626 };
6627
6628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6630 if (!SWIG_IsOK(res1)) {
6631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6632 }
6633 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6634 ecode2 = SWIG_AsVal_int(obj1, &val2);
6635 if (!SWIG_IsOK(ecode2)) {
6636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6637 }
6638 arg2 = static_cast< int >(val2);
6639 {
0085ce49 6640 (arg1)->SetDepth(arg2);
0085ce49
RD
6641 if (PyErr_Occurred()) SWIG_fail;
6642 }
6643 resultobj = SWIG_Py_Void();
6644 return resultobj;
6645fail:
6646 return NULL;
6647}
6648
6649
6650SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6651 PyObject *resultobj = 0;
6652 wxBitmap *arg1 = (wxBitmap *) 0 ;
6653 wxSize *arg2 = 0 ;
6654 void *argp1 = 0 ;
6655 int res1 = 0 ;
6656 wxSize temp2 ;
6657 PyObject * obj0 = 0 ;
6658 PyObject * obj1 = 0 ;
6659 char * kwnames[] = {
6660 (char *) "self",(char *) "size", NULL
6661 };
6662
6663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6665 if (!SWIG_IsOK(res1)) {
6666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6667 }
6668 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6669 {
6670 arg2 = &temp2;
6671 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6672 }
6673 {
0085ce49 6674 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
0085ce49
RD
6675 if (PyErr_Occurred()) SWIG_fail;
6676 }
6677 resultobj = SWIG_Py_Void();
6678 return resultobj;
6679fail:
6680 return NULL;
6681}
6682
6683
6684SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6685 PyObject *resultobj = 0;
6686 wxBitmap *arg1 = (wxBitmap *) 0 ;
6687 wxBitmap *arg2 = (wxBitmap *) 0 ;
6688 bool result;
6689 void *argp1 = 0 ;
6690 int res1 = 0 ;
6691 void *argp2 = 0 ;
6692 int res2 = 0 ;
6693 PyObject * obj0 = 0 ;
6694 PyObject * obj1 = 0 ;
6695 char * kwnames[] = {
6696 (char *) "self",(char *) "other", NULL
6697 };
6698
6699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6701 if (!SWIG_IsOK(res1)) {
6702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6703 }
6704 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6705 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6706 if (!SWIG_IsOK(res2)) {
6707 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6708 }
6709 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6710 {
0085ce49 6711 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
0085ce49
RD
6712 if (PyErr_Occurred()) SWIG_fail;
6713 }
6714 {
fc46b7f3
RD
6715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6716 }
6717 return resultobj;
6718fail:
6719 return NULL;
6720}
6721
6722
6723SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6724 PyObject *resultobj = 0;
6725 wxBitmap *arg1 = (wxBitmap *) 0 ;
6726 wxBitmap *arg2 = (wxBitmap *) 0 ;
6727 bool result;
6728 void *argp1 = 0 ;
6729 int res1 = 0 ;
6730 void *argp2 = 0 ;
6731 int res2 = 0 ;
6732 PyObject * obj0 = 0 ;
6733 PyObject * obj1 = 0 ;
6734 char * kwnames[] = {
6735 (char *) "self",(char *) "other", NULL
6736 };
6737
6738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6740 if (!SWIG_IsOK(res1)) {
6741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6742 }
6743 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6744 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6745 if (!SWIG_IsOK(res2)) {
6746 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6747 }
6748 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6749 {
6750 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6751 if (PyErr_Occurred()) SWIG_fail;
6752 }
6753 {
6754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6755 }
6756 return resultobj;
6757fail:
6758 return NULL;
6759}
6760
6761
6762SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6763 PyObject *obj;
6764 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6765 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6766 return SWIG_Py_Void();
6767}
6768
6769SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6770 return SWIG_Python_InitShadowInstance(args);
6771}
6772
6773SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6774 PyObject *resultobj = 0;
6775 int arg1 ;
6776 int arg2 ;
6777 buffer arg3 ;
6778 int arg4 ;
6779 buffer arg5 ;
6780 int arg6 ;
6781 wxBitmap *result = 0 ;
6782 int val1 ;
6783 int ecode1 = 0 ;
6784 int val2 ;
6785 int ecode2 = 0 ;
c79fdf86
RD
6786 Py_ssize_t temp3 ;
6787 Py_ssize_t temp5 ;
fc46b7f3
RD
6788 PyObject * obj0 = 0 ;
6789 PyObject * obj1 = 0 ;
6790 PyObject * obj2 = 0 ;
6791 PyObject * obj3 = 0 ;
6792 char * kwnames[] = {
6793 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6794 };
6795
6796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6797 ecode1 = SWIG_AsVal_int(obj0, &val1);
6798 if (!SWIG_IsOK(ecode1)) {
6799 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6800 }
6801 arg1 = static_cast< int >(val1);
6802 ecode2 = SWIG_AsVal_int(obj1, &val2);
6803 if (!SWIG_IsOK(ecode2)) {
6804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6805 }
6806 arg2 = static_cast< int >(val2);
6807 {
c79fdf86
RD
6808 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6809 arg4 = (int)temp3;
fc46b7f3
RD
6810 }
6811 {
6812 if (obj3 != Py_None) {
c79fdf86
RD
6813 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
6814 arg6 = (int)temp5;
fc46b7f3
RD
6815 }
6816 }
6817 {
6818 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6819 if (PyErr_Occurred()) SWIG_fail;
6820 }
6821 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6822 return resultobj;
6823fail:
6824 return NULL;
6825}
6826
6827
6828SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6829 PyObject *resultobj = 0;
6830 int arg1 ;
6831 int arg2 ;
6832 buffer arg3 ;
6833 int arg4 ;
6834 wxBitmap *result = 0 ;
6835 int val1 ;
6836 int ecode1 = 0 ;
6837 int val2 ;
6838 int ecode2 = 0 ;
c79fdf86 6839 Py_ssize_t temp3 ;
fc46b7f3
RD
6840 PyObject * obj0 = 0 ;
6841 PyObject * obj1 = 0 ;
6842 PyObject * obj2 = 0 ;
6843 char * kwnames[] = {
6844 (char *) "width",(char *) "height",(char *) "data", NULL
6845 };
6846
6847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6848 ecode1 = SWIG_AsVal_int(obj0, &val1);
6849 if (!SWIG_IsOK(ecode1)) {
6850 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6851 }
6852 arg1 = static_cast< int >(val1);
6853 ecode2 = SWIG_AsVal_int(obj1, &val2);
6854 if (!SWIG_IsOK(ecode2)) {
6855 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6856 }
6857 arg2 = static_cast< int >(val2);
6858 {
c79fdf86
RD
6859 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6860 arg4 = (int)temp3;
fc46b7f3
RD
6861 }
6862 {
6863 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6864 if (PyErr_Occurred()) SWIG_fail;
6865 }
6866 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6867 return resultobj;
6868fail:
6869 return NULL;
6870}
6871
6872
6873SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6874 PyObject *resultobj = 0;
6875 int arg1 ;
6876 int arg2 ;
6877 buffer arg3 ;
6878 int arg4 ;
6879 wxBitmap *result = 0 ;
6880 int val1 ;
6881 int ecode1 = 0 ;
6882 int val2 ;
6883 int ecode2 = 0 ;
c79fdf86 6884 Py_ssize_t temp3 ;
fc46b7f3
RD
6885 PyObject * obj0 = 0 ;
6886 PyObject * obj1 = 0 ;
6887 PyObject * obj2 = 0 ;
6888 char * kwnames[] = {
6889 (char *) "width",(char *) "height",(char *) "data", NULL
6890 };
6891
6892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6893 ecode1 = SWIG_AsVal_int(obj0, &val1);
6894 if (!SWIG_IsOK(ecode1)) {
6895 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6896 }
6897 arg1 = static_cast< int >(val1);
6898 ecode2 = SWIG_AsVal_int(obj1, &val2);
6899 if (!SWIG_IsOK(ecode2)) {
6900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6901 }
6902 arg2 = static_cast< int >(val2);
6903 {
c79fdf86
RD
6904 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6905 arg4 = (int)temp3;
fc46b7f3
RD
6906 }
6907 {
6908 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
6909 if (PyErr_Occurred()) SWIG_fail;
6910 }
6911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6912 return resultobj;
6913fail:
6914 return NULL;
6915}
6916
6917
6918SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6919 PyObject *resultobj = 0;
6920 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6921 wxPoint result;
6922 void *argp1 = 0 ;
6923 int res1 = 0 ;
6924 PyObject *swig_obj[1] ;
6925
6926 if (!args) SWIG_fail;
6927 swig_obj[0] = args;
6928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6929 if (!SWIG_IsOK(res1)) {
6930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6931 }
6932 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6933 {
6934 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
6935 if (PyErr_Occurred()) SWIG_fail;
6936 }
6937 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6938 return resultobj;
6939fail:
6940 return NULL;
6941}
6942
6943
6944SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6945 PyObject *resultobj = 0;
6946 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6947 int result;
6948 void *argp1 = 0 ;
6949 int res1 = 0 ;
6950 PyObject *swig_obj[1] ;
6951
6952 if (!args) SWIG_fail;
6953 swig_obj[0] = args;
6954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6955 if (!SWIG_IsOK(res1)) {
6956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6957 }
6958 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6959 {
6960 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
6961 if (PyErr_Occurred()) SWIG_fail;
6962 }
6963 resultobj = SWIG_From_int(static_cast< int >(result));
6964 return resultobj;
6965fail:
6966 return NULL;
6967}
6968
6969
6970SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6971 PyObject *resultobj = 0;
6972 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6973 int result;
6974 void *argp1 = 0 ;
6975 int res1 = 0 ;
6976 PyObject *swig_obj[1] ;
6977
6978 if (!args) SWIG_fail;
6979 swig_obj[0] = args;
6980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6981 if (!SWIG_IsOK(res1)) {
6982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6983 }
6984 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6985 {
6986 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
6987 if (PyErr_Occurred()) SWIG_fail;
6988 }
6989 resultobj = SWIG_From_int(static_cast< int >(result));
6990 return resultobj;
6991fail:
6992 return NULL;
6993}
6994
6995
6996SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6997 PyObject *resultobj = 0;
6998 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6999 wxSize result;
7000 void *argp1 = 0 ;
7001 int res1 = 0 ;
7002 PyObject *swig_obj[1] ;
7003
7004 if (!args) SWIG_fail;
7005 swig_obj[0] = args;
7006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7007 if (!SWIG_IsOK(res1)) {
7008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7009 }
7010 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7011 {
7012 result = ((wxPixelDataBase const *)arg1)->GetSize();
7013 if (PyErr_Occurred()) SWIG_fail;
7014 }
7015 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7016 return resultobj;
7017fail:
7018 return NULL;
7019}
7020
7021
7022SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7023 PyObject *resultobj = 0;
7024 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7025 int result;
7026 void *argp1 = 0 ;
7027 int res1 = 0 ;
7028 PyObject *swig_obj[1] ;
7029
7030 if (!args) SWIG_fail;
7031 swig_obj[0] = args;
7032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7033 if (!SWIG_IsOK(res1)) {
7034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7035 }
7036 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7037 {
7038 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7039 if (PyErr_Occurred()) SWIG_fail;
7040 }
7041 resultobj = SWIG_From_int(static_cast< int >(result));
7042 return resultobj;
7043fail:
7044 return NULL;
7045}
7046
7047
7048SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7049 PyObject *obj;
7050 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7051 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7052 return SWIG_Py_Void();
7053}
7054
7055SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7056 PyObject *resultobj = 0;
7057 wxBitmap *arg1 = 0 ;
7058 wxNativePixelData *result = 0 ;
7059 void *argp1 = 0 ;
7060 int res1 = 0 ;
7061
7062 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7064 if (!SWIG_IsOK(res1)) {
7065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7066 }
7067 if (!argp1) {
7068 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7069 }
7070 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7071 {
7072 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7073 if (PyErr_Occurred()) SWIG_fail;
7074 }
7075 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7076 return resultobj;
7077fail:
7078 return NULL;
7079}
7080
7081
7082SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7083 PyObject *resultobj = 0;
7084 wxBitmap *arg1 = 0 ;
7085 wxRect *arg2 = 0 ;
7086 wxNativePixelData *result = 0 ;
7087 void *argp1 = 0 ;
7088 int res1 = 0 ;
7089 wxRect temp2 ;
7090
7091 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7093 if (!SWIG_IsOK(res1)) {
7094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7095 }
7096 if (!argp1) {
7097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7098 }
7099 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7100 {
7101 arg2 = &temp2;
7102 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7103 }
7104 {
7105 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7106 if (PyErr_Occurred()) SWIG_fail;
7107 }
7108 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7109 return resultobj;
7110fail:
7111 return NULL;
7112}
7113
7114
7115SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7116 PyObject *resultobj = 0;
7117 wxBitmap *arg1 = 0 ;
7118 wxPoint *arg2 = 0 ;
7119 wxSize *arg3 = 0 ;
7120 wxNativePixelData *result = 0 ;
7121 void *argp1 = 0 ;
7122 int res1 = 0 ;
7123 wxPoint temp2 ;
7124 wxSize temp3 ;
7125
7126 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7128 if (!SWIG_IsOK(res1)) {
7129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7130 }
7131 if (!argp1) {
7132 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7133 }
7134 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7135 {
7136 arg2 = &temp2;
7137 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7138 }
7139 {
7140 arg3 = &temp3;
7141 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7142 }
7143 {
7144 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7145 if (PyErr_Occurred()) SWIG_fail;
7146 }
7147 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7148 return resultobj;
7149fail:
7150 return NULL;
7151}
7152
7153
7154SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7155 int argc;
7156 PyObject *argv[4];
7157
7158 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7159 --argc;
7160 if (argc == 1) {
7161 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7162 }
7163 if (argc == 2) {
7164 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7165 }
7166 if (argc == 3) {
7167 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7168 }
7169
7170fail:
7171 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7172 return NULL;
7173}
7174
7175
7176SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7177 PyObject *resultobj = 0;
7178 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7179 void *argp1 = 0 ;
7180 int res1 = 0 ;
7181 PyObject *swig_obj[1] ;
7182
7183 if (!args) SWIG_fail;
7184 swig_obj[0] = args;
7185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7186 if (!SWIG_IsOK(res1)) {
7187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7188 }
7189 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7190 {
7191 delete arg1;
7192
7193 if (PyErr_Occurred()) SWIG_fail;
7194 }
7195 resultobj = SWIG_Py_Void();
7196 return resultobj;
7197fail:
7198 return NULL;
7199}
7200
7201
7202SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7203 PyObject *resultobj = 0;
7204 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7205 wxNativePixelData_Accessor result;
7206 void *argp1 = 0 ;
7207 int res1 = 0 ;
7208 PyObject *swig_obj[1] ;
7209
7210 if (!args) SWIG_fail;
7211 swig_obj[0] = args;
7212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7213 if (!SWIG_IsOK(res1)) {
7214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7215 }
7216 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7217 {
7218 result = ((wxNativePixelData const *)arg1)->GetPixels();
7219 if (PyErr_Occurred()) SWIG_fail;
7220 }
7221 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7222 return resultobj;
7223fail:
7224 return NULL;
7225}
7226
7227
7228SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7229 PyObject *resultobj = 0;
7230 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7231 void *argp1 = 0 ;
7232 int res1 = 0 ;
7233 PyObject *swig_obj[1] ;
7234
7235 if (!args) SWIG_fail;
7236 swig_obj[0] = args;
7237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7238 if (!SWIG_IsOK(res1)) {
7239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7240 }
7241 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7242 {
7243 (arg1)->UseAlpha();
7244 if (PyErr_Occurred()) SWIG_fail;
7245 }
7246 resultobj = SWIG_Py_Void();
7247 return resultobj;
7248fail:
7249 return NULL;
7250}
7251
7252
7253SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7254 PyObject *resultobj = 0;
7255 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7256 bool result;
7257 void *argp1 = 0 ;
7258 int res1 = 0 ;
7259 PyObject *swig_obj[1] ;
7260
7261 if (!args) SWIG_fail;
7262 swig_obj[0] = args;
7263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7264 if (!SWIG_IsOK(res1)) {
7265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7266 }
7267 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7268 {
7269 result = (bool)wxNativePixelData___nonzero__(arg1);
7270 if (PyErr_Occurred()) SWIG_fail;
7271 }
7272 {
7273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7274 }
7275 return resultobj;
7276fail:
7277 return NULL;
7278}
7279
7280
7281SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7282 PyObject *obj;
7283 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7284 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7285 return SWIG_Py_Void();
7286}
7287
7288SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7289 return SWIG_Python_InitShadowInstance(args);
7290}
7291
7292SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7293 PyObject *resultobj = 0;
7294 wxNativePixelData *arg1 = 0 ;
7295 wxNativePixelData_Accessor *result = 0 ;
7296 void *argp1 = 0 ;
7297 int res1 = 0 ;
7298
7299 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7301 if (!SWIG_IsOK(res1)) {
7302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7303 }
7304 if (!argp1) {
7305 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7306 }
7307 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7308 {
7309 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7310 if (PyErr_Occurred()) SWIG_fail;
7311 }
7312 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7313 return resultobj;
7314fail:
7315 return NULL;
7316}
7317
7318
7319SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7320 PyObject *resultobj = 0;
7321 wxBitmap *arg1 = 0 ;
7322 wxNativePixelData *arg2 = 0 ;
7323 wxNativePixelData_Accessor *result = 0 ;
7324 void *argp1 = 0 ;
7325 int res1 = 0 ;
7326 void *argp2 = 0 ;
7327 int res2 = 0 ;
7328
7329 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7331 if (!SWIG_IsOK(res1)) {
7332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7333 }
7334 if (!argp1) {
7335 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7336 }
7337 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7338 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7339 if (!SWIG_IsOK(res2)) {
7340 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7341 }
7342 if (!argp2) {
7343 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7344 }
7345 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7346 {
7347 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7348 if (PyErr_Occurred()) SWIG_fail;
7349 }
7350 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7351 return resultobj;
7352fail:
7353 return NULL;
7354}
7355
7356
7357SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7358 PyObject *resultobj = 0;
7359 wxNativePixelData_Accessor *result = 0 ;
7360
7361 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7362 {
7363 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7364 if (PyErr_Occurred()) SWIG_fail;
7365 }
7366 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7367 return resultobj;
7368fail:
7369 return NULL;
7370}
7371
7372
7373SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7374 int argc;
7375 PyObject *argv[3];
7376
7377 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7378 --argc;
7379 if (argc == 0) {
7380 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7381 }
7382 if (argc == 1) {
7383 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7384 }
7385 if (argc == 2) {
7386 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7387 }
7388
7389fail:
7390 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7391 return NULL;
7392}
7393
7394
7395SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7396 PyObject *resultobj = 0;
7397 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7398 void *argp1 = 0 ;
7399 int res1 = 0 ;
7400 PyObject *swig_obj[1] ;
7401
7402 if (!args) SWIG_fail;
7403 swig_obj[0] = args;
7404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7405 if (!SWIG_IsOK(res1)) {
7406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7407 }
7408 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7409 {
7410 delete arg1;
7411
7412 if (PyErr_Occurred()) SWIG_fail;
7413 }
7414 resultobj = SWIG_Py_Void();
7415 return resultobj;
7416fail:
7417 return NULL;
7418}
7419
7420
7421SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7422 PyObject *resultobj = 0;
7423 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7424 wxNativePixelData *arg2 = 0 ;
7425 void *argp1 = 0 ;
7426 int res1 = 0 ;
7427 void *argp2 = 0 ;
7428 int res2 = 0 ;
7429 PyObject * obj0 = 0 ;
7430 PyObject * obj1 = 0 ;
7431 char * kwnames[] = {
7432 (char *) "self",(char *) "data", NULL
7433 };
7434
7435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7437 if (!SWIG_IsOK(res1)) {
7438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7439 }
7440 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7441 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7442 if (!SWIG_IsOK(res2)) {
7443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7444 }
7445 if (!argp2) {
7446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7447 }
7448 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7449 {
7450 (arg1)->Reset((wxNativePixelData const &)*arg2);
7451 if (PyErr_Occurred()) SWIG_fail;
7452 }
7453 resultobj = SWIG_Py_Void();
7454 return resultobj;
7455fail:
7456 return NULL;
7457}
7458
7459
7460SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7461 PyObject *resultobj = 0;
7462 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7463 bool result;
7464 void *argp1 = 0 ;
7465 int res1 = 0 ;
7466 PyObject *swig_obj[1] ;
7467
7468 if (!args) SWIG_fail;
7469 swig_obj[0] = args;
7470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7471 if (!SWIG_IsOK(res1)) {
7472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7473 }
7474 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7475 {
7476 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7477 if (PyErr_Occurred()) SWIG_fail;
7478 }
7479 {
7480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7481 }
7482 return resultobj;
7483fail:
7484 return NULL;
7485}
7486
7487
7488SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7489 PyObject *resultobj = 0;
7490 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7491 void *argp1 = 0 ;
7492 int res1 = 0 ;
7493 PyObject *swig_obj[1] ;
7494
7495 if (!args) SWIG_fail;
7496 swig_obj[0] = args;
7497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7498 if (!SWIG_IsOK(res1)) {
7499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7500 }
7501 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7502 {
7503 wxNativePixelData_Accessor_nextPixel(arg1);
7504 if (PyErr_Occurred()) SWIG_fail;
7505 }
7506 resultobj = SWIG_Py_Void();
7507 return resultobj;
7508fail:
7509 return NULL;
7510}
7511
7512
7513SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7514 PyObject *resultobj = 0;
7515 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7516 wxNativePixelData *arg2 = 0 ;
7517 int arg3 ;
7518 int arg4 ;
7519 void *argp1 = 0 ;
7520 int res1 = 0 ;
7521 void *argp2 = 0 ;
7522 int res2 = 0 ;
7523 int val3 ;
7524 int ecode3 = 0 ;
7525 int val4 ;
7526 int ecode4 = 0 ;
7527 PyObject * obj0 = 0 ;
7528 PyObject * obj1 = 0 ;
7529 PyObject * obj2 = 0 ;
7530 PyObject * obj3 = 0 ;
7531 char * kwnames[] = {
7532 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7533 };
7534
7535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7537 if (!SWIG_IsOK(res1)) {
7538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7539 }
7540 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7541 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7542 if (!SWIG_IsOK(res2)) {
7543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7544 }
7545 if (!argp2) {
7546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7547 }
7548 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7549 ecode3 = SWIG_AsVal_int(obj2, &val3);
7550 if (!SWIG_IsOK(ecode3)) {
7551 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7552 }
7553 arg3 = static_cast< int >(val3);
7554 ecode4 = SWIG_AsVal_int(obj3, &val4);
7555 if (!SWIG_IsOK(ecode4)) {
7556 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7557 }
7558 arg4 = static_cast< int >(val4);
7559 {
7560 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7561 if (PyErr_Occurred()) SWIG_fail;
7562 }
7563 resultobj = SWIG_Py_Void();
7564 return resultobj;
7565fail:
7566 return NULL;
7567}
7568
7569
7570SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7571 PyObject *resultobj = 0;
7572 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7573 wxNativePixelData *arg2 = 0 ;
7574 int arg3 ;
7575 void *argp1 = 0 ;
7576 int res1 = 0 ;
7577 void *argp2 = 0 ;
7578 int res2 = 0 ;
7579 int val3 ;
7580 int ecode3 = 0 ;
7581 PyObject * obj0 = 0 ;
7582 PyObject * obj1 = 0 ;
7583 PyObject * obj2 = 0 ;
7584 char * kwnames[] = {
7585 (char *) "self",(char *) "data",(char *) "x", NULL
7586 };
7587
7588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7590 if (!SWIG_IsOK(res1)) {
7591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7592 }
7593 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7594 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7595 if (!SWIG_IsOK(res2)) {
7596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7597 }
7598 if (!argp2) {
7599 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7600 }
7601 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7602 ecode3 = SWIG_AsVal_int(obj2, &val3);
7603 if (!SWIG_IsOK(ecode3)) {
7604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7605 }
7606 arg3 = static_cast< int >(val3);
7607 {
7608 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7609 if (PyErr_Occurred()) SWIG_fail;
7610 }
7611 resultobj = SWIG_Py_Void();
7612 return resultobj;
7613fail:
7614 return NULL;
7615}
7616
7617
7618SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7619 PyObject *resultobj = 0;
7620 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7621 wxNativePixelData *arg2 = 0 ;
7622 int arg3 ;
7623 void *argp1 = 0 ;
7624 int res1 = 0 ;
7625 void *argp2 = 0 ;
7626 int res2 = 0 ;
7627 int val3 ;
7628 int ecode3 = 0 ;
7629 PyObject * obj0 = 0 ;
7630 PyObject * obj1 = 0 ;
7631 PyObject * obj2 = 0 ;
7632 char * kwnames[] = {
7633 (char *) "self",(char *) "data",(char *) "y", NULL
7634 };
7635
7636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7638 if (!SWIG_IsOK(res1)) {
7639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7640 }
7641 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7642 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7643 if (!SWIG_IsOK(res2)) {
7644 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7645 }
7646 if (!argp2) {
7647 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7648 }
7649 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7650 ecode3 = SWIG_AsVal_int(obj2, &val3);
7651 if (!SWIG_IsOK(ecode3)) {
7652 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7653 }
7654 arg3 = static_cast< int >(val3);
7655 {
7656 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7657 if (PyErr_Occurred()) SWIG_fail;
7658 }
7659 resultobj = SWIG_Py_Void();
7660 return resultobj;
7661fail:
7662 return NULL;
7663}
7664
7665
7666SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7667 PyObject *resultobj = 0;
7668 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7669 wxNativePixelData *arg2 = 0 ;
7670 int arg3 ;
7671 int arg4 ;
7672 void *argp1 = 0 ;
7673 int res1 = 0 ;
7674 void *argp2 = 0 ;
7675 int res2 = 0 ;
7676 int val3 ;
7677 int ecode3 = 0 ;
7678 int val4 ;
7679 int ecode4 = 0 ;
7680 PyObject * obj0 = 0 ;
7681 PyObject * obj1 = 0 ;
7682 PyObject * obj2 = 0 ;
7683 PyObject * obj3 = 0 ;
7684 char * kwnames[] = {
7685 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7686 };
7687
7688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7690 if (!SWIG_IsOK(res1)) {
7691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7692 }
7693 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7694 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7695 if (!SWIG_IsOK(res2)) {
7696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7697 }
7698 if (!argp2) {
7699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7700 }
7701 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7702 ecode3 = SWIG_AsVal_int(obj2, &val3);
7703 if (!SWIG_IsOK(ecode3)) {
7704 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7705 }
7706 arg3 = static_cast< int >(val3);
7707 ecode4 = SWIG_AsVal_int(obj3, &val4);
7708 if (!SWIG_IsOK(ecode4)) {
7709 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7710 }
7711 arg4 = static_cast< int >(val4);
7712 {
7713 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7714 if (PyErr_Occurred()) SWIG_fail;
7715 }
7716 resultobj = SWIG_Py_Void();
7717 return resultobj;
7718fail:
7719 return NULL;
7720}
7721
7722
7723SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7724 PyObject *resultobj = 0;
7725 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7726 byte arg2 ;
7727 byte arg3 ;
7728 byte arg4 ;
7729 void *argp1 = 0 ;
7730 int res1 = 0 ;
7731 unsigned char val2 ;
7732 int ecode2 = 0 ;
7733 unsigned char val3 ;
7734 int ecode3 = 0 ;
7735 unsigned char val4 ;
7736 int ecode4 = 0 ;
7737 PyObject * obj0 = 0 ;
7738 PyObject * obj1 = 0 ;
7739 PyObject * obj2 = 0 ;
7740 PyObject * obj3 = 0 ;
7741 char * kwnames[] = {
7742 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7743 };
7744
7745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7747 if (!SWIG_IsOK(res1)) {
7748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7749 }
7750 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7751 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7752 if (!SWIG_IsOK(ecode2)) {
7753 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7754 }
7755 arg2 = static_cast< byte >(val2);
7756 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7757 if (!SWIG_IsOK(ecode3)) {
7758 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7759 }
7760 arg3 = static_cast< byte >(val3);
7761 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7762 if (!SWIG_IsOK(ecode4)) {
7763 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7764 }
7765 arg4 = static_cast< byte >(val4);
7766 {
7767 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7768 if (PyErr_Occurred()) SWIG_fail;
7769 }
7770 resultobj = SWIG_Py_Void();
7771 return resultobj;
7772fail:
7773 return NULL;
7774}
7775
7776
7777SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7778 PyObject *resultobj = 0;
7779 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7780 PyObject *result = 0 ;
7781 void *argp1 = 0 ;
7782 int res1 = 0 ;
7783 PyObject *swig_obj[1] ;
7784
7785 if (!args) SWIG_fail;
7786 swig_obj[0] = args;
7787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7788 if (!SWIG_IsOK(res1)) {
7789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7790 }
7791 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7792 {
7793 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7794 if (PyErr_Occurred()) SWIG_fail;
7795 }
7796 resultobj = result;
7797 return resultobj;
7798fail:
7799 return NULL;
7800}
7801
7802
7803SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7804 PyObject *obj;
7805 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7806 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7807 return SWIG_Py_Void();
7808}
7809
7810SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7811 return SWIG_Python_InitShadowInstance(args);
7812}
7813
7814SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7815 PyObject *resultobj = 0;
7816 wxBitmap *arg1 = 0 ;
7817 wxAlphaPixelData *result = 0 ;
7818 void *argp1 = 0 ;
7819 int res1 = 0 ;
7820
7821 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7823 if (!SWIG_IsOK(res1)) {
7824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7825 }
7826 if (!argp1) {
7827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7828 }
7829 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7830 {
7831 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
7832 if (PyErr_Occurred()) SWIG_fail;
7833 }
7834 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7835 return resultobj;
7836fail:
7837 return NULL;
7838}
7839
7840
7841SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7842 PyObject *resultobj = 0;
7843 wxBitmap *arg1 = 0 ;
7844 wxRect *arg2 = 0 ;
7845 wxAlphaPixelData *result = 0 ;
7846 void *argp1 = 0 ;
7847 int res1 = 0 ;
7848 wxRect temp2 ;
7849
7850 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7852 if (!SWIG_IsOK(res1)) {
7853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7854 }
7855 if (!argp1) {
7856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7857 }
7858 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7859 {
7860 arg2 = &temp2;
7861 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7862 }
7863 {
7864 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7865 if (PyErr_Occurred()) SWIG_fail;
7866 }
7867 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7868 return resultobj;
7869fail:
7870 return NULL;
7871}
7872
7873
7874SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7875 PyObject *resultobj = 0;
7876 wxBitmap *arg1 = 0 ;
7877 wxPoint *arg2 = 0 ;
7878 wxSize *arg3 = 0 ;
7879 wxAlphaPixelData *result = 0 ;
7880 void *argp1 = 0 ;
7881 int res1 = 0 ;
7882 wxPoint temp2 ;
7883 wxSize temp3 ;
7884
7885 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7887 if (!SWIG_IsOK(res1)) {
7888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7889 }
7890 if (!argp1) {
7891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7892 }
7893 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7894 {
7895 arg2 = &temp2;
7896 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7897 }
7898 {
7899 arg3 = &temp3;
7900 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7901 }
7902 {
7903 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7904 if (PyErr_Occurred()) SWIG_fail;
7905 }
7906 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7907 return resultobj;
7908fail:
7909 return NULL;
7910}
7911
7912
7913SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
7914 int argc;
7915 PyObject *argv[4];
7916
7917 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
7918 --argc;
7919 if (argc == 1) {
7920 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
7921 }
7922 if (argc == 2) {
7923 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
7924 }
7925 if (argc == 3) {
7926 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
7927 }
7928
7929fail:
7930 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
7931 return NULL;
7932}
7933
7934
7935SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7936 PyObject *resultobj = 0;
7937 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7938 void *argp1 = 0 ;
7939 int res1 = 0 ;
7940 PyObject *swig_obj[1] ;
7941
7942 if (!args) SWIG_fail;
7943 swig_obj[0] = args;
7944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
7945 if (!SWIG_IsOK(res1)) {
7946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7947 }
7948 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7949 {
7950 delete arg1;
7951
7952 if (PyErr_Occurred()) SWIG_fail;
7953 }
7954 resultobj = SWIG_Py_Void();
7955 return resultobj;
7956fail:
7957 return NULL;
7958}
7959
7960
7961SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7962 PyObject *resultobj = 0;
7963 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7964 wxAlphaPixelData_Accessor result;
7965 void *argp1 = 0 ;
7966 int res1 = 0 ;
7967 PyObject *swig_obj[1] ;
7968
7969 if (!args) SWIG_fail;
7970 swig_obj[0] = args;
7971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7972 if (!SWIG_IsOK(res1)) {
7973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
7974 }
7975 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7976 {
7977 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
7978 if (PyErr_Occurred()) SWIG_fail;
7979 }
7980 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
7981 return resultobj;
7982fail:
7983 return NULL;
7984}
7985
7986
7987SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7988 PyObject *resultobj = 0;
7989 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7990 void *argp1 = 0 ;
7991 int res1 = 0 ;
7992 PyObject *swig_obj[1] ;
7993
7994 if (!args) SWIG_fail;
7995 swig_obj[0] = args;
7996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7997 if (!SWIG_IsOK(res1)) {
7998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7999 }
8000 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8001 {
8002 (arg1)->UseAlpha();
8003 if (PyErr_Occurred()) SWIG_fail;
8004 }
8005 resultobj = SWIG_Py_Void();
8006 return resultobj;
8007fail:
8008 return NULL;
8009}
8010
8011
8012SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8013 PyObject *resultobj = 0;
8014 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8015 bool result;
8016 void *argp1 = 0 ;
8017 int res1 = 0 ;
8018 PyObject *swig_obj[1] ;
8019
8020 if (!args) SWIG_fail;
8021 swig_obj[0] = args;
8022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8023 if (!SWIG_IsOK(res1)) {
8024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8025 }
8026 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8027 {
8028 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8029 if (PyErr_Occurred()) SWIG_fail;
8030 }
8031 {
8032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8033 }
8034 return resultobj;
8035fail:
8036 return NULL;
8037}
8038
8039
8040SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8041 PyObject *obj;
8042 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8043 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8044 return SWIG_Py_Void();
8045}
8046
8047SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8048 return SWIG_Python_InitShadowInstance(args);
8049}
8050
8051SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8052 PyObject *resultobj = 0;
8053 wxAlphaPixelData *arg1 = 0 ;
8054 wxAlphaPixelData_Accessor *result = 0 ;
8055 void *argp1 = 0 ;
8056 int res1 = 0 ;
8057
8058 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8060 if (!SWIG_IsOK(res1)) {
8061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8062 }
8063 if (!argp1) {
8064 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8065 }
8066 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8067 {
8068 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8069 if (PyErr_Occurred()) SWIG_fail;
8070 }
8071 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8072 return resultobj;
8073fail:
8074 return NULL;
8075}
8076
8077
8078SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8079 PyObject *resultobj = 0;
8080 wxBitmap *arg1 = 0 ;
8081 wxAlphaPixelData *arg2 = 0 ;
8082 wxAlphaPixelData_Accessor *result = 0 ;
8083 void *argp1 = 0 ;
8084 int res1 = 0 ;
8085 void *argp2 = 0 ;
8086 int res2 = 0 ;
8087
8088 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8090 if (!SWIG_IsOK(res1)) {
8091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8092 }
8093 if (!argp1) {
8094 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8095 }
8096 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8097 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8098 if (!SWIG_IsOK(res2)) {
8099 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8100 }
8101 if (!argp2) {
8102 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8103 }
8104 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8105 {
8106 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8107 if (PyErr_Occurred()) SWIG_fail;
8108 }
8109 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8110 return resultobj;
8111fail:
8112 return NULL;
8113}
8114
8115
8116SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8117 PyObject *resultobj = 0;
8118 wxAlphaPixelData_Accessor *result = 0 ;
8119
8120 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8121 {
8122 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8123 if (PyErr_Occurred()) SWIG_fail;
8124 }
8125 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8126 return resultobj;
8127fail:
8128 return NULL;
8129}
8130
8131
8132SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8133 int argc;
8134 PyObject *argv[3];
8135
8136 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8137 --argc;
8138 if (argc == 0) {
8139 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8140 }
8141 if (argc == 1) {
8142 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8143 }
8144 if (argc == 2) {
8145 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8146 }
8147
8148fail:
8149 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8150 return NULL;
8151}
8152
8153
8154SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8155 PyObject *resultobj = 0;
8156 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8157 void *argp1 = 0 ;
8158 int res1 = 0 ;
8159 PyObject *swig_obj[1] ;
8160
8161 if (!args) SWIG_fail;
8162 swig_obj[0] = args;
8163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8164 if (!SWIG_IsOK(res1)) {
8165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8166 }
8167 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8168 {
8169 delete arg1;
8170
8171 if (PyErr_Occurred()) SWIG_fail;
8172 }
8173 resultobj = SWIG_Py_Void();
8174 return resultobj;
8175fail:
8176 return NULL;
8177}
8178
8179
8180SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8181 PyObject *resultobj = 0;
8182 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8183 wxAlphaPixelData *arg2 = 0 ;
8184 void *argp1 = 0 ;
8185 int res1 = 0 ;
8186 void *argp2 = 0 ;
8187 int res2 = 0 ;
8188 PyObject * obj0 = 0 ;
8189 PyObject * obj1 = 0 ;
8190 char * kwnames[] = {
8191 (char *) "self",(char *) "data", NULL
8192 };
8193
8194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8196 if (!SWIG_IsOK(res1)) {
8197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8198 }
8199 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8200 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8201 if (!SWIG_IsOK(res2)) {
8202 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8203 }
8204 if (!argp2) {
8205 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8206 }
8207 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8208 {
8209 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8210 if (PyErr_Occurred()) SWIG_fail;
8211 }
8212 resultobj = SWIG_Py_Void();
8213 return resultobj;
8214fail:
8215 return NULL;
8216}
8217
8218
8219SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8220 PyObject *resultobj = 0;
8221 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8222 bool result;
8223 void *argp1 = 0 ;
8224 int res1 = 0 ;
8225 PyObject *swig_obj[1] ;
8226
8227 if (!args) SWIG_fail;
8228 swig_obj[0] = args;
8229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8230 if (!SWIG_IsOK(res1)) {
8231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8232 }
8233 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8234 {
8235 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8236 if (PyErr_Occurred()) SWIG_fail;
8237 }
8238 {
8239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8240 }
8241 return resultobj;
8242fail:
8243 return NULL;
8244}
8245
8246
8247SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8248 PyObject *resultobj = 0;
8249 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8250 void *argp1 = 0 ;
8251 int res1 = 0 ;
8252 PyObject *swig_obj[1] ;
8253
8254 if (!args) SWIG_fail;
8255 swig_obj[0] = args;
8256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8257 if (!SWIG_IsOK(res1)) {
8258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8259 }
8260 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8261 {
8262 wxAlphaPixelData_Accessor_nextPixel(arg1);
8263 if (PyErr_Occurred()) SWIG_fail;
8264 }
8265 resultobj = SWIG_Py_Void();
8266 return resultobj;
8267fail:
8268 return NULL;
8269}
8270
8271
8272SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8273 PyObject *resultobj = 0;
8274 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8275 wxAlphaPixelData *arg2 = 0 ;
8276 int arg3 ;
8277 int arg4 ;
8278 void *argp1 = 0 ;
8279 int res1 = 0 ;
8280 void *argp2 = 0 ;
8281 int res2 = 0 ;
8282 int val3 ;
8283 int ecode3 = 0 ;
8284 int val4 ;
8285 int ecode4 = 0 ;
8286 PyObject * obj0 = 0 ;
8287 PyObject * obj1 = 0 ;
8288 PyObject * obj2 = 0 ;
8289 PyObject * obj3 = 0 ;
8290 char * kwnames[] = {
8291 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8292 };
8293
8294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8296 if (!SWIG_IsOK(res1)) {
8297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8298 }
8299 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8300 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8301 if (!SWIG_IsOK(res2)) {
8302 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8303 }
8304 if (!argp2) {
8305 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8306 }
8307 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8308 ecode3 = SWIG_AsVal_int(obj2, &val3);
8309 if (!SWIG_IsOK(ecode3)) {
8310 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8311 }
8312 arg3 = static_cast< int >(val3);
8313 ecode4 = SWIG_AsVal_int(obj3, &val4);
8314 if (!SWIG_IsOK(ecode4)) {
8315 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8316 }
8317 arg4 = static_cast< int >(val4);
8318 {
8319 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8320 if (PyErr_Occurred()) SWIG_fail;
8321 }
8322 resultobj = SWIG_Py_Void();
8323 return resultobj;
8324fail:
8325 return NULL;
8326}
8327
8328
8329SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8330 PyObject *resultobj = 0;
8331 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8332 wxAlphaPixelData *arg2 = 0 ;
8333 int arg3 ;
8334 void *argp1 = 0 ;
8335 int res1 = 0 ;
8336 void *argp2 = 0 ;
8337 int res2 = 0 ;
8338 int val3 ;
8339 int ecode3 = 0 ;
8340 PyObject * obj0 = 0 ;
8341 PyObject * obj1 = 0 ;
8342 PyObject * obj2 = 0 ;
8343 char * kwnames[] = {
8344 (char *) "self",(char *) "data",(char *) "x", NULL
8345 };
8346
8347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8349 if (!SWIG_IsOK(res1)) {
8350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8351 }
8352 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8353 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8354 if (!SWIG_IsOK(res2)) {
8355 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8356 }
8357 if (!argp2) {
8358 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8359 }
8360 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8361 ecode3 = SWIG_AsVal_int(obj2, &val3);
8362 if (!SWIG_IsOK(ecode3)) {
8363 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8364 }
8365 arg3 = static_cast< int >(val3);
8366 {
8367 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8368 if (PyErr_Occurred()) SWIG_fail;
8369 }
8370 resultobj = SWIG_Py_Void();
8371 return resultobj;
8372fail:
8373 return NULL;
8374}
8375
8376
8377SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8378 PyObject *resultobj = 0;
8379 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8380 wxAlphaPixelData *arg2 = 0 ;
8381 int arg3 ;
8382 void *argp1 = 0 ;
8383 int res1 = 0 ;
8384 void *argp2 = 0 ;
8385 int res2 = 0 ;
8386 int val3 ;
8387 int ecode3 = 0 ;
8388 PyObject * obj0 = 0 ;
8389 PyObject * obj1 = 0 ;
8390 PyObject * obj2 = 0 ;
8391 char * kwnames[] = {
8392 (char *) "self",(char *) "data",(char *) "y", NULL
8393 };
8394
8395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8397 if (!SWIG_IsOK(res1)) {
8398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8399 }
8400 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8401 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8402 if (!SWIG_IsOK(res2)) {
8403 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8404 }
8405 if (!argp2) {
8406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8407 }
8408 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8409 ecode3 = SWIG_AsVal_int(obj2, &val3);
8410 if (!SWIG_IsOK(ecode3)) {
8411 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8412 }
8413 arg3 = static_cast< int >(val3);
8414 {
8415 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8416 if (PyErr_Occurred()) SWIG_fail;
8417 }
8418 resultobj = SWIG_Py_Void();
8419 return resultobj;
8420fail:
8421 return NULL;
8422}
8423
8424
8425SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8426 PyObject *resultobj = 0;
8427 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8428 wxAlphaPixelData *arg2 = 0 ;
8429 int arg3 ;
8430 int arg4 ;
8431 void *argp1 = 0 ;
8432 int res1 = 0 ;
8433 void *argp2 = 0 ;
8434 int res2 = 0 ;
8435 int val3 ;
8436 int ecode3 = 0 ;
8437 int val4 ;
8438 int ecode4 = 0 ;
8439 PyObject * obj0 = 0 ;
8440 PyObject * obj1 = 0 ;
8441 PyObject * obj2 = 0 ;
8442 PyObject * obj3 = 0 ;
8443 char * kwnames[] = {
8444 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8445 };
8446
8447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8449 if (!SWIG_IsOK(res1)) {
8450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8451 }
8452 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8453 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8454 if (!SWIG_IsOK(res2)) {
8455 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8456 }
8457 if (!argp2) {
8458 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8459 }
8460 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8461 ecode3 = SWIG_AsVal_int(obj2, &val3);
8462 if (!SWIG_IsOK(ecode3)) {
8463 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8464 }
8465 arg3 = static_cast< int >(val3);
8466 ecode4 = SWIG_AsVal_int(obj3, &val4);
8467 if (!SWIG_IsOK(ecode4)) {
8468 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8469 }
8470 arg4 = static_cast< int >(val4);
8471 {
8472 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8473 if (PyErr_Occurred()) SWIG_fail;
8474 }
8475 resultobj = SWIG_Py_Void();
8476 return resultobj;
8477fail:
8478 return NULL;
8479}
8480
8481
8482SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8483 PyObject *resultobj = 0;
8484 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8485 byte arg2 ;
8486 byte arg3 ;
8487 byte arg4 ;
8488 byte arg5 ;
8489 void *argp1 = 0 ;
8490 int res1 = 0 ;
8491 unsigned char val2 ;
8492 int ecode2 = 0 ;
8493 unsigned char val3 ;
8494 int ecode3 = 0 ;
8495 unsigned char val4 ;
8496 int ecode4 = 0 ;
8497 unsigned char val5 ;
8498 int ecode5 = 0 ;
8499 PyObject * obj0 = 0 ;
8500 PyObject * obj1 = 0 ;
8501 PyObject * obj2 = 0 ;
8502 PyObject * obj3 = 0 ;
8503 PyObject * obj4 = 0 ;
8504 char * kwnames[] = {
8505 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8506 };
8507
8508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8510 if (!SWIG_IsOK(res1)) {
8511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8512 }
8513 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8514 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8515 if (!SWIG_IsOK(ecode2)) {
8516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8517 }
8518 arg2 = static_cast< byte >(val2);
8519 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8520 if (!SWIG_IsOK(ecode3)) {
8521 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8522 }
8523 arg3 = static_cast< byte >(val3);
8524 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8525 if (!SWIG_IsOK(ecode4)) {
8526 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8527 }
8528 arg4 = static_cast< byte >(val4);
8529 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8530 if (!SWIG_IsOK(ecode5)) {
8531 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8532 }
8533 arg5 = static_cast< byte >(val5);
8534 {
8535 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8536 if (PyErr_Occurred()) SWIG_fail;
0085ce49 8537 }
fc46b7f3 8538 resultobj = SWIG_Py_Void();
0085ce49
RD
8539 return resultobj;
8540fail:
8541 return NULL;
8542}
8543
8544
fc46b7f3 8545SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 8546 PyObject *resultobj = 0;
fc46b7f3
RD
8547 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8548 PyObject *result = 0 ;
0085ce49
RD
8549 void *argp1 = 0 ;
8550 int res1 = 0 ;
fc46b7f3 8551 PyObject *swig_obj[1] ;
0085ce49 8552
fc46b7f3
RD
8553 if (!args) SWIG_fail;
8554 swig_obj[0] = args;
8555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
0085ce49 8556 if (!SWIG_IsOK(res1)) {
fc46b7f3 8557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
0085ce49 8558 }
fc46b7f3 8559 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
0085ce49 8560 {
fc46b7f3 8561 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
0085ce49
RD
8562 if (PyErr_Occurred()) SWIG_fail;
8563 }
fc46b7f3 8564 resultobj = result;
0085ce49
RD
8565 return resultobj;
8566fail:
8567 return NULL;
d14a1e28
RD
8568}
8569
8570
fc46b7f3 8571SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
8572 PyObject *obj;
8573 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8574 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
0085ce49 8575 return SWIG_Py_Void();
b2df227b
RD
8576}
8577
fc46b7f3 8578SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 8579 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
8580}
8581
0085ce49
RD
8582SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8583 PyObject *resultobj = 0;
8584 wxBitmap *arg1 = 0 ;
8585 wxColour const &arg2_defvalue = wxNullColour ;
8586 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8587 wxMask *result = 0 ;
8588 void *argp1 = 0 ;
8589 int res1 = 0 ;
8590 wxColour temp2 ;
8591 PyObject * obj0 = 0 ;
8592 PyObject * obj1 = 0 ;
8593 char * kwnames[] = {
8594 (char *) "bitmap",(char *) "colour", NULL
8595 };
8596
8597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8598 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8599 if (!SWIG_IsOK(res1)) {
8600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8601 }
8602 if (!argp1) {
8603 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8604 }
8605 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8606 if (obj1) {
d14a1e28 8607 {
0085ce49
RD
8608 arg2 = &temp2;
8609 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 8610 }
0085ce49
RD
8611 }
8612 {
8613 if (!wxPyCheckForApp()) SWIG_fail;
8614 PyThreadState* __tstate = wxPyBeginAllowThreads();
8615 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8616 wxPyEndAllowThreads(__tstate);
8617 if (PyErr_Occurred()) SWIG_fail;
8618 }
8619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8620 return resultobj;
8621fail:
8622 return NULL;
d14a1e28
RD
8623}
8624
8625
0085ce49
RD
8626SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8627 PyObject *resultobj = 0;
8628 wxMask *arg1 = (wxMask *) 0 ;
8629 void *argp1 = 0 ;
8630 int res1 = 0 ;
8631 PyObject *swig_obj[1] ;
8632
8633 if (!args) SWIG_fail;
8634 swig_obj[0] = args;
8635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8636 if (!SWIG_IsOK(res1)) {
8637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8638 }
8639 arg1 = reinterpret_cast< wxMask * >(argp1);
8640 {
0085ce49 8641 delete arg1;
d14a1e28 8642
0085ce49
RD
8643 if (PyErr_Occurred()) SWIG_fail;
8644 }
8645 resultobj = SWIG_Py_Void();
8646 return resultobj;
8647fail:
8648 return NULL;
8649}
8650
8651
8652SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8653 PyObject *obj;
8654 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8655 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8656 return SWIG_Py_Void();
8657}
8658
8659SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8660 return SWIG_Python_InitShadowInstance(args);
8661}
8662
8663SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8664 PyObject *resultobj = 0;
8665 wxString *arg1 = 0 ;
8666 wxBitmapType arg2 ;
8667 int arg3 = (int) -1 ;
8668 int arg4 = (int) -1 ;
8669 wxIcon *result = 0 ;
8670 bool temp1 = false ;
8671 int val2 ;
8672 int ecode2 = 0 ;
8673 int val3 ;
8674 int ecode3 = 0 ;
8675 int val4 ;
8676 int ecode4 = 0 ;
8677 PyObject * obj0 = 0 ;
8678 PyObject * obj1 = 0 ;
8679 PyObject * obj2 = 0 ;
8680 PyObject * obj3 = 0 ;
8681 char * kwnames[] = {
8682 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8683 };
8684
8685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8686 {
8687 arg1 = wxString_in_helper(obj0);
8688 if (arg1 == NULL) SWIG_fail;
8689 temp1 = true;
8690 }
8691 ecode2 = SWIG_AsVal_int(obj1, &val2);
8692 if (!SWIG_IsOK(ecode2)) {
8693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8694 }
8695 arg2 = static_cast< wxBitmapType >(val2);
8696 if (obj2) {
8697 ecode3 = SWIG_AsVal_int(obj2, &val3);
8698 if (!SWIG_IsOK(ecode3)) {
8699 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8700 }
8701 arg3 = static_cast< int >(val3);
8702 }
8703 if (obj3) {
8704 ecode4 = SWIG_AsVal_int(obj3, &val4);
8705 if (!SWIG_IsOK(ecode4)) {
8706 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8707 }
8708 arg4 = static_cast< int >(val4);
8709 }
8710 {
8711 if (!wxPyCheckForApp()) SWIG_fail;
8712 PyThreadState* __tstate = wxPyBeginAllowThreads();
8713 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8714 wxPyEndAllowThreads(__tstate);
8715 if (PyErr_Occurred()) SWIG_fail;
8716 }
8717 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8718 {
8719 if (temp1)
8720 delete arg1;
8721 }
8722 return resultobj;
8723fail:
8724 {
8725 if (temp1)
8726 delete arg1;
8727 }
8728 return NULL;
d14a1e28
RD
8729}
8730
8731
0085ce49
RD
8732SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8733 PyObject *resultobj = 0;
8734 wxIcon *arg1 = (wxIcon *) 0 ;
8735 void *argp1 = 0 ;
8736 int res1 = 0 ;
8737 PyObject *swig_obj[1] ;
8738
8739 if (!args) SWIG_fail;
8740 swig_obj[0] = args;
8741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8742 if (!SWIG_IsOK(res1)) {
8743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8744 }
8745 arg1 = reinterpret_cast< wxIcon * >(argp1);
8746 {
8747 PyThreadState* __tstate = wxPyBeginAllowThreads();
8748 delete arg1;
d14a1e28 8749
0085ce49
RD
8750 wxPyEndAllowThreads(__tstate);
8751 if (PyErr_Occurred()) SWIG_fail;
8752 }
8753 resultobj = SWIG_Py_Void();
8754 return resultobj;
8755fail:
8756 return NULL;
d14a1e28
RD
8757}
8758
8759
0085ce49
RD
8760SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8761 PyObject *resultobj = 0;
8762 wxIcon *result = 0 ;
8763
8764 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8765 {
8766 if (!wxPyCheckForApp()) SWIG_fail;
8767 PyThreadState* __tstate = wxPyBeginAllowThreads();
8768 result = (wxIcon *)new wxIcon();
8769 wxPyEndAllowThreads(__tstate);
8770 if (PyErr_Occurred()) SWIG_fail;
8771 }
8772 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8773 return resultobj;
8774fail:
8775 return NULL;
8776}
8777
8778
8779SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8780 PyObject *resultobj = 0;
8781 wxIconLocation *arg1 = 0 ;
8782 wxIcon *result = 0 ;
8783 void *argp1 = 0 ;
8784 int res1 = 0 ;
8785 PyObject * obj0 = 0 ;
8786 char * kwnames[] = {
8787 (char *) "loc", NULL
8788 };
8789
8790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8791 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8792 if (!SWIG_IsOK(res1)) {
8793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8794 }
8795 if (!argp1) {
8796 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8797 }
8798 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8799 {
8800 if (!wxPyCheckForApp()) SWIG_fail;
8801 PyThreadState* __tstate = wxPyBeginAllowThreads();
8802 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8803 wxPyEndAllowThreads(__tstate);
8804 if (PyErr_Occurred()) SWIG_fail;
8805 }
8806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8807 return resultobj;
8808fail:
8809 return NULL;
8810}
8811
8812
8813SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8814 PyObject *resultobj = 0;
8815 wxBitmap *arg1 = 0 ;
8816 wxIcon *result = 0 ;
8817 void *argp1 = 0 ;
8818 int res1 = 0 ;
8819 PyObject * obj0 = 0 ;
8820 char * kwnames[] = {
8821 (char *) "bmp", NULL
8822 };
8823
8824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8825 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8826 if (!SWIG_IsOK(res1)) {
8827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8828 }
8829 if (!argp1) {
8830 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8831 }
8832 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8833 {
8834 if (!wxPyCheckForApp()) SWIG_fail;
8835 PyThreadState* __tstate = wxPyBeginAllowThreads();
8836 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8837 wxPyEndAllowThreads(__tstate);
8838 if (PyErr_Occurred()) SWIG_fail;
8839 }
8840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8841 return resultobj;
8842fail:
8843 return NULL;
d14a1e28
RD
8844}
8845
8846
0085ce49
RD
8847SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8848 PyObject *resultobj = 0;
8849 PyObject *arg1 = (PyObject *) 0 ;
8850 wxIcon *result = 0 ;
8851 PyObject * obj0 = 0 ;
8852 char * kwnames[] = {
8853 (char *) "listOfStrings", NULL
8854 };
8855
8856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8857 arg1 = obj0;
8858 {
8859 if (!wxPyCheckForApp()) SWIG_fail;
8860 PyThreadState* __tstate = wxPyBeginAllowThreads();
8861 result = (wxIcon *)new_wxIcon(arg1);
8862 wxPyEndAllowThreads(__tstate);
8863 if (PyErr_Occurred()) SWIG_fail;
8864 }
8865 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8866 return resultobj;
8867fail:
8868 return NULL;
8869}
8870
8871
8872SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8873 PyObject *resultobj = 0;
8874 wxIcon *arg1 = (wxIcon *) 0 ;
8875 wxString *arg2 = 0 ;
8876 wxBitmapType arg3 ;
8877 bool result;
8878 void *argp1 = 0 ;
8879 int res1 = 0 ;
8880 bool temp2 = false ;
8881 int val3 ;
8882 int ecode3 = 0 ;
8883 PyObject * obj0 = 0 ;
8884 PyObject * obj1 = 0 ;
8885 PyObject * obj2 = 0 ;
8886 char * kwnames[] = {
8887 (char *) "self",(char *) "name",(char *) "type", NULL
8888 };
8889
8890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8892 if (!SWIG_IsOK(res1)) {
8893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
8894 }
8895 arg1 = reinterpret_cast< wxIcon * >(argp1);
8896 {
8897 arg2 = wxString_in_helper(obj1);
8898 if (arg2 == NULL) SWIG_fail;
8899 temp2 = true;
8900 }
8901 ecode3 = SWIG_AsVal_int(obj2, &val3);
8902 if (!SWIG_IsOK(ecode3)) {
8903 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
8904 }
8905 arg3 = static_cast< wxBitmapType >(val3);
8906 {
8907 PyThreadState* __tstate = wxPyBeginAllowThreads();
8908 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
8909 wxPyEndAllowThreads(__tstate);
8910 if (PyErr_Occurred()) SWIG_fail;
8911 }
8912 {
8913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8914 }
8915 {
8916 if (temp2)
8917 delete arg2;
8918 }
8919 return resultobj;
8920fail:
8921 {
8922 if (temp2)
8923 delete arg2;
8924 }
8925 return NULL;
d14a1e28
RD
8926}
8927
8928
0085ce49
RD
8929SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8930 PyObject *resultobj = 0;
8931 wxIcon *arg1 = (wxIcon *) 0 ;
8932 bool result;
8933 void *argp1 = 0 ;
8934 int res1 = 0 ;
8935 PyObject *swig_obj[1] ;
8936
8937 if (!args) SWIG_fail;
8938 swig_obj[0] = args;
8939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8940 if (!SWIG_IsOK(res1)) {
8941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
8942 }
8943 arg1 = reinterpret_cast< wxIcon * >(argp1);
8944 {
8945 PyThreadState* __tstate = wxPyBeginAllowThreads();
8946 result = (bool)(arg1)->Ok();
8947 wxPyEndAllowThreads(__tstate);
8948 if (PyErr_Occurred()) SWIG_fail;
8949 }
8950 {
8951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8952 }
8953 return resultobj;
8954fail:
8955 return NULL;
d14a1e28
RD
8956}
8957
8958
0085ce49
RD
8959SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8960 PyObject *resultobj = 0;
8961 wxIcon *arg1 = (wxIcon *) 0 ;
8962 int result;
8963 void *argp1 = 0 ;
8964 int res1 = 0 ;
8965 PyObject *swig_obj[1] ;
8966
8967 if (!args) SWIG_fail;
8968 swig_obj[0] = args;
8969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8970 if (!SWIG_IsOK(res1)) {
8971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8972 }
8973 arg1 = reinterpret_cast< wxIcon * >(argp1);
8974 {
8975 PyThreadState* __tstate = wxPyBeginAllowThreads();
8976 result = (int)(arg1)->GetWidth();
8977 wxPyEndAllowThreads(__tstate);
8978 if (PyErr_Occurred()) SWIG_fail;
8979 }
8980 resultobj = SWIG_From_int(static_cast< int >(result));
8981 return resultobj;
8982fail:
8983 return NULL;
d3b6e4ff
RD
8984}
8985
8986
0085ce49
RD
8987SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8988 PyObject *resultobj = 0;
8989 wxIcon *arg1 = (wxIcon *) 0 ;
8990 int result;
8991 void *argp1 = 0 ;
8992 int res1 = 0 ;
8993 PyObject *swig_obj[1] ;
8994
8995 if (!args) SWIG_fail;
8996 swig_obj[0] = args;
8997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8998 if (!SWIG_IsOK(res1)) {
8999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9000 }
9001 arg1 = reinterpret_cast< wxIcon * >(argp1);
9002 {
9003 PyThreadState* __tstate = wxPyBeginAllowThreads();
9004 result = (int)(arg1)->GetHeight();
9005 wxPyEndAllowThreads(__tstate);
9006 if (PyErr_Occurred()) SWIG_fail;
9007 }
9008 resultobj = SWIG_From_int(static_cast< int >(result));
9009 return resultobj;
9010fail:
9011 return NULL;
d14a1e28
RD
9012}
9013
9014
0085ce49
RD
9015SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9016 PyObject *resultobj = 0;
9017 wxIcon *arg1 = (wxIcon *) 0 ;
9018 int result;
9019 void *argp1 = 0 ;
9020 int res1 = 0 ;
9021 PyObject *swig_obj[1] ;
9022
9023 if (!args) SWIG_fail;
9024 swig_obj[0] = args;
9025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9026 if (!SWIG_IsOK(res1)) {
9027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9028 }
9029 arg1 = reinterpret_cast< wxIcon * >(argp1);
9030 {
9031 PyThreadState* __tstate = wxPyBeginAllowThreads();
9032 result = (int)(arg1)->GetDepth();
9033 wxPyEndAllowThreads(__tstate);
9034 if (PyErr_Occurred()) SWIG_fail;
9035 }
9036 resultobj = SWIG_From_int(static_cast< int >(result));
9037 return resultobj;
9038fail:
9039 return NULL;
9040}
9041
9042
9043SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9044 PyObject *resultobj = 0;
9045 wxIcon *arg1 = (wxIcon *) 0 ;
9046 int arg2 ;
9047 void *argp1 = 0 ;
9048 int res1 = 0 ;
9049 int val2 ;
9050 int ecode2 = 0 ;
9051 PyObject * obj0 = 0 ;
9052 PyObject * obj1 = 0 ;
9053 char * kwnames[] = {
9054 (char *) "self",(char *) "w", NULL
9055 };
9056
9057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9059 if (!SWIG_IsOK(res1)) {
9060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9061 }
9062 arg1 = reinterpret_cast< wxIcon * >(argp1);
9063 ecode2 = SWIG_AsVal_int(obj1, &val2);
9064 if (!SWIG_IsOK(ecode2)) {
9065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9066 }
9067 arg2 = static_cast< int >(val2);
9068 {
9069 PyThreadState* __tstate = wxPyBeginAllowThreads();
9070 (arg1)->SetWidth(arg2);
9071 wxPyEndAllowThreads(__tstate);
9072 if (PyErr_Occurred()) SWIG_fail;
9073 }
9074 resultobj = SWIG_Py_Void();
9075 return resultobj;
9076fail:
9077 return NULL;
9078}
9079
9080
9081SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9082 PyObject *resultobj = 0;
9083 wxIcon *arg1 = (wxIcon *) 0 ;
9084 int arg2 ;
9085 void *argp1 = 0 ;
9086 int res1 = 0 ;
9087 int val2 ;
9088 int ecode2 = 0 ;
9089 PyObject * obj0 = 0 ;
9090 PyObject * obj1 = 0 ;
9091 char * kwnames[] = {
9092 (char *) "self",(char *) "h", NULL
9093 };
9094
9095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9097 if (!SWIG_IsOK(res1)) {
9098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9099 }
9100 arg1 = reinterpret_cast< wxIcon * >(argp1);
9101 ecode2 = SWIG_AsVal_int(obj1, &val2);
9102 if (!SWIG_IsOK(ecode2)) {
9103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9104 }
9105 arg2 = static_cast< int >(val2);
9106 {
9107 PyThreadState* __tstate = wxPyBeginAllowThreads();
9108 (arg1)->SetHeight(arg2);
9109 wxPyEndAllowThreads(__tstate);
9110 if (PyErr_Occurred()) SWIG_fail;
9111 }
9112 resultobj = SWIG_Py_Void();
9113 return resultobj;
9114fail:
9115 return NULL;
9116}
9117
9118
9119SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9120 PyObject *resultobj = 0;
9121 wxIcon *arg1 = (wxIcon *) 0 ;
9122 int arg2 ;
9123 void *argp1 = 0 ;
9124 int res1 = 0 ;
9125 int val2 ;
9126 int ecode2 = 0 ;
9127 PyObject * obj0 = 0 ;
9128 PyObject * obj1 = 0 ;
9129 char * kwnames[] = {
9130 (char *) "self",(char *) "d", NULL
9131 };
9132
9133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9135 if (!SWIG_IsOK(res1)) {
9136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9137 }
9138 arg1 = reinterpret_cast< wxIcon * >(argp1);
9139 ecode2 = SWIG_AsVal_int(obj1, &val2);
9140 if (!SWIG_IsOK(ecode2)) {
9141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9142 }
9143 arg2 = static_cast< int >(val2);
9144 {
9145 PyThreadState* __tstate = wxPyBeginAllowThreads();
9146 (arg1)->SetDepth(arg2);
9147 wxPyEndAllowThreads(__tstate);
9148 if (PyErr_Occurred()) SWIG_fail;
9149 }
9150 resultobj = SWIG_Py_Void();
9151 return resultobj;
9152fail:
9153 return NULL;
9154}
9155
9156
9157SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9158 PyObject *resultobj = 0;
9159 wxIcon *arg1 = (wxIcon *) 0 ;
9160 wxBitmap *arg2 = 0 ;
9161 void *argp1 = 0 ;
9162 int res1 = 0 ;
9163 void *argp2 = 0 ;
9164 int res2 = 0 ;
9165 PyObject * obj0 = 0 ;
9166 PyObject * obj1 = 0 ;
9167 char * kwnames[] = {
9168 (char *) "self",(char *) "bmp", NULL
9169 };
9170
9171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9173 if (!SWIG_IsOK(res1)) {
9174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9175 }
9176 arg1 = reinterpret_cast< wxIcon * >(argp1);
9177 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9178 if (!SWIG_IsOK(res2)) {
9179 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9180 }
9181 if (!argp2) {
9182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9183 }
9184 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9185 {
9186 PyThreadState* __tstate = wxPyBeginAllowThreads();
9187 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9188 wxPyEndAllowThreads(__tstate);
9189 if (PyErr_Occurred()) SWIG_fail;
9190 }
9191 resultobj = SWIG_Py_Void();
9192 return resultobj;
9193fail:
9194 return NULL;
d14a1e28
RD
9195}
9196
9197
0085ce49
RD
9198SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9199 PyObject *obj;
9200 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9201 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9202 return SWIG_Py_Void();
d14a1e28
RD
9203}
9204
0085ce49
RD
9205SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9206 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
9207}
9208
0085ce49
RD
9209SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9210 PyObject *resultobj = 0;
9211 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9212 int arg2 = (int) 0 ;
9213 wxIconLocation *result = 0 ;
9214 bool temp1 = false ;
9215 int val2 ;
9216 int ecode2 = 0 ;
9217 PyObject * obj0 = 0 ;
9218 PyObject * obj1 = 0 ;
9219 char * kwnames[] = {
9220 (char *) "filename",(char *) "num", NULL
9221 };
9222
9223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9224 if (obj0) {
b2df227b 9225 {
0085ce49
RD
9226 arg1 = wxString_in_helper(obj0);
9227 if (arg1 == NULL) SWIG_fail;
9228 temp1 = true;
b2df227b 9229 }
0085ce49
RD
9230 }
9231 if (obj1) {
9232 ecode2 = SWIG_AsVal_int(obj1, &val2);
9233 if (!SWIG_IsOK(ecode2)) {
9234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9235 }
9236 arg2 = static_cast< int >(val2);
9237 }
9238 {
9239 PyThreadState* __tstate = wxPyBeginAllowThreads();
9240 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9241 wxPyEndAllowThreads(__tstate);
9242 if (PyErr_Occurred()) SWIG_fail;
9243 }
9244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9245 {
9246 if (temp1)
9247 delete arg1;
9248 }
9249 return resultobj;
9250fail:
9251 {
9252 if (temp1)
9253 delete arg1;
9254 }
9255 return NULL;
b2df227b
RD
9256}
9257
9258
0085ce49
RD
9259SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9260 PyObject *resultobj = 0;
9261 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9262 void *argp1 = 0 ;
9263 int res1 = 0 ;
9264 PyObject *swig_obj[1] ;
9265
9266 if (!args) SWIG_fail;
9267 swig_obj[0] = args;
9268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9269 if (!SWIG_IsOK(res1)) {
9270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9271 }
9272 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9273 {
9274 PyThreadState* __tstate = wxPyBeginAllowThreads();
9275 delete arg1;
4276dc52 9276
0085ce49
RD
9277 wxPyEndAllowThreads(__tstate);
9278 if (PyErr_Occurred()) SWIG_fail;
9279 }
9280 resultobj = SWIG_Py_Void();
9281 return resultobj;
9282fail:
9283 return NULL;
4276dc52
RD
9284}
9285
9286
0085ce49
RD
9287SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9288 PyObject *resultobj = 0;
9289 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9290 bool result;
9291 void *argp1 = 0 ;
9292 int res1 = 0 ;
9293 PyObject *swig_obj[1] ;
9294
9295 if (!args) SWIG_fail;
9296 swig_obj[0] = args;
9297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9298 if (!SWIG_IsOK(res1)) {
9299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9300 }
9301 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9302 {
9303 PyThreadState* __tstate = wxPyBeginAllowThreads();
9304 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9305 wxPyEndAllowThreads(__tstate);
9306 if (PyErr_Occurred()) SWIG_fail;
9307 }
9308 {
9309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9310 }
9311 return resultobj;
9312fail:
9313 return NULL;
9314}
9315
9316
9317SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9318 PyObject *resultobj = 0;
9319 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9320 wxString *arg2 = 0 ;
9321 void *argp1 = 0 ;
9322 int res1 = 0 ;
9323 bool temp2 = false ;
9324 PyObject * obj0 = 0 ;
9325 PyObject * obj1 = 0 ;
9326 char * kwnames[] = {
9327 (char *) "self",(char *) "filename", NULL
9328 };
9329
9330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9332 if (!SWIG_IsOK(res1)) {
9333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9334 }
9335 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9336 {
9337 arg2 = wxString_in_helper(obj1);
9338 if (arg2 == NULL) SWIG_fail;
9339 temp2 = true;
9340 }
9341 {
9342 PyThreadState* __tstate = wxPyBeginAllowThreads();
9343 (arg1)->SetFileName((wxString const &)*arg2);
9344 wxPyEndAllowThreads(__tstate);
9345 if (PyErr_Occurred()) SWIG_fail;
9346 }
9347 resultobj = SWIG_Py_Void();
9348 {
9349 if (temp2)
9350 delete arg2;
9351 }
9352 return resultobj;
9353fail:
9354 {
9355 if (temp2)
9356 delete arg2;
9357 }
9358 return NULL;
4276dc52
RD
9359}
9360
9361
0085ce49
RD
9362SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9363 PyObject *resultobj = 0;
9364 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9365 wxString *result = 0 ;
9366 void *argp1 = 0 ;
9367 int res1 = 0 ;
9368 PyObject *swig_obj[1] ;
9369
9370 if (!args) SWIG_fail;
9371 swig_obj[0] = args;
9372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9373 if (!SWIG_IsOK(res1)) {
9374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9375 }
9376 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9377 {
9378 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9379 {
0085ce49
RD
9380 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9381 result = (wxString *) &_result_ref;
093d3ff1 9382 }
0085ce49
RD
9383 wxPyEndAllowThreads(__tstate);
9384 if (PyErr_Occurred()) SWIG_fail;
9385 }
9386 {
9387#if wxUSE_UNICODE
9388 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9389#else
9390 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9391#endif
9392 }
9393 return resultobj;
9394fail:
9395 return NULL;
9396}
9397
9398
9399SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9400 PyObject *resultobj = 0;
9401 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9402 int arg2 ;
9403 void *argp1 = 0 ;
9404 int res1 = 0 ;
9405 int val2 ;
9406 int ecode2 = 0 ;
9407 PyObject * obj0 = 0 ;
9408 PyObject * obj1 = 0 ;
9409 char * kwnames[] = {
9410 (char *) "self",(char *) "num", NULL
9411 };
9412
9413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9415 if (!SWIG_IsOK(res1)) {
9416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9417 }
9418 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9419 ecode2 = SWIG_AsVal_int(obj1, &val2);
9420 if (!SWIG_IsOK(ecode2)) {
9421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9422 }
9423 arg2 = static_cast< int >(val2);
9424 {
9425 PyThreadState* __tstate = wxPyBeginAllowThreads();
9426 wxIconLocation_SetIndex(arg1,arg2);
9427 wxPyEndAllowThreads(__tstate);
9428 if (PyErr_Occurred()) SWIG_fail;
9429 }
9430 resultobj = SWIG_Py_Void();
9431 return resultobj;
9432fail:
9433 return NULL;
d14a1e28
RD
9434}
9435
9436
0085ce49
RD
9437SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9438 PyObject *resultobj = 0;
9439 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9440 int result;
9441 void *argp1 = 0 ;
9442 int res1 = 0 ;
9443 PyObject *swig_obj[1] ;
9444
9445 if (!args) SWIG_fail;
9446 swig_obj[0] = args;
9447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9448 if (!SWIG_IsOK(res1)) {
9449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9450 }
9451 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9452 {
9453 PyThreadState* __tstate = wxPyBeginAllowThreads();
9454 result = (int)wxIconLocation_GetIndex(arg1);
9455 wxPyEndAllowThreads(__tstate);
9456 if (PyErr_Occurred()) SWIG_fail;
9457 }
9458 resultobj = SWIG_From_int(static_cast< int >(result));
9459 return resultobj;
9460fail:
9461 return NULL;
d14a1e28
RD
9462}
9463
9464
0085ce49
RD
9465SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9466 PyObject *obj;
9467 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9468 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9469 return SWIG_Py_Void();
d14a1e28
RD
9470}
9471
0085ce49
RD
9472SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9473 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
9474}
9475
0085ce49
RD
9476SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9477 PyObject *resultobj = 0;
9478 wxIconBundle *result = 0 ;
9479
9480 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9481 {
9482 PyThreadState* __tstate = wxPyBeginAllowThreads();
9483 result = (wxIconBundle *)new wxIconBundle();
9484 wxPyEndAllowThreads(__tstate);
9485 if (PyErr_Occurred()) SWIG_fail;
9486 }
9487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9488 return resultobj;
9489fail:
9490 return NULL;
9491}
9492
9493
9494SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9495 PyObject *resultobj = 0;
9496 wxString *arg1 = 0 ;
9497 long arg2 ;
9498 wxIconBundle *result = 0 ;
9499 bool temp1 = false ;
9500 long val2 ;
9501 int ecode2 = 0 ;
9502 PyObject * obj0 = 0 ;
9503 PyObject * obj1 = 0 ;
9504 char * kwnames[] = {
9505 (char *) "file",(char *) "type", NULL
9506 };
9507
9508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9509 {
9510 arg1 = wxString_in_helper(obj0);
9511 if (arg1 == NULL) SWIG_fail;
9512 temp1 = true;
9513 }
9514 ecode2 = SWIG_AsVal_long(obj1, &val2);
9515 if (!SWIG_IsOK(ecode2)) {
9516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9517 }
9518 arg2 = static_cast< long >(val2);
9519 {
9520 PyThreadState* __tstate = wxPyBeginAllowThreads();
9521 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9522 wxPyEndAllowThreads(__tstate);
9523 if (PyErr_Occurred()) SWIG_fail;
9524 }
9525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9526 {
9527 if (temp1)
9528 delete arg1;
9529 }
9530 return resultobj;
9531fail:
9532 {
9533 if (temp1)
9534 delete arg1;
9535 }
9536 return NULL;
d14a1e28
RD
9537}
9538
9539
0085ce49
RD
9540SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9541 PyObject *resultobj = 0;
9542 wxIcon *arg1 = 0 ;
9543 wxIconBundle *result = 0 ;
9544 void *argp1 = 0 ;
9545 int res1 = 0 ;
9546 PyObject * obj0 = 0 ;
9547 char * kwnames[] = {
9548 (char *) "icon", NULL
9549 };
9550
9551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9552 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9553 if (!SWIG_IsOK(res1)) {
9554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9555 }
9556 if (!argp1) {
9557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9558 }
9559 arg1 = reinterpret_cast< wxIcon * >(argp1);
9560 {
9561 PyThreadState* __tstate = wxPyBeginAllowThreads();
9562 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9563 wxPyEndAllowThreads(__tstate);
9564 if (PyErr_Occurred()) SWIG_fail;
9565 }
9566 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9567 return resultobj;
9568fail:
9569 return NULL;
d14a1e28
RD
9570}
9571
9572
0085ce49
RD
9573SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9574 PyObject *resultobj = 0;
9575 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9576 void *argp1 = 0 ;
9577 int res1 = 0 ;
9578 PyObject *swig_obj[1] ;
9579
9580 if (!args) SWIG_fail;
9581 swig_obj[0] = args;
9582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9583 if (!SWIG_IsOK(res1)) {
9584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9585 }
9586 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9587 {
9588 PyThreadState* __tstate = wxPyBeginAllowThreads();
9589 delete arg1;
d14a1e28 9590
0085ce49
RD
9591 wxPyEndAllowThreads(__tstate);
9592 if (PyErr_Occurred()) SWIG_fail;
9593 }
9594 resultobj = SWIG_Py_Void();
9595 return resultobj;
9596fail:
9597 return NULL;
9598}
9599
9600
9601SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9602 PyObject *resultobj = 0;
9603 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9604 wxIcon *arg2 = 0 ;
9605 void *argp1 = 0 ;
9606 int res1 = 0 ;
9607 void *argp2 = 0 ;
9608 int res2 = 0 ;
9609 PyObject * obj0 = 0 ;
9610 PyObject * obj1 = 0 ;
9611 char * kwnames[] = {
9612 (char *) "self",(char *) "icon", NULL
9613 };
9614
9615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9617 if (!SWIG_IsOK(res1)) {
9618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9619 }
9620 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9621 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9622 if (!SWIG_IsOK(res2)) {
9623 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9624 }
9625 if (!argp2) {
9626 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9627 }
9628 arg2 = reinterpret_cast< wxIcon * >(argp2);
9629 {
9630 PyThreadState* __tstate = wxPyBeginAllowThreads();
9631 (arg1)->AddIcon((wxIcon const &)*arg2);
9632 wxPyEndAllowThreads(__tstate);
9633 if (PyErr_Occurred()) SWIG_fail;
9634 }
9635 resultobj = SWIG_Py_Void();
9636 return resultobj;
9637fail:
9638 return NULL;
9639}
9640
9641
9642SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9643 PyObject *resultobj = 0;
9644 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9645 wxString *arg2 = 0 ;
9646 long arg3 ;
9647 void *argp1 = 0 ;
9648 int res1 = 0 ;
9649 bool temp2 = false ;
9650 long val3 ;
9651 int ecode3 = 0 ;
9652 PyObject * obj0 = 0 ;
9653 PyObject * obj1 = 0 ;
9654 PyObject * obj2 = 0 ;
9655 char * kwnames[] = {
9656 (char *) "self",(char *) "file",(char *) "type", NULL
9657 };
9658
9659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9661 if (!SWIG_IsOK(res1)) {
9662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9663 }
9664 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9665 {
9666 arg2 = wxString_in_helper(obj1);
9667 if (arg2 == NULL) SWIG_fail;
9668 temp2 = true;
9669 }
9670 ecode3 = SWIG_AsVal_long(obj2, &val3);
9671 if (!SWIG_IsOK(ecode3)) {
9672 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9673 }
9674 arg3 = static_cast< long >(val3);
9675 {
9676 PyThreadState* __tstate = wxPyBeginAllowThreads();
9677 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9678 wxPyEndAllowThreads(__tstate);
9679 if (PyErr_Occurred()) SWIG_fail;
9680 }
9681 resultobj = SWIG_Py_Void();
9682 {
9683 if (temp2)
9684 delete arg2;
9685 }
9686 return resultobj;
9687fail:
9688 {
9689 if (temp2)
9690 delete arg2;
9691 }
9692 return NULL;
9693}
9694
9695
9696SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9697 PyObject *resultobj = 0;
9698 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9699 wxSize *arg2 = 0 ;
9700 wxIcon *result = 0 ;
9701 void *argp1 = 0 ;
9702 int res1 = 0 ;
9703 wxSize temp2 ;
9704 PyObject * obj0 = 0 ;
9705 PyObject * obj1 = 0 ;
9706 char * kwnames[] = {
9707 (char *) "self",(char *) "size", NULL
9708 };
9709
9710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9712 if (!SWIG_IsOK(res1)) {
9713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9714 }
9715 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9716 {
9717 arg2 = &temp2;
9718 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9719 }
9720 {
9721 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 9722 {
0085ce49
RD
9723 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9724 result = (wxIcon *) &_result_ref;
d14a1e28 9725 }
0085ce49
RD
9726 wxPyEndAllowThreads(__tstate);
9727 if (PyErr_Occurred()) SWIG_fail;
9728 }
9729 {
9730 wxIcon* resultptr = new wxIcon(*result);
9731 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9732 }
9733 return resultobj;
9734fail:
9735 return NULL;
9736}
9737
9738
9739SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9740 PyObject *obj;
9741 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9742 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9743 return SWIG_Py_Void();
9744}
9745
9746SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9747 return SWIG_Python_InitShadowInstance(args);
9748}
9749
9750SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9751 PyObject *resultobj = 0;
9752 wxString *arg1 = 0 ;
9753 long arg2 ;
9754 int arg3 = (int) 0 ;
9755 int arg4 = (int) 0 ;
9756 wxCursor *result = 0 ;
9757 bool temp1 = false ;
9758 long val2 ;
9759 int ecode2 = 0 ;
9760 int val3 ;
9761 int ecode3 = 0 ;
9762 int val4 ;
9763 int ecode4 = 0 ;
9764 PyObject * obj0 = 0 ;
9765 PyObject * obj1 = 0 ;
9766 PyObject * obj2 = 0 ;
9767 PyObject * obj3 = 0 ;
9768 char * kwnames[] = {
9769 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9770 };
9771
9772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9773 {
9774 arg1 = wxString_in_helper(obj0);
9775 if (arg1 == NULL) SWIG_fail;
9776 temp1 = true;
9777 }
9778 ecode2 = SWIG_AsVal_long(obj1, &val2);
9779 if (!SWIG_IsOK(ecode2)) {
9780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9781 }
9782 arg2 = static_cast< long >(val2);
9783 if (obj2) {
9784 ecode3 = SWIG_AsVal_int(obj2, &val3);
9785 if (!SWIG_IsOK(ecode3)) {
9786 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9787 }
9788 arg3 = static_cast< int >(val3);
9789 }
9790 if (obj3) {
9791 ecode4 = SWIG_AsVal_int(obj3, &val4);
9792 if (!SWIG_IsOK(ecode4)) {
9793 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9794 }
9795 arg4 = static_cast< int >(val4);
9796 }
9797 {
9798 if (!wxPyCheckForApp()) SWIG_fail;
9799 PyThreadState* __tstate = wxPyBeginAllowThreads();
9800 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9801 wxPyEndAllowThreads(__tstate);
9802 if (PyErr_Occurred()) SWIG_fail;
9803 }
9804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9805 {
9806 if (temp1)
9807 delete arg1;
9808 }
9809 return resultobj;
9810fail:
9811 {
9812 if (temp1)
9813 delete arg1;
9814 }
9815 return NULL;
d14a1e28
RD
9816}
9817
9818
0085ce49
RD
9819SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9820 PyObject *resultobj = 0;
9821 wxCursor *arg1 = (wxCursor *) 0 ;
9822 void *argp1 = 0 ;
9823 int res1 = 0 ;
9824 PyObject *swig_obj[1] ;
9825
9826 if (!args) SWIG_fail;
9827 swig_obj[0] = args;
9828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
9829 if (!SWIG_IsOK(res1)) {
9830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
9831 }
9832 arg1 = reinterpret_cast< wxCursor * >(argp1);
9833 {
9834 PyThreadState* __tstate = wxPyBeginAllowThreads();
9835 delete arg1;
093d3ff1 9836
0085ce49
RD
9837 wxPyEndAllowThreads(__tstate);
9838 if (PyErr_Occurred()) SWIG_fail;
9839 }
9840 resultobj = SWIG_Py_Void();
9841 return resultobj;
9842fail:
9843 return NULL;
9844}
9845
9846
9847SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9848 PyObject *resultobj = 0;
9849 int arg1 ;
9850 wxCursor *result = 0 ;
9851 int val1 ;
9852 int ecode1 = 0 ;
9853 PyObject * obj0 = 0 ;
9854 char * kwnames[] = {
9855 (char *) "id", NULL
9856 };
9857
9858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
9859 ecode1 = SWIG_AsVal_int(obj0, &val1);
9860 if (!SWIG_IsOK(ecode1)) {
9861 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
9862 }
9863 arg1 = static_cast< int >(val1);
9864 {
9865 if (!wxPyCheckForApp()) SWIG_fail;
9866 PyThreadState* __tstate = wxPyBeginAllowThreads();
9867 result = (wxCursor *)new wxCursor(arg1);
9868 wxPyEndAllowThreads(__tstate);
9869 if (PyErr_Occurred()) SWIG_fail;
9870 }
9871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9872 return resultobj;
9873fail:
9874 return NULL;
9875}
9876
9877
9878SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9879 PyObject *resultobj = 0;
9880 wxImage *arg1 = 0 ;
9881 wxCursor *result = 0 ;
9882 void *argp1 = 0 ;
9883 int res1 = 0 ;
9884 PyObject * obj0 = 0 ;
9885 char * kwnames[] = {
9886 (char *) "image", NULL
9887 };
9888
9889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
9890 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
9891 if (!SWIG_IsOK(res1)) {
9892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9893 }
9894 if (!argp1) {
9895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9896 }
9897 arg1 = reinterpret_cast< wxImage * >(argp1);
9898 {
9899 if (!wxPyCheckForApp()) SWIG_fail;
9900 PyThreadState* __tstate = wxPyBeginAllowThreads();
9901 result = (wxCursor *)new wxCursor((wxImage const &)*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;
093d3ff1
RD
9909}
9910
9911
0085ce49
RD
9912SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9913 PyObject *resultobj = 0;
9914 wxCursor *arg1 = (wxCursor *) 0 ;
9915 bool result;
9916 void *argp1 = 0 ;
9917 int res1 = 0 ;
9918 PyObject *swig_obj[1] ;
9919
9920 if (!args) SWIG_fail;
9921 swig_obj[0] = args;
9922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
9923 if (!SWIG_IsOK(res1)) {
9924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
9925 }
9926 arg1 = reinterpret_cast< wxCursor * >(argp1);
9927 {
9928 PyThreadState* __tstate = wxPyBeginAllowThreads();
9929 result = (bool)(arg1)->Ok();
9930 wxPyEndAllowThreads(__tstate);
9931 if (PyErr_Occurred()) SWIG_fail;
9932 }
9933 {
9934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9935 }
9936 return resultobj;
9937fail:
9938 return NULL;
9939}
9940
9941
9942SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9943 PyObject *obj;
9944 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9945 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
9946 return SWIG_Py_Void();
9947}
9948
9949SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9950 return SWIG_Python_InitShadowInstance(args);
9951}
9952
9953SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9954 PyObject *resultobj = 0;
9955 int arg1 = (int) 0 ;
9956 int arg2 = (int) 0 ;
9957 int arg3 = (int) 0 ;
9958 int arg4 = (int) 0 ;
9959 wxRegion *result = 0 ;
9960 int val1 ;
9961 int ecode1 = 0 ;
9962 int val2 ;
9963 int ecode2 = 0 ;
9964 int val3 ;
9965 int ecode3 = 0 ;
9966 int val4 ;
9967 int ecode4 = 0 ;
9968 PyObject * obj0 = 0 ;
9969 PyObject * obj1 = 0 ;
9970 PyObject * obj2 = 0 ;
9971 PyObject * obj3 = 0 ;
9972 char * kwnames[] = {
9973 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9974 };
9975
9976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9977 if (obj0) {
9978 ecode1 = SWIG_AsVal_int(obj0, &val1);
9979 if (!SWIG_IsOK(ecode1)) {
9980 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
9981 }
9982 arg1 = static_cast< int >(val1);
9983 }
9984 if (obj1) {
9985 ecode2 = SWIG_AsVal_int(obj1, &val2);
9986 if (!SWIG_IsOK(ecode2)) {
9987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
9988 }
9989 arg2 = static_cast< int >(val2);
9990 }
9991 if (obj2) {
9992 ecode3 = SWIG_AsVal_int(obj2, &val3);
9993 if (!SWIG_IsOK(ecode3)) {
9994 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
9995 }
9996 arg3 = static_cast< int >(val3);
9997 }
9998 if (obj3) {
9999 ecode4 = SWIG_AsVal_int(obj3, &val4);
10000 if (!SWIG_IsOK(ecode4)) {
10001 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10002 }
10003 arg4 = static_cast< int >(val4);
10004 }
10005 {
10006 if (!wxPyCheckForApp()) SWIG_fail;
10007 PyThreadState* __tstate = wxPyBeginAllowThreads();
10008 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10009 wxPyEndAllowThreads(__tstate);
10010 if (PyErr_Occurred()) SWIG_fail;
10011 }
10012 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10013 return resultobj;
10014fail:
10015 return NULL;
10016}
10017
10018
10019SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10020 PyObject *resultobj = 0;
10021 wxBitmap *arg1 = 0 ;
10022 wxRegion *result = 0 ;
10023 void *argp1 = 0 ;
10024 int res1 = 0 ;
10025 PyObject * obj0 = 0 ;
10026 char * kwnames[] = {
10027 (char *) "bmp", NULL
10028 };
10029
10030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10031 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10032 if (!SWIG_IsOK(res1)) {
10033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10034 }
10035 if (!argp1) {
10036 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10037 }
10038 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10039 {
10040 if (!wxPyCheckForApp()) SWIG_fail;
10041 PyThreadState* __tstate = wxPyBeginAllowThreads();
10042 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10043 wxPyEndAllowThreads(__tstate);
10044 if (PyErr_Occurred()) SWIG_fail;
10045 }
10046 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10047 return resultobj;
10048fail:
10049 return NULL;
10050}
10051
10052
10053SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10054 PyObject *resultobj = 0;
10055 wxBitmap *arg1 = 0 ;
10056 wxColour *arg2 = 0 ;
10057 int arg3 = (int) 0 ;
10058 wxRegion *result = 0 ;
10059 void *argp1 = 0 ;
10060 int res1 = 0 ;
10061 wxColour temp2 ;
10062 int val3 ;
10063 int ecode3 = 0 ;
10064 PyObject * obj0 = 0 ;
10065 PyObject * obj1 = 0 ;
10066 PyObject * obj2 = 0 ;
10067 char * kwnames[] = {
10068 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10069 };
10070
10071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10072 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10073 if (!SWIG_IsOK(res1)) {
10074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10075 }
10076 if (!argp1) {
10077 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10078 }
10079 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10080 {
10081 arg2 = &temp2;
10082 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10083 }
10084 if (obj2) {
10085 ecode3 = SWIG_AsVal_int(obj2, &val3);
10086 if (!SWIG_IsOK(ecode3)) {
10087 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10088 }
10089 arg3 = static_cast< int >(val3);
10090 }
10091 {
10092 if (!wxPyCheckForApp()) SWIG_fail;
10093 PyThreadState* __tstate = wxPyBeginAllowThreads();
10094 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10095 wxPyEndAllowThreads(__tstate);
10096 if (PyErr_Occurred()) SWIG_fail;
10097 }
10098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10099 return resultobj;
10100fail:
10101 return NULL;
10102}
10103
10104
10105SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10106 PyObject *resultobj = 0;
10107 int arg1 ;
10108 wxPoint *arg2 = (wxPoint *) 0 ;
10109 int arg3 = (int) wxWINDING_RULE ;
10110 wxRegion *result = 0 ;
10111 int val3 ;
10112 int ecode3 = 0 ;
10113 PyObject * obj0 = 0 ;
10114 PyObject * obj1 = 0 ;
10115 char * kwnames[] = {
10116 (char *) "points",(char *) "fillStyle", NULL
10117 };
10118
10119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10120 {
10121 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10122 if (arg2 == NULL) SWIG_fail;
10123 }
10124 if (obj1) {
10125 ecode3 = SWIG_AsVal_int(obj1, &val3);
10126 if (!SWIG_IsOK(ecode3)) {
10127 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10128 }
10129 arg3 = static_cast< int >(val3);
10130 }
10131 {
10132 if (!wxPyCheckForApp()) SWIG_fail;
10133 PyThreadState* __tstate = wxPyBeginAllowThreads();
10134 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10135 wxPyEndAllowThreads(__tstate);
10136 if (PyErr_Occurred()) SWIG_fail;
10137 }
10138 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10139 {
10140 if (arg2) delete [] arg2;
10141 }
10142 return resultobj;
10143fail:
10144 {
10145 if (arg2) delete [] arg2;
10146 }
10147 return NULL;
d14a1e28
RD
10148}
10149
10150
0085ce49
RD
10151SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10152 PyObject *resultobj = 0;
10153 wxRegion *arg1 = (wxRegion *) 0 ;
10154 void *argp1 = 0 ;
10155 int res1 = 0 ;
10156 PyObject *swig_obj[1] ;
10157
10158 if (!args) SWIG_fail;
10159 swig_obj[0] = args;
10160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10161 if (!SWIG_IsOK(res1)) {
10162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10163 }
10164 arg1 = reinterpret_cast< wxRegion * >(argp1);
10165 {
10166 PyThreadState* __tstate = wxPyBeginAllowThreads();
10167 delete arg1;
d14a1e28 10168
0085ce49
RD
10169 wxPyEndAllowThreads(__tstate);
10170 if (PyErr_Occurred()) SWIG_fail;
10171 }
10172 resultobj = SWIG_Py_Void();
10173 return resultobj;
10174fail:
10175 return NULL;
d14a1e28
RD
10176}
10177
10178
0085ce49
RD
10179SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10180 PyObject *resultobj = 0;
10181 wxRegion *arg1 = (wxRegion *) 0 ;
10182 void *argp1 = 0 ;
10183 int res1 = 0 ;
10184 PyObject *swig_obj[1] ;
10185
10186 if (!args) SWIG_fail;
10187 swig_obj[0] = args;
10188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10189 if (!SWIG_IsOK(res1)) {
10190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10191 }
10192 arg1 = reinterpret_cast< wxRegion * >(argp1);
10193 {
10194 PyThreadState* __tstate = wxPyBeginAllowThreads();
10195 (arg1)->Clear();
10196 wxPyEndAllowThreads(__tstate);
10197 if (PyErr_Occurred()) SWIG_fail;
10198 }
10199 resultobj = SWIG_Py_Void();
10200 return resultobj;
10201fail:
10202 return NULL;
10203}
10204
10205
10206SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10207 PyObject *resultobj = 0;
10208 wxRegion *arg1 = (wxRegion *) 0 ;
10209 int arg2 ;
10210 int arg3 ;
10211 bool result;
10212 void *argp1 = 0 ;
10213 int res1 = 0 ;
10214 int val2 ;
10215 int ecode2 = 0 ;
10216 int val3 ;
10217 int ecode3 = 0 ;
10218 PyObject * obj0 = 0 ;
10219 PyObject * obj1 = 0 ;
10220 PyObject * obj2 = 0 ;
10221 char * kwnames[] = {
10222 (char *) "self",(char *) "x",(char *) "y", NULL
10223 };
10224
10225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10227 if (!SWIG_IsOK(res1)) {
10228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10229 }
10230 arg1 = reinterpret_cast< wxRegion * >(argp1);
10231 ecode2 = SWIG_AsVal_int(obj1, &val2);
10232 if (!SWIG_IsOK(ecode2)) {
10233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10234 }
10235 arg2 = static_cast< int >(val2);
10236 ecode3 = SWIG_AsVal_int(obj2, &val3);
10237 if (!SWIG_IsOK(ecode3)) {
10238 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10239 }
10240 arg3 = static_cast< int >(val3);
10241 {
10242 PyThreadState* __tstate = wxPyBeginAllowThreads();
10243 result = (bool)(arg1)->Offset(arg2,arg3);
10244 wxPyEndAllowThreads(__tstate);
10245 if (PyErr_Occurred()) SWIG_fail;
10246 }
10247 {
10248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10249 }
10250 return resultobj;
10251fail:
10252 return NULL;
10253}
10254
10255
10256SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10257 PyObject *resultobj = 0;
10258 wxRegion *arg1 = (wxRegion *) 0 ;
10259 int arg2 ;
10260 int arg3 ;
10261 wxRegionContain result;
10262 void *argp1 = 0 ;
10263 int res1 = 0 ;
10264 int val2 ;
10265 int ecode2 = 0 ;
10266 int val3 ;
10267 int ecode3 = 0 ;
10268 PyObject * obj0 = 0 ;
10269 PyObject * obj1 = 0 ;
10270 PyObject * obj2 = 0 ;
10271 char * kwnames[] = {
10272 (char *) "self",(char *) "x",(char *) "y", NULL
10273 };
10274
10275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10277 if (!SWIG_IsOK(res1)) {
10278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10279 }
10280 arg1 = reinterpret_cast< wxRegion * >(argp1);
10281 ecode2 = SWIG_AsVal_int(obj1, &val2);
10282 if (!SWIG_IsOK(ecode2)) {
10283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10284 }
10285 arg2 = static_cast< int >(val2);
10286 ecode3 = SWIG_AsVal_int(obj2, &val3);
10287 if (!SWIG_IsOK(ecode3)) {
10288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10289 }
10290 arg3 = static_cast< int >(val3);
10291 {
10292 PyThreadState* __tstate = wxPyBeginAllowThreads();
10293 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10294 wxPyEndAllowThreads(__tstate);
10295 if (PyErr_Occurred()) SWIG_fail;
10296 }
10297 resultobj = SWIG_From_int(static_cast< int >(result));
10298 return resultobj;
10299fail:
10300 return NULL;
10301}
10302
10303
10304SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10305 PyObject *resultobj = 0;
10306 wxRegion *arg1 = (wxRegion *) 0 ;
10307 wxPoint *arg2 = 0 ;
10308 wxRegionContain result;
10309 void *argp1 = 0 ;
10310 int res1 = 0 ;
10311 wxPoint temp2 ;
10312 PyObject * obj0 = 0 ;
10313 PyObject * obj1 = 0 ;
10314 char * kwnames[] = {
10315 (char *) "self",(char *) "pt", NULL
10316 };
10317
10318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10320 if (!SWIG_IsOK(res1)) {
10321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10322 }
10323 arg1 = reinterpret_cast< wxRegion * >(argp1);
10324 {
10325 arg2 = &temp2;
10326 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10327 }
10328 {
10329 PyThreadState* __tstate = wxPyBeginAllowThreads();
10330 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10331 wxPyEndAllowThreads(__tstate);
10332 if (PyErr_Occurred()) SWIG_fail;
10333 }
10334 resultobj = SWIG_From_int(static_cast< int >(result));
10335 return resultobj;
10336fail:
10337 return NULL;
10338}
10339
10340
10341SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10342 PyObject *resultobj = 0;
10343 wxRegion *arg1 = (wxRegion *) 0 ;
10344 wxRect *arg2 = 0 ;
10345 wxRegionContain result;
10346 void *argp1 = 0 ;
10347 int res1 = 0 ;
10348 wxRect temp2 ;
10349 PyObject * obj0 = 0 ;
10350 PyObject * obj1 = 0 ;
10351 char * kwnames[] = {
10352 (char *) "self",(char *) "rect", NULL
10353 };
10354
10355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10357 if (!SWIG_IsOK(res1)) {
10358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10359 }
10360 arg1 = reinterpret_cast< wxRegion * >(argp1);
10361 {
10362 arg2 = &temp2;
10363 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10364 }
10365 {
10366 PyThreadState* __tstate = wxPyBeginAllowThreads();
10367 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10368 wxPyEndAllowThreads(__tstate);
10369 if (PyErr_Occurred()) SWIG_fail;
10370 }
10371 resultobj = SWIG_From_int(static_cast< int >(result));
10372 return resultobj;
10373fail:
10374 return NULL;
10375}
10376
10377
10378SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10379 PyObject *resultobj = 0;
10380 wxRegion *arg1 = (wxRegion *) 0 ;
10381 int arg2 ;
10382 int arg3 ;
10383 int arg4 ;
10384 int arg5 ;
10385 wxRegionContain result;
10386 void *argp1 = 0 ;
10387 int res1 = 0 ;
10388 int val2 ;
10389 int ecode2 = 0 ;
10390 int val3 ;
10391 int ecode3 = 0 ;
10392 int val4 ;
10393 int ecode4 = 0 ;
10394 int val5 ;
10395 int ecode5 = 0 ;
10396 PyObject * obj0 = 0 ;
10397 PyObject * obj1 = 0 ;
10398 PyObject * obj2 = 0 ;
10399 PyObject * obj3 = 0 ;
10400 PyObject * obj4 = 0 ;
10401 char * kwnames[] = {
10402 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10403 };
10404
10405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10407 if (!SWIG_IsOK(res1)) {
10408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10409 }
10410 arg1 = reinterpret_cast< wxRegion * >(argp1);
10411 ecode2 = SWIG_AsVal_int(obj1, &val2);
10412 if (!SWIG_IsOK(ecode2)) {
10413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10414 }
10415 arg2 = static_cast< int >(val2);
10416 ecode3 = SWIG_AsVal_int(obj2, &val3);
10417 if (!SWIG_IsOK(ecode3)) {
10418 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10419 }
10420 arg3 = static_cast< int >(val3);
10421 ecode4 = SWIG_AsVal_int(obj3, &val4);
10422 if (!SWIG_IsOK(ecode4)) {
10423 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10424 }
10425 arg4 = static_cast< int >(val4);
10426 ecode5 = SWIG_AsVal_int(obj4, &val5);
10427 if (!SWIG_IsOK(ecode5)) {
10428 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10429 }
10430 arg5 = static_cast< int >(val5);
10431 {
10432 PyThreadState* __tstate = wxPyBeginAllowThreads();
10433 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10434 wxPyEndAllowThreads(__tstate);
10435 if (PyErr_Occurred()) SWIG_fail;
10436 }
10437 resultobj = SWIG_From_int(static_cast< int >(result));
10438 return resultobj;
10439fail:
10440 return NULL;
d14a1e28
RD
10441}
10442
10443
0085ce49
RD
10444SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10445 PyObject *resultobj = 0;
10446 wxRegion *arg1 = (wxRegion *) 0 ;
10447 wxRect result;
10448 void *argp1 = 0 ;
10449 int res1 = 0 ;
10450 PyObject *swig_obj[1] ;
10451
10452 if (!args) SWIG_fail;
10453 swig_obj[0] = args;
10454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10455 if (!SWIG_IsOK(res1)) {
10456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10457 }
10458 arg1 = reinterpret_cast< wxRegion * >(argp1);
10459 {
10460 PyThreadState* __tstate = wxPyBeginAllowThreads();
10461 result = (arg1)->GetBox();
10462 wxPyEndAllowThreads(__tstate);
10463 if (PyErr_Occurred()) SWIG_fail;
10464 }
10465 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10466 return resultobj;
10467fail:
10468 return NULL;
10469}
10470
10471
10472SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10473 PyObject *resultobj = 0;
10474 wxRegion *arg1 = (wxRegion *) 0 ;
10475 int arg2 ;
10476 int arg3 ;
10477 int arg4 ;
10478 int arg5 ;
10479 bool result;
10480 void *argp1 = 0 ;
10481 int res1 = 0 ;
10482 int val2 ;
10483 int ecode2 = 0 ;
10484 int val3 ;
10485 int ecode3 = 0 ;
10486 int val4 ;
10487 int ecode4 = 0 ;
10488 int val5 ;
10489 int ecode5 = 0 ;
10490 PyObject * obj0 = 0 ;
10491 PyObject * obj1 = 0 ;
10492 PyObject * obj2 = 0 ;
10493 PyObject * obj3 = 0 ;
10494 PyObject * obj4 = 0 ;
10495 char * kwnames[] = {
10496 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10497 };
10498
10499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10501 if (!SWIG_IsOK(res1)) {
10502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10503 }
10504 arg1 = reinterpret_cast< wxRegion * >(argp1);
10505 ecode2 = SWIG_AsVal_int(obj1, &val2);
10506 if (!SWIG_IsOK(ecode2)) {
10507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10508 }
10509 arg2 = static_cast< int >(val2);
10510 ecode3 = SWIG_AsVal_int(obj2, &val3);
10511 if (!SWIG_IsOK(ecode3)) {
10512 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10513 }
10514 arg3 = static_cast< int >(val3);
10515 ecode4 = SWIG_AsVal_int(obj3, &val4);
10516 if (!SWIG_IsOK(ecode4)) {
10517 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10518 }
10519 arg4 = static_cast< int >(val4);
10520 ecode5 = SWIG_AsVal_int(obj4, &val5);
10521 if (!SWIG_IsOK(ecode5)) {
10522 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10523 }
10524 arg5 = static_cast< int >(val5);
10525 {
10526 PyThreadState* __tstate = wxPyBeginAllowThreads();
10527 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10528 wxPyEndAllowThreads(__tstate);
10529 if (PyErr_Occurred()) SWIG_fail;
10530 }
10531 {
10532 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10533 }
10534 return resultobj;
10535fail:
10536 return NULL;
10537}
10538
10539
10540SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10541 PyObject *resultobj = 0;
10542 wxRegion *arg1 = (wxRegion *) 0 ;
10543 wxRect *arg2 = 0 ;
10544 bool result;
10545 void *argp1 = 0 ;
10546 int res1 = 0 ;
10547 wxRect temp2 ;
10548 PyObject * obj0 = 0 ;
10549 PyObject * obj1 = 0 ;
10550 char * kwnames[] = {
10551 (char *) "self",(char *) "rect", NULL
10552 };
10553
10554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10556 if (!SWIG_IsOK(res1)) {
10557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10558 }
10559 arg1 = reinterpret_cast< wxRegion * >(argp1);
10560 {
10561 arg2 = &temp2;
10562 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10563 }
10564 {
10565 PyThreadState* __tstate = wxPyBeginAllowThreads();
10566 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10567 wxPyEndAllowThreads(__tstate);
10568 if (PyErr_Occurred()) SWIG_fail;
10569 }
10570 {
10571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10572 }
10573 return resultobj;
10574fail:
10575 return NULL;
10576}
10577
10578
10579SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10580 PyObject *resultobj = 0;
10581 wxRegion *arg1 = (wxRegion *) 0 ;
10582 wxRegion *arg2 = 0 ;
10583 bool result;
10584 void *argp1 = 0 ;
10585 int res1 = 0 ;
10586 void *argp2 = 0 ;
10587 int res2 = 0 ;
10588 PyObject * obj0 = 0 ;
10589 PyObject * obj1 = 0 ;
10590 char * kwnames[] = {
10591 (char *) "self",(char *) "region", NULL
10592 };
10593
10594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10596 if (!SWIG_IsOK(res1)) {
10597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10598 }
10599 arg1 = reinterpret_cast< wxRegion * >(argp1);
10600 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10601 if (!SWIG_IsOK(res2)) {
10602 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10603 }
10604 if (!argp2) {
10605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10606 }
10607 arg2 = reinterpret_cast< wxRegion * >(argp2);
10608 {
10609 PyThreadState* __tstate = wxPyBeginAllowThreads();
10610 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10611 wxPyEndAllowThreads(__tstate);
10612 if (PyErr_Occurred()) SWIG_fail;
10613 }
10614 {
10615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10616 }
10617 return resultobj;
10618fail:
10619 return NULL;
d14a1e28
RD
10620}
10621
10622
0085ce49
RD
10623SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10624 PyObject *resultobj = 0;
10625 wxRegion *arg1 = (wxRegion *) 0 ;
10626 bool result;
10627 void *argp1 = 0 ;
10628 int res1 = 0 ;
10629 PyObject *swig_obj[1] ;
10630
10631 if (!args) SWIG_fail;
10632 swig_obj[0] = args;
10633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10634 if (!SWIG_IsOK(res1)) {
10635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10636 }
10637 arg1 = reinterpret_cast< wxRegion * >(argp1);
10638 {
10639 PyThreadState* __tstate = wxPyBeginAllowThreads();
10640 result = (bool)(arg1)->IsEmpty();
10641 wxPyEndAllowThreads(__tstate);
10642 if (PyErr_Occurred()) SWIG_fail;
10643 }
10644 {
10645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10646 }
10647 return resultobj;
10648fail:
10649 return NULL;
10650}
10651
10652
f5263701
RD
10653SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10654 PyObject *resultobj = 0;
10655 wxRegion *arg1 = (wxRegion *) 0 ;
10656 wxRegion *arg2 = 0 ;
10657 bool result;
10658 void *argp1 = 0 ;
10659 int res1 = 0 ;
10660 void *argp2 = 0 ;
10661 int res2 = 0 ;
10662 PyObject * obj0 = 0 ;
10663 PyObject * obj1 = 0 ;
10664 char * kwnames[] = {
10665 (char *) "self",(char *) "region", NULL
10666 };
10667
10668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
10669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10670 if (!SWIG_IsOK(res1)) {
10671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
10672 }
10673 arg1 = reinterpret_cast< wxRegion * >(argp1);
10674 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10675 if (!SWIG_IsOK(res2)) {
10676 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10677 }
10678 if (!argp2) {
10679 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10680 }
10681 arg2 = reinterpret_cast< wxRegion * >(argp2);
10682 {
10683 PyThreadState* __tstate = wxPyBeginAllowThreads();
10684 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
10685 wxPyEndAllowThreads(__tstate);
10686 if (PyErr_Occurred()) SWIG_fail;
10687 }
10688 {
10689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10690 }
10691 return resultobj;
10692fail:
10693 return NULL;
10694}
10695
10696
0085ce49
RD
10697SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10698 PyObject *resultobj = 0;
10699 wxRegion *arg1 = (wxRegion *) 0 ;
10700 int arg2 ;
10701 int arg3 ;
10702 int arg4 ;
10703 int arg5 ;
10704 bool result;
10705 void *argp1 = 0 ;
10706 int res1 = 0 ;
10707 int val2 ;
10708 int ecode2 = 0 ;
10709 int val3 ;
10710 int ecode3 = 0 ;
10711 int val4 ;
10712 int ecode4 = 0 ;
10713 int val5 ;
10714 int ecode5 = 0 ;
10715 PyObject * obj0 = 0 ;
10716 PyObject * obj1 = 0 ;
10717 PyObject * obj2 = 0 ;
10718 PyObject * obj3 = 0 ;
10719 PyObject * obj4 = 0 ;
10720 char * kwnames[] = {
10721 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10722 };
10723
10724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10726 if (!SWIG_IsOK(res1)) {
10727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
10728 }
10729 arg1 = reinterpret_cast< wxRegion * >(argp1);
10730 ecode2 = SWIG_AsVal_int(obj1, &val2);
10731 if (!SWIG_IsOK(ecode2)) {
10732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
10733 }
10734 arg2 = static_cast< int >(val2);
10735 ecode3 = SWIG_AsVal_int(obj2, &val3);
10736 if (!SWIG_IsOK(ecode3)) {
10737 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
10738 }
10739 arg3 = static_cast< int >(val3);
10740 ecode4 = SWIG_AsVal_int(obj3, &val4);
10741 if (!SWIG_IsOK(ecode4)) {
10742 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
10743 }
10744 arg4 = static_cast< int >(val4);
10745 ecode5 = SWIG_AsVal_int(obj4, &val5);
10746 if (!SWIG_IsOK(ecode5)) {
10747 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
10748 }
10749 arg5 = static_cast< int >(val5);
10750 {
10751 PyThreadState* __tstate = wxPyBeginAllowThreads();
10752 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
10753 wxPyEndAllowThreads(__tstate);
10754 if (PyErr_Occurred()) SWIG_fail;
10755 }
10756 {
10757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10758 }
10759 return resultobj;
10760fail:
10761 return NULL;
10762}
10763
10764
10765SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10766 PyObject *resultobj = 0;
10767 wxRegion *arg1 = (wxRegion *) 0 ;
10768 wxRect *arg2 = 0 ;
10769 bool result;
10770 void *argp1 = 0 ;
10771 int res1 = 0 ;
10772 wxRect temp2 ;
10773 PyObject * obj0 = 0 ;
10774 PyObject * obj1 = 0 ;
10775 char * kwnames[] = {
10776 (char *) "self",(char *) "rect", NULL
10777 };
10778
10779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
10780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10781 if (!SWIG_IsOK(res1)) {
10782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10783 }
10784 arg1 = reinterpret_cast< wxRegion * >(argp1);
10785 {
10786 arg2 = &temp2;
10787 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10788 }
10789 {
10790 PyThreadState* __tstate = wxPyBeginAllowThreads();
10791 result = (bool)(arg1)->Union((wxRect const &)*arg2);
10792 wxPyEndAllowThreads(__tstate);
10793 if (PyErr_Occurred()) SWIG_fail;
10794 }
10795 {
10796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10797 }
10798 return resultobj;
10799fail:
10800 return NULL;
10801}
10802
10803
10804SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10805 PyObject *resultobj = 0;
10806 wxRegion *arg1 = (wxRegion *) 0 ;
10807 wxRegion *arg2 = 0 ;
10808 bool result;
10809 void *argp1 = 0 ;
10810 int res1 = 0 ;
10811 void *argp2 = 0 ;
10812 int res2 = 0 ;
10813 PyObject * obj0 = 0 ;
10814 PyObject * obj1 = 0 ;
10815 char * kwnames[] = {
10816 (char *) "self",(char *) "region", NULL
10817 };
10818
10819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10821 if (!SWIG_IsOK(res1)) {
10822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10823 }
10824 arg1 = reinterpret_cast< wxRegion * >(argp1);
10825 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10826 if (!SWIG_IsOK(res2)) {
10827 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10828 }
10829 if (!argp2) {
10830 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10831 }
10832 arg2 = reinterpret_cast< wxRegion * >(argp2);
10833 {
10834 PyThreadState* __tstate = wxPyBeginAllowThreads();
10835 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
10836 wxPyEndAllowThreads(__tstate);
10837 if (PyErr_Occurred()) SWIG_fail;
10838 }
10839 {
10840 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10841 }
10842 return resultobj;
10843fail:
10844 return NULL;
10845}
10846
10847
10848SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10849 PyObject *resultobj = 0;
10850 wxRegion *arg1 = (wxRegion *) 0 ;
10851 int arg2 ;
10852 int arg3 ;
10853 int arg4 ;
10854 int arg5 ;
10855 bool result;
10856 void *argp1 = 0 ;
10857 int res1 = 0 ;
10858 int val2 ;
10859 int ecode2 = 0 ;
10860 int val3 ;
10861 int ecode3 = 0 ;
10862 int val4 ;
10863 int ecode4 = 0 ;
10864 int val5 ;
10865 int ecode5 = 0 ;
10866 PyObject * obj0 = 0 ;
10867 PyObject * obj1 = 0 ;
10868 PyObject * obj2 = 0 ;
10869 PyObject * obj3 = 0 ;
10870 PyObject * obj4 = 0 ;
10871 char * kwnames[] = {
10872 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10873 };
10874
10875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10877 if (!SWIG_IsOK(res1)) {
10878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
10879 }
10880 arg1 = reinterpret_cast< wxRegion * >(argp1);
10881 ecode2 = SWIG_AsVal_int(obj1, &val2);
10882 if (!SWIG_IsOK(ecode2)) {
10883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
10884 }
10885 arg2 = static_cast< int >(val2);
10886 ecode3 = SWIG_AsVal_int(obj2, &val3);
10887 if (!SWIG_IsOK(ecode3)) {
10888 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
10889 }
10890 arg3 = static_cast< int >(val3);
10891 ecode4 = SWIG_AsVal_int(obj3, &val4);
10892 if (!SWIG_IsOK(ecode4)) {
10893 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
10894 }
10895 arg4 = static_cast< int >(val4);
10896 ecode5 = SWIG_AsVal_int(obj4, &val5);
10897 if (!SWIG_IsOK(ecode5)) {
10898 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
10899 }
10900 arg5 = static_cast< int >(val5);
10901 {
10902 PyThreadState* __tstate = wxPyBeginAllowThreads();
10903 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
10904 wxPyEndAllowThreads(__tstate);
10905 if (PyErr_Occurred()) SWIG_fail;
10906 }
10907 {
10908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10909 }
10910 return resultobj;
10911fail:
10912 return NULL;
10913}
10914
10915
10916SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10917 PyObject *resultobj = 0;
10918 wxRegion *arg1 = (wxRegion *) 0 ;
10919 wxRect *arg2 = 0 ;
10920 bool result;
10921 void *argp1 = 0 ;
10922 int res1 = 0 ;
10923 wxRect temp2 ;
10924 PyObject * obj0 = 0 ;
10925 PyObject * obj1 = 0 ;
10926 char * kwnames[] = {
10927 (char *) "self",(char *) "rect", NULL
10928 };
10929
10930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
10931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10932 if (!SWIG_IsOK(res1)) {
10933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10934 }
10935 arg1 = reinterpret_cast< wxRegion * >(argp1);
10936 {
10937 arg2 = &temp2;
10938 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10939 }
10940 {
10941 PyThreadState* __tstate = wxPyBeginAllowThreads();
10942 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
10943 wxPyEndAllowThreads(__tstate);
10944 if (PyErr_Occurred()) SWIG_fail;
10945 }
10946 {
10947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10948 }
10949 return resultobj;
10950fail:
10951 return NULL;
10952}
10953
10954
10955SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10956 PyObject *resultobj = 0;
10957 wxRegion *arg1 = (wxRegion *) 0 ;
10958 wxRegion *arg2 = 0 ;
10959 bool result;
10960 void *argp1 = 0 ;
10961 int res1 = 0 ;
10962 void *argp2 = 0 ;
10963 int res2 = 0 ;
10964 PyObject * obj0 = 0 ;
10965 PyObject * obj1 = 0 ;
10966 char * kwnames[] = {
10967 (char *) "self",(char *) "region", NULL
10968 };
10969
10970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10972 if (!SWIG_IsOK(res1)) {
10973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10974 }
10975 arg1 = reinterpret_cast< wxRegion * >(argp1);
10976 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10977 if (!SWIG_IsOK(res2)) {
10978 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10979 }
10980 if (!argp2) {
10981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10982 }
10983 arg2 = reinterpret_cast< wxRegion * >(argp2);
10984 {
10985 PyThreadState* __tstate = wxPyBeginAllowThreads();
10986 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
10987 wxPyEndAllowThreads(__tstate);
10988 if (PyErr_Occurred()) SWIG_fail;
10989 }
10990 {
10991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10992 }
10993 return resultobj;
10994fail:
10995 return NULL;
10996}
10997
10998
10999SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11000 PyObject *resultobj = 0;
11001 wxRegion *arg1 = (wxRegion *) 0 ;
11002 int arg2 ;
11003 int arg3 ;
11004 int arg4 ;
11005 int arg5 ;
11006 bool result;
11007 void *argp1 = 0 ;
11008 int res1 = 0 ;
11009 int val2 ;
11010 int ecode2 = 0 ;
11011 int val3 ;
11012 int ecode3 = 0 ;
11013 int val4 ;
11014 int ecode4 = 0 ;
11015 int val5 ;
11016 int ecode5 = 0 ;
11017 PyObject * obj0 = 0 ;
11018 PyObject * obj1 = 0 ;
11019 PyObject * obj2 = 0 ;
11020 PyObject * obj3 = 0 ;
11021 PyObject * obj4 = 0 ;
11022 char * kwnames[] = {
11023 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11024 };
11025
11026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11028 if (!SWIG_IsOK(res1)) {
11029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11030 }
11031 arg1 = reinterpret_cast< wxRegion * >(argp1);
11032 ecode2 = SWIG_AsVal_int(obj1, &val2);
11033 if (!SWIG_IsOK(ecode2)) {
11034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11035 }
11036 arg2 = static_cast< int >(val2);
11037 ecode3 = SWIG_AsVal_int(obj2, &val3);
11038 if (!SWIG_IsOK(ecode3)) {
11039 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11040 }
11041 arg3 = static_cast< int >(val3);
11042 ecode4 = SWIG_AsVal_int(obj3, &val4);
11043 if (!SWIG_IsOK(ecode4)) {
11044 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11045 }
11046 arg4 = static_cast< int >(val4);
11047 ecode5 = SWIG_AsVal_int(obj4, &val5);
11048 if (!SWIG_IsOK(ecode5)) {
11049 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11050 }
11051 arg5 = static_cast< int >(val5);
11052 {
11053 PyThreadState* __tstate = wxPyBeginAllowThreads();
11054 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11055 wxPyEndAllowThreads(__tstate);
11056 if (PyErr_Occurred()) SWIG_fail;
11057 }
11058 {
11059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11060 }
11061 return resultobj;
11062fail:
11063 return NULL;
11064}
11065
11066
11067SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11068 PyObject *resultobj = 0;
11069 wxRegion *arg1 = (wxRegion *) 0 ;
11070 wxRect *arg2 = 0 ;
11071 bool result;
11072 void *argp1 = 0 ;
11073 int res1 = 0 ;
11074 wxRect temp2 ;
11075 PyObject * obj0 = 0 ;
11076 PyObject * obj1 = 0 ;
11077 char * kwnames[] = {
11078 (char *) "self",(char *) "rect", NULL
11079 };
11080
11081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11083 if (!SWIG_IsOK(res1)) {
11084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11085 }
11086 arg1 = reinterpret_cast< wxRegion * >(argp1);
11087 {
11088 arg2 = &temp2;
11089 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11090 }
11091 {
11092 PyThreadState* __tstate = wxPyBeginAllowThreads();
11093 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11094 wxPyEndAllowThreads(__tstate);
11095 if (PyErr_Occurred()) SWIG_fail;
11096 }
11097 {
11098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11099 }
11100 return resultobj;
11101fail:
11102 return NULL;
11103}
11104
11105
11106SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11107 PyObject *resultobj = 0;
11108 wxRegion *arg1 = (wxRegion *) 0 ;
11109 wxRegion *arg2 = 0 ;
11110 bool result;
11111 void *argp1 = 0 ;
11112 int res1 = 0 ;
11113 void *argp2 = 0 ;
11114 int res2 = 0 ;
11115 PyObject * obj0 = 0 ;
11116 PyObject * obj1 = 0 ;
11117 char * kwnames[] = {
11118 (char *) "self",(char *) "region", NULL
11119 };
11120
11121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11123 if (!SWIG_IsOK(res1)) {
11124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11125 }
11126 arg1 = reinterpret_cast< wxRegion * >(argp1);
11127 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11128 if (!SWIG_IsOK(res2)) {
11129 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11130 }
11131 if (!argp2) {
11132 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11133 }
11134 arg2 = reinterpret_cast< wxRegion * >(argp2);
11135 {
11136 PyThreadState* __tstate = wxPyBeginAllowThreads();
11137 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11138 wxPyEndAllowThreads(__tstate);
11139 if (PyErr_Occurred()) SWIG_fail;
11140 }
11141 {
11142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11143 }
11144 return resultobj;
11145fail:
11146 return NULL;
d14a1e28
RD
11147}
11148
11149
0085ce49
RD
11150SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11151 PyObject *resultobj = 0;
11152 wxRegion *arg1 = (wxRegion *) 0 ;
11153 SwigValueWrapper<wxBitmap > result;
11154 void *argp1 = 0 ;
11155 int res1 = 0 ;
11156 PyObject *swig_obj[1] ;
11157
11158 if (!args) SWIG_fail;
11159 swig_obj[0] = args;
11160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11161 if (!SWIG_IsOK(res1)) {
11162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11163 }
11164 arg1 = reinterpret_cast< wxRegion * >(argp1);
11165 {
11166 PyThreadState* __tstate = wxPyBeginAllowThreads();
11167 result = (arg1)->ConvertToBitmap();
11168 wxPyEndAllowThreads(__tstate);
11169 if (PyErr_Occurred()) SWIG_fail;
11170 }
11171 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11172 return resultobj;
11173fail:
11174 return NULL;
11175}
11176
11177
11178SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11179 PyObject *resultobj = 0;
11180 wxRegion *arg1 = (wxRegion *) 0 ;
11181 wxBitmap *arg2 = 0 ;
11182 bool result;
11183 void *argp1 = 0 ;
11184 int res1 = 0 ;
11185 void *argp2 = 0 ;
11186 int res2 = 0 ;
11187 PyObject * obj0 = 0 ;
11188 PyObject * obj1 = 0 ;
11189 char * kwnames[] = {
11190 (char *) "self",(char *) "bmp", NULL
11191 };
11192
11193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11195 if (!SWIG_IsOK(res1)) {
11196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11197 }
11198 arg1 = reinterpret_cast< wxRegion * >(argp1);
11199 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11200 if (!SWIG_IsOK(res2)) {
11201 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11202 }
11203 if (!argp2) {
11204 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11205 }
11206 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11207 {
11208 PyThreadState* __tstate = wxPyBeginAllowThreads();
11209 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11210 wxPyEndAllowThreads(__tstate);
11211 if (PyErr_Occurred()) SWIG_fail;
11212 }
11213 {
11214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11215 }
11216 return resultobj;
11217fail:
11218 return NULL;
11219}
11220
11221
11222SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11223 PyObject *resultobj = 0;
11224 wxRegion *arg1 = (wxRegion *) 0 ;
11225 wxBitmap *arg2 = 0 ;
11226 wxColour *arg3 = 0 ;
11227 int arg4 = (int) 0 ;
11228 bool result;
11229 void *argp1 = 0 ;
11230 int res1 = 0 ;
11231 void *argp2 = 0 ;
11232 int res2 = 0 ;
11233 wxColour temp3 ;
11234 int val4 ;
11235 int ecode4 = 0 ;
11236 PyObject * obj0 = 0 ;
11237 PyObject * obj1 = 0 ;
11238 PyObject * obj2 = 0 ;
11239 PyObject * obj3 = 0 ;
11240 char * kwnames[] = {
11241 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11242 };
11243
11244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11246 if (!SWIG_IsOK(res1)) {
11247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11248 }
11249 arg1 = reinterpret_cast< wxRegion * >(argp1);
11250 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11251 if (!SWIG_IsOK(res2)) {
11252 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11253 }
11254 if (!argp2) {
11255 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11256 }
11257 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11258 {
11259 arg3 = &temp3;
11260 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11261 }
11262 if (obj3) {
11263 ecode4 = SWIG_AsVal_int(obj3, &val4);
11264 if (!SWIG_IsOK(ecode4)) {
11265 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11266 }
11267 arg4 = static_cast< int >(val4);
11268 }
11269 {
11270 PyThreadState* __tstate = wxPyBeginAllowThreads();
11271 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11272 wxPyEndAllowThreads(__tstate);
11273 if (PyErr_Occurred()) SWIG_fail;
11274 }
11275 {
11276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11277 }
11278 return resultobj;
11279fail:
11280 return NULL;
d14a1e28
RD
11281}
11282
11283
0085ce49
RD
11284SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11285 PyObject *obj;
11286 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11287 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11288 return SWIG_Py_Void();
d14a1e28
RD
11289}
11290
0085ce49
RD
11291SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11292 return SWIG_Python_InitShadowInstance(args);
11293}
d14a1e28 11294
0085ce49
RD
11295SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11296 PyObject *resultobj = 0;
11297 wxRegion *arg1 = 0 ;
11298 wxRegionIterator *result = 0 ;
11299 void *argp1 = 0 ;
11300 int res1 = 0 ;
11301 PyObject * obj0 = 0 ;
11302 char * kwnames[] = {
11303 (char *) "region", NULL
11304 };
11305
11306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11307 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11308 if (!SWIG_IsOK(res1)) {
11309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11310 }
11311 if (!argp1) {
11312 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11313 }
11314 arg1 = reinterpret_cast< wxRegion * >(argp1);
11315 {
11316 if (!wxPyCheckForApp()) SWIG_fail;
11317 PyThreadState* __tstate = wxPyBeginAllowThreads();
11318 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11319 wxPyEndAllowThreads(__tstate);
11320 if (PyErr_Occurred()) SWIG_fail;
11321 }
11322 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11323 return resultobj;
11324fail:
11325 return NULL;
d14a1e28
RD
11326}
11327
11328
0085ce49
RD
11329SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11330 PyObject *resultobj = 0;
11331 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11332 void *argp1 = 0 ;
11333 int res1 = 0 ;
11334 PyObject *swig_obj[1] ;
11335
11336 if (!args) SWIG_fail;
11337 swig_obj[0] = args;
11338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11339 if (!SWIG_IsOK(res1)) {
11340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11341 }
11342 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11343 {
11344 PyThreadState* __tstate = wxPyBeginAllowThreads();
11345 delete arg1;
d14a1e28 11346
0085ce49
RD
11347 wxPyEndAllowThreads(__tstate);
11348 if (PyErr_Occurred()) SWIG_fail;
11349 }
11350 resultobj = SWIG_Py_Void();
11351 return resultobj;
11352fail:
11353 return NULL;
d14a1e28
RD
11354}
11355
11356
0085ce49
RD
11357SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11358 PyObject *resultobj = 0;
11359 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11360 int result;
11361 void *argp1 = 0 ;
11362 int res1 = 0 ;
11363 PyObject *swig_obj[1] ;
11364
11365 if (!args) SWIG_fail;
11366 swig_obj[0] = args;
11367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11368 if (!SWIG_IsOK(res1)) {
11369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11370 }
11371 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11372 {
11373 PyThreadState* __tstate = wxPyBeginAllowThreads();
11374 result = (int)(arg1)->GetX();
11375 wxPyEndAllowThreads(__tstate);
11376 if (PyErr_Occurred()) SWIG_fail;
11377 }
11378 resultobj = SWIG_From_int(static_cast< int >(result));
11379 return resultobj;
11380fail:
11381 return NULL;
d14a1e28
RD
11382}
11383
11384
0085ce49
RD
11385SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11386 PyObject *resultobj = 0;
11387 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11388 int result;
11389 void *argp1 = 0 ;
11390 int res1 = 0 ;
11391 PyObject *swig_obj[1] ;
11392
11393 if (!args) SWIG_fail;
11394 swig_obj[0] = args;
11395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11396 if (!SWIG_IsOK(res1)) {
11397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11398 }
11399 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11400 {
11401 PyThreadState* __tstate = wxPyBeginAllowThreads();
11402 result = (int)(arg1)->GetY();
11403 wxPyEndAllowThreads(__tstate);
11404 if (PyErr_Occurred()) SWIG_fail;
11405 }
11406 resultobj = SWIG_From_int(static_cast< int >(result));
11407 return resultobj;
11408fail:
11409 return NULL;
d14a1e28
RD
11410}
11411
11412
0085ce49
RD
11413SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11414 PyObject *resultobj = 0;
11415 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11416 int result;
11417 void *argp1 = 0 ;
11418 int res1 = 0 ;
11419 PyObject *swig_obj[1] ;
11420
11421 if (!args) SWIG_fail;
11422 swig_obj[0] = args;
11423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11424 if (!SWIG_IsOK(res1)) {
11425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11426 }
11427 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11428 {
11429 PyThreadState* __tstate = wxPyBeginAllowThreads();
11430 result = (int)(arg1)->GetW();
11431 wxPyEndAllowThreads(__tstate);
11432 if (PyErr_Occurred()) SWIG_fail;
11433 }
11434 resultobj = SWIG_From_int(static_cast< int >(result));
11435 return resultobj;
11436fail:
11437 return NULL;
d14a1e28
RD
11438}
11439
11440
0085ce49
RD
11441SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11442 PyObject *resultobj = 0;
11443 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11444 int result;
11445 void *argp1 = 0 ;
11446 int res1 = 0 ;
11447 PyObject *swig_obj[1] ;
11448
11449 if (!args) SWIG_fail;
11450 swig_obj[0] = args;
11451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11452 if (!SWIG_IsOK(res1)) {
11453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11454 }
11455 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11456 {
11457 PyThreadState* __tstate = wxPyBeginAllowThreads();
11458 result = (int)(arg1)->GetWidth();
11459 wxPyEndAllowThreads(__tstate);
11460 if (PyErr_Occurred()) SWIG_fail;
11461 }
11462 resultobj = SWIG_From_int(static_cast< int >(result));
11463 return resultobj;
11464fail:
11465 return NULL;
093d3ff1
RD
11466}
11467
11468
0085ce49
RD
11469SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11470 PyObject *resultobj = 0;
11471 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11472 int result;
11473 void *argp1 = 0 ;
11474 int res1 = 0 ;
11475 PyObject *swig_obj[1] ;
11476
11477 if (!args) SWIG_fail;
11478 swig_obj[0] = args;
11479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11480 if (!SWIG_IsOK(res1)) {
11481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11482 }
11483 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11484 {
11485 PyThreadState* __tstate = wxPyBeginAllowThreads();
11486 result = (int)(arg1)->GetH();
11487 wxPyEndAllowThreads(__tstate);
11488 if (PyErr_Occurred()) SWIG_fail;
11489 }
11490 resultobj = SWIG_From_int(static_cast< int >(result));
11491 return resultobj;
11492fail:
11493 return NULL;
d14a1e28
RD
11494}
11495
11496
0085ce49
RD
11497SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11498 PyObject *resultobj = 0;
11499 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11500 int result;
11501 void *argp1 = 0 ;
11502 int res1 = 0 ;
11503 PyObject *swig_obj[1] ;
11504
11505 if (!args) SWIG_fail;
11506 swig_obj[0] = args;
11507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11508 if (!SWIG_IsOK(res1)) {
11509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11510 }
11511 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11512 {
11513 PyThreadState* __tstate = wxPyBeginAllowThreads();
11514 result = (int)(arg1)->GetHeight();
11515 wxPyEndAllowThreads(__tstate);
11516 if (PyErr_Occurred()) SWIG_fail;
11517 }
11518 resultobj = SWIG_From_int(static_cast< int >(result));
11519 return resultobj;
11520fail:
11521 return NULL;
093d3ff1
RD
11522}
11523
11524
0085ce49
RD
11525SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11526 PyObject *resultobj = 0;
11527 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11528 wxRect result;
11529 void *argp1 = 0 ;
11530 int res1 = 0 ;
11531 PyObject *swig_obj[1] ;
11532
11533 if (!args) SWIG_fail;
11534 swig_obj[0] = args;
11535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11536 if (!SWIG_IsOK(res1)) {
11537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11538 }
11539 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11540 {
11541 PyThreadState* __tstate = wxPyBeginAllowThreads();
11542 result = (arg1)->GetRect();
11543 wxPyEndAllowThreads(__tstate);
11544 if (PyErr_Occurred()) SWIG_fail;
11545 }
11546 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11547 return resultobj;
11548fail:
11549 return NULL;
d14a1e28
RD
11550}
11551
11552
0085ce49
RD
11553SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11554 PyObject *resultobj = 0;
11555 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11556 bool result;
11557 void *argp1 = 0 ;
11558 int res1 = 0 ;
11559 PyObject *swig_obj[1] ;
11560
11561 if (!args) SWIG_fail;
11562 swig_obj[0] = args;
11563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11564 if (!SWIG_IsOK(res1)) {
11565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11566 }
11567 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11568 {
11569 PyThreadState* __tstate = wxPyBeginAllowThreads();
11570 result = (bool)(arg1)->HaveRects();
11571 wxPyEndAllowThreads(__tstate);
11572 if (PyErr_Occurred()) SWIG_fail;
11573 }
11574 {
11575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11576 }
11577 return resultobj;
11578fail:
11579 return NULL;
093d3ff1
RD
11580}
11581
11582
0085ce49
RD
11583SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11584 PyObject *resultobj = 0;
11585 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11586 void *argp1 = 0 ;
11587 int res1 = 0 ;
11588 PyObject *swig_obj[1] ;
11589
11590 if (!args) SWIG_fail;
11591 swig_obj[0] = args;
11592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11593 if (!SWIG_IsOK(res1)) {
11594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11595 }
11596 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11597 {
11598 PyThreadState* __tstate = wxPyBeginAllowThreads();
11599 (arg1)->Reset();
11600 wxPyEndAllowThreads(__tstate);
11601 if (PyErr_Occurred()) SWIG_fail;
11602 }
11603 resultobj = SWIG_Py_Void();
11604 return resultobj;
11605fail:
11606 return NULL;
d14a1e28
RD
11607}
11608
11609
0085ce49
RD
11610SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11611 PyObject *resultobj = 0;
11612 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11613 void *argp1 = 0 ;
11614 int res1 = 0 ;
11615 PyObject *swig_obj[1] ;
11616
11617 if (!args) SWIG_fail;
11618 swig_obj[0] = args;
11619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11620 if (!SWIG_IsOK(res1)) {
11621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11622 }
11623 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11624 {
11625 PyThreadState* __tstate = wxPyBeginAllowThreads();
11626 wxRegionIterator_Next(arg1);
11627 wxPyEndAllowThreads(__tstate);
11628 if (PyErr_Occurred()) SWIG_fail;
11629 }
11630 resultobj = SWIG_Py_Void();
11631 return resultobj;
11632fail:
11633 return NULL;
d14a1e28
RD
11634}
11635
11636
0085ce49
RD
11637SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11638 PyObject *resultobj = 0;
11639 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11640 bool result;
11641 void *argp1 = 0 ;
11642 int res1 = 0 ;
11643 PyObject *swig_obj[1] ;
11644
11645 if (!args) SWIG_fail;
11646 swig_obj[0] = args;
11647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11648 if (!SWIG_IsOK(res1)) {
11649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11650 }
11651 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11652 {
11653 PyThreadState* __tstate = wxPyBeginAllowThreads();
11654 result = (bool)wxRegionIterator___nonzero__(arg1);
11655 wxPyEndAllowThreads(__tstate);
11656 if (PyErr_Occurred()) SWIG_fail;
11657 }
11658 {
11659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11660 }
11661 return resultobj;
11662fail:
11663 return NULL;
d14a1e28
RD
11664}
11665
11666
0085ce49
RD
11667SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11668 PyObject *obj;
11669 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11670 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11671 return SWIG_Py_Void();
d14a1e28
RD
11672}
11673
0085ce49
RD
11674SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11675 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
11676}
11677
0085ce49
RD
11678SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11679 PyObject *resultobj = 0;
11680 wxNativeFontInfo *result = 0 ;
11681
11682 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
11683 {
11684 PyThreadState* __tstate = wxPyBeginAllowThreads();
11685 result = (wxNativeFontInfo *)new wxNativeFontInfo();
11686 wxPyEndAllowThreads(__tstate);
11687 if (PyErr_Occurred()) SWIG_fail;
11688 }
11689 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
11690 return resultobj;
11691fail:
11692 return NULL;
d14a1e28
RD
11693}
11694
11695
0085ce49
RD
11696SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11697 PyObject *resultobj = 0;
11698 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11699 void *argp1 = 0 ;
11700 int res1 = 0 ;
11701 PyObject *swig_obj[1] ;
11702
11703 if (!args) SWIG_fail;
11704 swig_obj[0] = args;
11705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
11706 if (!SWIG_IsOK(res1)) {
11707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11708 }
11709 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11710 {
11711 PyThreadState* __tstate = wxPyBeginAllowThreads();
11712 delete arg1;
d14a1e28 11713
0085ce49
RD
11714 wxPyEndAllowThreads(__tstate);
11715 if (PyErr_Occurred()) SWIG_fail;
11716 }
11717 resultobj = SWIG_Py_Void();
11718 return resultobj;
11719fail:
11720 return NULL;
d14a1e28
RD
11721}
11722
11723
0085ce49
RD
11724SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11725 PyObject *resultobj = 0;
11726 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11727 void *argp1 = 0 ;
11728 int res1 = 0 ;
11729 PyObject *swig_obj[1] ;
11730
11731 if (!args) SWIG_fail;
11732 swig_obj[0] = args;
11733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11734 if (!SWIG_IsOK(res1)) {
11735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11736 }
11737 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11738 {
11739 PyThreadState* __tstate = wxPyBeginAllowThreads();
11740 (arg1)->Init();
11741 wxPyEndAllowThreads(__tstate);
11742 if (PyErr_Occurred()) SWIG_fail;
11743 }
11744 resultobj = SWIG_Py_Void();
11745 return resultobj;
11746fail:
11747 return NULL;
11748}
11749
11750
11751SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11752 PyObject *resultobj = 0;
11753 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11754 wxFont *arg2 = 0 ;
11755 void *argp1 = 0 ;
11756 int res1 = 0 ;
11757 void *argp2 = 0 ;
11758 int res2 = 0 ;
11759 PyObject * obj0 = 0 ;
11760 PyObject * obj1 = 0 ;
11761 char * kwnames[] = {
11762 (char *) "self",(char *) "font", NULL
11763 };
11764
11765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
11766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11767 if (!SWIG_IsOK(res1)) {
11768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11769 }
11770 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11771 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
11772 if (!SWIG_IsOK(res2)) {
11773 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11774 }
11775 if (!argp2) {
11776 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11777 }
11778 arg2 = reinterpret_cast< wxFont * >(argp2);
11779 {
11780 PyThreadState* __tstate = wxPyBeginAllowThreads();
11781 (arg1)->InitFromFont((wxFont const &)*arg2);
11782 wxPyEndAllowThreads(__tstate);
11783 if (PyErr_Occurred()) SWIG_fail;
11784 }
11785 resultobj = SWIG_Py_Void();
11786 return resultobj;
11787fail:
11788 return NULL;
e6ffcedd
RD
11789}
11790
11791
0085ce49
RD
11792SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11793 PyObject *resultobj = 0;
11794 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11795 int result;
11796 void *argp1 = 0 ;
11797 int res1 = 0 ;
11798 PyObject *swig_obj[1] ;
11799
11800 if (!args) SWIG_fail;
11801 swig_obj[0] = args;
11802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11803 if (!SWIG_IsOK(res1)) {
11804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11805 }
11806 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11807 {
11808 PyThreadState* __tstate = wxPyBeginAllowThreads();
11809 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
11810 wxPyEndAllowThreads(__tstate);
11811 if (PyErr_Occurred()) SWIG_fail;
11812 }
11813 resultobj = SWIG_From_int(static_cast< int >(result));
11814 return resultobj;
11815fail:
11816 return NULL;
d14a1e28
RD
11817}
11818
11819
0085ce49
RD
11820SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11821 PyObject *resultobj = 0;
11822 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11823 wxFontStyle result;
11824 void *argp1 = 0 ;
11825 int res1 = 0 ;
11826 PyObject *swig_obj[1] ;
11827
11828 if (!args) SWIG_fail;
11829 swig_obj[0] = args;
11830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11831 if (!SWIG_IsOK(res1)) {
11832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11833 }
11834 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11835 {
11836 PyThreadState* __tstate = wxPyBeginAllowThreads();
11837 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
11838 wxPyEndAllowThreads(__tstate);
11839 if (PyErr_Occurred()) SWIG_fail;
11840 }
11841 resultobj = SWIG_From_int(static_cast< int >(result));
11842 return resultobj;
11843fail:
11844 return NULL;
d14a1e28
RD
11845}
11846
11847
0085ce49
RD
11848SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11849 PyObject *resultobj = 0;
11850 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11851 wxFontWeight result;
11852 void *argp1 = 0 ;
11853 int res1 = 0 ;
11854 PyObject *swig_obj[1] ;
11855
11856 if (!args) SWIG_fail;
11857 swig_obj[0] = args;
11858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11859 if (!SWIG_IsOK(res1)) {
11860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11861 }
11862 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11863 {
11864 PyThreadState* __tstate = wxPyBeginAllowThreads();
11865 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
11866 wxPyEndAllowThreads(__tstate);
11867 if (PyErr_Occurred()) SWIG_fail;
11868 }
11869 resultobj = SWIG_From_int(static_cast< int >(result));
11870 return resultobj;
11871fail:
11872 return NULL;
d14a1e28
RD
11873}
11874
11875
0085ce49
RD
11876SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11877 PyObject *resultobj = 0;
11878 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11879 bool result;
11880 void *argp1 = 0 ;
11881 int res1 = 0 ;
11882 PyObject *swig_obj[1] ;
11883
11884 if (!args) SWIG_fail;
11885 swig_obj[0] = args;
11886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11887 if (!SWIG_IsOK(res1)) {
11888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11889 }
11890 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11891 {
11892 PyThreadState* __tstate = wxPyBeginAllowThreads();
11893 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
11894 wxPyEndAllowThreads(__tstate);
11895 if (PyErr_Occurred()) SWIG_fail;
11896 }
11897 {
11898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11899 }
11900 return resultobj;
11901fail:
11902 return NULL;
d14a1e28
RD
11903}
11904
11905
0085ce49
RD
11906SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11907 PyObject *resultobj = 0;
11908 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11909 wxString result;
11910 void *argp1 = 0 ;
11911 int res1 = 0 ;
11912 PyObject *swig_obj[1] ;
11913
11914 if (!args) SWIG_fail;
11915 swig_obj[0] = args;
11916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11917 if (!SWIG_IsOK(res1)) {
11918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11919 }
11920 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11921 {
11922 PyThreadState* __tstate = wxPyBeginAllowThreads();
11923 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
11924 wxPyEndAllowThreads(__tstate);
11925 if (PyErr_Occurred()) SWIG_fail;
11926 }
11927 {
11928#if wxUSE_UNICODE
11929 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11930#else
11931 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11932#endif
11933 }
11934 return resultobj;
11935fail:
11936 return NULL;
d14a1e28
RD
11937}
11938
11939
0085ce49
RD
11940SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11941 PyObject *resultobj = 0;
11942 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11943 wxFontFamily 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_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11953 }
11954 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11955 {
11956 PyThreadState* __tstate = wxPyBeginAllowThreads();
11957 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
11958 wxPyEndAllowThreads(__tstate);
11959 if (PyErr_Occurred()) SWIG_fail;
11960 }
11961 resultobj = SWIG_From_int(static_cast< int >(result));
11962 return resultobj;
11963fail:
11964 return NULL;
d14a1e28
RD
11965}
11966
11967
0085ce49
RD
11968SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11969 PyObject *resultobj = 0;
11970 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11971 wxFontEncoding result;
11972 void *argp1 = 0 ;
11973 int res1 = 0 ;
11974 PyObject *swig_obj[1] ;
11975
11976 if (!args) SWIG_fail;
11977 swig_obj[0] = args;
11978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11979 if (!SWIG_IsOK(res1)) {
11980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11981 }
11982 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11983 {
11984 PyThreadState* __tstate = wxPyBeginAllowThreads();
11985 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
11986 wxPyEndAllowThreads(__tstate);
11987 if (PyErr_Occurred()) SWIG_fail;
11988 }
11989 resultobj = SWIG_From_int(static_cast< int >(result));
11990 return resultobj;
11991fail:
11992 return NULL;
11993}
11994
11995
11996SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11997 PyObject *resultobj = 0;
11998 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11999 int arg2 ;
12000 void *argp1 = 0 ;
12001 int res1 = 0 ;
12002 int val2 ;
12003 int ecode2 = 0 ;
12004 PyObject * obj0 = 0 ;
12005 PyObject * obj1 = 0 ;
12006 char * kwnames[] = {
12007 (char *) "self",(char *) "pointsize", NULL
12008 };
12009
12010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12012 if (!SWIG_IsOK(res1)) {
12013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12014 }
12015 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12016 ecode2 = SWIG_AsVal_int(obj1, &val2);
12017 if (!SWIG_IsOK(ecode2)) {
12018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12019 }
12020 arg2 = static_cast< int >(val2);
12021 {
12022 PyThreadState* __tstate = wxPyBeginAllowThreads();
12023 (arg1)->SetPointSize(arg2);
12024 wxPyEndAllowThreads(__tstate);
12025 if (PyErr_Occurred()) SWIG_fail;
12026 }
12027 resultobj = SWIG_Py_Void();
12028 return resultobj;
12029fail:
12030 return NULL;
12031}
12032
12033
12034SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12035 PyObject *resultobj = 0;
12036 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12037 wxFontStyle arg2 ;
12038 void *argp1 = 0 ;
12039 int res1 = 0 ;
12040 int val2 ;
12041 int ecode2 = 0 ;
12042 PyObject * obj0 = 0 ;
12043 PyObject * obj1 = 0 ;
12044 char * kwnames[] = {
12045 (char *) "self",(char *) "style", NULL
12046 };
12047
12048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12050 if (!SWIG_IsOK(res1)) {
12051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12052 }
12053 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12054 ecode2 = SWIG_AsVal_int(obj1, &val2);
12055 if (!SWIG_IsOK(ecode2)) {
12056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12057 }
12058 arg2 = static_cast< wxFontStyle >(val2);
12059 {
12060 PyThreadState* __tstate = wxPyBeginAllowThreads();
12061 (arg1)->SetStyle(arg2);
12062 wxPyEndAllowThreads(__tstate);
12063 if (PyErr_Occurred()) SWIG_fail;
12064 }
12065 resultobj = SWIG_Py_Void();
12066 return resultobj;
12067fail:
12068 return NULL;
12069}
12070
12071
12072SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12073 PyObject *resultobj = 0;
12074 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12075 wxFontWeight arg2 ;
12076 void *argp1 = 0 ;
12077 int res1 = 0 ;
12078 int val2 ;
12079 int ecode2 = 0 ;
12080 PyObject * obj0 = 0 ;
12081 PyObject * obj1 = 0 ;
12082 char * kwnames[] = {
12083 (char *) "self",(char *) "weight", NULL
12084 };
12085
12086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12088 if (!SWIG_IsOK(res1)) {
12089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12090 }
12091 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12092 ecode2 = SWIG_AsVal_int(obj1, &val2);
12093 if (!SWIG_IsOK(ecode2)) {
12094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12095 }
12096 arg2 = static_cast< wxFontWeight >(val2);
12097 {
12098 PyThreadState* __tstate = wxPyBeginAllowThreads();
12099 (arg1)->SetWeight(arg2);
12100 wxPyEndAllowThreads(__tstate);
12101 if (PyErr_Occurred()) SWIG_fail;
12102 }
12103 resultobj = SWIG_Py_Void();
12104 return resultobj;
12105fail:
12106 return NULL;
12107}
12108
12109
12110SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12111 PyObject *resultobj = 0;
12112 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12113 bool arg2 ;
12114 void *argp1 = 0 ;
12115 int res1 = 0 ;
12116 bool val2 ;
12117 int ecode2 = 0 ;
12118 PyObject * obj0 = 0 ;
12119 PyObject * obj1 = 0 ;
12120 char * kwnames[] = {
12121 (char *) "self",(char *) "underlined", NULL
12122 };
12123
12124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12126 if (!SWIG_IsOK(res1)) {
12127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12128 }
12129 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12130 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12131 if (!SWIG_IsOK(ecode2)) {
12132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12133 }
12134 arg2 = static_cast< bool >(val2);
12135 {
12136 PyThreadState* __tstate = wxPyBeginAllowThreads();
12137 (arg1)->SetUnderlined(arg2);
12138 wxPyEndAllowThreads(__tstate);
12139 if (PyErr_Occurred()) SWIG_fail;
12140 }
12141 resultobj = SWIG_Py_Void();
12142 return resultobj;
12143fail:
12144 return NULL;
12145}
12146
12147
12148SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12149 PyObject *resultobj = 0;
12150 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12151 wxString arg2 ;
704eda0c 12152 bool result;
0085ce49
RD
12153 void *argp1 = 0 ;
12154 int res1 = 0 ;
12155 PyObject * obj0 = 0 ;
12156 PyObject * obj1 = 0 ;
12157 char * kwnames[] = {
12158 (char *) "self",(char *) "facename", NULL
12159 };
12160
12161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12163 if (!SWIG_IsOK(res1)) {
12164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12165 }
12166 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12167 {
12168 wxString* sptr = wxString_in_helper(obj1);
12169 if (sptr == NULL) SWIG_fail;
12170 arg2 = *sptr;
12171 delete sptr;
12172 }
12173 {
12174 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12175 result = (bool)(arg1)->SetFaceName(arg2);
0085ce49
RD
12176 wxPyEndAllowThreads(__tstate);
12177 if (PyErr_Occurred()) SWIG_fail;
12178 }
704eda0c
RD
12179 {
12180 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12181 }
0085ce49
RD
12182 return resultobj;
12183fail:
12184 return NULL;
12185}
12186
12187
12188SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12189 PyObject *resultobj = 0;
12190 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12191 wxFontFamily arg2 ;
12192 void *argp1 = 0 ;
12193 int res1 = 0 ;
12194 int val2 ;
12195 int ecode2 = 0 ;
12196 PyObject * obj0 = 0 ;
12197 PyObject * obj1 = 0 ;
12198 char * kwnames[] = {
12199 (char *) "self",(char *) "family", NULL
12200 };
12201
12202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12204 if (!SWIG_IsOK(res1)) {
12205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12206 }
12207 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12208 ecode2 = SWIG_AsVal_int(obj1, &val2);
12209 if (!SWIG_IsOK(ecode2)) {
12210 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12211 }
12212 arg2 = static_cast< wxFontFamily >(val2);
12213 {
12214 PyThreadState* __tstate = wxPyBeginAllowThreads();
12215 (arg1)->SetFamily(arg2);
12216 wxPyEndAllowThreads(__tstate);
12217 if (PyErr_Occurred()) SWIG_fail;
12218 }
12219 resultobj = SWIG_Py_Void();
12220 return resultobj;
12221fail:
12222 return NULL;
12223}
12224
12225
12226SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12227 PyObject *resultobj = 0;
12228 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12229 wxFontEncoding arg2 ;
12230 void *argp1 = 0 ;
12231 int res1 = 0 ;
12232 int val2 ;
12233 int ecode2 = 0 ;
12234 PyObject * obj0 = 0 ;
12235 PyObject * obj1 = 0 ;
12236 char * kwnames[] = {
12237 (char *) "self",(char *) "encoding", NULL
12238 };
12239
12240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12242 if (!SWIG_IsOK(res1)) {
12243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12244 }
12245 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12246 ecode2 = SWIG_AsVal_int(obj1, &val2);
12247 if (!SWIG_IsOK(ecode2)) {
12248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12249 }
12250 arg2 = static_cast< wxFontEncoding >(val2);
12251 {
12252 PyThreadState* __tstate = wxPyBeginAllowThreads();
12253 (arg1)->SetEncoding(arg2);
12254 wxPyEndAllowThreads(__tstate);
12255 if (PyErr_Occurred()) SWIG_fail;
12256 }
12257 resultobj = SWIG_Py_Void();
12258 return resultobj;
12259fail:
12260 return NULL;
12261}
12262
12263
12264SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12265 PyObject *resultobj = 0;
12266 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12267 wxString *arg2 = 0 ;
12268 bool result;
12269 void *argp1 = 0 ;
12270 int res1 = 0 ;
12271 bool temp2 = false ;
12272 PyObject * obj0 = 0 ;
12273 PyObject * obj1 = 0 ;
12274 char * kwnames[] = {
12275 (char *) "self",(char *) "s", NULL
12276 };
12277
12278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12280 if (!SWIG_IsOK(res1)) {
12281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12282 }
12283 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12284 {
12285 arg2 = wxString_in_helper(obj1);
12286 if (arg2 == NULL) SWIG_fail;
12287 temp2 = true;
12288 }
12289 {
12290 PyThreadState* __tstate = wxPyBeginAllowThreads();
12291 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12292 wxPyEndAllowThreads(__tstate);
12293 if (PyErr_Occurred()) SWIG_fail;
12294 }
12295 {
12296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12297 }
12298 {
12299 if (temp2)
12300 delete arg2;
12301 }
12302 return resultobj;
12303fail:
12304 {
12305 if (temp2)
12306 delete arg2;
12307 }
12308 return NULL;
d14a1e28
RD
12309}
12310
12311
0085ce49
RD
12312SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12313 PyObject *resultobj = 0;
12314 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12315 wxString result;
12316 void *argp1 = 0 ;
12317 int res1 = 0 ;
12318 PyObject *swig_obj[1] ;
12319
12320 if (!args) SWIG_fail;
12321 swig_obj[0] = args;
12322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12323 if (!SWIG_IsOK(res1)) {
12324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12325 }
12326 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12327 {
12328 PyThreadState* __tstate = wxPyBeginAllowThreads();
12329 result = ((wxNativeFontInfo const *)arg1)->ToString();
12330 wxPyEndAllowThreads(__tstate);
12331 if (PyErr_Occurred()) SWIG_fail;
12332 }
12333 {
12334#if wxUSE_UNICODE
12335 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12336#else
12337 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12338#endif
12339 }
12340 return resultobj;
12341fail:
12342 return NULL;
d14a1e28
RD
12343}
12344
12345
0085ce49
RD
12346SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(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___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12359 }
12360 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12361 {
12362 PyThreadState* __tstate = wxPyBeginAllowThreads();
12363 result = wxNativeFontInfo___str__(arg1);
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;
12377}
12378
12379
12380SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12381 PyObject *resultobj = 0;
12382 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12383 wxString *arg2 = 0 ;
12384 bool result;
12385 void *argp1 = 0 ;
12386 int res1 = 0 ;
12387 bool temp2 = false ;
12388 PyObject * obj0 = 0 ;
12389 PyObject * obj1 = 0 ;
12390 char * kwnames[] = {
12391 (char *) "self",(char *) "s", NULL
12392 };
12393
12394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12396 if (!SWIG_IsOK(res1)) {
12397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12398 }
12399 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12400 {
12401 arg2 = wxString_in_helper(obj1);
12402 if (arg2 == NULL) SWIG_fail;
12403 temp2 = true;
12404 }
12405 {
12406 PyThreadState* __tstate = wxPyBeginAllowThreads();
12407 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12408 wxPyEndAllowThreads(__tstate);
12409 if (PyErr_Occurred()) SWIG_fail;
12410 }
12411 {
12412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12413 }
12414 {
12415 if (temp2)
12416 delete arg2;
12417 }
12418 return resultobj;
12419fail:
12420 {
12421 if (temp2)
12422 delete arg2;
12423 }
12424 return NULL;
d14a1e28
RD
12425}
12426
12427
0085ce49
RD
12428SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12429 PyObject *resultobj = 0;
12430 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12431 wxString result;
12432 void *argp1 = 0 ;
12433 int res1 = 0 ;
12434 PyObject *swig_obj[1] ;
12435
12436 if (!args) SWIG_fail;
12437 swig_obj[0] = args;
12438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12439 if (!SWIG_IsOK(res1)) {
12440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12441 }
12442 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12443 {
12444 PyThreadState* __tstate = wxPyBeginAllowThreads();
12445 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12446 wxPyEndAllowThreads(__tstate);
12447 if (PyErr_Occurred()) SWIG_fail;
12448 }
12449 {
12450#if wxUSE_UNICODE
12451 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12452#else
12453 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12454#endif
12455 }
12456 return resultobj;
12457fail:
12458 return NULL;
d14a1e28
RD
12459}
12460
12461
0085ce49
RD
12462SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12463 PyObject *obj;
12464 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12465 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12466 return SWIG_Py_Void();
d14a1e28
RD
12467}
12468
0085ce49
RD
12469SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12470 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
12471}
12472
0085ce49
RD
12473SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12474 PyObject *resultobj = 0;
12475 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12476 wxString *arg2 = (wxString *) 0 ;
12477 void *argp1 = 0 ;
12478 int res1 = 0 ;
12479 bool temp2 = false ;
12480 PyObject *swig_obj[2] ;
12481
12482 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12484 if (!SWIG_IsOK(res1)) {
12485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12486 }
12487 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12488 {
12489 arg2 = wxString_in_helper(swig_obj[1]);
12490 if (arg2 == NULL) SWIG_fail;
12491 temp2 = true;
12492 }
12493 if (arg1) (arg1)->facename = *arg2;
12494
12495 resultobj = SWIG_Py_Void();
12496 {
12497 if (temp2)
12498 delete arg2;
12499 }
12500 return resultobj;
12501fail:
12502 {
12503 if (temp2)
12504 delete arg2;
12505 }
12506 return NULL;
d14a1e28
RD
12507}
12508
12509
0085ce49
RD
12510SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12511 PyObject *resultobj = 0;
12512 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12513 wxString *result = 0 ;
12514 void *argp1 = 0 ;
12515 int res1 = 0 ;
12516 PyObject *swig_obj[1] ;
12517
12518 if (!args) SWIG_fail;
12519 swig_obj[0] = args;
12520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12521 if (!SWIG_IsOK(res1)) {
12522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12523 }
12524 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12525 result = (wxString *)& ((arg1)->facename);
12526 {
12527#if wxUSE_UNICODE
12528 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12529#else
12530 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12531#endif
12532 }
12533 return resultobj;
12534fail:
12535 return NULL;
d14a1e28
RD
12536}
12537
12538
0085ce49
RD
12539SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12540 PyObject *resultobj = 0;
12541 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12542 wxFontEncoding arg2 ;
12543 void *argp1 = 0 ;
12544 int res1 = 0 ;
12545 int val2 ;
12546 int ecode2 = 0 ;
12547 PyObject *swig_obj[2] ;
12548
12549 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12551 if (!SWIG_IsOK(res1)) {
12552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12553 }
12554 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12555 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12556 if (!SWIG_IsOK(ecode2)) {
12557 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12558 }
12559 arg2 = static_cast< wxFontEncoding >(val2);
12560 if (arg1) (arg1)->encoding = arg2;
12561
12562 resultobj = SWIG_Py_Void();
12563 return resultobj;
12564fail:
12565 return NULL;
d14a1e28
RD
12566}
12567
12568
0085ce49
RD
12569SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12570 PyObject *resultobj = 0;
12571 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12572 wxFontEncoding result;
12573 void *argp1 = 0 ;
12574 int res1 = 0 ;
12575 PyObject *swig_obj[1] ;
12576
12577 if (!args) SWIG_fail;
12578 swig_obj[0] = args;
12579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12580 if (!SWIG_IsOK(res1)) {
12581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12582 }
12583 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12584 result = (wxFontEncoding) ((arg1)->encoding);
12585 resultobj = SWIG_From_int(static_cast< int >(result));
12586 return resultobj;
12587fail:
12588 return NULL;
d14a1e28
RD
12589}
12590
12591
0085ce49
RD
12592SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12593 PyObject *resultobj = 0;
12594 wxNativeEncodingInfo *result = 0 ;
12595
12596 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12597 {
12598 PyThreadState* __tstate = wxPyBeginAllowThreads();
12599 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12600 wxPyEndAllowThreads(__tstate);
12601 if (PyErr_Occurred()) SWIG_fail;
12602 }
12603 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12604 return resultobj;
12605fail:
12606 return NULL;
d14a1e28
RD
12607}
12608
12609
0085ce49
RD
12610SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12611 PyObject *resultobj = 0;
12612 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12613 void *argp1 = 0 ;
12614 int res1 = 0 ;
12615 PyObject *swig_obj[1] ;
12616
12617 if (!args) SWIG_fail;
12618 swig_obj[0] = args;
12619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12620 if (!SWIG_IsOK(res1)) {
12621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12622 }
12623 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12624 {
12625 PyThreadState* __tstate = wxPyBeginAllowThreads();
12626 delete arg1;
d14a1e28 12627
0085ce49
RD
12628 wxPyEndAllowThreads(__tstate);
12629 if (PyErr_Occurred()) SWIG_fail;
12630 }
12631 resultobj = SWIG_Py_Void();
12632 return resultobj;
12633fail:
12634 return NULL;
12635}
12636
12637
12638SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12639 PyObject *resultobj = 0;
12640 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12641 wxString *arg2 = 0 ;
12642 bool result;
12643 void *argp1 = 0 ;
12644 int res1 = 0 ;
12645 bool temp2 = false ;
12646 PyObject * obj0 = 0 ;
12647 PyObject * obj1 = 0 ;
12648 char * kwnames[] = {
12649 (char *) "self",(char *) "s", NULL
12650 };
12651
12652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12654 if (!SWIG_IsOK(res1)) {
12655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12656 }
12657 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12658 {
12659 arg2 = wxString_in_helper(obj1);
12660 if (arg2 == NULL) SWIG_fail;
12661 temp2 = true;
12662 }
12663 {
12664 PyThreadState* __tstate = wxPyBeginAllowThreads();
12665 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12666 wxPyEndAllowThreads(__tstate);
12667 if (PyErr_Occurred()) SWIG_fail;
12668 }
12669 {
12670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12671 }
12672 {
12673 if (temp2)
12674 delete arg2;
12675 }
12676 return resultobj;
12677fail:
12678 {
12679 if (temp2)
12680 delete arg2;
12681 }
12682 return NULL;
d14a1e28
RD
12683}
12684
12685
0085ce49
RD
12686SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12687 PyObject *resultobj = 0;
12688 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12689 wxString result;
12690 void *argp1 = 0 ;
12691 int res1 = 0 ;
12692 PyObject *swig_obj[1] ;
12693
12694 if (!args) SWIG_fail;
12695 swig_obj[0] = args;
12696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12697 if (!SWIG_IsOK(res1)) {
12698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
12699 }
12700 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12701 {
12702 PyThreadState* __tstate = wxPyBeginAllowThreads();
12703 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
12704 wxPyEndAllowThreads(__tstate);
12705 if (PyErr_Occurred()) SWIG_fail;
12706 }
12707 {
12708#if wxUSE_UNICODE
12709 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12710#else
12711 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12712#endif
12713 }
12714 return resultobj;
12715fail:
12716 return NULL;
d14a1e28
RD
12717}
12718
12719
0085ce49
RD
12720SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12721 PyObject *obj;
12722 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12723 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
12724 return SWIG_Py_Void();
d14a1e28
RD
12725}
12726
0085ce49
RD
12727SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12728 return SWIG_Python_InitShadowInstance(args);
12729}
d14a1e28 12730
0085ce49
RD
12731SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12732 PyObject *resultobj = 0;
12733 wxFontEncoding arg1 ;
12734 wxNativeEncodingInfo *result = 0 ;
12735 int val1 ;
12736 int ecode1 = 0 ;
12737 PyObject * obj0 = 0 ;
12738 char * kwnames[] = {
12739 (char *) "encoding", NULL
12740 };
12741
12742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
12743 ecode1 = SWIG_AsVal_int(obj0, &val1);
12744 if (!SWIG_IsOK(ecode1)) {
12745 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12746 }
12747 arg1 = static_cast< wxFontEncoding >(val1);
12748 {
12749 PyThreadState* __tstate = wxPyBeginAllowThreads();
12750 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
12751 wxPyEndAllowThreads(__tstate);
12752 if (PyErr_Occurred()) SWIG_fail;
12753 }
12754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12755 return resultobj;
12756fail:
12757 return NULL;
12758}
12759
12760
12761SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12762 PyObject *resultobj = 0;
12763 wxNativeEncodingInfo *arg1 = 0 ;
12764 bool result;
12765 void *argp1 = 0 ;
12766 int res1 = 0 ;
12767 PyObject * obj0 = 0 ;
12768 char * kwnames[] = {
12769 (char *) "info", NULL
12770 };
12771
12772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
12773 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
12774 if (!SWIG_IsOK(res1)) {
12775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12776 }
12777 if (!argp1) {
12778 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12779 }
12780 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12781 {
12782 PyThreadState* __tstate = wxPyBeginAllowThreads();
12783 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
12784 wxPyEndAllowThreads(__tstate);
12785 if (PyErr_Occurred()) SWIG_fail;
12786 }
12787 {
12788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12789 }
12790 return resultobj;
12791fail:
12792 return NULL;
d14a1e28
RD
12793}
12794
12795
0085ce49
RD
12796SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12797 PyObject *resultobj = 0;
12798 wxFontMapper *result = 0 ;
12799
12800 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
12801 {
12802 PyThreadState* __tstate = wxPyBeginAllowThreads();
12803 result = (wxFontMapper *)new wxFontMapper();
12804 wxPyEndAllowThreads(__tstate);
12805 if (PyErr_Occurred()) SWIG_fail;
12806 }
12807 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
12808 return resultobj;
12809fail:
12810 return NULL;
d14a1e28
RD
12811}
12812
12813
0085ce49
RD
12814SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12815 PyObject *resultobj = 0;
12816 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12817 void *argp1 = 0 ;
12818 int res1 = 0 ;
12819 PyObject *swig_obj[1] ;
12820
12821 if (!args) SWIG_fail;
12822 swig_obj[0] = args;
12823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
12824 if (!SWIG_IsOK(res1)) {
12825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12826 }
12827 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12828 {
12829 PyThreadState* __tstate = wxPyBeginAllowThreads();
12830 delete arg1;
d14a1e28 12831
0085ce49
RD
12832 wxPyEndAllowThreads(__tstate);
12833 if (PyErr_Occurred()) SWIG_fail;
12834 }
12835 resultobj = SWIG_Py_Void();
12836 return resultobj;
12837fail:
12838 return NULL;
d14a1e28
RD
12839}
12840
12841
0085ce49
RD
12842SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12843 PyObject *resultobj = 0;
12844 wxFontMapper *result = 0 ;
12845
12846 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
12847 {
12848 PyThreadState* __tstate = wxPyBeginAllowThreads();
12849 result = (wxFontMapper *)wxFontMapper::Get();
12850 wxPyEndAllowThreads(__tstate);
12851 if (PyErr_Occurred()) SWIG_fail;
12852 }
12853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12854 return resultobj;
12855fail:
12856 return NULL;
12857}
12858
12859
12860SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12861 PyObject *resultobj = 0;
12862 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12863 wxFontMapper *result = 0 ;
12864 void *argp1 = 0 ;
12865 int res1 = 0 ;
12866 PyObject * obj0 = 0 ;
12867 char * kwnames[] = {
12868 (char *) "mapper", NULL
12869 };
12870
12871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
12872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12873 if (!SWIG_IsOK(res1)) {
12874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12875 }
12876 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12877 {
12878 PyThreadState* __tstate = wxPyBeginAllowThreads();
12879 result = (wxFontMapper *)wxFontMapper::Set(arg1);
12880 wxPyEndAllowThreads(__tstate);
12881 if (PyErr_Occurred()) SWIG_fail;
12882 }
12883 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12884 return resultobj;
12885fail:
12886 return NULL;
12887}
12888
12889
12890SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12891 PyObject *resultobj = 0;
12892 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12893 wxString *arg2 = 0 ;
12894 bool arg3 = (bool) true ;
12895 wxFontEncoding result;
12896 void *argp1 = 0 ;
12897 int res1 = 0 ;
12898 bool temp2 = false ;
12899 bool val3 ;
12900 int ecode3 = 0 ;
12901 PyObject * obj0 = 0 ;
12902 PyObject * obj1 = 0 ;
12903 PyObject * obj2 = 0 ;
12904 char * kwnames[] = {
12905 (char *) "self",(char *) "charset",(char *) "interactive", NULL
12906 };
12907
12908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12910 if (!SWIG_IsOK(res1)) {
12911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12912 }
12913 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12914 {
12915 arg2 = wxString_in_helper(obj1);
12916 if (arg2 == NULL) SWIG_fail;
12917 temp2 = true;
12918 }
12919 if (obj2) {
12920 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12921 if (!SWIG_IsOK(ecode3)) {
12922 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
12923 }
12924 arg3 = static_cast< bool >(val3);
12925 }
12926 {
12927 PyThreadState* __tstate = wxPyBeginAllowThreads();
12928 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
12929 wxPyEndAllowThreads(__tstate);
12930 if (PyErr_Occurred()) SWIG_fail;
12931 }
12932 resultobj = SWIG_From_int(static_cast< int >(result));
12933 {
12934 if (temp2)
12935 delete arg2;
12936 }
12937 return resultobj;
12938fail:
12939 {
12940 if (temp2)
12941 delete arg2;
12942 }
12943 return NULL;
e6ffcedd
RD
12944}
12945
12946
0085ce49
RD
12947SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12948 PyObject *resultobj = 0;
12949 size_t result;
12950
12951 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
12952 {
12953 PyThreadState* __tstate = wxPyBeginAllowThreads();
12954 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
12955 wxPyEndAllowThreads(__tstate);
12956 if (PyErr_Occurred()) SWIG_fail;
12957 }
12958 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
12959 return resultobj;
12960fail:
12961 return NULL;
12962}
12963
12964
12965SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12966 PyObject *resultobj = 0;
12967 size_t arg1 ;
12968 wxFontEncoding result;
12969 size_t val1 ;
12970 int ecode1 = 0 ;
12971 PyObject * obj0 = 0 ;
12972 char * kwnames[] = {
12973 (char *) "n", NULL
12974 };
12975
12976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
12977 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
12978 if (!SWIG_IsOK(ecode1)) {
12979 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
12980 }
12981 arg1 = static_cast< size_t >(val1);
12982 {
12983 PyThreadState* __tstate = wxPyBeginAllowThreads();
12984 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
12985 wxPyEndAllowThreads(__tstate);
12986 if (PyErr_Occurred()) SWIG_fail;
12987 }
12988 resultobj = SWIG_From_int(static_cast< int >(result));
12989 return resultobj;
12990fail:
12991 return NULL;
12992}
12993
12994
12995SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12996 PyObject *resultobj = 0;
12997 wxFontEncoding arg1 ;
12998 wxString result;
12999 int val1 ;
13000 int ecode1 = 0 ;
13001 PyObject * obj0 = 0 ;
13002 char * kwnames[] = {
13003 (char *) "encoding", NULL
13004 };
13005
13006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13007 ecode1 = SWIG_AsVal_int(obj0, &val1);
13008 if (!SWIG_IsOK(ecode1)) {
13009 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13010 }
13011 arg1 = static_cast< wxFontEncoding >(val1);
13012 {
13013 PyThreadState* __tstate = wxPyBeginAllowThreads();
13014 result = wxFontMapper::GetEncodingName(arg1);
13015 wxPyEndAllowThreads(__tstate);
13016 if (PyErr_Occurred()) SWIG_fail;
13017 }
13018 {
13019#if wxUSE_UNICODE
13020 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13021#else
13022 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13023#endif
13024 }
13025 return resultobj;
13026fail:
13027 return NULL;
d14a1e28
RD
13028}
13029
13030
0085ce49
RD
13031SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13032 PyObject *resultobj = 0;
13033 wxFontEncoding arg1 ;
13034 wxString result;
13035 int val1 ;
13036 int ecode1 = 0 ;
13037 PyObject * obj0 = 0 ;
13038 char * kwnames[] = {
13039 (char *) "encoding", NULL
13040 };
13041
13042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13043 ecode1 = SWIG_AsVal_int(obj0, &val1);
13044 if (!SWIG_IsOK(ecode1)) {
13045 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13046 }
13047 arg1 = static_cast< wxFontEncoding >(val1);
13048 {
13049 PyThreadState* __tstate = wxPyBeginAllowThreads();
13050 result = wxFontMapper::GetEncodingDescription(arg1);
13051 wxPyEndAllowThreads(__tstate);
13052 if (PyErr_Occurred()) SWIG_fail;
13053 }
13054 {
13055#if wxUSE_UNICODE
13056 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13057#else
13058 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13059#endif
13060 }
13061 return resultobj;
13062fail:
13063 return NULL;
d14a1e28
RD
13064}
13065
13066
0085ce49
RD
13067SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13068 PyObject *resultobj = 0;
13069 wxString *arg1 = 0 ;
13070 wxFontEncoding result;
13071 bool temp1 = false ;
13072 PyObject * obj0 = 0 ;
13073 char * kwnames[] = {
13074 (char *) "name", NULL
13075 };
13076
13077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13078 {
13079 arg1 = wxString_in_helper(obj0);
13080 if (arg1 == NULL) SWIG_fail;
13081 temp1 = true;
13082 }
13083 {
13084 PyThreadState* __tstate = wxPyBeginAllowThreads();
13085 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13086 wxPyEndAllowThreads(__tstate);
13087 if (PyErr_Occurred()) SWIG_fail;
13088 }
13089 resultobj = SWIG_From_int(static_cast< int >(result));
13090 {
13091 if (temp1)
13092 delete arg1;
13093 }
13094 return resultobj;
13095fail:
13096 {
13097 if (temp1)
13098 delete arg1;
13099 }
13100 return NULL;
d14a1e28
RD
13101}
13102
13103
0085ce49
RD
13104SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13105 PyObject *resultobj = 0;
13106 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13107 wxString *arg2 = 0 ;
13108 void *argp1 = 0 ;
13109 int res1 = 0 ;
13110 bool temp2 = false ;
13111 PyObject * obj0 = 0 ;
13112 PyObject * obj1 = 0 ;
13113 char * kwnames[] = {
13114 (char *) "self",(char *) "prefix", NULL
13115 };
13116
13117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13119 if (!SWIG_IsOK(res1)) {
13120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13121 }
13122 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13123 {
13124 arg2 = wxString_in_helper(obj1);
13125 if (arg2 == NULL) SWIG_fail;
13126 temp2 = true;
13127 }
13128 {
13129 PyThreadState* __tstate = wxPyBeginAllowThreads();
13130 (arg1)->SetConfigPath((wxString const &)*arg2);
13131 wxPyEndAllowThreads(__tstate);
13132 if (PyErr_Occurred()) SWIG_fail;
13133 }
13134 resultobj = SWIG_Py_Void();
13135 {
13136 if (temp2)
13137 delete arg2;
13138 }
13139 return resultobj;
13140fail:
13141 {
13142 if (temp2)
13143 delete arg2;
13144 }
13145 return NULL;
d14a1e28
RD
13146}
13147
13148
0085ce49
RD
13149SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13150 PyObject *resultobj = 0;
13151 wxString result;
13152
13153 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13154 {
13155 PyThreadState* __tstate = wxPyBeginAllowThreads();
13156 result = wxFontMapper::GetDefaultConfigPath();
13157 wxPyEndAllowThreads(__tstate);
13158 if (PyErr_Occurred()) SWIG_fail;
13159 }
13160 {
13161#if wxUSE_UNICODE
13162 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13163#else
13164 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13165#endif
13166 }
13167 return resultobj;
13168fail:
13169 return NULL;
13170}
13171
13172
13173SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13174 PyObject *resultobj = 0;
13175 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13176 wxFontEncoding arg2 ;
13177 wxString const &arg3_defvalue = wxPyEmptyString ;
13178 wxString *arg3 = (wxString *) &arg3_defvalue ;
13179 bool arg4 = (bool) true ;
13180 PyObject *result = 0 ;
13181 void *argp1 = 0 ;
13182 int res1 = 0 ;
13183 int val2 ;
13184 int ecode2 = 0 ;
13185 bool temp3 = false ;
13186 bool val4 ;
13187 int ecode4 = 0 ;
13188 PyObject * obj0 = 0 ;
13189 PyObject * obj1 = 0 ;
13190 PyObject * obj2 = 0 ;
13191 PyObject * obj3 = 0 ;
13192 char * kwnames[] = {
13193 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13194 };
13195
13196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13198 if (!SWIG_IsOK(res1)) {
13199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13200 }
13201 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13202 ecode2 = SWIG_AsVal_int(obj1, &val2);
13203 if (!SWIG_IsOK(ecode2)) {
13204 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13205 }
13206 arg2 = static_cast< wxFontEncoding >(val2);
13207 if (obj2) {
093d3ff1 13208 {
0085ce49
RD
13209 arg3 = wxString_in_helper(obj2);
13210 if (arg3 == NULL) SWIG_fail;
13211 temp3 = true;
093d3ff1 13212 }
0085ce49
RD
13213 }
13214 if (obj3) {
13215 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13216 if (!SWIG_IsOK(ecode4)) {
13217 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13218 }
13219 arg4 = static_cast< bool >(val4);
13220 }
13221 {
13222 PyThreadState* __tstate = wxPyBeginAllowThreads();
13223 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13224 wxPyEndAllowThreads(__tstate);
13225 if (PyErr_Occurred()) SWIG_fail;
13226 }
13227 resultobj = result;
13228 {
13229 if (temp3)
13230 delete arg3;
13231 }
13232 return resultobj;
13233fail:
13234 {
13235 if (temp3)
13236 delete arg3;
13237 }
13238 return NULL;
13239}
13240
13241
13242SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13243 PyObject *resultobj = 0;
13244 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13245 wxFontEncoding arg2 ;
13246 wxString const &arg3_defvalue = wxPyEmptyString ;
13247 wxString *arg3 = (wxString *) &arg3_defvalue ;
13248 bool result;
13249 void *argp1 = 0 ;
13250 int res1 = 0 ;
13251 int val2 ;
13252 int ecode2 = 0 ;
13253 bool temp3 = false ;
13254 PyObject * obj0 = 0 ;
13255 PyObject * obj1 = 0 ;
13256 PyObject * obj2 = 0 ;
13257 char * kwnames[] = {
13258 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13259 };
13260
13261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13263 if (!SWIG_IsOK(res1)) {
13264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13265 }
13266 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13267 ecode2 = SWIG_AsVal_int(obj1, &val2);
13268 if (!SWIG_IsOK(ecode2)) {
13269 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13270 }
13271 arg2 = static_cast< wxFontEncoding >(val2);
13272 if (obj2) {
d14a1e28 13273 {
0085ce49
RD
13274 arg3 = wxString_in_helper(obj2);
13275 if (arg3 == NULL) SWIG_fail;
13276 temp3 = true;
d14a1e28 13277 }
0085ce49
RD
13278 }
13279 {
13280 PyThreadState* __tstate = wxPyBeginAllowThreads();
13281 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13282 wxPyEndAllowThreads(__tstate);
13283 if (PyErr_Occurred()) SWIG_fail;
13284 }
13285 {
13286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13287 }
13288 {
13289 if (temp3)
13290 delete arg3;
13291 }
13292 return resultobj;
13293fail:
13294 {
13295 if (temp3)
13296 delete arg3;
13297 }
13298 return NULL;
13299}
13300
13301
13302SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13303 PyObject *resultobj = 0;
13304 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13305 wxWindow *arg2 = (wxWindow *) 0 ;
13306 void *argp1 = 0 ;
13307 int res1 = 0 ;
13308 void *argp2 = 0 ;
13309 int res2 = 0 ;
13310 PyObject * obj0 = 0 ;
13311 PyObject * obj1 = 0 ;
13312 char * kwnames[] = {
13313 (char *) "self",(char *) "parent", NULL
13314 };
13315
13316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13318 if (!SWIG_IsOK(res1)) {
13319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13320 }
13321 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13322 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13323 if (!SWIG_IsOK(res2)) {
13324 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13325 }
13326 arg2 = reinterpret_cast< wxWindow * >(argp2);
13327 {
13328 PyThreadState* __tstate = wxPyBeginAllowThreads();
13329 (arg1)->SetDialogParent(arg2);
13330 wxPyEndAllowThreads(__tstate);
13331 if (PyErr_Occurred()) SWIG_fail;
13332 }
13333 resultobj = SWIG_Py_Void();
13334 return resultobj;
13335fail:
13336 return NULL;
13337}
13338
13339
13340SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13341 PyObject *resultobj = 0;
13342 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13343 wxString *arg2 = 0 ;
13344 void *argp1 = 0 ;
13345 int res1 = 0 ;
13346 bool temp2 = false ;
13347 PyObject * obj0 = 0 ;
13348 PyObject * obj1 = 0 ;
13349 char * kwnames[] = {
13350 (char *) "self",(char *) "title", NULL
13351 };
13352
13353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13355 if (!SWIG_IsOK(res1)) {
13356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13357 }
13358 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13359 {
13360 arg2 = wxString_in_helper(obj1);
13361 if (arg2 == NULL) SWIG_fail;
13362 temp2 = true;
13363 }
13364 {
13365 PyThreadState* __tstate = wxPyBeginAllowThreads();
13366 (arg1)->SetDialogTitle((wxString const &)*arg2);
13367 wxPyEndAllowThreads(__tstate);
13368 if (PyErr_Occurred()) SWIG_fail;
13369 }
13370 resultobj = SWIG_Py_Void();
13371 {
13372 if (temp2)
13373 delete arg2;
13374 }
13375 return resultobj;
13376fail:
13377 {
13378 if (temp2)
13379 delete arg2;
13380 }
13381 return NULL;
13382}
13383
13384
13385SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13386 PyObject *obj;
13387 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13388 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13389 return SWIG_Py_Void();
13390}
13391
13392SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13393 return SWIG_Python_InitShadowInstance(args);
13394}
13395
13396SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13397 PyObject *resultobj = 0;
13398 int arg1 ;
13399 int arg2 ;
13400 int arg3 ;
13401 int arg4 ;
13402 bool arg5 = (bool) false ;
13403 wxString const &arg6_defvalue = wxPyEmptyString ;
13404 wxString *arg6 = (wxString *) &arg6_defvalue ;
13405 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13406 wxFont *result = 0 ;
13407 int val1 ;
13408 int ecode1 = 0 ;
13409 int val2 ;
13410 int ecode2 = 0 ;
13411 int val3 ;
13412 int ecode3 = 0 ;
13413 int val4 ;
13414 int ecode4 = 0 ;
13415 bool val5 ;
13416 int ecode5 = 0 ;
13417 bool temp6 = false ;
13418 int val7 ;
13419 int ecode7 = 0 ;
13420 PyObject * obj0 = 0 ;
13421 PyObject * obj1 = 0 ;
13422 PyObject * obj2 = 0 ;
13423 PyObject * obj3 = 0 ;
13424 PyObject * obj4 = 0 ;
13425 PyObject * obj5 = 0 ;
13426 PyObject * obj6 = 0 ;
13427 char * kwnames[] = {
13428 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13429 };
13430
13431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13432 ecode1 = SWIG_AsVal_int(obj0, &val1);
13433 if (!SWIG_IsOK(ecode1)) {
13434 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13435 }
13436 arg1 = static_cast< int >(val1);
13437 ecode2 = SWIG_AsVal_int(obj1, &val2);
13438 if (!SWIG_IsOK(ecode2)) {
13439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13440 }
13441 arg2 = static_cast< int >(val2);
13442 ecode3 = SWIG_AsVal_int(obj2, &val3);
13443 if (!SWIG_IsOK(ecode3)) {
13444 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13445 }
13446 arg3 = static_cast< int >(val3);
13447 ecode4 = SWIG_AsVal_int(obj3, &val4);
13448 if (!SWIG_IsOK(ecode4)) {
13449 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13450 }
13451 arg4 = static_cast< int >(val4);
13452 if (obj4) {
13453 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13454 if (!SWIG_IsOK(ecode5)) {
13455 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13456 }
13457 arg5 = static_cast< bool >(val5);
13458 }
13459 if (obj5) {
093d3ff1 13460 {
0085ce49
RD
13461 arg6 = wxString_in_helper(obj5);
13462 if (arg6 == NULL) SWIG_fail;
13463 temp6 = true;
093d3ff1 13464 }
0085ce49
RD
13465 }
13466 if (obj6) {
13467 ecode7 = SWIG_AsVal_int(obj6, &val7);
13468 if (!SWIG_IsOK(ecode7)) {
13469 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13470 }
13471 arg7 = static_cast< wxFontEncoding >(val7);
13472 }
13473 {
13474 if (!wxPyCheckForApp()) SWIG_fail;
13475 PyThreadState* __tstate = wxPyBeginAllowThreads();
13476 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13477 wxPyEndAllowThreads(__tstate);
13478 if (PyErr_Occurred()) SWIG_fail;
13479 }
13480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13481 {
13482 if (temp6)
13483 delete arg6;
13484 }
13485 return resultobj;
13486fail:
13487 {
13488 if (temp6)
13489 delete arg6;
13490 }
13491 return NULL;
d14a1e28
RD
13492}
13493
13494
0085ce49
RD
13495SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13496 PyObject *resultobj = 0;
13497 wxFont *arg1 = (wxFont *) 0 ;
13498 void *argp1 = 0 ;
13499 int res1 = 0 ;
13500 PyObject *swig_obj[1] ;
13501
13502 if (!args) SWIG_fail;
13503 swig_obj[0] = args;
13504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13505 if (!SWIG_IsOK(res1)) {
13506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13507 }
13508 arg1 = reinterpret_cast< wxFont * >(argp1);
13509 {
13510 PyThreadState* __tstate = wxPyBeginAllowThreads();
13511 delete arg1;
d14a1e28 13512
0085ce49
RD
13513 wxPyEndAllowThreads(__tstate);
13514 if (PyErr_Occurred()) SWIG_fail;
13515 }
13516 resultobj = SWIG_Py_Void();
13517 return resultobj;
13518fail:
13519 return NULL;
13520}
13521
13522
13523SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13524 PyObject *resultobj = 0;
13525 wxNativeFontInfo *arg1 = 0 ;
13526 wxFont *result = 0 ;
13527 void *argp1 = 0 ;
13528 int res1 = 0 ;
13529 PyObject * obj0 = 0 ;
13530 char * kwnames[] = {
13531 (char *) "info", NULL
13532 };
13533
13534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13535 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13536 if (!SWIG_IsOK(res1)) {
13537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13538 }
13539 if (!argp1) {
13540 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13541 }
13542 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13543 {
13544 if (!wxPyCheckForApp()) SWIG_fail;
13545 PyThreadState* __tstate = wxPyBeginAllowThreads();
13546 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13547 wxPyEndAllowThreads(__tstate);
13548 if (PyErr_Occurred()) SWIG_fail;
13549 }
13550 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13551 return resultobj;
13552fail:
13553 return NULL;
d14a1e28
RD
13554}
13555
13556
0085ce49
RD
13557SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13558 PyObject *resultobj = 0;
13559 wxString *arg1 = 0 ;
13560 wxFont *result = 0 ;
13561 bool temp1 = false ;
13562 PyObject * obj0 = 0 ;
13563 char * kwnames[] = {
13564 (char *) "info", NULL
13565 };
13566
13567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13568 {
13569 arg1 = wxString_in_helper(obj0);
13570 if (arg1 == NULL) SWIG_fail;
13571 temp1 = true;
13572 }
13573 {
13574 if (!wxPyCheckForApp()) SWIG_fail;
13575 PyThreadState* __tstate = wxPyBeginAllowThreads();
13576 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13577 wxPyEndAllowThreads(__tstate);
13578 if (PyErr_Occurred()) SWIG_fail;
13579 }
13580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13581 {
13582 if (temp1)
13583 delete arg1;
13584 }
13585 return resultobj;
13586fail:
13587 {
13588 if (temp1)
13589 delete arg1;
13590 }
13591 return NULL;
13592}
13593
13594
13595SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13596 PyObject *resultobj = 0;
13597 int arg1 ;
13598 wxFontFamily arg2 ;
13599 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13600 wxString const &arg4_defvalue = wxPyEmptyString ;
13601 wxString *arg4 = (wxString *) &arg4_defvalue ;
13602 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13603 wxFont *result = 0 ;
13604 int val1 ;
13605 int ecode1 = 0 ;
13606 int val2 ;
13607 int ecode2 = 0 ;
13608 int val3 ;
13609 int ecode3 = 0 ;
13610 bool temp4 = false ;
13611 int val5 ;
13612 int ecode5 = 0 ;
13613 PyObject * obj0 = 0 ;
13614 PyObject * obj1 = 0 ;
13615 PyObject * obj2 = 0 ;
13616 PyObject * obj3 = 0 ;
13617 PyObject * obj4 = 0 ;
13618 char * kwnames[] = {
13619 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13620 };
13621
13622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13623 ecode1 = SWIG_AsVal_int(obj0, &val1);
13624 if (!SWIG_IsOK(ecode1)) {
13625 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13626 }
13627 arg1 = static_cast< int >(val1);
13628 ecode2 = SWIG_AsVal_int(obj1, &val2);
13629 if (!SWIG_IsOK(ecode2)) {
13630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13631 }
13632 arg2 = static_cast< wxFontFamily >(val2);
13633 if (obj2) {
13634 ecode3 = SWIG_AsVal_int(obj2, &val3);
13635 if (!SWIG_IsOK(ecode3)) {
13636 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13637 }
13638 arg3 = static_cast< int >(val3);
13639 }
13640 if (obj3) {
093d3ff1 13641 {
0085ce49
RD
13642 arg4 = wxString_in_helper(obj3);
13643 if (arg4 == NULL) SWIG_fail;
13644 temp4 = true;
093d3ff1 13645 }
0085ce49
RD
13646 }
13647 if (obj4) {
13648 ecode5 = SWIG_AsVal_int(obj4, &val5);
13649 if (!SWIG_IsOK(ecode5)) {
13650 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13651 }
13652 arg5 = static_cast< wxFontEncoding >(val5);
13653 }
13654 {
13655 if (!wxPyCheckForApp()) SWIG_fail;
13656 PyThreadState* __tstate = wxPyBeginAllowThreads();
13657 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13658 wxPyEndAllowThreads(__tstate);
13659 if (PyErr_Occurred()) SWIG_fail;
13660 }
13661 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13662 {
13663 if (temp4)
13664 delete arg4;
13665 }
13666 return resultobj;
13667fail:
13668 {
13669 if (temp4)
13670 delete arg4;
13671 }
13672 return NULL;
13673}
13674
13675
13676SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13677 PyObject *resultobj = 0;
13678 wxSize *arg1 = 0 ;
13679 int arg2 ;
13680 int arg3 ;
13681 int arg4 ;
13682 bool arg5 = (bool) false ;
13683 wxString const &arg6_defvalue = wxEmptyString ;
13684 wxString *arg6 = (wxString *) &arg6_defvalue ;
13685 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13686 wxFont *result = 0 ;
13687 wxSize temp1 ;
13688 int val2 ;
13689 int ecode2 = 0 ;
13690 int val3 ;
13691 int ecode3 = 0 ;
13692 int val4 ;
13693 int ecode4 = 0 ;
13694 bool val5 ;
13695 int ecode5 = 0 ;
13696 bool temp6 = false ;
13697 int val7 ;
13698 int ecode7 = 0 ;
13699 PyObject * obj0 = 0 ;
13700 PyObject * obj1 = 0 ;
13701 PyObject * obj2 = 0 ;
13702 PyObject * obj3 = 0 ;
13703 PyObject * obj4 = 0 ;
13704 PyObject * obj5 = 0 ;
13705 PyObject * obj6 = 0 ;
13706 char * kwnames[] = {
13707 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
13708 };
13709
13710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13711 {
13712 arg1 = &temp1;
13713 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13714 }
13715 ecode2 = SWIG_AsVal_int(obj1, &val2);
13716 if (!SWIG_IsOK(ecode2)) {
13717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
13718 }
13719 arg2 = static_cast< int >(val2);
13720 ecode3 = SWIG_AsVal_int(obj2, &val3);
13721 if (!SWIG_IsOK(ecode3)) {
13722 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13723 }
13724 arg3 = static_cast< int >(val3);
13725 ecode4 = SWIG_AsVal_int(obj3, &val4);
13726 if (!SWIG_IsOK(ecode4)) {
13727 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
13728 }
13729 arg4 = static_cast< int >(val4);
13730 if (obj4) {
13731 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13732 if (!SWIG_IsOK(ecode5)) {
13733 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
13734 }
13735 arg5 = static_cast< bool >(val5);
13736 }
13737 if (obj5) {
d14a1e28 13738 {
0085ce49
RD
13739 arg6 = wxString_in_helper(obj5);
13740 if (arg6 == NULL) SWIG_fail;
13741 temp6 = true;
d14a1e28 13742 }
0085ce49
RD
13743 }
13744 if (obj6) {
13745 ecode7 = SWIG_AsVal_int(obj6, &val7);
13746 if (!SWIG_IsOK(ecode7)) {
13747 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13748 }
13749 arg7 = static_cast< wxFontEncoding >(val7);
13750 }
13751 {
13752 if (!wxPyCheckForApp()) SWIG_fail;
13753 PyThreadState* __tstate = wxPyBeginAllowThreads();
13754 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13755 wxPyEndAllowThreads(__tstate);
13756 if (PyErr_Occurred()) SWIG_fail;
13757 }
13758 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13759 {
13760 if (temp6)
13761 delete arg6;
13762 }
13763 return resultobj;
13764fail:
13765 {
13766 if (temp6)
13767 delete arg6;
13768 }
13769 return NULL;
13770}
13771
13772
13773SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13774 PyObject *resultobj = 0;
13775 wxSize *arg1 = 0 ;
13776 wxFontFamily arg2 ;
13777 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13778 wxString const &arg4_defvalue = wxEmptyString ;
13779 wxString *arg4 = (wxString *) &arg4_defvalue ;
13780 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13781 wxFont *result = 0 ;
13782 wxSize temp1 ;
13783 int val2 ;
13784 int ecode2 = 0 ;
13785 int val3 ;
13786 int ecode3 = 0 ;
13787 bool temp4 = false ;
13788 int val5 ;
13789 int ecode5 = 0 ;
13790 PyObject * obj0 = 0 ;
13791 PyObject * obj1 = 0 ;
13792 PyObject * obj2 = 0 ;
13793 PyObject * obj3 = 0 ;
13794 PyObject * obj4 = 0 ;
13795 char * kwnames[] = {
13796 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13797 };
13798
13799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13800 {
13801 arg1 = &temp1;
13802 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13803 }
13804 ecode2 = SWIG_AsVal_int(obj1, &val2);
13805 if (!SWIG_IsOK(ecode2)) {
13806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
13807 }
13808 arg2 = static_cast< wxFontFamily >(val2);
13809 if (obj2) {
13810 ecode3 = SWIG_AsVal_int(obj2, &val3);
13811 if (!SWIG_IsOK(ecode3)) {
13812 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13813 }
13814 arg3 = static_cast< int >(val3);
13815 }
13816 if (obj3) {
093d3ff1 13817 {
0085ce49
RD
13818 arg4 = wxString_in_helper(obj3);
13819 if (arg4 == NULL) SWIG_fail;
13820 temp4 = true;
093d3ff1 13821 }
0085ce49
RD
13822 }
13823 if (obj4) {
13824 ecode5 = SWIG_AsVal_int(obj4, &val5);
13825 if (!SWIG_IsOK(ecode5)) {
13826 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13827 }
13828 arg5 = static_cast< wxFontEncoding >(val5);
13829 }
13830 {
13831 if (!wxPyCheckForApp()) SWIG_fail;
13832 PyThreadState* __tstate = wxPyBeginAllowThreads();
13833 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13834 wxPyEndAllowThreads(__tstate);
13835 if (PyErr_Occurred()) SWIG_fail;
13836 }
13837 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13838 {
13839 if (temp4)
13840 delete arg4;
13841 }
13842 return resultobj;
13843fail:
13844 {
13845 if (temp4)
13846 delete arg4;
13847 }
13848 return NULL;
d14a1e28
RD
13849}
13850
13851
0085ce49
RD
13852SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13853 PyObject *resultobj = 0;
13854 wxFont *arg1 = (wxFont *) 0 ;
13855 bool result;
13856 void *argp1 = 0 ;
13857 int res1 = 0 ;
13858 PyObject *swig_obj[1] ;
13859
13860 if (!args) SWIG_fail;
13861 swig_obj[0] = args;
13862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13863 if (!SWIG_IsOK(res1)) {
13864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
13865 }
13866 arg1 = reinterpret_cast< wxFont * >(argp1);
13867 {
13868 PyThreadState* __tstate = wxPyBeginAllowThreads();
13869 result = (bool)((wxFont const *)arg1)->Ok();
13870 wxPyEndAllowThreads(__tstate);
13871 if (PyErr_Occurred()) SWIG_fail;
13872 }
13873 {
13874 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13875 }
13876 return resultobj;
13877fail:
13878 return NULL;
13879}
13880
13881
13882SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13883 PyObject *resultobj = 0;
13884 wxFont *arg1 = (wxFont *) 0 ;
13885 wxFont *arg2 = (wxFont *) 0 ;
13886 bool result;
13887 void *argp1 = 0 ;
13888 int res1 = 0 ;
13889 void *argp2 = 0 ;
13890 int res2 = 0 ;
13891 PyObject * obj0 = 0 ;
13892 PyObject * obj1 = 0 ;
13893 char * kwnames[] = {
13894 (char *) "self",(char *) "other", NULL
13895 };
13896
13897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
13898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13899 if (!SWIG_IsOK(res1)) {
13900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
13901 }
13902 arg1 = reinterpret_cast< wxFont * >(argp1);
13903 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13904 if (!SWIG_IsOK(res2)) {
13905 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
13906 }
13907 arg2 = reinterpret_cast< wxFont * >(argp2);
13908 {
13909 PyThreadState* __tstate = wxPyBeginAllowThreads();
13910 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
13911 wxPyEndAllowThreads(__tstate);
13912 if (PyErr_Occurred()) SWIG_fail;
13913 }
13914 {
13915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13916 }
13917 return resultobj;
13918fail:
13919 return NULL;
13920}
13921
13922
13923SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13924 PyObject *resultobj = 0;
13925 wxFont *arg1 = (wxFont *) 0 ;
13926 wxFont *arg2 = (wxFont *) 0 ;
13927 bool result;
13928 void *argp1 = 0 ;
13929 int res1 = 0 ;
13930 void *argp2 = 0 ;
13931 int res2 = 0 ;
13932 PyObject * obj0 = 0 ;
13933 PyObject * obj1 = 0 ;
13934 char * kwnames[] = {
13935 (char *) "self",(char *) "other", NULL
13936 };
13937
13938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
13939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13940 if (!SWIG_IsOK(res1)) {
13941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
13942 }
13943 arg1 = reinterpret_cast< wxFont * >(argp1);
13944 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13945 if (!SWIG_IsOK(res2)) {
13946 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
13947 }
13948 arg2 = reinterpret_cast< wxFont * >(argp2);
13949 {
13950 PyThreadState* __tstate = wxPyBeginAllowThreads();
13951 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
13952 wxPyEndAllowThreads(__tstate);
13953 if (PyErr_Occurred()) SWIG_fail;
13954 }
13955 {
13956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13957 }
13958 return resultobj;
13959fail:
13960 return NULL;
d14a1e28
RD
13961}
13962
13963
0085ce49
RD
13964SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13965 PyObject *resultobj = 0;
13966 wxFont *arg1 = (wxFont *) 0 ;
13967 int result;
13968 void *argp1 = 0 ;
13969 int res1 = 0 ;
13970 PyObject *swig_obj[1] ;
13971
13972 if (!args) SWIG_fail;
13973 swig_obj[0] = args;
13974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13975 if (!SWIG_IsOK(res1)) {
13976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13977 }
13978 arg1 = reinterpret_cast< wxFont * >(argp1);
13979 {
13980 PyThreadState* __tstate = wxPyBeginAllowThreads();
13981 result = (int)((wxFont const *)arg1)->GetPointSize();
13982 wxPyEndAllowThreads(__tstate);
13983 if (PyErr_Occurred()) SWIG_fail;
13984 }
13985 resultobj = SWIG_From_int(static_cast< int >(result));
13986 return resultobj;
13987fail:
13988 return NULL;
d14a1e28
RD
13989}
13990
13991
0085ce49
RD
13992SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13993 PyObject *resultobj = 0;
13994 wxFont *arg1 = (wxFont *) 0 ;
13995 wxSize result;
13996 void *argp1 = 0 ;
13997 int res1 = 0 ;
13998 PyObject *swig_obj[1] ;
13999
14000 if (!args) SWIG_fail;
14001 swig_obj[0] = args;
14002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14003 if (!SWIG_IsOK(res1)) {
14004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14005 }
14006 arg1 = reinterpret_cast< wxFont * >(argp1);
14007 {
14008 PyThreadState* __tstate = wxPyBeginAllowThreads();
14009 result = ((wxFont const *)arg1)->GetPixelSize();
14010 wxPyEndAllowThreads(__tstate);
14011 if (PyErr_Occurred()) SWIG_fail;
14012 }
14013 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14014 return resultobj;
14015fail:
14016 return NULL;
d14a1e28
RD
14017}
14018
14019
0085ce49
RD
14020SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14021 PyObject *resultobj = 0;
14022 wxFont *arg1 = (wxFont *) 0 ;
14023 bool result;
14024 void *argp1 = 0 ;
14025 int res1 = 0 ;
14026 PyObject *swig_obj[1] ;
14027
14028 if (!args) SWIG_fail;
14029 swig_obj[0] = args;
14030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14031 if (!SWIG_IsOK(res1)) {
14032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14033 }
14034 arg1 = reinterpret_cast< wxFont * >(argp1);
14035 {
14036 PyThreadState* __tstate = wxPyBeginAllowThreads();
14037 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14038 wxPyEndAllowThreads(__tstate);
14039 if (PyErr_Occurred()) SWIG_fail;
14040 }
14041 {
14042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14043 }
14044 return resultobj;
14045fail:
14046 return NULL;
d14a1e28
RD
14047}
14048
14049
0085ce49
RD
14050SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14051 PyObject *resultobj = 0;
14052 wxFont *arg1 = (wxFont *) 0 ;
14053 int result;
14054 void *argp1 = 0 ;
14055 int res1 = 0 ;
14056 PyObject *swig_obj[1] ;
14057
14058 if (!args) SWIG_fail;
14059 swig_obj[0] = args;
14060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14061 if (!SWIG_IsOK(res1)) {
14062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14063 }
14064 arg1 = reinterpret_cast< wxFont * >(argp1);
14065 {
14066 PyThreadState* __tstate = wxPyBeginAllowThreads();
14067 result = (int)((wxFont const *)arg1)->GetFamily();
14068 wxPyEndAllowThreads(__tstate);
14069 if (PyErr_Occurred()) SWIG_fail;
14070 }
14071 resultobj = SWIG_From_int(static_cast< int >(result));
14072 return resultobj;
14073fail:
14074 return NULL;
d14a1e28
RD
14075}
14076
14077
0085ce49
RD
14078SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14079 PyObject *resultobj = 0;
14080 wxFont *arg1 = (wxFont *) 0 ;
14081 int result;
14082 void *argp1 = 0 ;
14083 int res1 = 0 ;
14084 PyObject *swig_obj[1] ;
14085
14086 if (!args) SWIG_fail;
14087 swig_obj[0] = args;
14088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14089 if (!SWIG_IsOK(res1)) {
14090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14091 }
14092 arg1 = reinterpret_cast< wxFont * >(argp1);
14093 {
14094 PyThreadState* __tstate = wxPyBeginAllowThreads();
14095 result = (int)((wxFont const *)arg1)->GetStyle();
14096 wxPyEndAllowThreads(__tstate);
14097 if (PyErr_Occurred()) SWIG_fail;
14098 }
14099 resultobj = SWIG_From_int(static_cast< int >(result));
14100 return resultobj;
14101fail:
14102 return NULL;
d14a1e28
RD
14103}
14104
14105
0085ce49
RD
14106SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14107 PyObject *resultobj = 0;
14108 wxFont *arg1 = (wxFont *) 0 ;
14109 int result;
14110 void *argp1 = 0 ;
14111 int res1 = 0 ;
14112 PyObject *swig_obj[1] ;
14113
14114 if (!args) SWIG_fail;
14115 swig_obj[0] = args;
14116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14117 if (!SWIG_IsOK(res1)) {
14118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14119 }
14120 arg1 = reinterpret_cast< wxFont * >(argp1);
14121 {
14122 PyThreadState* __tstate = wxPyBeginAllowThreads();
14123 result = (int)((wxFont const *)arg1)->GetWeight();
14124 wxPyEndAllowThreads(__tstate);
14125 if (PyErr_Occurred()) SWIG_fail;
14126 }
14127 resultobj = SWIG_From_int(static_cast< int >(result));
14128 return resultobj;
14129fail:
14130 return NULL;
d14a1e28
RD
14131}
14132
14133
0085ce49
RD
14134SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14135 PyObject *resultobj = 0;
14136 wxFont *arg1 = (wxFont *) 0 ;
14137 bool result;
14138 void *argp1 = 0 ;
14139 int res1 = 0 ;
14140 PyObject *swig_obj[1] ;
14141
14142 if (!args) SWIG_fail;
14143 swig_obj[0] = args;
14144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14145 if (!SWIG_IsOK(res1)) {
14146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14147 }
14148 arg1 = reinterpret_cast< wxFont * >(argp1);
14149 {
14150 PyThreadState* __tstate = wxPyBeginAllowThreads();
14151 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14152 wxPyEndAllowThreads(__tstate);
14153 if (PyErr_Occurred()) SWIG_fail;
14154 }
14155 {
14156 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14157 }
14158 return resultobj;
14159fail:
14160 return NULL;
d14a1e28
RD
14161}
14162
14163
0085ce49
RD
14164SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14165 PyObject *resultobj = 0;
14166 wxFont *arg1 = (wxFont *) 0 ;
14167 wxString result;
14168 void *argp1 = 0 ;
14169 int res1 = 0 ;
14170 PyObject *swig_obj[1] ;
14171
14172 if (!args) SWIG_fail;
14173 swig_obj[0] = args;
14174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14175 if (!SWIG_IsOK(res1)) {
14176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14177 }
14178 arg1 = reinterpret_cast< wxFont * >(argp1);
14179 {
14180 PyThreadState* __tstate = wxPyBeginAllowThreads();
14181 result = ((wxFont const *)arg1)->GetFaceName();
14182 wxPyEndAllowThreads(__tstate);
14183 if (PyErr_Occurred()) SWIG_fail;
14184 }
14185 {
14186#if wxUSE_UNICODE
14187 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14188#else
14189 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14190#endif
14191 }
14192 return resultobj;
14193fail:
14194 return NULL;
d14a1e28
RD
14195}
14196
14197
0085ce49
RD
14198SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14199 PyObject *resultobj = 0;
14200 wxFont *arg1 = (wxFont *) 0 ;
14201 wxFontEncoding 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_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14211 }
14212 arg1 = reinterpret_cast< wxFont * >(argp1);
14213 {
14214 PyThreadState* __tstate = wxPyBeginAllowThreads();
14215 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14216 wxPyEndAllowThreads(__tstate);
14217 if (PyErr_Occurred()) SWIG_fail;
14218 }
14219 resultobj = SWIG_From_int(static_cast< int >(result));
14220 return resultobj;
14221fail:
14222 return NULL;
d14a1e28
RD
14223}
14224
14225
0085ce49
RD
14226SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14227 PyObject *resultobj = 0;
14228 wxFont *arg1 = (wxFont *) 0 ;
14229 wxNativeFontInfo *result = 0 ;
14230 void *argp1 = 0 ;
14231 int res1 = 0 ;
14232 PyObject *swig_obj[1] ;
14233
14234 if (!args) SWIG_fail;
14235 swig_obj[0] = args;
14236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14237 if (!SWIG_IsOK(res1)) {
14238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14239 }
14240 arg1 = reinterpret_cast< wxFont * >(argp1);
14241 {
14242 PyThreadState* __tstate = wxPyBeginAllowThreads();
14243 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14244 wxPyEndAllowThreads(__tstate);
14245 if (PyErr_Occurred()) SWIG_fail;
14246 }
14247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14248 return resultobj;
14249fail:
14250 return NULL;
d14a1e28
RD
14251}
14252
14253
0085ce49
RD
14254SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14255 PyObject *resultobj = 0;
14256 wxFont *arg1 = (wxFont *) 0 ;
14257 bool result;
14258 void *argp1 = 0 ;
14259 int res1 = 0 ;
14260 PyObject *swig_obj[1] ;
14261
14262 if (!args) SWIG_fail;
14263 swig_obj[0] = args;
14264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14265 if (!SWIG_IsOK(res1)) {
14266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14267 }
14268 arg1 = reinterpret_cast< wxFont * >(argp1);
14269 {
14270 PyThreadState* __tstate = wxPyBeginAllowThreads();
14271 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14272 wxPyEndAllowThreads(__tstate);
14273 if (PyErr_Occurred()) SWIG_fail;
14274 }
14275 {
14276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14277 }
14278 return resultobj;
14279fail:
14280 return NULL;
d14a1e28
RD
14281}
14282
14283
0085ce49
RD
14284SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14285 PyObject *resultobj = 0;
14286 wxFont *arg1 = (wxFont *) 0 ;
14287 wxString result;
14288 void *argp1 = 0 ;
14289 int res1 = 0 ;
14290 PyObject *swig_obj[1] ;
14291
14292 if (!args) SWIG_fail;
14293 swig_obj[0] = args;
14294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14295 if (!SWIG_IsOK(res1)) {
14296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14297 }
14298 arg1 = reinterpret_cast< wxFont * >(argp1);
14299 {
14300 PyThreadState* __tstate = wxPyBeginAllowThreads();
14301 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14302 wxPyEndAllowThreads(__tstate);
14303 if (PyErr_Occurred()) SWIG_fail;
14304 }
14305 {
14306#if wxUSE_UNICODE
14307 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14308#else
14309 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14310#endif
14311 }
14312 return resultobj;
14313fail:
14314 return NULL;
d14a1e28
RD
14315}
14316
14317
0085ce49
RD
14318SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(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_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14331 }
14332 arg1 = reinterpret_cast< wxFont * >(argp1);
14333 {
14334 PyThreadState* __tstate = wxPyBeginAllowThreads();
14335 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
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;
14349}
14350
14351
14352SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14353 PyObject *resultobj = 0;
14354 wxFont *arg1 = (wxFont *) 0 ;
14355 int arg2 ;
14356 void *argp1 = 0 ;
14357 int res1 = 0 ;
14358 int val2 ;
14359 int ecode2 = 0 ;
14360 PyObject * obj0 = 0 ;
14361 PyObject * obj1 = 0 ;
14362 char * kwnames[] = {
14363 (char *) "self",(char *) "pointSize", NULL
14364 };
14365
14366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14368 if (!SWIG_IsOK(res1)) {
14369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14370 }
14371 arg1 = reinterpret_cast< wxFont * >(argp1);
14372 ecode2 = SWIG_AsVal_int(obj1, &val2);
14373 if (!SWIG_IsOK(ecode2)) {
14374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14375 }
14376 arg2 = static_cast< int >(val2);
14377 {
14378 PyThreadState* __tstate = wxPyBeginAllowThreads();
14379 (arg1)->SetPointSize(arg2);
14380 wxPyEndAllowThreads(__tstate);
14381 if (PyErr_Occurred()) SWIG_fail;
14382 }
14383 resultobj = SWIG_Py_Void();
14384 return resultobj;
14385fail:
14386 return NULL;
14387}
14388
14389
14390SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14391 PyObject *resultobj = 0;
14392 wxFont *arg1 = (wxFont *) 0 ;
14393 wxSize *arg2 = 0 ;
14394 void *argp1 = 0 ;
14395 int res1 = 0 ;
14396 wxSize temp2 ;
14397 PyObject * obj0 = 0 ;
14398 PyObject * obj1 = 0 ;
14399 char * kwnames[] = {
14400 (char *) "self",(char *) "pixelSize", NULL
14401 };
14402
14403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14405 if (!SWIG_IsOK(res1)) {
14406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14407 }
14408 arg1 = reinterpret_cast< wxFont * >(argp1);
14409 {
14410 arg2 = &temp2;
14411 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14412 }
14413 {
14414 PyThreadState* __tstate = wxPyBeginAllowThreads();
14415 (arg1)->SetPixelSize((wxSize const &)*arg2);
14416 wxPyEndAllowThreads(__tstate);
14417 if (PyErr_Occurred()) SWIG_fail;
14418 }
14419 resultobj = SWIG_Py_Void();
14420 return resultobj;
14421fail:
14422 return NULL;
14423}
14424
14425
14426SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14427 PyObject *resultobj = 0;
14428 wxFont *arg1 = (wxFont *) 0 ;
14429 int arg2 ;
14430 void *argp1 = 0 ;
14431 int res1 = 0 ;
14432 int val2 ;
14433 int ecode2 = 0 ;
14434 PyObject * obj0 = 0 ;
14435 PyObject * obj1 = 0 ;
14436 char * kwnames[] = {
14437 (char *) "self",(char *) "family", NULL
14438 };
14439
14440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14442 if (!SWIG_IsOK(res1)) {
14443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14444 }
14445 arg1 = reinterpret_cast< wxFont * >(argp1);
14446 ecode2 = SWIG_AsVal_int(obj1, &val2);
14447 if (!SWIG_IsOK(ecode2)) {
14448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14449 }
14450 arg2 = static_cast< int >(val2);
14451 {
14452 PyThreadState* __tstate = wxPyBeginAllowThreads();
14453 (arg1)->SetFamily(arg2);
14454 wxPyEndAllowThreads(__tstate);
14455 if (PyErr_Occurred()) SWIG_fail;
14456 }
14457 resultobj = SWIG_Py_Void();
14458 return resultobj;
14459fail:
14460 return NULL;
14461}
14462
14463
14464SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14465 PyObject *resultobj = 0;
14466 wxFont *arg1 = (wxFont *) 0 ;
14467 int arg2 ;
14468 void *argp1 = 0 ;
14469 int res1 = 0 ;
14470 int val2 ;
14471 int ecode2 = 0 ;
14472 PyObject * obj0 = 0 ;
14473 PyObject * obj1 = 0 ;
14474 char * kwnames[] = {
14475 (char *) "self",(char *) "style", NULL
14476 };
14477
14478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14480 if (!SWIG_IsOK(res1)) {
14481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14482 }
14483 arg1 = reinterpret_cast< wxFont * >(argp1);
14484 ecode2 = SWIG_AsVal_int(obj1, &val2);
14485 if (!SWIG_IsOK(ecode2)) {
14486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14487 }
14488 arg2 = static_cast< int >(val2);
14489 {
14490 PyThreadState* __tstate = wxPyBeginAllowThreads();
14491 (arg1)->SetStyle(arg2);
14492 wxPyEndAllowThreads(__tstate);
14493 if (PyErr_Occurred()) SWIG_fail;
14494 }
14495 resultobj = SWIG_Py_Void();
14496 return resultobj;
14497fail:
14498 return NULL;
14499}
14500
14501
14502SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14503 PyObject *resultobj = 0;
14504 wxFont *arg1 = (wxFont *) 0 ;
14505 int arg2 ;
14506 void *argp1 = 0 ;
14507 int res1 = 0 ;
14508 int val2 ;
14509 int ecode2 = 0 ;
14510 PyObject * obj0 = 0 ;
14511 PyObject * obj1 = 0 ;
14512 char * kwnames[] = {
14513 (char *) "self",(char *) "weight", NULL
14514 };
14515
14516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14518 if (!SWIG_IsOK(res1)) {
14519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14520 }
14521 arg1 = reinterpret_cast< wxFont * >(argp1);
14522 ecode2 = SWIG_AsVal_int(obj1, &val2);
14523 if (!SWIG_IsOK(ecode2)) {
14524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14525 }
14526 arg2 = static_cast< int >(val2);
14527 {
14528 PyThreadState* __tstate = wxPyBeginAllowThreads();
14529 (arg1)->SetWeight(arg2);
14530 wxPyEndAllowThreads(__tstate);
14531 if (PyErr_Occurred()) SWIG_fail;
14532 }
14533 resultobj = SWIG_Py_Void();
14534 return resultobj;
14535fail:
14536 return NULL;
14537}
14538
14539
14540SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14541 PyObject *resultobj = 0;
14542 wxFont *arg1 = (wxFont *) 0 ;
14543 wxString *arg2 = 0 ;
704eda0c 14544 bool result;
0085ce49
RD
14545 void *argp1 = 0 ;
14546 int res1 = 0 ;
14547 bool temp2 = false ;
14548 PyObject * obj0 = 0 ;
14549 PyObject * obj1 = 0 ;
14550 char * kwnames[] = {
14551 (char *) "self",(char *) "faceName", NULL
14552 };
14553
14554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14556 if (!SWIG_IsOK(res1)) {
14557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14558 }
14559 arg1 = reinterpret_cast< wxFont * >(argp1);
14560 {
14561 arg2 = wxString_in_helper(obj1);
14562 if (arg2 == NULL) SWIG_fail;
14563 temp2 = true;
14564 }
14565 {
14566 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14567 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
0085ce49
RD
14568 wxPyEndAllowThreads(__tstate);
14569 if (PyErr_Occurred()) SWIG_fail;
14570 }
704eda0c
RD
14571 {
14572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14573 }
0085ce49
RD
14574 {
14575 if (temp2)
14576 delete arg2;
14577 }
14578 return resultobj;
14579fail:
14580 {
14581 if (temp2)
14582 delete arg2;
14583 }
14584 return NULL;
14585}
14586
14587
14588SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14589 PyObject *resultobj = 0;
14590 wxFont *arg1 = (wxFont *) 0 ;
14591 bool arg2 ;
14592 void *argp1 = 0 ;
14593 int res1 = 0 ;
14594 bool val2 ;
14595 int ecode2 = 0 ;
14596 PyObject * obj0 = 0 ;
14597 PyObject * obj1 = 0 ;
14598 char * kwnames[] = {
14599 (char *) "self",(char *) "underlined", NULL
14600 };
14601
14602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14604 if (!SWIG_IsOK(res1)) {
14605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14606 }
14607 arg1 = reinterpret_cast< wxFont * >(argp1);
14608 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14609 if (!SWIG_IsOK(ecode2)) {
14610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14611 }
14612 arg2 = static_cast< bool >(val2);
14613 {
14614 PyThreadState* __tstate = wxPyBeginAllowThreads();
14615 (arg1)->SetUnderlined(arg2);
14616 wxPyEndAllowThreads(__tstate);
14617 if (PyErr_Occurred()) SWIG_fail;
14618 }
14619 resultobj = SWIG_Py_Void();
14620 return resultobj;
14621fail:
14622 return NULL;
14623}
14624
14625
14626SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14627 PyObject *resultobj = 0;
14628 wxFont *arg1 = (wxFont *) 0 ;
14629 wxFontEncoding arg2 ;
14630 void *argp1 = 0 ;
14631 int res1 = 0 ;
14632 int val2 ;
14633 int ecode2 = 0 ;
14634 PyObject * obj0 = 0 ;
14635 PyObject * obj1 = 0 ;
14636 char * kwnames[] = {
14637 (char *) "self",(char *) "encoding", NULL
14638 };
14639
14640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14642 if (!SWIG_IsOK(res1)) {
14643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14644 }
14645 arg1 = reinterpret_cast< wxFont * >(argp1);
14646 ecode2 = SWIG_AsVal_int(obj1, &val2);
14647 if (!SWIG_IsOK(ecode2)) {
14648 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14649 }
14650 arg2 = static_cast< wxFontEncoding >(val2);
14651 {
14652 PyThreadState* __tstate = wxPyBeginAllowThreads();
14653 (arg1)->SetEncoding(arg2);
14654 wxPyEndAllowThreads(__tstate);
14655 if (PyErr_Occurred()) SWIG_fail;
14656 }
14657 resultobj = SWIG_Py_Void();
14658 return resultobj;
14659fail:
14660 return NULL;
14661}
14662
14663
14664SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14665 PyObject *resultobj = 0;
14666 wxFont *arg1 = (wxFont *) 0 ;
14667 wxNativeFontInfo *arg2 = 0 ;
14668 void *argp1 = 0 ;
14669 int res1 = 0 ;
14670 void *argp2 = 0 ;
14671 int res2 = 0 ;
14672 PyObject * obj0 = 0 ;
14673 PyObject * obj1 = 0 ;
14674 char * kwnames[] = {
14675 (char *) "self",(char *) "info", NULL
14676 };
14677
14678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
14679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14680 if (!SWIG_IsOK(res1)) {
14681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
14682 }
14683 arg1 = reinterpret_cast< wxFont * >(argp1);
14684 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14685 if (!SWIG_IsOK(res2)) {
14686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14687 }
14688 if (!argp2) {
14689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14690 }
14691 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
14692 {
14693 PyThreadState* __tstate = wxPyBeginAllowThreads();
14694 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
14695 wxPyEndAllowThreads(__tstate);
14696 if (PyErr_Occurred()) SWIG_fail;
14697 }
14698 resultobj = SWIG_Py_Void();
14699 return resultobj;
14700fail:
14701 return NULL;
14702}
14703
14704
14705SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14706 PyObject *resultobj = 0;
14707 wxFont *arg1 = (wxFont *) 0 ;
14708 wxString *arg2 = 0 ;
704eda0c 14709 bool result;
0085ce49
RD
14710 void *argp1 = 0 ;
14711 int res1 = 0 ;
14712 bool temp2 = false ;
14713 PyObject * obj0 = 0 ;
14714 PyObject * obj1 = 0 ;
14715 char * kwnames[] = {
14716 (char *) "self",(char *) "info", NULL
14717 };
14718
14719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
14720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14721 if (!SWIG_IsOK(res1)) {
14722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
14723 }
14724 arg1 = reinterpret_cast< wxFont * >(argp1);
14725 {
14726 arg2 = wxString_in_helper(obj1);
14727 if (arg2 == NULL) SWIG_fail;
14728 temp2 = true;
14729 }
14730 {
14731 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14732 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
0085ce49
RD
14733 wxPyEndAllowThreads(__tstate);
14734 if (PyErr_Occurred()) SWIG_fail;
14735 }
704eda0c
RD
14736 {
14737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14738 }
0085ce49
RD
14739 {
14740 if (temp2)
14741 delete arg2;
14742 }
14743 return resultobj;
14744fail:
14745 {
14746 if (temp2)
14747 delete arg2;
14748 }
14749 return NULL;
d14a1e28
RD
14750}
14751
14752
0085ce49
RD
14753SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14754 PyObject *resultobj = 0;
14755 wxFont *arg1 = (wxFont *) 0 ;
14756 wxString *arg2 = 0 ;
704eda0c 14757 bool result;
0085ce49
RD
14758 void *argp1 = 0 ;
14759 int res1 = 0 ;
14760 bool temp2 = false ;
14761 PyObject * obj0 = 0 ;
14762 PyObject * obj1 = 0 ;
14763 char * kwnames[] = {
14764 (char *) "self",(char *) "info", NULL
14765 };
14766
14767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
14768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14769 if (!SWIG_IsOK(res1)) {
14770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
14771 }
14772 arg1 = reinterpret_cast< wxFont * >(argp1);
14773 {
14774 arg2 = wxString_in_helper(obj1);
14775 if (arg2 == NULL) SWIG_fail;
14776 temp2 = true;
14777 }
14778 {
14779 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14780 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
0085ce49
RD
14781 wxPyEndAllowThreads(__tstate);
14782 if (PyErr_Occurred()) SWIG_fail;
14783 }
704eda0c
RD
14784 {
14785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14786 }
0085ce49
RD
14787 {
14788 if (temp2)
14789 delete arg2;
14790 }
14791 return resultobj;
14792fail:
14793 {
14794 if (temp2)
14795 delete arg2;
14796 }
14797 return NULL;
d14a1e28
RD
14798}
14799
14800
0085ce49
RD
14801SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14802 PyObject *resultobj = 0;
14803 wxFont *arg1 = (wxFont *) 0 ;
14804 wxString result;
14805 void *argp1 = 0 ;
14806 int res1 = 0 ;
14807 PyObject *swig_obj[1] ;
14808
14809 if (!args) SWIG_fail;
14810 swig_obj[0] = args;
14811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14812 if (!SWIG_IsOK(res1)) {
14813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
14814 }
14815 arg1 = reinterpret_cast< wxFont * >(argp1);
14816 {
14817 PyThreadState* __tstate = wxPyBeginAllowThreads();
14818 result = ((wxFont const *)arg1)->GetFamilyString();
14819 wxPyEndAllowThreads(__tstate);
14820 if (PyErr_Occurred()) SWIG_fail;
14821 }
14822 {
14823#if wxUSE_UNICODE
14824 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14825#else
14826 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14827#endif
14828 }
14829 return resultobj;
14830fail:
14831 return NULL;
d14a1e28
RD
14832}
14833
14834
0085ce49
RD
14835SWIGINTERN PyObject *_wrap_Font_GetStyleString(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_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
14848 }
14849 arg1 = reinterpret_cast< wxFont * >(argp1);
14850 {
14851 PyThreadState* __tstate = wxPyBeginAllowThreads();
14852 result = ((wxFont const *)arg1)->GetStyleString();
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;
d14a1e28
RD
14866}
14867
14868
0085ce49
RD
14869SWIGINTERN PyObject *_wrap_Font_GetWeightString(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_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
14882 }
14883 arg1 = reinterpret_cast< wxFont * >(argp1);
14884 {
14885 PyThreadState* __tstate = wxPyBeginAllowThreads();
14886 result = ((wxFont const *)arg1)->GetWeightString();
14887 wxPyEndAllowThreads(__tstate);
14888 if (PyErr_Occurred()) SWIG_fail;
14889 }
14890 {
d14a1e28 14891#if wxUSE_UNICODE
0085ce49 14892 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 14893#else
0085ce49 14894 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 14895#endif
0085ce49
RD
14896 }
14897 return resultobj;
14898fail:
14899 return NULL;
14900}
14901
14902
14903SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14904 PyObject *resultobj = 0;
14905 wxFont *arg1 = (wxFont *) 0 ;
14906 bool arg2 = (bool) true ;
14907 void *argp1 = 0 ;
14908 int res1 = 0 ;
14909 bool val2 ;
14910 int ecode2 = 0 ;
14911 PyObject * obj0 = 0 ;
14912 PyObject * obj1 = 0 ;
14913 char * kwnames[] = {
14914 (char *) "self",(char *) "no", NULL
14915 };
14916
14917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
14918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14919 if (!SWIG_IsOK(res1)) {
14920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
14921 }
14922 arg1 = reinterpret_cast< wxFont * >(argp1);
14923 if (obj1) {
14924 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14925 if (!SWIG_IsOK(ecode2)) {
14926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
14927 }
14928 arg2 = static_cast< bool >(val2);
14929 }
14930 {
14931 PyThreadState* __tstate = wxPyBeginAllowThreads();
14932 (arg1)->SetNoAntiAliasing(arg2);
14933 wxPyEndAllowThreads(__tstate);
14934 if (PyErr_Occurred()) SWIG_fail;
14935 }
14936 resultobj = SWIG_Py_Void();
14937 return resultobj;
14938fail:
14939 return NULL;
d14a1e28
RD
14940}
14941
14942
0085ce49
RD
14943SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14944 PyObject *resultobj = 0;
14945 wxFont *arg1 = (wxFont *) 0 ;
14946 bool result;
14947 void *argp1 = 0 ;
14948 int res1 = 0 ;
14949 PyObject *swig_obj[1] ;
14950
14951 if (!args) SWIG_fail;
14952 swig_obj[0] = args;
14953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14954 if (!SWIG_IsOK(res1)) {
14955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
14956 }
14957 arg1 = reinterpret_cast< wxFont * >(argp1);
14958 {
14959 PyThreadState* __tstate = wxPyBeginAllowThreads();
14960 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
14961 wxPyEndAllowThreads(__tstate);
14962 if (PyErr_Occurred()) SWIG_fail;
14963 }
14964 {
14965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14966 }
14967 return resultobj;
14968fail:
14969 return NULL;
d14a1e28
RD
14970}
14971
14972
0085ce49
RD
14973SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14974 PyObject *resultobj = 0;
14975 wxFontEncoding result;
14976
14977 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
14978 {
14979 if (!wxPyCheckForApp()) SWIG_fail;
14980 PyThreadState* __tstate = wxPyBeginAllowThreads();
14981 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
14982 wxPyEndAllowThreads(__tstate);
14983 if (PyErr_Occurred()) SWIG_fail;
14984 }
14985 resultobj = SWIG_From_int(static_cast< int >(result));
14986 return resultobj;
14987fail:
14988 return NULL;
d14a1e28
RD
14989}
14990
14991
0085ce49
RD
14992SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14993 PyObject *resultobj = 0;
14994 wxFontEncoding arg1 ;
14995 int val1 ;
14996 int ecode1 = 0 ;
14997 PyObject * obj0 = 0 ;
14998 char * kwnames[] = {
14999 (char *) "encoding", NULL
15000 };
15001
15002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15003 ecode1 = SWIG_AsVal_int(obj0, &val1);
15004 if (!SWIG_IsOK(ecode1)) {
15005 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15006 }
15007 arg1 = static_cast< wxFontEncoding >(val1);
15008 {
15009 if (!wxPyCheckForApp()) SWIG_fail;
15010 PyThreadState* __tstate = wxPyBeginAllowThreads();
15011 wxFont::SetDefaultEncoding(arg1);
15012 wxPyEndAllowThreads(__tstate);
15013 if (PyErr_Occurred()) SWIG_fail;
15014 }
15015 resultobj = SWIG_Py_Void();
15016 return resultobj;
15017fail:
15018 return NULL;
d14a1e28
RD
15019}
15020
15021
0085ce49
RD
15022SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15023 PyObject *obj;
15024 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15025 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15026 return SWIG_Py_Void();
d14a1e28
RD
15027}
15028
0085ce49
RD
15029SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15030 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
15031}
15032
0085ce49
RD
15033SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15034 PyObject *resultobj = 0;
15035 wxPyFontEnumerator *result = 0 ;
15036
15037 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15038 {
15039 if (!wxPyCheckForApp()) SWIG_fail;
15040 PyThreadState* __tstate = wxPyBeginAllowThreads();
15041 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15042 wxPyEndAllowThreads(__tstate);
15043 if (PyErr_Occurred()) SWIG_fail;
15044 }
15045 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15046 return resultobj;
15047fail:
15048 return NULL;
d14a1e28
RD
15049}
15050
15051
0085ce49
RD
15052SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15053 PyObject *resultobj = 0;
15054 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15055 void *argp1 = 0 ;
15056 int res1 = 0 ;
15057 PyObject *swig_obj[1] ;
15058
15059 if (!args) SWIG_fail;
15060 swig_obj[0] = args;
15061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15062 if (!SWIG_IsOK(res1)) {
15063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15064 }
15065 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15066 {
15067 PyThreadState* __tstate = wxPyBeginAllowThreads();
15068 delete arg1;
d14a1e28 15069
0085ce49
RD
15070 wxPyEndAllowThreads(__tstate);
15071 if (PyErr_Occurred()) SWIG_fail;
15072 }
15073 resultobj = SWIG_Py_Void();
15074 return resultobj;
15075fail:
15076 return NULL;
15077}
15078
15079
15080SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15081 PyObject *resultobj = 0;
15082 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15083 PyObject *arg2 = (PyObject *) 0 ;
15084 PyObject *arg3 = (PyObject *) 0 ;
15085 bool arg4 ;
15086 void *argp1 = 0 ;
15087 int res1 = 0 ;
15088 bool val4 ;
15089 int ecode4 = 0 ;
15090 PyObject * obj0 = 0 ;
15091 PyObject * obj1 = 0 ;
15092 PyObject * obj2 = 0 ;
15093 PyObject * obj3 = 0 ;
15094 char * kwnames[] = {
15095 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15096 };
15097
15098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15100 if (!SWIG_IsOK(res1)) {
15101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15102 }
15103 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15104 arg2 = obj1;
15105 arg3 = obj2;
15106 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15107 if (!SWIG_IsOK(ecode4)) {
15108 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15109 }
15110 arg4 = static_cast< bool >(val4);
15111 {
15112 PyThreadState* __tstate = wxPyBeginAllowThreads();
15113 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15114 wxPyEndAllowThreads(__tstate);
15115 if (PyErr_Occurred()) SWIG_fail;
15116 }
15117 resultobj = SWIG_Py_Void();
15118 return resultobj;
15119fail:
15120 return NULL;
15121}
15122
15123
15124SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15125 PyObject *resultobj = 0;
15126 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15127 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15128 bool arg3 = (bool) false ;
15129 bool result;
15130 void *argp1 = 0 ;
15131 int res1 = 0 ;
15132 int val2 ;
15133 int ecode2 = 0 ;
15134 bool val3 ;
15135 int ecode3 = 0 ;
15136 PyObject * obj0 = 0 ;
15137 PyObject * obj1 = 0 ;
15138 PyObject * obj2 = 0 ;
15139 char * kwnames[] = {
15140 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15141 };
15142
15143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15145 if (!SWIG_IsOK(res1)) {
15146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15147 }
15148 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15149 if (obj1) {
15150 ecode2 = SWIG_AsVal_int(obj1, &val2);
15151 if (!SWIG_IsOK(ecode2)) {
15152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15153 }
15154 arg2 = static_cast< wxFontEncoding >(val2);
15155 }
15156 if (obj2) {
15157 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15158 if (!SWIG_IsOK(ecode3)) {
15159 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15160 }
15161 arg3 = static_cast< bool >(val3);
15162 }
15163 {
15164 PyThreadState* __tstate = wxPyBeginAllowThreads();
15165 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15166 wxPyEndAllowThreads(__tstate);
15167 if (PyErr_Occurred()) SWIG_fail;
15168 }
15169 {
15170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15171 }
15172 return resultobj;
15173fail:
15174 return NULL;
15175}
15176
15177
15178SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15179 PyObject *resultobj = 0;
15180 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15181 wxString const &arg2_defvalue = wxPyEmptyString ;
15182 wxString *arg2 = (wxString *) &arg2_defvalue ;
15183 bool result;
15184 void *argp1 = 0 ;
15185 int res1 = 0 ;
15186 bool temp2 = false ;
15187 PyObject * obj0 = 0 ;
15188 PyObject * obj1 = 0 ;
15189 char * kwnames[] = {
15190 (char *) "self",(char *) "facename", NULL
15191 };
15192
15193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15195 if (!SWIG_IsOK(res1)) {
15196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15197 }
15198 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15199 if (obj1) {
d14a1e28 15200 {
0085ce49
RD
15201 arg2 = wxString_in_helper(obj1);
15202 if (arg2 == NULL) SWIG_fail;
15203 temp2 = true;
d14a1e28 15204 }
0085ce49
RD
15205 }
15206 {
15207 PyThreadState* __tstate = wxPyBeginAllowThreads();
15208 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15209 wxPyEndAllowThreads(__tstate);
15210 if (PyErr_Occurred()) SWIG_fail;
15211 }
15212 {
15213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15214 }
15215 {
15216 if (temp2)
15217 delete arg2;
15218 }
15219 return resultobj;
15220fail:
15221 {
15222 if (temp2)
15223 delete arg2;
15224 }
15225 return NULL;
d14a1e28
RD
15226}
15227
15228
0085ce49
RD
15229SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15230 PyObject *resultobj = 0;
0085ce49 15231 PyObject *result = 0 ;
0085ce49 15232
704eda0c 15233 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
0085ce49
RD
15234 {
15235 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15236 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
0085ce49
RD
15237 wxPyEndAllowThreads(__tstate);
15238 if (PyErr_Occurred()) SWIG_fail;
15239 }
15240 resultobj = result;
15241 return resultobj;
15242fail:
15243 return NULL;
d14a1e28
RD
15244}
15245
15246
0085ce49
RD
15247SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15248 PyObject *resultobj = 0;
0085ce49 15249 PyObject *result = 0 ;
0085ce49 15250
704eda0c 15251 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
0085ce49
RD
15252 {
15253 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15254 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
0085ce49
RD
15255 wxPyEndAllowThreads(__tstate);
15256 if (PyErr_Occurred()) SWIG_fail;
15257 }
15258 resultobj = result;
15259 return resultobj;
15260fail:
15261 return NULL;
d14a1e28
RD
15262}
15263
15264
704eda0c
RD
15265SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15266 PyObject *resultobj = 0;
15267 wxString *arg1 = 0 ;
15268 bool result;
15269 bool temp1 = false ;
15270 PyObject * obj0 = 0 ;
15271 char * kwnames[] = {
15272 (char *) "str", NULL
15273 };
15274
15275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15276 {
15277 arg1 = wxString_in_helper(obj0);
15278 if (arg1 == NULL) SWIG_fail;
15279 temp1 = true;
15280 }
15281 {
15282 PyThreadState* __tstate = wxPyBeginAllowThreads();
15283 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15284 wxPyEndAllowThreads(__tstate);
15285 if (PyErr_Occurred()) SWIG_fail;
15286 }
15287 {
15288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15289 }
15290 {
15291 if (temp1)
15292 delete arg1;
15293 }
15294 return resultobj;
15295fail:
15296 {
15297 if (temp1)
15298 delete arg1;
15299 }
15300 return NULL;
15301}
15302
15303
0085ce49
RD
15304SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15305 PyObject *obj;
15306 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15307 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15308 return SWIG_Py_Void();
d14a1e28
RD
15309}
15310
0085ce49
RD
15311SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15312 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
15313}
15314
0085ce49
RD
15315SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15316 PyObject *resultobj = 0;
15317 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15318 int arg2 ;
15319 void *argp1 = 0 ;
15320 int res1 = 0 ;
15321 int val2 ;
15322 int ecode2 = 0 ;
15323 PyObject *swig_obj[2] ;
15324
15325 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15327 if (!SWIG_IsOK(res1)) {
15328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15329 }
15330 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15331 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15332 if (!SWIG_IsOK(ecode2)) {
15333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15334 }
15335 arg2 = static_cast< int >(val2);
15336 if (arg1) (arg1)->Language = arg2;
15337
15338 resultobj = SWIG_Py_Void();
15339 return resultobj;
15340fail:
15341 return NULL;
d14a1e28
RD
15342}
15343
15344
0085ce49
RD
15345SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15346 PyObject *resultobj = 0;
15347 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15348 int result;
15349 void *argp1 = 0 ;
15350 int res1 = 0 ;
15351 PyObject *swig_obj[1] ;
15352
15353 if (!args) SWIG_fail;
15354 swig_obj[0] = args;
15355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15356 if (!SWIG_IsOK(res1)) {
15357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15358 }
15359 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15360 result = (int) ((arg1)->Language);
15361 resultobj = SWIG_From_int(static_cast< int >(result));
15362 return resultobj;
15363fail:
15364 return NULL;
15365}
15366
15367
15368SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15369 PyObject *resultobj = 0;
15370 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15371 wxString *arg2 = (wxString *) 0 ;
15372 void *argp1 = 0 ;
15373 int res1 = 0 ;
15374 bool temp2 = false ;
15375 PyObject *swig_obj[2] ;
15376
15377 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15379 if (!SWIG_IsOK(res1)) {
15380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15381 }
15382 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15383 {
15384 arg2 = wxString_in_helper(swig_obj[1]);
15385 if (arg2 == NULL) SWIG_fail;
15386 temp2 = true;
15387 }
15388 if (arg1) (arg1)->CanonicalName = *arg2;
15389
15390 resultobj = SWIG_Py_Void();
15391 {
15392 if (temp2)
15393 delete arg2;
15394 }
15395 return resultobj;
15396fail:
15397 {
15398 if (temp2)
15399 delete arg2;
15400 }
15401 return NULL;
d14a1e28
RD
15402}
15403
15404
0085ce49
RD
15405SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15406 PyObject *resultobj = 0;
15407 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15408 wxString *result = 0 ;
15409 void *argp1 = 0 ;
15410 int res1 = 0 ;
15411 PyObject *swig_obj[1] ;
15412
15413 if (!args) SWIG_fail;
15414 swig_obj[0] = args;
15415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15416 if (!SWIG_IsOK(res1)) {
15417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15418 }
15419 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15420 result = (wxString *)& ((arg1)->CanonicalName);
15421 {
093d3ff1 15422#if wxUSE_UNICODE
0085ce49 15423 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
093d3ff1 15424#else
0085ce49 15425 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
093d3ff1 15426#endif
0085ce49
RD
15427 }
15428 return resultobj;
15429fail:
15430 return NULL;
d14a1e28
RD
15431}
15432
15433
0085ce49
RD
15434SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15435 PyObject *resultobj = 0;
15436 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15437 wxString *arg2 = (wxString *) 0 ;
15438 void *argp1 = 0 ;
15439 int res1 = 0 ;
15440 bool temp2 = false ;
15441 PyObject *swig_obj[2] ;
15442
15443 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15445 if (!SWIG_IsOK(res1)) {
15446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15447 }
15448 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15449 {
15450 arg2 = wxString_in_helper(swig_obj[1]);
15451 if (arg2 == NULL) SWIG_fail;
15452 temp2 = true;
15453 }
15454 if (arg1) (arg1)->Description = *arg2;
15455
15456 resultobj = SWIG_Py_Void();
15457 {
15458 if (temp2)
15459 delete arg2;
15460 }
15461 return resultobj;
15462fail:
15463 {
15464 if (temp2)
15465 delete arg2;
15466 }
15467 return NULL;
d14a1e28
RD
15468}
15469
15470
0085ce49
RD
15471SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15472 PyObject *resultobj = 0;
15473 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15474 wxString *result = 0 ;
15475 void *argp1 = 0 ;
15476 int res1 = 0 ;
15477 PyObject *swig_obj[1] ;
15478
15479 if (!args) SWIG_fail;
15480 swig_obj[0] = args;
15481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15482 if (!SWIG_IsOK(res1)) {
15483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15484 }
15485 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15486 result = (wxString *)& ((arg1)->Description);
15487 {
d14a1e28 15488#if wxUSE_UNICODE
0085ce49 15489 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 15490#else
0085ce49 15491 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28 15492#endif
0085ce49
RD
15493 }
15494 return resultobj;
15495fail:
15496 return NULL;
15497}
15498
15499
15500SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15501 PyObject *obj;
15502 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15503 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15504 return SWIG_Py_Void();
15505}
15506
15507SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15508 PyObject *resultobj = 0;
15509 int arg1 = (int) -1 ;
15510 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15511 wxLocale *result = 0 ;
15512 int val1 ;
15513 int ecode1 = 0 ;
15514 int val2 ;
15515 int ecode2 = 0 ;
15516 PyObject * obj0 = 0 ;
15517 PyObject * obj1 = 0 ;
15518 char * kwnames[] = {
15519 (char *) "language",(char *) "flags", NULL
15520 };
15521
15522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15523 if (obj0) {
15524 ecode1 = SWIG_AsVal_int(obj0, &val1);
15525 if (!SWIG_IsOK(ecode1)) {
15526 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15527 }
15528 arg1 = static_cast< int >(val1);
15529 }
15530 if (obj1) {
15531 ecode2 = SWIG_AsVal_int(obj1, &val2);
15532 if (!SWIG_IsOK(ecode2)) {
15533 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15534 }
15535 arg2 = static_cast< int >(val2);
15536 }
15537 {
15538 PyThreadState* __tstate = wxPyBeginAllowThreads();
15539 result = (wxLocale *)new_wxLocale(arg1,arg2);
15540 wxPyEndAllowThreads(__tstate);
15541 if (PyErr_Occurred()) SWIG_fail;
15542 }
15543 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15544 return resultobj;
15545fail:
15546 return NULL;
d14a1e28
RD
15547}
15548
15549
0085ce49
RD
15550SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15551 PyObject *resultobj = 0;
15552 wxLocale *arg1 = (wxLocale *) 0 ;
15553 void *argp1 = 0 ;
15554 int res1 = 0 ;
15555 PyObject *swig_obj[1] ;
15556
15557 if (!args) SWIG_fail;
15558 swig_obj[0] = args;
15559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15560 if (!SWIG_IsOK(res1)) {
15561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15562 }
15563 arg1 = reinterpret_cast< wxLocale * >(argp1);
15564 {
15565 PyThreadState* __tstate = wxPyBeginAllowThreads();
15566 delete arg1;
d14a1e28 15567
0085ce49
RD
15568 wxPyEndAllowThreads(__tstate);
15569 if (PyErr_Occurred()) SWIG_fail;
15570 }
15571 resultobj = SWIG_Py_Void();
15572 return resultobj;
15573fail:
15574 return NULL;
15575}
15576
15577
15578SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15579 PyObject *resultobj = 0;
15580 wxLocale *arg1 = (wxLocale *) 0 ;
15581 wxString *arg2 = 0 ;
15582 wxString const &arg3_defvalue = wxPyEmptyString ;
15583 wxString *arg3 = (wxString *) &arg3_defvalue ;
15584 wxString const &arg4_defvalue = wxPyEmptyString ;
15585 wxString *arg4 = (wxString *) &arg4_defvalue ;
15586 bool arg5 = (bool) true ;
15587 bool arg6 = (bool) false ;
15588 bool result;
15589 void *argp1 = 0 ;
15590 int res1 = 0 ;
15591 bool temp2 = false ;
15592 bool temp3 = false ;
15593 bool temp4 = false ;
15594 bool val5 ;
15595 int ecode5 = 0 ;
15596 bool val6 ;
15597 int ecode6 = 0 ;
15598 PyObject * obj0 = 0 ;
15599 PyObject * obj1 = 0 ;
15600 PyObject * obj2 = 0 ;
15601 PyObject * obj3 = 0 ;
15602 PyObject * obj4 = 0 ;
15603 PyObject * obj5 = 0 ;
15604 char * kwnames[] = {
15605 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15606 };
15607
15608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15610 if (!SWIG_IsOK(res1)) {
15611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15612 }
15613 arg1 = reinterpret_cast< wxLocale * >(argp1);
15614 {
15615 arg2 = wxString_in_helper(obj1);
15616 if (arg2 == NULL) SWIG_fail;
15617 temp2 = true;
15618 }
15619 if (obj2) {
d14a1e28 15620 {
0085ce49
RD
15621 arg3 = wxString_in_helper(obj2);
15622 if (arg3 == NULL) SWIG_fail;
15623 temp3 = true;
d14a1e28 15624 }
0085ce49
RD
15625 }
15626 if (obj3) {
093d3ff1 15627 {
0085ce49
RD
15628 arg4 = wxString_in_helper(obj3);
15629 if (arg4 == NULL) SWIG_fail;
15630 temp4 = true;
093d3ff1 15631 }
0085ce49
RD
15632 }
15633 if (obj4) {
15634 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15635 if (!SWIG_IsOK(ecode5)) {
15636 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15637 }
15638 arg5 = static_cast< bool >(val5);
15639 }
15640 if (obj5) {
15641 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15642 if (!SWIG_IsOK(ecode6)) {
15643 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15644 }
15645 arg6 = static_cast< bool >(val6);
15646 }
15647 {
15648 PyThreadState* __tstate = wxPyBeginAllowThreads();
15649 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15650 wxPyEndAllowThreads(__tstate);
15651 if (PyErr_Occurred()) SWIG_fail;
15652 }
15653 {
15654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15655 }
15656 {
15657 if (temp2)
15658 delete arg2;
15659 }
15660 {
15661 if (temp3)
15662 delete arg3;
15663 }
15664 {
15665 if (temp4)
15666 delete arg4;
15667 }
15668 return resultobj;
15669fail:
15670 {
15671 if (temp2)
15672 delete arg2;
15673 }
15674 {
15675 if (temp3)
15676 delete arg3;
15677 }
15678 {
15679 if (temp4)
15680 delete arg4;
15681 }
15682 return NULL;
15683}
15684
15685
15686SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15687 PyObject *resultobj = 0;
15688 wxLocale *arg1 = (wxLocale *) 0 ;
15689 int arg2 = (int) wxLANGUAGE_DEFAULT ;
15690 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15691 bool result;
15692 void *argp1 = 0 ;
15693 int res1 = 0 ;
15694 int val2 ;
15695 int ecode2 = 0 ;
15696 int val3 ;
15697 int ecode3 = 0 ;
15698 PyObject * obj0 = 0 ;
15699 PyObject * obj1 = 0 ;
15700 PyObject * obj2 = 0 ;
15701 char * kwnames[] = {
15702 (char *) "self",(char *) "language",(char *) "flags", NULL
15703 };
15704
15705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15707 if (!SWIG_IsOK(res1)) {
15708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
15709 }
15710 arg1 = reinterpret_cast< wxLocale * >(argp1);
15711 if (obj1) {
15712 ecode2 = SWIG_AsVal_int(obj1, &val2);
15713 if (!SWIG_IsOK(ecode2)) {
15714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
15715 }
15716 arg2 = static_cast< int >(val2);
15717 }
15718 if (obj2) {
15719 ecode3 = SWIG_AsVal_int(obj2, &val3);
15720 if (!SWIG_IsOK(ecode3)) {
15721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
15722 }
15723 arg3 = static_cast< int >(val3);
15724 }
15725 {
15726 PyThreadState* __tstate = wxPyBeginAllowThreads();
15727 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
15728 wxPyEndAllowThreads(__tstate);
15729 if (PyErr_Occurred()) SWIG_fail;
15730 }
15731 {
15732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15733 }
15734 return resultobj;
15735fail:
15736 return NULL;
093d3ff1
RD
15737}
15738
15739
0085ce49
RD
15740SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15741 PyObject *resultobj = 0;
15742 int result;
15743
15744 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
15745 {
15746 PyThreadState* __tstate = wxPyBeginAllowThreads();
15747 result = (int)wxLocale::GetSystemLanguage();
15748 wxPyEndAllowThreads(__tstate);
15749 if (PyErr_Occurred()) SWIG_fail;
15750 }
15751 resultobj = SWIG_From_int(static_cast< int >(result));
15752 return resultobj;
15753fail:
15754 return NULL;
d14a1e28
RD
15755}
15756
15757
0085ce49
RD
15758SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15759 PyObject *resultobj = 0;
15760 wxFontEncoding result;
15761
15762 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
15763 {
15764 PyThreadState* __tstate = wxPyBeginAllowThreads();
15765 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
15766 wxPyEndAllowThreads(__tstate);
15767 if (PyErr_Occurred()) SWIG_fail;
15768 }
15769 resultobj = SWIG_From_int(static_cast< int >(result));
15770 return resultobj;
15771fail:
15772 return NULL;
d14a1e28
RD
15773}
15774
15775
0085ce49
RD
15776SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15777 PyObject *resultobj = 0;
15778 wxString result;
15779
15780 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
15781 {
15782 PyThreadState* __tstate = wxPyBeginAllowThreads();
15783 result = wxLocale::GetSystemEncodingName();
15784 wxPyEndAllowThreads(__tstate);
15785 if (PyErr_Occurred()) SWIG_fail;
15786 }
15787 {
d14a1e28 15788#if wxUSE_UNICODE
0085ce49 15789 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 15790#else
0085ce49 15791 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 15792#endif
0085ce49
RD
15793 }
15794 return resultobj;
15795fail:
15796 return NULL;
d14a1e28
RD
15797}
15798
15799
0085ce49
RD
15800SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15801 PyObject *resultobj = 0;
15802 wxLocale *arg1 = (wxLocale *) 0 ;
15803 bool result;
15804 void *argp1 = 0 ;
15805 int res1 = 0 ;
15806 PyObject *swig_obj[1] ;
15807
15808 if (!args) SWIG_fail;
15809 swig_obj[0] = args;
15810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15811 if (!SWIG_IsOK(res1)) {
15812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
15813 }
15814 arg1 = reinterpret_cast< wxLocale * >(argp1);
15815 {
15816 PyThreadState* __tstate = wxPyBeginAllowThreads();
15817 result = (bool)((wxLocale const *)arg1)->IsOk();
15818 wxPyEndAllowThreads(__tstate);
15819 if (PyErr_Occurred()) SWIG_fail;
15820 }
15821 {
15822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15823 }
15824 return resultobj;
15825fail:
15826 return NULL;
093d3ff1 15827}
0085ce49
RD
15828
15829
15830SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15831 PyObject *resultobj = 0;
15832 wxLocale *arg1 = (wxLocale *) 0 ;
15833 wxString result;
15834 void *argp1 = 0 ;
15835 int res1 = 0 ;
15836 PyObject *swig_obj[1] ;
15837
15838 if (!args) SWIG_fail;
15839 swig_obj[0] = args;
15840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15841 if (!SWIG_IsOK(res1)) {
15842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
15843 }
15844 arg1 = reinterpret_cast< wxLocale * >(argp1);
15845 {
15846 PyThreadState* __tstate = wxPyBeginAllowThreads();
15847 result = ((wxLocale const *)arg1)->GetLocale();
15848 wxPyEndAllowThreads(__tstate);
15849 if (PyErr_Occurred()) SWIG_fail;
15850 }
15851 {
15852#if wxUSE_UNICODE
15853 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15854#else
15855 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15856#endif
15857 }
15858 return resultobj;
15859fail:
15860 return NULL;
d14a1e28
RD
15861}
15862
15863
0085ce49
RD
15864SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15865 PyObject *resultobj = 0;
15866 wxLocale *arg1 = (wxLocale *) 0 ;
15867 int 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_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
15877 }
15878 arg1 = reinterpret_cast< wxLocale * >(argp1);
15879 {
15880 PyThreadState* __tstate = wxPyBeginAllowThreads();
15881 result = (int)((wxLocale const *)arg1)->GetLanguage();
15882 wxPyEndAllowThreads(__tstate);
15883 if (PyErr_Occurred()) SWIG_fail;
15884 }
15885 resultobj = SWIG_From_int(static_cast< int >(result));
15886 return resultobj;
15887fail:
15888 return NULL;
d14a1e28
RD
15889}
15890
15891
0085ce49
RD
15892SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15893 PyObject *resultobj = 0;
15894 wxLocale *arg1 = (wxLocale *) 0 ;
15895 wxString result;
15896 void *argp1 = 0 ;
15897 int res1 = 0 ;
15898 PyObject *swig_obj[1] ;
15899
15900 if (!args) SWIG_fail;
15901 swig_obj[0] = args;
15902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15903 if (!SWIG_IsOK(res1)) {
15904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15905 }
15906 arg1 = reinterpret_cast< wxLocale * >(argp1);
15907 {
15908 PyThreadState* __tstate = wxPyBeginAllowThreads();
15909 result = ((wxLocale const *)arg1)->GetSysName();
15910 wxPyEndAllowThreads(__tstate);
15911 if (PyErr_Occurred()) SWIG_fail;
15912 }
15913 {
15914#if wxUSE_UNICODE
15915 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15916#else
15917 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15918#endif
15919 }
15920 return resultobj;
15921fail:
15922 return NULL;
d14a1e28
RD
15923}
15924
15925
0085ce49
RD
15926SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(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_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15939 }
15940 arg1 = reinterpret_cast< wxLocale * >(argp1);
15941 {
15942 PyThreadState* __tstate = wxPyBeginAllowThreads();
15943 result = ((wxLocale const *)arg1)->GetCanonicalName();
15944 wxPyEndAllowThreads(__tstate);
15945 if (PyErr_Occurred()) SWIG_fail;
15946 }
15947 {
15948#if wxUSE_UNICODE
15949 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15950#else
15951 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15952#endif
15953 }
15954 return resultobj;
15955fail:
15956 return NULL;
d14a1e28
RD
15957}
15958
15959
0085ce49
RD
15960SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15961 PyObject *resultobj = 0;
15962 wxString *arg1 = 0 ;
15963 bool temp1 = false ;
15964 PyObject * obj0 = 0 ;
15965 char * kwnames[] = {
15966 (char *) "prefix", NULL
15967 };
15968
15969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
15970 {
15971 arg1 = wxString_in_helper(obj0);
15972 if (arg1 == NULL) SWIG_fail;
15973 temp1 = true;
15974 }
15975 {
15976 PyThreadState* __tstate = wxPyBeginAllowThreads();
15977 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
15978 wxPyEndAllowThreads(__tstate);
15979 if (PyErr_Occurred()) SWIG_fail;
15980 }
15981 resultobj = SWIG_Py_Void();
15982 {
15983 if (temp1)
15984 delete arg1;
15985 }
15986 return resultobj;
15987fail:
15988 {
15989 if (temp1)
15990 delete arg1;
15991 }
15992 return NULL;
15993}
15994
15995
15996SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15997 PyObject *resultobj = 0;
15998 wxLocale *arg1 = (wxLocale *) 0 ;
15999 wxString *arg2 = 0 ;
16000 bool result;
16001 void *argp1 = 0 ;
16002 int res1 = 0 ;
16003 bool temp2 = false ;
16004 PyObject * obj0 = 0 ;
16005 PyObject * obj1 = 0 ;
16006 char * kwnames[] = {
16007 (char *) "self",(char *) "szDomain", NULL
16008 };
16009
16010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16012 if (!SWIG_IsOK(res1)) {
16013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16014 }
16015 arg1 = reinterpret_cast< wxLocale * >(argp1);
16016 {
16017 arg2 = wxString_in_helper(obj1);
16018 if (arg2 == NULL) SWIG_fail;
16019 temp2 = true;
16020 }
16021 {
16022 PyThreadState* __tstate = wxPyBeginAllowThreads();
16023 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16024 wxPyEndAllowThreads(__tstate);
16025 if (PyErr_Occurred()) SWIG_fail;
16026 }
16027 {
16028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16029 }
16030 {
16031 if (temp2)
16032 delete arg2;
16033 }
16034 return resultobj;
16035fail:
16036 {
16037 if (temp2)
16038 delete arg2;
16039 }
16040 return NULL;
16041}
16042
16043
33d6fd3b
RD
16044SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16045 PyObject *resultobj = 0;
16046 int arg1 ;
16047 bool result;
16048 int val1 ;
16049 int ecode1 = 0 ;
16050 PyObject * obj0 = 0 ;
16051 char * kwnames[] = {
16052 (char *) "lang", NULL
16053 };
16054
16055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16056 ecode1 = SWIG_AsVal_int(obj0, &val1);
16057 if (!SWIG_IsOK(ecode1)) {
16058 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16059 }
16060 arg1 = static_cast< int >(val1);
16061 {
16062 PyThreadState* __tstate = wxPyBeginAllowThreads();
16063 result = (bool)wxLocale::IsAvailable(arg1);
16064 wxPyEndAllowThreads(__tstate);
16065 if (PyErr_Occurred()) SWIG_fail;
16066 }
16067 {
16068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16069 }
16070 return resultobj;
16071fail:
16072 return NULL;
16073}
16074
16075
0085ce49
RD
16076SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16077 PyObject *resultobj = 0;
16078 wxLocale *arg1 = (wxLocale *) 0 ;
16079 wxString *arg2 = 0 ;
16080 bool result;
16081 void *argp1 = 0 ;
16082 int res1 = 0 ;
16083 bool temp2 = false ;
16084 PyObject * obj0 = 0 ;
16085 PyObject * obj1 = 0 ;
16086 char * kwnames[] = {
16087 (char *) "self",(char *) "szDomain", NULL
16088 };
16089
16090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16092 if (!SWIG_IsOK(res1)) {
16093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16094 }
16095 arg1 = reinterpret_cast< wxLocale * >(argp1);
16096 {
16097 arg2 = wxString_in_helper(obj1);
16098 if (arg2 == NULL) SWIG_fail;
16099 temp2 = true;
16100 }
16101 {
16102 PyThreadState* __tstate = wxPyBeginAllowThreads();
16103 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16104 wxPyEndAllowThreads(__tstate);
16105 if (PyErr_Occurred()) SWIG_fail;
16106 }
16107 {
16108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16109 }
16110 {
16111 if (temp2)
16112 delete arg2;
16113 }
16114 return resultobj;
16115fail:
16116 {
16117 if (temp2)
16118 delete arg2;
16119 }
16120 return NULL;
d14a1e28
RD
16121}
16122
16123
0085ce49
RD
16124SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16125 PyObject *resultobj = 0;
16126 int arg1 ;
16127 wxLanguageInfo *result = 0 ;
16128 int val1 ;
16129 int ecode1 = 0 ;
16130 PyObject * obj0 = 0 ;
16131 char * kwnames[] = {
16132 (char *) "lang", NULL
16133 };
16134
16135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16136 ecode1 = SWIG_AsVal_int(obj0, &val1);
16137 if (!SWIG_IsOK(ecode1)) {
16138 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16139 }
16140 arg1 = static_cast< int >(val1);
16141 {
16142 PyThreadState* __tstate = wxPyBeginAllowThreads();
16143 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16144 wxPyEndAllowThreads(__tstate);
16145 if (PyErr_Occurred()) SWIG_fail;
16146 }
16147 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16148 return resultobj;
16149fail:
16150 return NULL;
16151}
16152
16153
16154SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16155 PyObject *resultobj = 0;
16156 int arg1 ;
16157 wxString result;
16158 int val1 ;
16159 int ecode1 = 0 ;
16160 PyObject * obj0 = 0 ;
16161 char * kwnames[] = {
16162 (char *) "lang", NULL
16163 };
16164
16165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16166 ecode1 = SWIG_AsVal_int(obj0, &val1);
16167 if (!SWIG_IsOK(ecode1)) {
16168 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16169 }
16170 arg1 = static_cast< int >(val1);
16171 {
16172 PyThreadState* __tstate = wxPyBeginAllowThreads();
16173 result = wxLocale::GetLanguageName(arg1);
16174 wxPyEndAllowThreads(__tstate);
16175 if (PyErr_Occurred()) SWIG_fail;
16176 }
16177 {
16178#if wxUSE_UNICODE
16179 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16180#else
16181 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16182#endif
16183 }
16184 return resultobj;
16185fail:
16186 return NULL;
d14a1e28
RD
16187}
16188
16189
0085ce49
RD
16190SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16191 PyObject *resultobj = 0;
16192 wxString *arg1 = 0 ;
16193 wxLanguageInfo *result = 0 ;
16194 bool temp1 = false ;
16195 PyObject * obj0 = 0 ;
16196 char * kwnames[] = {
16197 (char *) "locale", NULL
16198 };
16199
16200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16201 {
16202 arg1 = wxString_in_helper(obj0);
16203 if (arg1 == NULL) SWIG_fail;
16204 temp1 = true;
16205 }
16206 {
16207 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16208 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16209 wxPyEndAllowThreads(__tstate);
16210 if (PyErr_Occurred()) SWIG_fail;
16211 }
16212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16213 {
16214 if (temp1)
16215 delete arg1;
16216 }
16217 return resultobj;
16218fail:
16219 {
16220 if (temp1)
16221 delete arg1;
16222 }
16223 return NULL;
16224}
16225
16226
16227SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16228 PyObject *resultobj = 0;
16229 wxLanguageInfo *arg1 = 0 ;
16230 void *argp1 = 0 ;
16231 int res1 = 0 ;
16232 PyObject * obj0 = 0 ;
16233 char * kwnames[] = {
16234 (char *) "info", NULL
16235 };
16236
16237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16238 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16239 if (!SWIG_IsOK(res1)) {
16240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16241 }
16242 if (!argp1) {
16243 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16244 }
16245 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16246 {
16247 PyThreadState* __tstate = wxPyBeginAllowThreads();
16248 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16249 wxPyEndAllowThreads(__tstate);
16250 if (PyErr_Occurred()) SWIG_fail;
16251 }
16252 resultobj = SWIG_Py_Void();
16253 return resultobj;
16254fail:
16255 return NULL;
16256}
16257
16258
16259SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16260 PyObject *resultobj = 0;
16261 wxLocale *arg1 = (wxLocale *) 0 ;
16262 wxString *arg2 = 0 ;
16263 wxString const &arg3_defvalue = wxPyEmptyString ;
16264 wxString *arg3 = (wxString *) &arg3_defvalue ;
16265 wxString result;
16266 void *argp1 = 0 ;
16267 int res1 = 0 ;
16268 bool temp2 = false ;
16269 bool temp3 = false ;
16270 PyObject * obj0 = 0 ;
16271 PyObject * obj1 = 0 ;
16272 PyObject * obj2 = 0 ;
16273 char * kwnames[] = {
16274 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16275 };
16276
16277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16279 if (!SWIG_IsOK(res1)) {
16280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16281 }
16282 arg1 = reinterpret_cast< wxLocale * >(argp1);
16283 {
16284 arg2 = wxString_in_helper(obj1);
16285 if (arg2 == NULL) SWIG_fail;
16286 temp2 = true;
16287 }
16288 if (obj2) {
16289 {
16290 arg3 = wxString_in_helper(obj2);
16291 if (arg3 == NULL) SWIG_fail;
16292 temp3 = true;
16293 }
16294 }
16295 {
16296 PyThreadState* __tstate = wxPyBeginAllowThreads();
16297 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16298 wxPyEndAllowThreads(__tstate);
16299 if (PyErr_Occurred()) SWIG_fail;
16300 }
16301 {
16302#if wxUSE_UNICODE
16303 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16304#else
16305 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16306#endif
16307 }
16308 {
16309 if (temp2)
16310 delete arg2;
16311 }
16312 {
16313 if (temp3)
16314 delete arg3;
16315 }
16316 return resultobj;
16317fail:
16318 {
16319 if (temp2)
16320 delete arg2;
16321 }
16322 {
16323 if (temp3)
16324 delete arg3;
16325 }
16326 return NULL;
16327}
16328
16329
16330SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16331 PyObject *resultobj = 0;
16332 wxLocale *arg1 = (wxLocale *) 0 ;
16333 wxString *result = 0 ;
16334 void *argp1 = 0 ;
16335 int res1 = 0 ;
16336 PyObject *swig_obj[1] ;
16337
16338 if (!args) SWIG_fail;
16339 swig_obj[0] = args;
16340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16341 if (!SWIG_IsOK(res1)) {
16342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16343 }
16344 arg1 = reinterpret_cast< wxLocale * >(argp1);
16345 {
16346 PyThreadState* __tstate = wxPyBeginAllowThreads();
16347 {
16348 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16349 result = (wxString *) &_result_ref;
16350 }
16351 wxPyEndAllowThreads(__tstate);
16352 if (PyErr_Occurred()) SWIG_fail;
16353 }
16354 {
16355#if wxUSE_UNICODE
16356 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16357#else
16358 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16359#endif
16360 }
16361 return resultobj;
16362fail:
16363 return NULL;
16364}
16365
16366
16367SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16368 PyObject *obj;
16369 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16370 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16371 return SWIG_Py_Void();
16372}
16373
16374SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16375 return SWIG_Python_InitShadowInstance(args);
16376}
16377
16378SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16379 PyObject *resultobj = 0;
16380 int arg1 = (int) -1 ;
16381 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16382 wxPyLocale *result = 0 ;
16383 int val1 ;
16384 int ecode1 = 0 ;
16385 int val2 ;
16386 int ecode2 = 0 ;
16387 PyObject * obj0 = 0 ;
16388 PyObject * obj1 = 0 ;
16389 char * kwnames[] = {
16390 (char *) "language",(char *) "flags", NULL
16391 };
16392
16393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16394 if (obj0) {
16395 ecode1 = SWIG_AsVal_int(obj0, &val1);
16396 if (!SWIG_IsOK(ecode1)) {
16397 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16398 }
16399 arg1 = static_cast< int >(val1);
16400 }
16401 if (obj1) {
16402 ecode2 = SWIG_AsVal_int(obj1, &val2);
16403 if (!SWIG_IsOK(ecode2)) {
16404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16405 }
16406 arg2 = static_cast< int >(val2);
16407 }
16408 {
16409 PyThreadState* __tstate = wxPyBeginAllowThreads();
16410 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16411 wxPyEndAllowThreads(__tstate);
16412 if (PyErr_Occurred()) SWIG_fail;
16413 }
16414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16415 return resultobj;
16416fail:
16417 return NULL;
16418}
16419
16420
16421SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16422 PyObject *resultobj = 0;
16423 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16424 void *argp1 = 0 ;
16425 int res1 = 0 ;
16426 PyObject *swig_obj[1] ;
16427
16428 if (!args) SWIG_fail;
16429 swig_obj[0] = args;
16430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16431 if (!SWIG_IsOK(res1)) {
16432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16433 }
16434 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16435 {
16436 PyThreadState* __tstate = wxPyBeginAllowThreads();
16437 delete arg1;
16438
0085ce49
RD
16439 wxPyEndAllowThreads(__tstate);
16440 if (PyErr_Occurred()) SWIG_fail;
16441 }
fc46b7f3 16442 resultobj = SWIG_Py_Void();
0085ce49
RD
16443 return resultobj;
16444fail:
0085ce49 16445 return NULL;
d14a1e28
RD
16446}
16447
16448
fc46b7f3 16449SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16450 PyObject *resultobj = 0;
fc46b7f3
RD
16451 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16452 PyObject *arg2 = (PyObject *) 0 ;
16453 PyObject *arg3 = (PyObject *) 0 ;
0085ce49
RD
16454 void *argp1 = 0 ;
16455 int res1 = 0 ;
16456 PyObject * obj0 = 0 ;
fc46b7f3
RD
16457 PyObject * obj1 = 0 ;
16458 PyObject * obj2 = 0 ;
0085ce49 16459 char * kwnames[] = {
fc46b7f3 16460 (char *) "self",(char *) "self",(char *) "_class", NULL
0085ce49
RD
16461 };
16462
fc46b7f3
RD
16463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16465 if (!SWIG_IsOK(res1)) {
fc46b7f3 16466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
0085ce49 16467 }
fc46b7f3
RD
16468 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16469 arg2 = obj1;
16470 arg3 = obj2;
0085ce49
RD
16471 {
16472 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16473 (arg1)->_setCallbackInfo(arg2,arg3);
0085ce49
RD
16474 wxPyEndAllowThreads(__tstate);
16475 if (PyErr_Occurred()) SWIG_fail;
16476 }
16477 resultobj = SWIG_Py_Void();
16478 return resultobj;
16479fail:
16480 return NULL;
16481}
16482
16483
fc46b7f3 16484SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16485 PyObject *resultobj = 0;
fc46b7f3
RD
16486 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16487 wxChar *arg2 = (wxChar *) 0 ;
16488 wxChar *arg3 = (wxChar *) NULL ;
16489 wxChar *result = 0 ;
0085ce49
RD
16490 void *argp1 = 0 ;
16491 int res1 = 0 ;
fc46b7f3
RD
16492 void *argp2 = 0 ;
16493 int res2 = 0 ;
16494 void *argp3 = 0 ;
16495 int res3 = 0 ;
0085ce49
RD
16496 PyObject * obj0 = 0 ;
16497 PyObject * obj1 = 0 ;
16498 PyObject * obj2 = 0 ;
16499 char * kwnames[] = {
16500 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16501 };
16502
fc46b7f3
RD
16503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16505 if (!SWIG_IsOK(res1)) {
fc46b7f3 16506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
0085ce49 16507 }
fc46b7f3
RD
16508 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16509 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16510 if (!SWIG_IsOK(res2)) {
16511 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
0085ce49 16512 }
fc46b7f3 16513 arg2 = reinterpret_cast< wxChar * >(argp2);
0085ce49 16514 if (obj2) {
fc46b7f3
RD
16515 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16516 if (!SWIG_IsOK(res3)) {
16517 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
b6294124 16518 }
fc46b7f3 16519 arg3 = reinterpret_cast< wxChar * >(argp3);
0085ce49
RD
16520 }
16521 {
16522 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16523 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
0085ce49
RD
16524 wxPyEndAllowThreads(__tstate);
16525 if (PyErr_Occurred()) SWIG_fail;
16526 }
fc46b7f3 16527 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
0085ce49
RD
16528 return resultobj;
16529fail:
0085ce49 16530 return NULL;
b6294124
RD
16531}
16532
16533
fc46b7f3 16534SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16535 PyObject *resultobj = 0;
fc46b7f3
RD
16536 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16537 wxChar *arg2 = (wxChar *) 0 ;
16538 wxChar *arg3 = (wxChar *) 0 ;
16539 size_t arg4 ;
16540 wxChar *arg5 = (wxChar *) NULL ;
16541 wxChar *result = 0 ;
0085ce49
RD
16542 void *argp1 = 0 ;
16543 int res1 = 0 ;
fc46b7f3
RD
16544 void *argp2 = 0 ;
16545 int res2 = 0 ;
16546 void *argp3 = 0 ;
16547 int res3 = 0 ;
16548 size_t val4 ;
16549 int ecode4 = 0 ;
16550 void *argp5 = 0 ;
16551 int res5 = 0 ;
16552 PyObject * obj0 = 0 ;
16553 PyObject * obj1 = 0 ;
16554 PyObject * obj2 = 0 ;
16555 PyObject * obj3 = 0 ;
16556 PyObject * obj4 = 0 ;
16557 char * kwnames[] = {
16558 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16559 };
0085ce49 16560
fc46b7f3
RD
16561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16563 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
16564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16565 }
16566 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16567 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16568 if (!SWIG_IsOK(res2)) {
16569 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16570 }
16571 arg2 = reinterpret_cast< wxChar * >(argp2);
16572 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16573 if (!SWIG_IsOK(res3)) {
16574 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16575 }
16576 arg3 = reinterpret_cast< wxChar * >(argp3);
16577 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16578 if (!SWIG_IsOK(ecode4)) {
16579 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16580 }
16581 arg4 = static_cast< size_t >(val4);
16582 if (obj4) {
16583 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16584 if (!SWIG_IsOK(res5)) {
16585 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16586 }
16587 arg5 = reinterpret_cast< wxChar * >(argp5);
0085ce49 16588 }
0085ce49
RD
16589 {
16590 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16591 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
0085ce49
RD
16592 wxPyEndAllowThreads(__tstate);
16593 if (PyErr_Occurred()) SWIG_fail;
16594 }
fc46b7f3 16595 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
0085ce49
RD
16596 return resultobj;
16597fail:
16598 return NULL;
d14a1e28
RD
16599}
16600
16601
fc46b7f3 16602SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
16603 PyObject *obj;
16604 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 16605 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
0085ce49 16606 return SWIG_Py_Void();
d14a1e28
RD
16607}
16608
fc46b7f3 16609SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
16610 return SWIG_Python_InitShadowInstance(args);
16611}
d14a1e28 16612
0085ce49
RD
16613SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16614 PyObject *resultobj = 0;
16615 wxLocale *result = 0 ;
16616
16617 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16618 {
16619 PyThreadState* __tstate = wxPyBeginAllowThreads();
16620 result = (wxLocale *)wxGetLocale();
16621 wxPyEndAllowThreads(__tstate);
16622 if (PyErr_Occurred()) SWIG_fail;
16623 }
16624 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16625 return resultobj;
16626fail:
16627 return NULL;
d14a1e28
RD
16628}
16629
16630
0085ce49
RD
16631SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16632 PyObject *resultobj = 0;
16633 wxString *arg1 = 0 ;
16634 wxString result;
16635 bool temp1 = false ;
16636
16637 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16638 {
16639 arg1 = wxString_in_helper(swig_obj[0]);
16640 if (arg1 == NULL) SWIG_fail;
16641 temp1 = true;
16642 }
16643 {
16644 PyThreadState* __tstate = wxPyBeginAllowThreads();
16645 result = wxGetTranslation((wxString const &)*arg1);
16646 wxPyEndAllowThreads(__tstate);
16647 if (PyErr_Occurred()) SWIG_fail;
16648 }
16649 {
093d3ff1 16650#if wxUSE_UNICODE
0085ce49 16651 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 16652#else
0085ce49 16653 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 16654#endif
0085ce49
RD
16655 }
16656 {
16657 if (temp1)
16658 delete arg1;
16659 }
16660 return resultobj;
16661fail:
16662 {
16663 if (temp1)
16664 delete arg1;
16665 }
16666 return NULL;
b6294124
RD
16667}
16668
16669
0085ce49 16670SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
16671 PyObject *resultobj = 0;
16672 wxString *arg1 = 0 ;
16673 wxString *arg2 = 0 ;
16674 wxString result;
16675 bool temp1 = false ;
16676 bool temp2 = false ;
16677
16678 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16679 {
16680 arg1 = wxString_in_helper(swig_obj[0]);
16681 if (arg1 == NULL) SWIG_fail;
16682 temp1 = true;
16683 }
16684 {
16685 arg2 = wxString_in_helper(swig_obj[1]);
16686 if (arg2 == NULL) SWIG_fail;
16687 temp2 = true;
16688 }
16689 {
16690 PyThreadState* __tstate = wxPyBeginAllowThreads();
16691 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
16692 wxPyEndAllowThreads(__tstate);
16693 if (PyErr_Occurred()) SWIG_fail;
16694 }
16695 {
16696#if wxUSE_UNICODE
16697 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16698#else
16699 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16700#endif
16701 }
16702 {
16703 if (temp1)
16704 delete arg1;
16705 }
16706 {
16707 if (temp2)
16708 delete arg2;
16709 }
16710 return resultobj;
16711fail:
16712 {
16713 if (temp1)
16714 delete arg1;
16715 }
16716 {
16717 if (temp2)
16718 delete arg2;
16719 }
16720 return NULL;
16721}
16722
16723
16724SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
0085ce49
RD
16725 PyObject *resultobj = 0;
16726 wxString *arg1 = 0 ;
16727 wxString *arg2 = 0 ;
16728 size_t arg3 ;
16729 wxString result;
16730 bool temp1 = false ;
16731 bool temp2 = false ;
16732 size_t val3 ;
16733 int ecode3 = 0 ;
16734
16735 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16736 {
16737 arg1 = wxString_in_helper(swig_obj[0]);
16738 if (arg1 == NULL) SWIG_fail;
16739 temp1 = true;
16740 }
16741 {
16742 arg2 = wxString_in_helper(swig_obj[1]);
16743 if (arg2 == NULL) SWIG_fail;
16744 temp2 = true;
16745 }
16746 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16747 if (!SWIG_IsOK(ecode3)) {
16748 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16749 }
16750 arg3 = static_cast< size_t >(val3);
16751 {
16752 PyThreadState* __tstate = wxPyBeginAllowThreads();
16753 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
16754 wxPyEndAllowThreads(__tstate);
16755 if (PyErr_Occurred()) SWIG_fail;
16756 }
16757 {
16758#if wxUSE_UNICODE
16759 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16760#else
16761 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16762#endif
16763 }
16764 {
16765 if (temp1)
16766 delete arg1;
16767 }
16768 {
16769 if (temp2)
16770 delete arg2;
16771 }
16772 return resultobj;
16773fail:
16774 {
16775 if (temp1)
16776 delete arg1;
16777 }
16778 {
16779 if (temp2)
16780 delete arg2;
16781 }
16782 return NULL;
d14a1e28
RD
16783}
16784
16785
fc46b7f3
RD
16786SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16787 PyObject *resultobj = 0;
16788 wxString *arg1 = 0 ;
16789 wxString *arg2 = 0 ;
16790 size_t arg3 ;
16791 wxString *arg4 = 0 ;
16792 wxString result;
16793 bool temp1 = false ;
16794 bool temp2 = false ;
16795 size_t val3 ;
16796 int ecode3 = 0 ;
16797 bool temp4 = false ;
16798
16799 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
16800 {
16801 arg1 = wxString_in_helper(swig_obj[0]);
16802 if (arg1 == NULL) SWIG_fail;
16803 temp1 = true;
16804 }
16805 {
16806 arg2 = wxString_in_helper(swig_obj[1]);
16807 if (arg2 == NULL) SWIG_fail;
16808 temp2 = true;
16809 }
16810 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16811 if (!SWIG_IsOK(ecode3)) {
16812 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16813 }
16814 arg3 = static_cast< size_t >(val3);
16815 {
16816 arg4 = wxString_in_helper(swig_obj[3]);
16817 if (arg4 == NULL) SWIG_fail;
16818 temp4 = true;
16819 }
16820 {
16821 PyThreadState* __tstate = wxPyBeginAllowThreads();
16822 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
16823 wxPyEndAllowThreads(__tstate);
16824 if (PyErr_Occurred()) SWIG_fail;
16825 }
16826 {
16827#if wxUSE_UNICODE
16828 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16829#else
16830 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16831#endif
16832 }
16833 {
16834 if (temp1)
16835 delete arg1;
16836 }
16837 {
16838 if (temp2)
16839 delete arg2;
16840 }
16841 {
16842 if (temp4)
16843 delete arg4;
16844 }
16845 return resultobj;
16846fail:
16847 {
16848 if (temp1)
16849 delete arg1;
16850 }
16851 {
16852 if (temp2)
16853 delete arg2;
16854 }
16855 {
16856 if (temp4)
16857 delete arg4;
16858 }
16859 return NULL;
16860}
16861
16862
0085ce49
RD
16863SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
16864 int argc;
fc46b7f3 16865 PyObject *argv[5];
0085ce49 16866
fc46b7f3 16867 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
0085ce49
RD
16868 --argc;
16869 if (argc == 1) {
16870 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
16871 }
fc46b7f3 16872 if (argc == 2) {
0085ce49
RD
16873 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
16874 }
fc46b7f3
RD
16875 if (argc == 3) {
16876 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
16877 }
16878 if (argc == 4) {
16879 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
16880 }
0085ce49
RD
16881
16882fail:
16883 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
16884 return NULL;
d14a1e28
RD
16885}
16886
16887
0085ce49
RD
16888SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16889 PyObject *resultobj = 0;
16890 wxEncodingConverter *result = 0 ;
16891
16892 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
16893 {
16894 PyThreadState* __tstate = wxPyBeginAllowThreads();
16895 result = (wxEncodingConverter *)new wxEncodingConverter();
16896 wxPyEndAllowThreads(__tstate);
16897 if (PyErr_Occurred()) SWIG_fail;
16898 }
16899 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
16900 return resultobj;
16901fail:
16902 return NULL;
d14a1e28
RD
16903}
16904
16905
0085ce49
RD
16906SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16907 PyObject *resultobj = 0;
16908 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16909 void *argp1 = 0 ;
16910 int res1 = 0 ;
16911 PyObject *swig_obj[1] ;
16912
16913 if (!args) SWIG_fail;
16914 swig_obj[0] = args;
16915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
16916 if (!SWIG_IsOK(res1)) {
16917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16918 }
16919 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16920 {
16921 PyThreadState* __tstate = wxPyBeginAllowThreads();
16922 delete arg1;
d14a1e28 16923
0085ce49
RD
16924 wxPyEndAllowThreads(__tstate);
16925 if (PyErr_Occurred()) SWIG_fail;
16926 }
16927 resultobj = SWIG_Py_Void();
16928 return resultobj;
16929fail:
16930 return NULL;
16931}
16932
16933
16934SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16935 PyObject *resultobj = 0;
16936 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16937 wxFontEncoding arg2 ;
16938 wxFontEncoding arg3 ;
16939 int arg4 = (int) wxCONVERT_STRICT ;
16940 bool result;
16941 void *argp1 = 0 ;
16942 int res1 = 0 ;
16943 int val2 ;
16944 int ecode2 = 0 ;
16945 int val3 ;
16946 int ecode3 = 0 ;
16947 int val4 ;
16948 int ecode4 = 0 ;
16949 PyObject * obj0 = 0 ;
16950 PyObject * obj1 = 0 ;
16951 PyObject * obj2 = 0 ;
16952 PyObject * obj3 = 0 ;
16953 char * kwnames[] = {
16954 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
16955 };
16956
16957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16959 if (!SWIG_IsOK(res1)) {
16960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16961 }
16962 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16963 ecode2 = SWIG_AsVal_int(obj1, &val2);
16964 if (!SWIG_IsOK(ecode2)) {
16965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16966 }
16967 arg2 = static_cast< wxFontEncoding >(val2);
16968 ecode3 = SWIG_AsVal_int(obj2, &val3);
16969 if (!SWIG_IsOK(ecode3)) {
16970 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
16971 }
16972 arg3 = static_cast< wxFontEncoding >(val3);
16973 if (obj3) {
16974 ecode4 = SWIG_AsVal_int(obj3, &val4);
16975 if (!SWIG_IsOK(ecode4)) {
16976 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
16977 }
16978 arg4 = static_cast< int >(val4);
16979 }
16980 {
16981 PyThreadState* __tstate = wxPyBeginAllowThreads();
16982 result = (bool)(arg1)->Init(arg2,arg3,arg4);
16983 wxPyEndAllowThreads(__tstate);
16984 if (PyErr_Occurred()) SWIG_fail;
16985 }
16986 {
16987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16988 }
16989 return resultobj;
16990fail:
16991 return NULL;
16992}
16993
16994
16995SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16996 PyObject *resultobj = 0;
16997 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16998 wxString *arg2 = 0 ;
16999 wxString result;
17000 void *argp1 = 0 ;
17001 int res1 = 0 ;
17002 bool temp2 = false ;
17003 PyObject * obj0 = 0 ;
17004 PyObject * obj1 = 0 ;
17005 char * kwnames[] = {
17006 (char *) "self",(char *) "input", NULL
17007 };
17008
17009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17011 if (!SWIG_IsOK(res1)) {
17012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17013 }
17014 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17015 {
17016 arg2 = wxString_in_helper(obj1);
17017 if (arg2 == NULL) SWIG_fail;
17018 temp2 = true;
17019 }
17020 {
17021 PyThreadState* __tstate = wxPyBeginAllowThreads();
17022 result = (arg1)->Convert((wxString const &)*arg2);
17023 wxPyEndAllowThreads(__tstate);
17024 if (PyErr_Occurred()) SWIG_fail;
17025 }
17026 {
17027#if wxUSE_UNICODE
17028 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17029#else
17030 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17031#endif
17032 }
17033 {
17034 if (temp2)
17035 delete arg2;
17036 }
17037 return resultobj;
17038fail:
17039 {
17040 if (temp2)
17041 delete arg2;
17042 }
17043 return NULL;
17044}
17045
17046
17047SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17048 PyObject *resultobj = 0;
17049 wxFontEncoding arg1 ;
17050 int arg2 = (int) wxPLATFORM_CURRENT ;
17051 wxFontEncodingArray result;
17052 int val1 ;
17053 int ecode1 = 0 ;
17054 int val2 ;
17055 int ecode2 = 0 ;
17056 PyObject * obj0 = 0 ;
17057 PyObject * obj1 = 0 ;
17058 char * kwnames[] = {
17059 (char *) "enc",(char *) "platform", NULL
17060 };
17061
17062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17063 ecode1 = SWIG_AsVal_int(obj0, &val1);
17064 if (!SWIG_IsOK(ecode1)) {
17065 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17066 }
17067 arg1 = static_cast< wxFontEncoding >(val1);
17068 if (obj1) {
17069 ecode2 = SWIG_AsVal_int(obj1, &val2);
17070 if (!SWIG_IsOK(ecode2)) {
17071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17072 }
17073 arg2 = static_cast< int >(val2);
17074 }
17075 {
17076 PyThreadState* __tstate = wxPyBeginAllowThreads();
17077 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17078 wxPyEndAllowThreads(__tstate);
17079 if (PyErr_Occurred()) SWIG_fail;
17080 }
17081 {
17082 resultobj = PyList_New(0);
17083 for (size_t i=0; i < (&result)->GetCount(); i++) {
17084 PyObject* number = PyInt_FromLong((&result)->Item(i));
17085 PyList_Append(resultobj, number);
17086 Py_DECREF(number);
093d3ff1 17087 }
0085ce49
RD
17088 }
17089 return resultobj;
17090fail:
17091 return NULL;
d14a1e28
RD
17092}
17093
17094
0085ce49
RD
17095SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17096 PyObject *resultobj = 0;
17097 wxFontEncoding arg1 ;
17098 wxFontEncodingArray result;
17099 int val1 ;
17100 int ecode1 = 0 ;
17101 PyObject * obj0 = 0 ;
17102 char * kwnames[] = {
17103 (char *) "enc", NULL
17104 };
17105
17106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17107 ecode1 = SWIG_AsVal_int(obj0, &val1);
17108 if (!SWIG_IsOK(ecode1)) {
17109 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17110 }
17111 arg1 = static_cast< wxFontEncoding >(val1);
17112 {
17113 PyThreadState* __tstate = wxPyBeginAllowThreads();
17114 result = wxEncodingConverter::GetAllEquivalents(arg1);
17115 wxPyEndAllowThreads(__tstate);
17116 if (PyErr_Occurred()) SWIG_fail;
17117 }
17118 {
17119 resultobj = PyList_New(0);
17120 for (size_t i=0; i < (&result)->GetCount(); i++) {
17121 PyObject* number = PyInt_FromLong((&result)->Item(i));
17122 PyList_Append(resultobj, number);
17123 Py_DECREF(number);
093d3ff1 17124 }
0085ce49
RD
17125 }
17126 return resultobj;
17127fail:
17128 return NULL;
17129}
17130
17131
17132SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17133 PyObject *resultobj = 0;
17134 wxFontEncoding arg1 ;
17135 wxFontEncoding arg2 ;
17136 bool result;
17137 int val1 ;
17138 int ecode1 = 0 ;
17139 int val2 ;
17140 int ecode2 = 0 ;
17141 PyObject * obj0 = 0 ;
17142 PyObject * obj1 = 0 ;
17143 char * kwnames[] = {
17144 (char *) "encIn",(char *) "encOut", NULL
17145 };
17146
17147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17148 ecode1 = SWIG_AsVal_int(obj0, &val1);
17149 if (!SWIG_IsOK(ecode1)) {
17150 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17151 }
17152 arg1 = static_cast< wxFontEncoding >(val1);
17153 ecode2 = SWIG_AsVal_int(obj1, &val2);
17154 if (!SWIG_IsOK(ecode2)) {
17155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17156 }
17157 arg2 = static_cast< wxFontEncoding >(val2);
17158 {
17159 PyThreadState* __tstate = wxPyBeginAllowThreads();
17160 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17161 wxPyEndAllowThreads(__tstate);
17162 if (PyErr_Occurred()) SWIG_fail;
17163 }
17164 {
17165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17166 }
17167 return resultobj;
17168fail:
17169 return NULL;
d14a1e28
RD
17170}
17171
17172
0085ce49
RD
17173SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17174 PyObject *obj;
17175 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17176 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17177 return SWIG_Py_Void();
d14a1e28
RD
17178}
17179
0085ce49
RD
17180SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17181 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
17182}
17183
0085ce49
RD
17184SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17185 PyObject *resultobj = 0;
17186 wxDC *arg1 = (wxDC *) 0 ;
17187 void *argp1 = 0 ;
17188 int res1 = 0 ;
17189 PyObject *swig_obj[1] ;
17190
17191 if (!args) SWIG_fail;
17192 swig_obj[0] = args;
17193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17194 if (!SWIG_IsOK(res1)) {
17195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17196 }
17197 arg1 = reinterpret_cast< wxDC * >(argp1);
17198 {
17199 PyThreadState* __tstate = wxPyBeginAllowThreads();
17200 delete arg1;
d14a1e28 17201
0085ce49
RD
17202 wxPyEndAllowThreads(__tstate);
17203 if (PyErr_Occurred()) SWIG_fail;
17204 }
17205 resultobj = SWIG_Py_Void();
17206 return resultobj;
17207fail:
17208 return NULL;
17209}
17210
17211
17212SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17213 PyObject *resultobj = 0;
17214 wxDC *arg1 = (wxDC *) 0 ;
17215 int arg2 ;
17216 int arg3 ;
17217 wxColour *arg4 = 0 ;
17218 int arg5 = (int) wxFLOOD_SURFACE ;
17219 bool result;
17220 void *argp1 = 0 ;
17221 int res1 = 0 ;
17222 int val2 ;
17223 int ecode2 = 0 ;
17224 int val3 ;
17225 int ecode3 = 0 ;
17226 wxColour temp4 ;
17227 int val5 ;
17228 int ecode5 = 0 ;
17229 PyObject * obj0 = 0 ;
17230 PyObject * obj1 = 0 ;
17231 PyObject * obj2 = 0 ;
17232 PyObject * obj3 = 0 ;
17233 PyObject * obj4 = 0 ;
17234 char * kwnames[] = {
17235 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17236 };
17237
17238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17240 if (!SWIG_IsOK(res1)) {
17241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17242 }
17243 arg1 = reinterpret_cast< wxDC * >(argp1);
17244 ecode2 = SWIG_AsVal_int(obj1, &val2);
17245 if (!SWIG_IsOK(ecode2)) {
17246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17247 }
17248 arg2 = static_cast< int >(val2);
17249 ecode3 = SWIG_AsVal_int(obj2, &val3);
17250 if (!SWIG_IsOK(ecode3)) {
17251 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17252 }
17253 arg3 = static_cast< int >(val3);
17254 {
17255 arg4 = &temp4;
17256 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17257 }
17258 if (obj4) {
17259 ecode5 = SWIG_AsVal_int(obj4, &val5);
17260 if (!SWIG_IsOK(ecode5)) {
17261 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17262 }
17263 arg5 = static_cast< int >(val5);
17264 }
17265 {
17266 PyThreadState* __tstate = wxPyBeginAllowThreads();
17267 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17268 wxPyEndAllowThreads(__tstate);
17269 if (PyErr_Occurred()) SWIG_fail;
17270 }
17271 {
17272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17273 }
17274 return resultobj;
17275fail:
17276 return NULL;
17277}
17278
17279
17280SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17281 PyObject *resultobj = 0;
17282 wxDC *arg1 = (wxDC *) 0 ;
17283 wxPoint *arg2 = 0 ;
17284 wxColour *arg3 = 0 ;
17285 int arg4 = (int) wxFLOOD_SURFACE ;
17286 bool result;
17287 void *argp1 = 0 ;
17288 int res1 = 0 ;
17289 wxPoint temp2 ;
17290 wxColour temp3 ;
17291 int val4 ;
17292 int ecode4 = 0 ;
17293 PyObject * obj0 = 0 ;
17294 PyObject * obj1 = 0 ;
17295 PyObject * obj2 = 0 ;
17296 PyObject * obj3 = 0 ;
17297 char * kwnames[] = {
17298 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17299 };
17300
17301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17303 if (!SWIG_IsOK(res1)) {
17304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17305 }
17306 arg1 = reinterpret_cast< wxDC * >(argp1);
17307 {
17308 arg2 = &temp2;
17309 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17310 }
17311 {
17312 arg3 = &temp3;
17313 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17314 }
17315 if (obj3) {
17316 ecode4 = SWIG_AsVal_int(obj3, &val4);
17317 if (!SWIG_IsOK(ecode4)) {
17318 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17319 }
17320 arg4 = static_cast< int >(val4);
17321 }
17322 {
17323 PyThreadState* __tstate = wxPyBeginAllowThreads();
17324 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17325 wxPyEndAllowThreads(__tstate);
17326 if (PyErr_Occurred()) SWIG_fail;
17327 }
17328 {
17329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17330 }
17331 return resultobj;
17332fail:
17333 return NULL;
17334}
17335
17336
17337SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17338 PyObject *resultobj = 0;
17339 wxDC *arg1 = (wxDC *) 0 ;
17340 wxRect *arg2 = 0 ;
17341 wxColour *arg3 = 0 ;
17342 wxColour *arg4 = 0 ;
17343 wxPoint *arg5 = 0 ;
17344 void *argp1 = 0 ;
17345 int res1 = 0 ;
17346 wxRect temp2 ;
17347 wxColour temp3 ;
17348 wxColour temp4 ;
17349 wxPoint temp5 ;
17350 PyObject * obj0 = 0 ;
17351 PyObject * obj1 = 0 ;
17352 PyObject * obj2 = 0 ;
17353 PyObject * obj3 = 0 ;
17354 PyObject * obj4 = 0 ;
17355 char * kwnames[] = {
17356 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17357 };
17358
17359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17361 if (!SWIG_IsOK(res1)) {
17362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17363 }
17364 arg1 = reinterpret_cast< wxDC * >(argp1);
17365 {
17366 arg2 = &temp2;
17367 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17368 }
17369 {
17370 arg3 = &temp3;
17371 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17372 }
17373 {
17374 arg4 = &temp4;
17375 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17376 }
17377 {
17378 arg5 = &temp5;
17379 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17380 }
17381 {
17382 PyThreadState* __tstate = wxPyBeginAllowThreads();
17383 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17384 wxPyEndAllowThreads(__tstate);
17385 if (PyErr_Occurred()) SWIG_fail;
17386 }
17387 resultobj = SWIG_Py_Void();
17388 return resultobj;
17389fail:
17390 return NULL;
17391}
17392
17393
17394SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17395 PyObject *resultobj = 0;
17396 wxDC *arg1 = (wxDC *) 0 ;
17397 wxRect *arg2 = 0 ;
17398 wxColour *arg3 = 0 ;
17399 wxColour *arg4 = 0 ;
17400 wxDirection arg5 = (wxDirection) wxEAST ;
17401 void *argp1 = 0 ;
17402 int res1 = 0 ;
17403 wxRect temp2 ;
17404 wxColour temp3 ;
17405 wxColour temp4 ;
17406 int val5 ;
17407 int ecode5 = 0 ;
17408 PyObject * obj0 = 0 ;
17409 PyObject * obj1 = 0 ;
17410 PyObject * obj2 = 0 ;
17411 PyObject * obj3 = 0 ;
17412 PyObject * obj4 = 0 ;
17413 char * kwnames[] = {
17414 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17415 };
17416
17417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17419 if (!SWIG_IsOK(res1)) {
17420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17421 }
17422 arg1 = reinterpret_cast< wxDC * >(argp1);
17423 {
17424 arg2 = &temp2;
17425 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17426 }
17427 {
17428 arg3 = &temp3;
17429 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17430 }
17431 {
17432 arg4 = &temp4;
17433 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17434 }
17435 if (obj4) {
17436 ecode5 = SWIG_AsVal_int(obj4, &val5);
17437 if (!SWIG_IsOK(ecode5)) {
17438 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17439 }
17440 arg5 = static_cast< wxDirection >(val5);
17441 }
17442 {
17443 PyThreadState* __tstate = wxPyBeginAllowThreads();
17444 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17445 wxPyEndAllowThreads(__tstate);
17446 if (PyErr_Occurred()) SWIG_fail;
17447 }
17448 resultobj = SWIG_Py_Void();
17449 return resultobj;
17450fail:
17451 return NULL;
17452}
17453
17454
17455SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17456 PyObject *resultobj = 0;
17457 wxDC *arg1 = (wxDC *) 0 ;
17458 int arg2 ;
17459 int arg3 ;
17460 wxColour result;
17461 void *argp1 = 0 ;
17462 int res1 = 0 ;
17463 int val2 ;
17464 int ecode2 = 0 ;
17465 int val3 ;
17466 int ecode3 = 0 ;
17467 PyObject * obj0 = 0 ;
17468 PyObject * obj1 = 0 ;
17469 PyObject * obj2 = 0 ;
17470 char * kwnames[] = {
17471 (char *) "self",(char *) "x",(char *) "y", NULL
17472 };
17473
17474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17476 if (!SWIG_IsOK(res1)) {
17477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17478 }
17479 arg1 = reinterpret_cast< wxDC * >(argp1);
17480 ecode2 = SWIG_AsVal_int(obj1, &val2);
17481 if (!SWIG_IsOK(ecode2)) {
17482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17483 }
17484 arg2 = static_cast< int >(val2);
17485 ecode3 = SWIG_AsVal_int(obj2, &val3);
17486 if (!SWIG_IsOK(ecode3)) {
17487 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17488 }
17489 arg3 = static_cast< int >(val3);
17490 {
17491 PyThreadState* __tstate = wxPyBeginAllowThreads();
17492 result = wxDC_GetPixel(arg1,arg2,arg3);
17493 wxPyEndAllowThreads(__tstate);
17494 if (PyErr_Occurred()) SWIG_fail;
17495 }
17496 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17497 return resultobj;
17498fail:
17499 return NULL;
17500}
17501
17502
17503SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17504 PyObject *resultobj = 0;
17505 wxDC *arg1 = (wxDC *) 0 ;
17506 wxPoint *arg2 = 0 ;
17507 wxColour result;
17508 void *argp1 = 0 ;
17509 int res1 = 0 ;
17510 wxPoint temp2 ;
17511 PyObject * obj0 = 0 ;
17512 PyObject * obj1 = 0 ;
17513 char * kwnames[] = {
17514 (char *) "self",(char *) "pt", NULL
17515 };
17516
17517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17519 if (!SWIG_IsOK(res1)) {
17520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17521 }
17522 arg1 = reinterpret_cast< wxDC * >(argp1);
17523 {
17524 arg2 = &temp2;
17525 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17526 }
17527 {
17528 PyThreadState* __tstate = wxPyBeginAllowThreads();
17529 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17530 wxPyEndAllowThreads(__tstate);
17531 if (PyErr_Occurred()) SWIG_fail;
17532 }
17533 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17534 return resultobj;
17535fail:
17536 return NULL;
17537}
17538
17539
17540SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17541 PyObject *resultobj = 0;
17542 wxDC *arg1 = (wxDC *) 0 ;
17543 int arg2 ;
17544 int arg3 ;
17545 int arg4 ;
17546 int arg5 ;
17547 void *argp1 = 0 ;
17548 int res1 = 0 ;
17549 int val2 ;
17550 int ecode2 = 0 ;
17551 int val3 ;
17552 int ecode3 = 0 ;
17553 int val4 ;
17554 int ecode4 = 0 ;
17555 int val5 ;
17556 int ecode5 = 0 ;
17557 PyObject * obj0 = 0 ;
17558 PyObject * obj1 = 0 ;
17559 PyObject * obj2 = 0 ;
17560 PyObject * obj3 = 0 ;
17561 PyObject * obj4 = 0 ;
17562 char * kwnames[] = {
17563 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17564 };
17565
17566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17568 if (!SWIG_IsOK(res1)) {
17569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17570 }
17571 arg1 = reinterpret_cast< wxDC * >(argp1);
17572 ecode2 = SWIG_AsVal_int(obj1, &val2);
17573 if (!SWIG_IsOK(ecode2)) {
17574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17575 }
17576 arg2 = static_cast< int >(val2);
17577 ecode3 = SWIG_AsVal_int(obj2, &val3);
17578 if (!SWIG_IsOK(ecode3)) {
17579 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17580 }
17581 arg3 = static_cast< int >(val3);
17582 ecode4 = SWIG_AsVal_int(obj3, &val4);
17583 if (!SWIG_IsOK(ecode4)) {
17584 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17585 }
17586 arg4 = static_cast< int >(val4);
17587 ecode5 = SWIG_AsVal_int(obj4, &val5);
17588 if (!SWIG_IsOK(ecode5)) {
17589 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17590 }
17591 arg5 = static_cast< int >(val5);
17592 {
17593 PyThreadState* __tstate = wxPyBeginAllowThreads();
17594 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17595 wxPyEndAllowThreads(__tstate);
17596 if (PyErr_Occurred()) SWIG_fail;
17597 }
17598 resultobj = SWIG_Py_Void();
17599 return resultobj;
17600fail:
17601 return NULL;
17602}
17603
17604
17605SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17606 PyObject *resultobj = 0;
17607 wxDC *arg1 = (wxDC *) 0 ;
17608 wxPoint *arg2 = 0 ;
17609 wxPoint *arg3 = 0 ;
17610 void *argp1 = 0 ;
17611 int res1 = 0 ;
17612 wxPoint temp2 ;
17613 wxPoint temp3 ;
17614 PyObject * obj0 = 0 ;
17615 PyObject * obj1 = 0 ;
17616 PyObject * obj2 = 0 ;
17617 char * kwnames[] = {
17618 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17619 };
17620
17621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17623 if (!SWIG_IsOK(res1)) {
17624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17625 }
17626 arg1 = reinterpret_cast< wxDC * >(argp1);
17627 {
17628 arg2 = &temp2;
17629 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17630 }
17631 {
17632 arg3 = &temp3;
17633 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17634 }
17635 {
17636 PyThreadState* __tstate = wxPyBeginAllowThreads();
17637 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17638 wxPyEndAllowThreads(__tstate);
17639 if (PyErr_Occurred()) SWIG_fail;
17640 }
17641 resultobj = SWIG_Py_Void();
17642 return resultobj;
17643fail:
17644 return NULL;
17645}
17646
17647
17648SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17649 PyObject *resultobj = 0;
17650 wxDC *arg1 = (wxDC *) 0 ;
17651 int arg2 ;
17652 int arg3 ;
17653 void *argp1 = 0 ;
17654 int res1 = 0 ;
17655 int val2 ;
17656 int ecode2 = 0 ;
17657 int val3 ;
17658 int ecode3 = 0 ;
17659 PyObject * obj0 = 0 ;
17660 PyObject * obj1 = 0 ;
17661 PyObject * obj2 = 0 ;
17662 char * kwnames[] = {
17663 (char *) "self",(char *) "x",(char *) "y", NULL
17664 };
17665
17666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17668 if (!SWIG_IsOK(res1)) {
17669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17670 }
17671 arg1 = reinterpret_cast< wxDC * >(argp1);
17672 ecode2 = SWIG_AsVal_int(obj1, &val2);
17673 if (!SWIG_IsOK(ecode2)) {
17674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17675 }
17676 arg2 = static_cast< int >(val2);
17677 ecode3 = SWIG_AsVal_int(obj2, &val3);
17678 if (!SWIG_IsOK(ecode3)) {
17679 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
17680 }
17681 arg3 = static_cast< int >(val3);
17682 {
17683 PyThreadState* __tstate = wxPyBeginAllowThreads();
17684 (arg1)->CrossHair(arg2,arg3);
17685 wxPyEndAllowThreads(__tstate);
17686 if (PyErr_Occurred()) SWIG_fail;
17687 }
17688 resultobj = SWIG_Py_Void();
17689 return resultobj;
17690fail:
17691 return NULL;
17692}
17693
17694
17695SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17696 PyObject *resultobj = 0;
17697 wxDC *arg1 = (wxDC *) 0 ;
17698 wxPoint *arg2 = 0 ;
17699 void *argp1 = 0 ;
17700 int res1 = 0 ;
17701 wxPoint temp2 ;
17702 PyObject * obj0 = 0 ;
17703 PyObject * obj1 = 0 ;
17704 char * kwnames[] = {
17705 (char *) "self",(char *) "pt", NULL
17706 };
17707
17708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17710 if (!SWIG_IsOK(res1)) {
17711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17712 }
17713 arg1 = reinterpret_cast< wxDC * >(argp1);
17714 {
17715 arg2 = &temp2;
17716 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17717 }
17718 {
17719 PyThreadState* __tstate = wxPyBeginAllowThreads();
17720 (arg1)->CrossHair((wxPoint const &)*arg2);
17721 wxPyEndAllowThreads(__tstate);
17722 if (PyErr_Occurred()) SWIG_fail;
17723 }
17724 resultobj = SWIG_Py_Void();
17725 return resultobj;
17726fail:
17727 return NULL;
17728}
17729
17730
17731SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17732 PyObject *resultobj = 0;
17733 wxDC *arg1 = (wxDC *) 0 ;
17734 int arg2 ;
17735 int arg3 ;
17736 int arg4 ;
17737 int arg5 ;
17738 int arg6 ;
17739 int arg7 ;
17740 void *argp1 = 0 ;
17741 int res1 = 0 ;
17742 int val2 ;
17743 int ecode2 = 0 ;
17744 int val3 ;
17745 int ecode3 = 0 ;
17746 int val4 ;
17747 int ecode4 = 0 ;
17748 int val5 ;
17749 int ecode5 = 0 ;
17750 int val6 ;
17751 int ecode6 = 0 ;
17752 int val7 ;
17753 int ecode7 = 0 ;
17754 PyObject * obj0 = 0 ;
17755 PyObject * obj1 = 0 ;
17756 PyObject * obj2 = 0 ;
17757 PyObject * obj3 = 0 ;
17758 PyObject * obj4 = 0 ;
17759 PyObject * obj5 = 0 ;
17760 PyObject * obj6 = 0 ;
17761 char * kwnames[] = {
17762 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
17763 };
17764
17765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17767 if (!SWIG_IsOK(res1)) {
17768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
17769 }
17770 arg1 = reinterpret_cast< wxDC * >(argp1);
17771 ecode2 = SWIG_AsVal_int(obj1, &val2);
17772 if (!SWIG_IsOK(ecode2)) {
17773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
17774 }
17775 arg2 = static_cast< int >(val2);
17776 ecode3 = SWIG_AsVal_int(obj2, &val3);
17777 if (!SWIG_IsOK(ecode3)) {
17778 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
17779 }
17780 arg3 = static_cast< int >(val3);
17781 ecode4 = SWIG_AsVal_int(obj3, &val4);
17782 if (!SWIG_IsOK(ecode4)) {
17783 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
17784 }
17785 arg4 = static_cast< int >(val4);
17786 ecode5 = SWIG_AsVal_int(obj4, &val5);
17787 if (!SWIG_IsOK(ecode5)) {
17788 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
17789 }
17790 arg5 = static_cast< int >(val5);
17791 ecode6 = SWIG_AsVal_int(obj5, &val6);
17792 if (!SWIG_IsOK(ecode6)) {
17793 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
17794 }
17795 arg6 = static_cast< int >(val6);
17796 ecode7 = SWIG_AsVal_int(obj6, &val7);
17797 if (!SWIG_IsOK(ecode7)) {
17798 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
17799 }
17800 arg7 = static_cast< int >(val7);
17801 {
17802 PyThreadState* __tstate = wxPyBeginAllowThreads();
17803 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
17804 wxPyEndAllowThreads(__tstate);
17805 if (PyErr_Occurred()) SWIG_fail;
17806 }
17807 resultobj = SWIG_Py_Void();
17808 return resultobj;
17809fail:
17810 return NULL;
17811}
17812
17813
17814SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17815 PyObject *resultobj = 0;
17816 wxDC *arg1 = (wxDC *) 0 ;
17817 wxPoint *arg2 = 0 ;
17818 wxPoint *arg3 = 0 ;
17819 wxPoint *arg4 = 0 ;
17820 void *argp1 = 0 ;
17821 int res1 = 0 ;
17822 wxPoint temp2 ;
17823 wxPoint temp3 ;
17824 wxPoint temp4 ;
17825 PyObject * obj0 = 0 ;
17826 PyObject * obj1 = 0 ;
17827 PyObject * obj2 = 0 ;
17828 PyObject * obj3 = 0 ;
17829 char * kwnames[] = {
17830 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
17831 };
17832
17833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17835 if (!SWIG_IsOK(res1)) {
17836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17837 }
17838 arg1 = reinterpret_cast< wxDC * >(argp1);
17839 {
17840 arg2 = &temp2;
17841 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17842 }
17843 {
17844 arg3 = &temp3;
17845 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17846 }
17847 {
17848 arg4 = &temp4;
17849 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17850 }
17851 {
17852 PyThreadState* __tstate = wxPyBeginAllowThreads();
17853 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
17854 wxPyEndAllowThreads(__tstate);
17855 if (PyErr_Occurred()) SWIG_fail;
17856 }
17857 resultobj = SWIG_Py_Void();
17858 return resultobj;
17859fail:
17860 return NULL;
17861}
17862
17863
17864SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17865 PyObject *resultobj = 0;
17866 wxDC *arg1 = (wxDC *) 0 ;
17867 int arg2 ;
17868 int arg3 ;
17869 int arg4 ;
17870 int arg5 ;
17871 void *argp1 = 0 ;
17872 int res1 = 0 ;
17873 int val2 ;
17874 int ecode2 = 0 ;
17875 int val3 ;
17876 int ecode3 = 0 ;
17877 int val4 ;
17878 int ecode4 = 0 ;
17879 int val5 ;
17880 int ecode5 = 0 ;
17881 PyObject * obj0 = 0 ;
17882 PyObject * obj1 = 0 ;
17883 PyObject * obj2 = 0 ;
17884 PyObject * obj3 = 0 ;
17885 PyObject * obj4 = 0 ;
17886 char * kwnames[] = {
17887 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17888 };
17889
17890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17892 if (!SWIG_IsOK(res1)) {
17893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
17894 }
17895 arg1 = reinterpret_cast< wxDC * >(argp1);
17896 ecode2 = SWIG_AsVal_int(obj1, &val2);
17897 if (!SWIG_IsOK(ecode2)) {
17898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
17899 }
17900 arg2 = static_cast< int >(val2);
17901 ecode3 = SWIG_AsVal_int(obj2, &val3);
17902 if (!SWIG_IsOK(ecode3)) {
17903 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
17904 }
17905 arg3 = static_cast< int >(val3);
17906 ecode4 = SWIG_AsVal_int(obj3, &val4);
17907 if (!SWIG_IsOK(ecode4)) {
17908 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
17909 }
17910 arg4 = static_cast< int >(val4);
17911 ecode5 = SWIG_AsVal_int(obj4, &val5);
17912 if (!SWIG_IsOK(ecode5)) {
17913 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
17914 }
17915 arg5 = static_cast< int >(val5);
17916 {
17917 PyThreadState* __tstate = wxPyBeginAllowThreads();
17918 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
17919 wxPyEndAllowThreads(__tstate);
17920 if (PyErr_Occurred()) SWIG_fail;
17921 }
17922 resultobj = SWIG_Py_Void();
17923 return resultobj;
17924fail:
17925 return NULL;
17926}
17927
17928
17929SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17930 PyObject *resultobj = 0;
17931 wxDC *arg1 = (wxDC *) 0 ;
17932 wxRect *arg2 = 0 ;
17933 void *argp1 = 0 ;
17934 int res1 = 0 ;
17935 wxRect temp2 ;
17936 PyObject * obj0 = 0 ;
17937 PyObject * obj1 = 0 ;
17938 char * kwnames[] = {
17939 (char *) "self",(char *) "rect", NULL
17940 };
17941
17942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
17943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17944 if (!SWIG_IsOK(res1)) {
17945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
17946 }
17947 arg1 = reinterpret_cast< wxDC * >(argp1);
17948 {
17949 arg2 = &temp2;
17950 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17951 }
17952 {
17953 PyThreadState* __tstate = wxPyBeginAllowThreads();
17954 (arg1)->DrawCheckMark((wxRect const &)*arg2);
17955 wxPyEndAllowThreads(__tstate);
17956 if (PyErr_Occurred()) SWIG_fail;
17957 }
17958 resultobj = SWIG_Py_Void();
17959 return resultobj;
17960fail:
17961 return NULL;
17962}
17963
17964
17965SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17966 PyObject *resultobj = 0;
17967 wxDC *arg1 = (wxDC *) 0 ;
17968 int arg2 ;
17969 int arg3 ;
17970 int arg4 ;
17971 int arg5 ;
17972 double arg6 ;
17973 double arg7 ;
17974 void *argp1 = 0 ;
17975 int res1 = 0 ;
17976 int val2 ;
17977 int ecode2 = 0 ;
17978 int val3 ;
17979 int ecode3 = 0 ;
17980 int val4 ;
17981 int ecode4 = 0 ;
17982 int val5 ;
17983 int ecode5 = 0 ;
17984 double val6 ;
17985 int ecode6 = 0 ;
17986 double val7 ;
17987 int ecode7 = 0 ;
17988 PyObject * obj0 = 0 ;
17989 PyObject * obj1 = 0 ;
17990 PyObject * obj2 = 0 ;
17991 PyObject * obj3 = 0 ;
17992 PyObject * obj4 = 0 ;
17993 PyObject * obj5 = 0 ;
17994 PyObject * obj6 = 0 ;
17995 char * kwnames[] = {
17996 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
17997 };
17998
17999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18001 if (!SWIG_IsOK(res1)) {
18002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18003 }
18004 arg1 = reinterpret_cast< wxDC * >(argp1);
18005 ecode2 = SWIG_AsVal_int(obj1, &val2);
18006 if (!SWIG_IsOK(ecode2)) {
18007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18008 }
18009 arg2 = static_cast< int >(val2);
18010 ecode3 = SWIG_AsVal_int(obj2, &val3);
18011 if (!SWIG_IsOK(ecode3)) {
18012 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18013 }
18014 arg3 = static_cast< int >(val3);
18015 ecode4 = SWIG_AsVal_int(obj3, &val4);
18016 if (!SWIG_IsOK(ecode4)) {
18017 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18018 }
18019 arg4 = static_cast< int >(val4);
18020 ecode5 = SWIG_AsVal_int(obj4, &val5);
18021 if (!SWIG_IsOK(ecode5)) {
18022 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18023 }
18024 arg5 = static_cast< int >(val5);
18025 ecode6 = SWIG_AsVal_double(obj5, &val6);
18026 if (!SWIG_IsOK(ecode6)) {
18027 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18028 }
18029 arg6 = static_cast< double >(val6);
18030 ecode7 = SWIG_AsVal_double(obj6, &val7);
18031 if (!SWIG_IsOK(ecode7)) {
18032 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18033 }
18034 arg7 = static_cast< double >(val7);
18035 {
18036 PyThreadState* __tstate = wxPyBeginAllowThreads();
18037 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18038 wxPyEndAllowThreads(__tstate);
18039 if (PyErr_Occurred()) SWIG_fail;
18040 }
18041 resultobj = SWIG_Py_Void();
18042 return resultobj;
18043fail:
18044 return NULL;
18045}
18046
18047
18048SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18049 PyObject *resultobj = 0;
18050 wxDC *arg1 = (wxDC *) 0 ;
18051 wxPoint *arg2 = 0 ;
18052 wxSize *arg3 = 0 ;
18053 double arg4 ;
18054 double arg5 ;
18055 void *argp1 = 0 ;
18056 int res1 = 0 ;
18057 wxPoint temp2 ;
18058 wxSize temp3 ;
18059 double val4 ;
18060 int ecode4 = 0 ;
18061 double val5 ;
18062 int ecode5 = 0 ;
18063 PyObject * obj0 = 0 ;
18064 PyObject * obj1 = 0 ;
18065 PyObject * obj2 = 0 ;
18066 PyObject * obj3 = 0 ;
18067 PyObject * obj4 = 0 ;
18068 char * kwnames[] = {
18069 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18070 };
18071
18072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18074 if (!SWIG_IsOK(res1)) {
18075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18076 }
18077 arg1 = reinterpret_cast< wxDC * >(argp1);
18078 {
18079 arg2 = &temp2;
18080 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18081 }
18082 {
18083 arg3 = &temp3;
18084 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18085 }
18086 ecode4 = SWIG_AsVal_double(obj3, &val4);
18087 if (!SWIG_IsOK(ecode4)) {
18088 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18089 }
18090 arg4 = static_cast< double >(val4);
18091 ecode5 = SWIG_AsVal_double(obj4, &val5);
18092 if (!SWIG_IsOK(ecode5)) {
18093 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18094 }
18095 arg5 = static_cast< double >(val5);
18096 {
18097 PyThreadState* __tstate = wxPyBeginAllowThreads();
18098 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18099 wxPyEndAllowThreads(__tstate);
18100 if (PyErr_Occurred()) SWIG_fail;
18101 }
18102 resultobj = SWIG_Py_Void();
18103 return resultobj;
18104fail:
18105 return NULL;
18106}
18107
18108
18109SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18110 PyObject *resultobj = 0;
18111 wxDC *arg1 = (wxDC *) 0 ;
18112 int arg2 ;
18113 int arg3 ;
18114 void *argp1 = 0 ;
18115 int res1 = 0 ;
18116 int val2 ;
18117 int ecode2 = 0 ;
18118 int val3 ;
18119 int ecode3 = 0 ;
18120 PyObject * obj0 = 0 ;
18121 PyObject * obj1 = 0 ;
18122 PyObject * obj2 = 0 ;
18123 char * kwnames[] = {
18124 (char *) "self",(char *) "x",(char *) "y", NULL
18125 };
18126
18127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18129 if (!SWIG_IsOK(res1)) {
18130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18131 }
18132 arg1 = reinterpret_cast< wxDC * >(argp1);
18133 ecode2 = SWIG_AsVal_int(obj1, &val2);
18134 if (!SWIG_IsOK(ecode2)) {
18135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18136 }
18137 arg2 = static_cast< int >(val2);
18138 ecode3 = SWIG_AsVal_int(obj2, &val3);
18139 if (!SWIG_IsOK(ecode3)) {
18140 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18141 }
18142 arg3 = static_cast< int >(val3);
18143 {
18144 PyThreadState* __tstate = wxPyBeginAllowThreads();
18145 (arg1)->DrawPoint(arg2,arg3);
18146 wxPyEndAllowThreads(__tstate);
18147 if (PyErr_Occurred()) SWIG_fail;
18148 }
18149 resultobj = SWIG_Py_Void();
18150 return resultobj;
18151fail:
18152 return NULL;
18153}
18154
18155
18156SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18157 PyObject *resultobj = 0;
18158 wxDC *arg1 = (wxDC *) 0 ;
18159 wxPoint *arg2 = 0 ;
18160 void *argp1 = 0 ;
18161 int res1 = 0 ;
18162 wxPoint temp2 ;
18163 PyObject * obj0 = 0 ;
18164 PyObject * obj1 = 0 ;
18165 char * kwnames[] = {
18166 (char *) "self",(char *) "pt", NULL
18167 };
18168
18169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18171 if (!SWIG_IsOK(res1)) {
18172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18173 }
18174 arg1 = reinterpret_cast< wxDC * >(argp1);
18175 {
18176 arg2 = &temp2;
18177 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18178 }
18179 {
18180 PyThreadState* __tstate = wxPyBeginAllowThreads();
18181 (arg1)->DrawPoint((wxPoint const &)*arg2);
18182 wxPyEndAllowThreads(__tstate);
18183 if (PyErr_Occurred()) SWIG_fail;
18184 }
18185 resultobj = SWIG_Py_Void();
18186 return resultobj;
18187fail:
18188 return NULL;
18189}
18190
18191
18192SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18193 PyObject *resultobj = 0;
18194 wxDC *arg1 = (wxDC *) 0 ;
18195 int arg2 ;
18196 int arg3 ;
18197 int arg4 ;
18198 int arg5 ;
18199 void *argp1 = 0 ;
18200 int res1 = 0 ;
18201 int val2 ;
18202 int ecode2 = 0 ;
18203 int val3 ;
18204 int ecode3 = 0 ;
18205 int val4 ;
18206 int ecode4 = 0 ;
18207 int val5 ;
18208 int ecode5 = 0 ;
18209 PyObject * obj0 = 0 ;
18210 PyObject * obj1 = 0 ;
18211 PyObject * obj2 = 0 ;
18212 PyObject * obj3 = 0 ;
18213 PyObject * obj4 = 0 ;
18214 char * kwnames[] = {
18215 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18216 };
18217
18218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18220 if (!SWIG_IsOK(res1)) {
18221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18222 }
18223 arg1 = reinterpret_cast< wxDC * >(argp1);
18224 ecode2 = SWIG_AsVal_int(obj1, &val2);
18225 if (!SWIG_IsOK(ecode2)) {
18226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18227 }
18228 arg2 = static_cast< int >(val2);
18229 ecode3 = SWIG_AsVal_int(obj2, &val3);
18230 if (!SWIG_IsOK(ecode3)) {
18231 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18232 }
18233 arg3 = static_cast< int >(val3);
18234 ecode4 = SWIG_AsVal_int(obj3, &val4);
18235 if (!SWIG_IsOK(ecode4)) {
18236 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18237 }
18238 arg4 = static_cast< int >(val4);
18239 ecode5 = SWIG_AsVal_int(obj4, &val5);
18240 if (!SWIG_IsOK(ecode5)) {
18241 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18242 }
18243 arg5 = static_cast< int >(val5);
18244 {
18245 PyThreadState* __tstate = wxPyBeginAllowThreads();
18246 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18247 wxPyEndAllowThreads(__tstate);
18248 if (PyErr_Occurred()) SWIG_fail;
18249 }
18250 resultobj = SWIG_Py_Void();
18251 return resultobj;
18252fail:
18253 return NULL;
18254}
18255
18256
18257SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18258 PyObject *resultobj = 0;
18259 wxDC *arg1 = (wxDC *) 0 ;
18260 wxRect *arg2 = 0 ;
18261 void *argp1 = 0 ;
18262 int res1 = 0 ;
18263 wxRect temp2 ;
18264 PyObject * obj0 = 0 ;
18265 PyObject * obj1 = 0 ;
18266 char * kwnames[] = {
18267 (char *) "self",(char *) "rect", NULL
18268 };
18269
18270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18272 if (!SWIG_IsOK(res1)) {
18273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18274 }
18275 arg1 = reinterpret_cast< wxDC * >(argp1);
18276 {
18277 arg2 = &temp2;
18278 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18279 }
18280 {
18281 PyThreadState* __tstate = wxPyBeginAllowThreads();
18282 (arg1)->DrawRectangle((wxRect const &)*arg2);
18283 wxPyEndAllowThreads(__tstate);
18284 if (PyErr_Occurred()) SWIG_fail;
18285 }
18286 resultobj = SWIG_Py_Void();
18287 return resultobj;
18288fail:
18289 return NULL;
18290}
18291
18292
18293SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18294 PyObject *resultobj = 0;
18295 wxDC *arg1 = (wxDC *) 0 ;
18296 wxPoint *arg2 = 0 ;
18297 wxSize *arg3 = 0 ;
18298 void *argp1 = 0 ;
18299 int res1 = 0 ;
18300 wxPoint temp2 ;
18301 wxSize temp3 ;
18302 PyObject * obj0 = 0 ;
18303 PyObject * obj1 = 0 ;
18304 PyObject * obj2 = 0 ;
18305 char * kwnames[] = {
18306 (char *) "self",(char *) "pt",(char *) "sz", NULL
18307 };
18308
18309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18311 if (!SWIG_IsOK(res1)) {
18312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18313 }
18314 arg1 = reinterpret_cast< wxDC * >(argp1);
18315 {
18316 arg2 = &temp2;
18317 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18318 }
18319 {
18320 arg3 = &temp3;
18321 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18322 }
18323 {
18324 PyThreadState* __tstate = wxPyBeginAllowThreads();
18325 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18326 wxPyEndAllowThreads(__tstate);
18327 if (PyErr_Occurred()) SWIG_fail;
18328 }
18329 resultobj = SWIG_Py_Void();
18330 return resultobj;
18331fail:
18332 return NULL;
18333}
18334
18335
18336SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18337 PyObject *resultobj = 0;
18338 wxDC *arg1 = (wxDC *) 0 ;
18339 int arg2 ;
18340 int arg3 ;
18341 int arg4 ;
18342 int arg5 ;
18343 double arg6 ;
18344 void *argp1 = 0 ;
18345 int res1 = 0 ;
18346 int val2 ;
18347 int ecode2 = 0 ;
18348 int val3 ;
18349 int ecode3 = 0 ;
18350 int val4 ;
18351 int ecode4 = 0 ;
18352 int val5 ;
18353 int ecode5 = 0 ;
18354 double val6 ;
18355 int ecode6 = 0 ;
18356 PyObject * obj0 = 0 ;
18357 PyObject * obj1 = 0 ;
18358 PyObject * obj2 = 0 ;
18359 PyObject * obj3 = 0 ;
18360 PyObject * obj4 = 0 ;
18361 PyObject * obj5 = 0 ;
18362 char * kwnames[] = {
18363 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18364 };
18365
18366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18368 if (!SWIG_IsOK(res1)) {
18369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18370 }
18371 arg1 = reinterpret_cast< wxDC * >(argp1);
18372 ecode2 = SWIG_AsVal_int(obj1, &val2);
18373 if (!SWIG_IsOK(ecode2)) {
18374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18375 }
18376 arg2 = static_cast< int >(val2);
18377 ecode3 = SWIG_AsVal_int(obj2, &val3);
18378 if (!SWIG_IsOK(ecode3)) {
18379 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18380 }
18381 arg3 = static_cast< int >(val3);
18382 ecode4 = SWIG_AsVal_int(obj3, &val4);
18383 if (!SWIG_IsOK(ecode4)) {
18384 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18385 }
18386 arg4 = static_cast< int >(val4);
18387 ecode5 = SWIG_AsVal_int(obj4, &val5);
18388 if (!SWIG_IsOK(ecode5)) {
18389 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18390 }
18391 arg5 = static_cast< int >(val5);
18392 ecode6 = SWIG_AsVal_double(obj5, &val6);
18393 if (!SWIG_IsOK(ecode6)) {
18394 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18395 }
18396 arg6 = static_cast< double >(val6);
18397 {
18398 PyThreadState* __tstate = wxPyBeginAllowThreads();
18399 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18400 wxPyEndAllowThreads(__tstate);
18401 if (PyErr_Occurred()) SWIG_fail;
18402 }
18403 resultobj = SWIG_Py_Void();
18404 return resultobj;
18405fail:
18406 return NULL;
18407}
18408
18409
18410SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18411 PyObject *resultobj = 0;
18412 wxDC *arg1 = (wxDC *) 0 ;
18413 wxRect *arg2 = 0 ;
18414 double arg3 ;
18415 void *argp1 = 0 ;
18416 int res1 = 0 ;
18417 wxRect temp2 ;
18418 double val3 ;
18419 int ecode3 = 0 ;
18420 PyObject * obj0 = 0 ;
18421 PyObject * obj1 = 0 ;
18422 PyObject * obj2 = 0 ;
18423 char * kwnames[] = {
18424 (char *) "self",(char *) "r",(char *) "radius", NULL
18425 };
18426
18427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18429 if (!SWIG_IsOK(res1)) {
18430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18431 }
18432 arg1 = reinterpret_cast< wxDC * >(argp1);
18433 {
18434 arg2 = &temp2;
18435 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18436 }
18437 ecode3 = SWIG_AsVal_double(obj2, &val3);
18438 if (!SWIG_IsOK(ecode3)) {
18439 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18440 }
18441 arg3 = static_cast< double >(val3);
18442 {
18443 PyThreadState* __tstate = wxPyBeginAllowThreads();
18444 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18445 wxPyEndAllowThreads(__tstate);
18446 if (PyErr_Occurred()) SWIG_fail;
18447 }
18448 resultobj = SWIG_Py_Void();
18449 return resultobj;
18450fail:
18451 return NULL;
18452}
18453
18454
18455SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18456 PyObject *resultobj = 0;
18457 wxDC *arg1 = (wxDC *) 0 ;
18458 wxPoint *arg2 = 0 ;
18459 wxSize *arg3 = 0 ;
18460 double arg4 ;
18461 void *argp1 = 0 ;
18462 int res1 = 0 ;
18463 wxPoint temp2 ;
18464 wxSize temp3 ;
18465 double val4 ;
18466 int ecode4 = 0 ;
18467 PyObject * obj0 = 0 ;
18468 PyObject * obj1 = 0 ;
18469 PyObject * obj2 = 0 ;
18470 PyObject * obj3 = 0 ;
18471 char * kwnames[] = {
18472 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18473 };
18474
18475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18477 if (!SWIG_IsOK(res1)) {
18478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18479 }
18480 arg1 = reinterpret_cast< wxDC * >(argp1);
18481 {
18482 arg2 = &temp2;
18483 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18484 }
18485 {
18486 arg3 = &temp3;
18487 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18488 }
18489 ecode4 = SWIG_AsVal_double(obj3, &val4);
18490 if (!SWIG_IsOK(ecode4)) {
18491 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18492 }
18493 arg4 = static_cast< double >(val4);
18494 {
18495 PyThreadState* __tstate = wxPyBeginAllowThreads();
18496 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18497 wxPyEndAllowThreads(__tstate);
18498 if (PyErr_Occurred()) SWIG_fail;
18499 }
18500 resultobj = SWIG_Py_Void();
18501 return resultobj;
18502fail:
18503 return NULL;
18504}
18505
18506
18507SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18508 PyObject *resultobj = 0;
18509 wxDC *arg1 = (wxDC *) 0 ;
18510 int arg2 ;
18511 int arg3 ;
18512 int arg4 ;
18513 void *argp1 = 0 ;
18514 int res1 = 0 ;
18515 int val2 ;
18516 int ecode2 = 0 ;
18517 int val3 ;
18518 int ecode3 = 0 ;
18519 int val4 ;
18520 int ecode4 = 0 ;
18521 PyObject * obj0 = 0 ;
18522 PyObject * obj1 = 0 ;
18523 PyObject * obj2 = 0 ;
18524 PyObject * obj3 = 0 ;
18525 char * kwnames[] = {
18526 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18527 };
18528
18529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18531 if (!SWIG_IsOK(res1)) {
18532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18533 }
18534 arg1 = reinterpret_cast< wxDC * >(argp1);
18535 ecode2 = SWIG_AsVal_int(obj1, &val2);
18536 if (!SWIG_IsOK(ecode2)) {
18537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18538 }
18539 arg2 = static_cast< int >(val2);
18540 ecode3 = SWIG_AsVal_int(obj2, &val3);
18541 if (!SWIG_IsOK(ecode3)) {
18542 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18543 }
18544 arg3 = static_cast< int >(val3);
18545 ecode4 = SWIG_AsVal_int(obj3, &val4);
18546 if (!SWIG_IsOK(ecode4)) {
18547 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18548 }
18549 arg4 = static_cast< int >(val4);
18550 {
18551 PyThreadState* __tstate = wxPyBeginAllowThreads();
18552 (arg1)->DrawCircle(arg2,arg3,arg4);
18553 wxPyEndAllowThreads(__tstate);
18554 if (PyErr_Occurred()) SWIG_fail;
18555 }
18556 resultobj = SWIG_Py_Void();
18557 return resultobj;
18558fail:
18559 return NULL;
18560}
18561
18562
18563SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18564 PyObject *resultobj = 0;
18565 wxDC *arg1 = (wxDC *) 0 ;
18566 wxPoint *arg2 = 0 ;
18567 int arg3 ;
18568 void *argp1 = 0 ;
18569 int res1 = 0 ;
18570 wxPoint temp2 ;
18571 int val3 ;
18572 int ecode3 = 0 ;
18573 PyObject * obj0 = 0 ;
18574 PyObject * obj1 = 0 ;
18575 PyObject * obj2 = 0 ;
18576 char * kwnames[] = {
18577 (char *) "self",(char *) "pt",(char *) "radius", NULL
18578 };
18579
18580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18582 if (!SWIG_IsOK(res1)) {
18583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18584 }
18585 arg1 = reinterpret_cast< wxDC * >(argp1);
18586 {
18587 arg2 = &temp2;
18588 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18589 }
18590 ecode3 = SWIG_AsVal_int(obj2, &val3);
18591 if (!SWIG_IsOK(ecode3)) {
18592 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18593 }
18594 arg3 = static_cast< int >(val3);
18595 {
18596 PyThreadState* __tstate = wxPyBeginAllowThreads();
18597 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18598 wxPyEndAllowThreads(__tstate);
18599 if (PyErr_Occurred()) SWIG_fail;
18600 }
18601 resultobj = SWIG_Py_Void();
18602 return resultobj;
18603fail:
18604 return NULL;
18605}
18606
18607
18608SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18609 PyObject *resultobj = 0;
18610 wxDC *arg1 = (wxDC *) 0 ;
18611 int arg2 ;
18612 int arg3 ;
18613 int arg4 ;
18614 int arg5 ;
18615 void *argp1 = 0 ;
18616 int res1 = 0 ;
18617 int val2 ;
18618 int ecode2 = 0 ;
18619 int val3 ;
18620 int ecode3 = 0 ;
18621 int val4 ;
18622 int ecode4 = 0 ;
18623 int val5 ;
18624 int ecode5 = 0 ;
18625 PyObject * obj0 = 0 ;
18626 PyObject * obj1 = 0 ;
18627 PyObject * obj2 = 0 ;
18628 PyObject * obj3 = 0 ;
18629 PyObject * obj4 = 0 ;
18630 char * kwnames[] = {
18631 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18632 };
18633
18634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18636 if (!SWIG_IsOK(res1)) {
18637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18638 }
18639 arg1 = reinterpret_cast< wxDC * >(argp1);
18640 ecode2 = SWIG_AsVal_int(obj1, &val2);
18641 if (!SWIG_IsOK(ecode2)) {
18642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18643 }
18644 arg2 = static_cast< int >(val2);
18645 ecode3 = SWIG_AsVal_int(obj2, &val3);
18646 if (!SWIG_IsOK(ecode3)) {
18647 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18648 }
18649 arg3 = static_cast< int >(val3);
18650 ecode4 = SWIG_AsVal_int(obj3, &val4);
18651 if (!SWIG_IsOK(ecode4)) {
18652 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18653 }
18654 arg4 = static_cast< int >(val4);
18655 ecode5 = SWIG_AsVal_int(obj4, &val5);
18656 if (!SWIG_IsOK(ecode5)) {
18657 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18658 }
18659 arg5 = static_cast< int >(val5);
18660 {
18661 PyThreadState* __tstate = wxPyBeginAllowThreads();
18662 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18663 wxPyEndAllowThreads(__tstate);
18664 if (PyErr_Occurred()) SWIG_fail;
18665 }
18666 resultobj = SWIG_Py_Void();
18667 return resultobj;
18668fail:
18669 return NULL;
18670}
18671
18672
18673SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18674 PyObject *resultobj = 0;
18675 wxDC *arg1 = (wxDC *) 0 ;
18676 wxRect *arg2 = 0 ;
18677 void *argp1 = 0 ;
18678 int res1 = 0 ;
18679 wxRect temp2 ;
18680 PyObject * obj0 = 0 ;
18681 PyObject * obj1 = 0 ;
18682 char * kwnames[] = {
18683 (char *) "self",(char *) "rect", NULL
18684 };
18685
18686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
18687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18688 if (!SWIG_IsOK(res1)) {
18689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
18690 }
18691 arg1 = reinterpret_cast< wxDC * >(argp1);
18692 {
18693 arg2 = &temp2;
18694 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18695 }
18696 {
18697 PyThreadState* __tstate = wxPyBeginAllowThreads();
18698 (arg1)->DrawEllipse((wxRect const &)*arg2);
18699 wxPyEndAllowThreads(__tstate);
18700 if (PyErr_Occurred()) SWIG_fail;
18701 }
18702 resultobj = SWIG_Py_Void();
18703 return resultobj;
18704fail:
18705 return NULL;
18706}
18707
18708
18709SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18710 PyObject *resultobj = 0;
18711 wxDC *arg1 = (wxDC *) 0 ;
18712 wxPoint *arg2 = 0 ;
18713 wxSize *arg3 = 0 ;
18714 void *argp1 = 0 ;
18715 int res1 = 0 ;
18716 wxPoint temp2 ;
18717 wxSize temp3 ;
18718 PyObject * obj0 = 0 ;
18719 PyObject * obj1 = 0 ;
18720 PyObject * obj2 = 0 ;
18721 char * kwnames[] = {
18722 (char *) "self",(char *) "pt",(char *) "sz", NULL
18723 };
18724
18725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18727 if (!SWIG_IsOK(res1)) {
18728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18729 }
18730 arg1 = reinterpret_cast< wxDC * >(argp1);
18731 {
18732 arg2 = &temp2;
18733 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18734 }
18735 {
18736 arg3 = &temp3;
18737 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18738 }
18739 {
18740 PyThreadState* __tstate = wxPyBeginAllowThreads();
18741 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
18742 wxPyEndAllowThreads(__tstate);
18743 if (PyErr_Occurred()) SWIG_fail;
18744 }
18745 resultobj = SWIG_Py_Void();
18746 return resultobj;
18747fail:
18748 return NULL;
18749}
18750
18751
18752SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18753 PyObject *resultobj = 0;
18754 wxDC *arg1 = (wxDC *) 0 ;
18755 wxIcon *arg2 = 0 ;
18756 int arg3 ;
18757 int arg4 ;
18758 void *argp1 = 0 ;
18759 int res1 = 0 ;
18760 void *argp2 = 0 ;
18761 int res2 = 0 ;
18762 int val3 ;
18763 int ecode3 = 0 ;
18764 int val4 ;
18765 int ecode4 = 0 ;
18766 PyObject * obj0 = 0 ;
18767 PyObject * obj1 = 0 ;
18768 PyObject * obj2 = 0 ;
18769 PyObject * obj3 = 0 ;
18770 char * kwnames[] = {
18771 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
18772 };
18773
18774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18776 if (!SWIG_IsOK(res1)) {
18777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
18778 }
18779 arg1 = reinterpret_cast< wxDC * >(argp1);
18780 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18781 if (!SWIG_IsOK(res2)) {
18782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18783 }
18784 if (!argp2) {
18785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18786 }
18787 arg2 = reinterpret_cast< wxIcon * >(argp2);
18788 ecode3 = SWIG_AsVal_int(obj2, &val3);
18789 if (!SWIG_IsOK(ecode3)) {
18790 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
18791 }
18792 arg3 = static_cast< int >(val3);
18793 ecode4 = SWIG_AsVal_int(obj3, &val4);
18794 if (!SWIG_IsOK(ecode4)) {
18795 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
18796 }
18797 arg4 = static_cast< int >(val4);
18798 {
18799 PyThreadState* __tstate = wxPyBeginAllowThreads();
18800 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
18801 wxPyEndAllowThreads(__tstate);
18802 if (PyErr_Occurred()) SWIG_fail;
18803 }
18804 resultobj = SWIG_Py_Void();
18805 return resultobj;
18806fail:
18807 return NULL;
18808}
18809
18810
18811SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18812 PyObject *resultobj = 0;
18813 wxDC *arg1 = (wxDC *) 0 ;
18814 wxIcon *arg2 = 0 ;
18815 wxPoint *arg3 = 0 ;
18816 void *argp1 = 0 ;
18817 int res1 = 0 ;
18818 void *argp2 = 0 ;
18819 int res2 = 0 ;
18820 wxPoint temp3 ;
18821 PyObject * obj0 = 0 ;
18822 PyObject * obj1 = 0 ;
18823 PyObject * obj2 = 0 ;
18824 char * kwnames[] = {
18825 (char *) "self",(char *) "icon",(char *) "pt", NULL
18826 };
18827
18828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18830 if (!SWIG_IsOK(res1)) {
18831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18832 }
18833 arg1 = reinterpret_cast< wxDC * >(argp1);
18834 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18835 if (!SWIG_IsOK(res2)) {
18836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18837 }
18838 if (!argp2) {
18839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18840 }
18841 arg2 = reinterpret_cast< wxIcon * >(argp2);
18842 {
18843 arg3 = &temp3;
18844 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18845 }
18846 {
18847 PyThreadState* __tstate = wxPyBeginAllowThreads();
18848 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
18849 wxPyEndAllowThreads(__tstate);
18850 if (PyErr_Occurred()) SWIG_fail;
18851 }
18852 resultobj = SWIG_Py_Void();
18853 return resultobj;
18854fail:
18855 return NULL;
18856}
18857
18858
18859SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18860 PyObject *resultobj = 0;
18861 wxDC *arg1 = (wxDC *) 0 ;
18862 wxBitmap *arg2 = 0 ;
18863 int arg3 ;
18864 int arg4 ;
18865 bool arg5 = (bool) false ;
18866 void *argp1 = 0 ;
18867 int res1 = 0 ;
18868 void *argp2 = 0 ;
18869 int res2 = 0 ;
18870 int val3 ;
18871 int ecode3 = 0 ;
18872 int val4 ;
18873 int ecode4 = 0 ;
18874 bool val5 ;
18875 int ecode5 = 0 ;
18876 PyObject * obj0 = 0 ;
18877 PyObject * obj1 = 0 ;
18878 PyObject * obj2 = 0 ;
18879 PyObject * obj3 = 0 ;
18880 PyObject * obj4 = 0 ;
18881 char * kwnames[] = {
18882 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
18883 };
18884
18885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18887 if (!SWIG_IsOK(res1)) {
18888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
18889 }
18890 arg1 = reinterpret_cast< wxDC * >(argp1);
18891 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18892 if (!SWIG_IsOK(res2)) {
18893 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18894 }
18895 if (!argp2) {
18896 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18897 }
18898 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18899 ecode3 = SWIG_AsVal_int(obj2, &val3);
18900 if (!SWIG_IsOK(ecode3)) {
18901 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
18902 }
18903 arg3 = static_cast< int >(val3);
18904 ecode4 = SWIG_AsVal_int(obj3, &val4);
18905 if (!SWIG_IsOK(ecode4)) {
18906 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
18907 }
18908 arg4 = static_cast< int >(val4);
18909 if (obj4) {
18910 ecode5 = SWIG_AsVal_bool(obj4, &val5);
18911 if (!SWIG_IsOK(ecode5)) {
18912 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
18913 }
18914 arg5 = static_cast< bool >(val5);
18915 }
18916 {
18917 PyThreadState* __tstate = wxPyBeginAllowThreads();
18918 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
18919 wxPyEndAllowThreads(__tstate);
18920 if (PyErr_Occurred()) SWIG_fail;
18921 }
18922 resultobj = SWIG_Py_Void();
18923 return resultobj;
18924fail:
18925 return NULL;
18926}
18927
18928
18929SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18930 PyObject *resultobj = 0;
18931 wxDC *arg1 = (wxDC *) 0 ;
18932 wxBitmap *arg2 = 0 ;
18933 wxPoint *arg3 = 0 ;
18934 bool arg4 = (bool) false ;
18935 void *argp1 = 0 ;
18936 int res1 = 0 ;
18937 void *argp2 = 0 ;
18938 int res2 = 0 ;
18939 wxPoint temp3 ;
18940 bool val4 ;
18941 int ecode4 = 0 ;
18942 PyObject * obj0 = 0 ;
18943 PyObject * obj1 = 0 ;
18944 PyObject * obj2 = 0 ;
18945 PyObject * obj3 = 0 ;
18946 char * kwnames[] = {
18947 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
18948 };
18949
18950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18952 if (!SWIG_IsOK(res1)) {
18953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18954 }
18955 arg1 = reinterpret_cast< wxDC * >(argp1);
18956 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18957 if (!SWIG_IsOK(res2)) {
18958 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18959 }
18960 if (!argp2) {
18961 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18962 }
18963 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18964 {
18965 arg3 = &temp3;
18966 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18967 }
18968 if (obj3) {
18969 ecode4 = SWIG_AsVal_bool(obj3, &val4);
18970 if (!SWIG_IsOK(ecode4)) {
18971 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
18972 }
18973 arg4 = static_cast< bool >(val4);
18974 }
18975 {
18976 PyThreadState* __tstate = wxPyBeginAllowThreads();
18977 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
18978 wxPyEndAllowThreads(__tstate);
18979 if (PyErr_Occurred()) SWIG_fail;
18980 }
18981 resultobj = SWIG_Py_Void();
18982 return resultobj;
18983fail:
18984 return NULL;
18985}
18986
18987
18988SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18989 PyObject *resultobj = 0;
18990 wxDC *arg1 = (wxDC *) 0 ;
18991 wxString *arg2 = 0 ;
18992 int arg3 ;
18993 int arg4 ;
18994 void *argp1 = 0 ;
18995 int res1 = 0 ;
18996 bool temp2 = false ;
18997 int val3 ;
18998 int ecode3 = 0 ;
18999 int val4 ;
19000 int ecode4 = 0 ;
19001 PyObject * obj0 = 0 ;
19002 PyObject * obj1 = 0 ;
19003 PyObject * obj2 = 0 ;
19004 PyObject * obj3 = 0 ;
19005 char * kwnames[] = {
19006 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19007 };
19008
19009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19011 if (!SWIG_IsOK(res1)) {
19012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19013 }
19014 arg1 = reinterpret_cast< wxDC * >(argp1);
19015 {
19016 arg2 = wxString_in_helper(obj1);
19017 if (arg2 == NULL) SWIG_fail;
19018 temp2 = true;
19019 }
19020 ecode3 = SWIG_AsVal_int(obj2, &val3);
19021 if (!SWIG_IsOK(ecode3)) {
19022 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19023 }
19024 arg3 = static_cast< int >(val3);
19025 ecode4 = SWIG_AsVal_int(obj3, &val4);
19026 if (!SWIG_IsOK(ecode4)) {
19027 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19028 }
19029 arg4 = static_cast< int >(val4);
19030 {
19031 PyThreadState* __tstate = wxPyBeginAllowThreads();
19032 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19033 wxPyEndAllowThreads(__tstate);
19034 if (PyErr_Occurred()) SWIG_fail;
19035 }
19036 resultobj = SWIG_Py_Void();
19037 {
19038 if (temp2)
19039 delete arg2;
19040 }
19041 return resultobj;
19042fail:
19043 {
19044 if (temp2)
19045 delete arg2;
19046 }
19047 return NULL;
19048}
19049
19050
19051SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19052 PyObject *resultobj = 0;
19053 wxDC *arg1 = (wxDC *) 0 ;
19054 wxString *arg2 = 0 ;
19055 wxPoint *arg3 = 0 ;
19056 void *argp1 = 0 ;
19057 int res1 = 0 ;
19058 bool temp2 = false ;
19059 wxPoint temp3 ;
19060 PyObject * obj0 = 0 ;
19061 PyObject * obj1 = 0 ;
19062 PyObject * obj2 = 0 ;
19063 char * kwnames[] = {
19064 (char *) "self",(char *) "text",(char *) "pt", NULL
19065 };
19066
19067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19069 if (!SWIG_IsOK(res1)) {
19070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19071 }
19072 arg1 = reinterpret_cast< wxDC * >(argp1);
19073 {
19074 arg2 = wxString_in_helper(obj1);
19075 if (arg2 == NULL) SWIG_fail;
19076 temp2 = true;
19077 }
19078 {
19079 arg3 = &temp3;
19080 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19081 }
19082 {
19083 PyThreadState* __tstate = wxPyBeginAllowThreads();
19084 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19085 wxPyEndAllowThreads(__tstate);
19086 if (PyErr_Occurred()) SWIG_fail;
19087 }
19088 resultobj = SWIG_Py_Void();
19089 {
19090 if (temp2)
19091 delete arg2;
19092 }
19093 return resultobj;
19094fail:
19095 {
19096 if (temp2)
19097 delete arg2;
19098 }
19099 return NULL;
19100}
19101
19102
19103SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19104 PyObject *resultobj = 0;
19105 wxDC *arg1 = (wxDC *) 0 ;
19106 wxString *arg2 = 0 ;
19107 int arg3 ;
19108 int arg4 ;
19109 double arg5 ;
19110 void *argp1 = 0 ;
19111 int res1 = 0 ;
19112 bool temp2 = false ;
19113 int val3 ;
19114 int ecode3 = 0 ;
19115 int val4 ;
19116 int ecode4 = 0 ;
19117 double val5 ;
19118 int ecode5 = 0 ;
19119 PyObject * obj0 = 0 ;
19120 PyObject * obj1 = 0 ;
19121 PyObject * obj2 = 0 ;
19122 PyObject * obj3 = 0 ;
19123 PyObject * obj4 = 0 ;
19124 char * kwnames[] = {
19125 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19126 };
19127
19128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19130 if (!SWIG_IsOK(res1)) {
19131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19132 }
19133 arg1 = reinterpret_cast< wxDC * >(argp1);
19134 {
19135 arg2 = wxString_in_helper(obj1);
19136 if (arg2 == NULL) SWIG_fail;
19137 temp2 = true;
19138 }
19139 ecode3 = SWIG_AsVal_int(obj2, &val3);
19140 if (!SWIG_IsOK(ecode3)) {
19141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19142 }
19143 arg3 = static_cast< int >(val3);
19144 ecode4 = SWIG_AsVal_int(obj3, &val4);
19145 if (!SWIG_IsOK(ecode4)) {
19146 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19147 }
19148 arg4 = static_cast< int >(val4);
19149 ecode5 = SWIG_AsVal_double(obj4, &val5);
19150 if (!SWIG_IsOK(ecode5)) {
19151 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19152 }
19153 arg5 = static_cast< double >(val5);
19154 {
19155 PyThreadState* __tstate = wxPyBeginAllowThreads();
19156 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19157 wxPyEndAllowThreads(__tstate);
19158 if (PyErr_Occurred()) SWIG_fail;
19159 }
19160 resultobj = SWIG_Py_Void();
19161 {
19162 if (temp2)
19163 delete arg2;
19164 }
19165 return resultobj;
19166fail:
19167 {
19168 if (temp2)
19169 delete arg2;
19170 }
19171 return NULL;
19172}
19173
19174
19175SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19176 PyObject *resultobj = 0;
19177 wxDC *arg1 = (wxDC *) 0 ;
19178 wxString *arg2 = 0 ;
19179 wxPoint *arg3 = 0 ;
19180 double arg4 ;
19181 void *argp1 = 0 ;
19182 int res1 = 0 ;
19183 bool temp2 = false ;
19184 wxPoint temp3 ;
19185 double val4 ;
19186 int ecode4 = 0 ;
19187 PyObject * obj0 = 0 ;
19188 PyObject * obj1 = 0 ;
19189 PyObject * obj2 = 0 ;
19190 PyObject * obj3 = 0 ;
19191 char * kwnames[] = {
19192 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19193 };
19194
19195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19197 if (!SWIG_IsOK(res1)) {
19198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19199 }
19200 arg1 = reinterpret_cast< wxDC * >(argp1);
19201 {
19202 arg2 = wxString_in_helper(obj1);
19203 if (arg2 == NULL) SWIG_fail;
19204 temp2 = true;
19205 }
19206 {
19207 arg3 = &temp3;
19208 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19209 }
19210 ecode4 = SWIG_AsVal_double(obj3, &val4);
19211 if (!SWIG_IsOK(ecode4)) {
19212 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19213 }
19214 arg4 = static_cast< double >(val4);
19215 {
19216 PyThreadState* __tstate = wxPyBeginAllowThreads();
19217 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19218 wxPyEndAllowThreads(__tstate);
19219 if (PyErr_Occurred()) SWIG_fail;
19220 }
19221 resultobj = SWIG_Py_Void();
19222 {
19223 if (temp2)
19224 delete arg2;
19225 }
19226 return resultobj;
19227fail:
19228 {
19229 if (temp2)
19230 delete arg2;
19231 }
19232 return NULL;
19233}
19234
19235
19236SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19237 PyObject *resultobj = 0;
19238 wxDC *arg1 = (wxDC *) 0 ;
19239 int arg2 ;
19240 int arg3 ;
19241 int arg4 ;
19242 int arg5 ;
19243 wxDC *arg6 = (wxDC *) 0 ;
19244 int arg7 ;
19245 int arg8 ;
19246 int arg9 = (int) wxCOPY ;
19247 bool arg10 = (bool) false ;
19248 int arg11 = (int) -1 ;
19249 int arg12 = (int) -1 ;
19250 bool result;
19251 void *argp1 = 0 ;
19252 int res1 = 0 ;
19253 int val2 ;
19254 int ecode2 = 0 ;
19255 int val3 ;
19256 int ecode3 = 0 ;
19257 int val4 ;
19258 int ecode4 = 0 ;
19259 int val5 ;
19260 int ecode5 = 0 ;
19261 void *argp6 = 0 ;
19262 int res6 = 0 ;
19263 int val7 ;
19264 int ecode7 = 0 ;
19265 int val8 ;
19266 int ecode8 = 0 ;
19267 int val9 ;
19268 int ecode9 = 0 ;
19269 bool val10 ;
19270 int ecode10 = 0 ;
19271 int val11 ;
19272 int ecode11 = 0 ;
19273 int val12 ;
19274 int ecode12 = 0 ;
19275 PyObject * obj0 = 0 ;
19276 PyObject * obj1 = 0 ;
19277 PyObject * obj2 = 0 ;
19278 PyObject * obj3 = 0 ;
19279 PyObject * obj4 = 0 ;
19280 PyObject * obj5 = 0 ;
19281 PyObject * obj6 = 0 ;
19282 PyObject * obj7 = 0 ;
19283 PyObject * obj8 = 0 ;
19284 PyObject * obj9 = 0 ;
19285 PyObject * obj10 = 0 ;
19286 PyObject * obj11 = 0 ;
19287 char * kwnames[] = {
19288 (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
19289 };
19290
19291 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;
19292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19293 if (!SWIG_IsOK(res1)) {
19294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19295 }
19296 arg1 = reinterpret_cast< wxDC * >(argp1);
19297 ecode2 = SWIG_AsVal_int(obj1, &val2);
19298 if (!SWIG_IsOK(ecode2)) {
19299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19300 }
19301 arg2 = static_cast< int >(val2);
19302 ecode3 = SWIG_AsVal_int(obj2, &val3);
19303 if (!SWIG_IsOK(ecode3)) {
19304 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19305 }
19306 arg3 = static_cast< int >(val3);
19307 ecode4 = SWIG_AsVal_int(obj3, &val4);
19308 if (!SWIG_IsOK(ecode4)) {
19309 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19310 }
19311 arg4 = static_cast< int >(val4);
19312 ecode5 = SWIG_AsVal_int(obj4, &val5);
19313 if (!SWIG_IsOK(ecode5)) {
19314 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19315 }
19316 arg5 = static_cast< int >(val5);
19317 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19318 if (!SWIG_IsOK(res6)) {
19319 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19320 }
19321 arg6 = reinterpret_cast< wxDC * >(argp6);
19322 ecode7 = SWIG_AsVal_int(obj6, &val7);
19323 if (!SWIG_IsOK(ecode7)) {
19324 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19325 }
19326 arg7 = static_cast< int >(val7);
19327 ecode8 = SWIG_AsVal_int(obj7, &val8);
19328 if (!SWIG_IsOK(ecode8)) {
19329 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19330 }
19331 arg8 = static_cast< int >(val8);
19332 if (obj8) {
19333 ecode9 = SWIG_AsVal_int(obj8, &val9);
19334 if (!SWIG_IsOK(ecode9)) {
19335 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19336 }
19337 arg9 = static_cast< int >(val9);
19338 }
19339 if (obj9) {
19340 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19341 if (!SWIG_IsOK(ecode10)) {
19342 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19343 }
19344 arg10 = static_cast< bool >(val10);
19345 }
19346 if (obj10) {
19347 ecode11 = SWIG_AsVal_int(obj10, &val11);
19348 if (!SWIG_IsOK(ecode11)) {
19349 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19350 }
19351 arg11 = static_cast< int >(val11);
19352 }
19353 if (obj11) {
19354 ecode12 = SWIG_AsVal_int(obj11, &val12);
19355 if (!SWIG_IsOK(ecode12)) {
19356 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19357 }
19358 arg12 = static_cast< int >(val12);
19359 }
19360 {
19361 PyThreadState* __tstate = wxPyBeginAllowThreads();
19362 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19363 wxPyEndAllowThreads(__tstate);
19364 if (PyErr_Occurred()) SWIG_fail;
19365 }
19366 {
19367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19368 }
19369 return resultobj;
19370fail:
19371 return NULL;
19372}
19373
19374
19375SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19376 PyObject *resultobj = 0;
19377 wxDC *arg1 = (wxDC *) 0 ;
19378 wxPoint *arg2 = 0 ;
19379 wxSize *arg3 = 0 ;
19380 wxDC *arg4 = (wxDC *) 0 ;
19381 wxPoint *arg5 = 0 ;
19382 int arg6 = (int) wxCOPY ;
19383 bool arg7 = (bool) false ;
19384 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19385 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19386 bool result;
19387 void *argp1 = 0 ;
19388 int res1 = 0 ;
19389 wxPoint temp2 ;
19390 wxSize temp3 ;
19391 void *argp4 = 0 ;
19392 int res4 = 0 ;
19393 wxPoint temp5 ;
19394 int val6 ;
19395 int ecode6 = 0 ;
19396 bool val7 ;
19397 int ecode7 = 0 ;
19398 wxPoint temp8 ;
19399 PyObject * obj0 = 0 ;
19400 PyObject * obj1 = 0 ;
19401 PyObject * obj2 = 0 ;
19402 PyObject * obj3 = 0 ;
19403 PyObject * obj4 = 0 ;
19404 PyObject * obj5 = 0 ;
19405 PyObject * obj6 = 0 ;
19406 PyObject * obj7 = 0 ;
19407 char * kwnames[] = {
19408 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19409 };
19410
19411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19413 if (!SWIG_IsOK(res1)) {
19414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19415 }
19416 arg1 = reinterpret_cast< wxDC * >(argp1);
19417 {
19418 arg2 = &temp2;
19419 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19420 }
19421 {
19422 arg3 = &temp3;
19423 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19424 }
19425 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19426 if (!SWIG_IsOK(res4)) {
19427 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19428 }
19429 arg4 = reinterpret_cast< wxDC * >(argp4);
19430 {
19431 arg5 = &temp5;
19432 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19433 }
19434 if (obj5) {
19435 ecode6 = SWIG_AsVal_int(obj5, &val6);
19436 if (!SWIG_IsOK(ecode6)) {
19437 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19438 }
19439 arg6 = static_cast< int >(val6);
19440 }
19441 if (obj6) {
19442 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19443 if (!SWIG_IsOK(ecode7)) {
19444 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19445 }
19446 arg7 = static_cast< bool >(val7);
19447 }
19448 if (obj7) {
093d3ff1 19449 {
0085ce49
RD
19450 arg8 = &temp8;
19451 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
093d3ff1 19452 }
0085ce49
RD
19453 }
19454 {
19455 PyThreadState* __tstate = wxPyBeginAllowThreads();
19456 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19457 wxPyEndAllowThreads(__tstate);
19458 if (PyErr_Occurred()) SWIG_fail;
19459 }
19460 {
19461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19462 }
19463 return resultobj;
19464fail:
19465 return NULL;
19466}
19467
19468
19469SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19470 PyObject *resultobj = 0;
19471 wxDC *arg1 = (wxDC *) 0 ;
19472 int arg2 ;
19473 int arg3 ;
19474 int arg4 ;
19475 int arg5 ;
19476 void *argp1 = 0 ;
19477 int res1 = 0 ;
19478 int val2 ;
19479 int ecode2 = 0 ;
19480 int val3 ;
19481 int ecode3 = 0 ;
19482 int val4 ;
19483 int ecode4 = 0 ;
19484 int val5 ;
19485 int ecode5 = 0 ;
19486 PyObject * obj0 = 0 ;
19487 PyObject * obj1 = 0 ;
19488 PyObject * obj2 = 0 ;
19489 PyObject * obj3 = 0 ;
19490 PyObject * obj4 = 0 ;
19491 char * kwnames[] = {
19492 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19493 };
19494
19495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19497 if (!SWIG_IsOK(res1)) {
19498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19499 }
19500 arg1 = reinterpret_cast< wxDC * >(argp1);
19501 ecode2 = SWIG_AsVal_int(obj1, &val2);
19502 if (!SWIG_IsOK(ecode2)) {
19503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19504 }
19505 arg2 = static_cast< int >(val2);
19506 ecode3 = SWIG_AsVal_int(obj2, &val3);
19507 if (!SWIG_IsOK(ecode3)) {
19508 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19509 }
19510 arg3 = static_cast< int >(val3);
19511 ecode4 = SWIG_AsVal_int(obj3, &val4);
19512 if (!SWIG_IsOK(ecode4)) {
19513 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19514 }
19515 arg4 = static_cast< int >(val4);
19516 ecode5 = SWIG_AsVal_int(obj4, &val5);
19517 if (!SWIG_IsOK(ecode5)) {
19518 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19519 }
19520 arg5 = static_cast< int >(val5);
19521 {
19522 PyThreadState* __tstate = wxPyBeginAllowThreads();
19523 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19524 wxPyEndAllowThreads(__tstate);
19525 if (PyErr_Occurred()) SWIG_fail;
19526 }
19527 resultobj = SWIG_Py_Void();
19528 return resultobj;
19529fail:
19530 return NULL;
19531}
19532
19533
19534SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19535 PyObject *resultobj = 0;
19536 wxDC *arg1 = (wxDC *) 0 ;
19537 wxPoint *arg2 = 0 ;
19538 wxSize *arg3 = 0 ;
19539 void *argp1 = 0 ;
19540 int res1 = 0 ;
19541 wxPoint temp2 ;
19542 wxSize temp3 ;
19543 PyObject * obj0 = 0 ;
19544 PyObject * obj1 = 0 ;
19545 PyObject * obj2 = 0 ;
19546 char * kwnames[] = {
19547 (char *) "self",(char *) "pt",(char *) "sz", NULL
19548 };
19549
19550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19552 if (!SWIG_IsOK(res1)) {
19553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19554 }
19555 arg1 = reinterpret_cast< wxDC * >(argp1);
19556 {
19557 arg2 = &temp2;
19558 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19559 }
19560 {
19561 arg3 = &temp3;
19562 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19563 }
19564 {
19565 PyThreadState* __tstate = wxPyBeginAllowThreads();
19566 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19567 wxPyEndAllowThreads(__tstate);
19568 if (PyErr_Occurred()) SWIG_fail;
19569 }
19570 resultobj = SWIG_Py_Void();
19571 return resultobj;
19572fail:
19573 return NULL;
19574}
19575
19576
19577SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19578 PyObject *resultobj = 0;
19579 wxDC *arg1 = (wxDC *) 0 ;
19580 wxRegion *arg2 = 0 ;
19581 void *argp1 = 0 ;
19582 int res1 = 0 ;
19583 void *argp2 = 0 ;
19584 int res2 = 0 ;
19585 PyObject * obj0 = 0 ;
19586 PyObject * obj1 = 0 ;
19587 char * kwnames[] = {
19588 (char *) "self",(char *) "region", NULL
19589 };
19590
19591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19593 if (!SWIG_IsOK(res1)) {
19594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19595 }
19596 arg1 = reinterpret_cast< wxDC * >(argp1);
19597 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19598 if (!SWIG_IsOK(res2)) {
19599 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19600 }
19601 if (!argp2) {
19602 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19603 }
19604 arg2 = reinterpret_cast< wxRegion * >(argp2);
19605 {
19606 PyThreadState* __tstate = wxPyBeginAllowThreads();
19607 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19608 wxPyEndAllowThreads(__tstate);
19609 if (PyErr_Occurred()) SWIG_fail;
19610 }
19611 resultobj = SWIG_Py_Void();
19612 return resultobj;
19613fail:
19614 return NULL;
19615}
19616
19617
19618SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19619 PyObject *resultobj = 0;
19620 wxDC *arg1 = (wxDC *) 0 ;
19621 wxRect *arg2 = 0 ;
19622 void *argp1 = 0 ;
19623 int res1 = 0 ;
19624 wxRect temp2 ;
19625 PyObject * obj0 = 0 ;
19626 PyObject * obj1 = 0 ;
19627 char * kwnames[] = {
19628 (char *) "self",(char *) "rect", NULL
19629 };
19630
19631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19633 if (!SWIG_IsOK(res1)) {
19634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19635 }
19636 arg1 = reinterpret_cast< wxDC * >(argp1);
19637 {
19638 arg2 = &temp2;
19639 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19640 }
19641 {
19642 PyThreadState* __tstate = wxPyBeginAllowThreads();
19643 (arg1)->SetClippingRegion((wxRect const &)*arg2);
19644 wxPyEndAllowThreads(__tstate);
19645 if (PyErr_Occurred()) SWIG_fail;
19646 }
19647 resultobj = SWIG_Py_Void();
19648 return resultobj;
19649fail:
19650 return NULL;
19651}
19652
19653
19654SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19655 PyObject *resultobj = 0;
19656 wxDC *arg1 = (wxDC *) 0 ;
19657 int arg2 ;
19658 wxPoint *arg3 = (wxPoint *) 0 ;
19659 int arg4 = (int) 0 ;
19660 int arg5 = (int) 0 ;
19661 void *argp1 = 0 ;
19662 int res1 = 0 ;
19663 int val4 ;
19664 int ecode4 = 0 ;
19665 int val5 ;
19666 int ecode5 = 0 ;
19667 PyObject * obj0 = 0 ;
19668 PyObject * obj1 = 0 ;
19669 PyObject * obj2 = 0 ;
19670 PyObject * obj3 = 0 ;
19671 char * kwnames[] = {
19672 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
19673 };
19674
19675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19677 if (!SWIG_IsOK(res1)) {
19678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
19679 }
19680 arg1 = reinterpret_cast< wxDC * >(argp1);
19681 {
19682 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19683 if (arg3 == NULL) SWIG_fail;
19684 }
19685 if (obj2) {
19686 ecode4 = SWIG_AsVal_int(obj2, &val4);
19687 if (!SWIG_IsOK(ecode4)) {
19688 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
19689 }
19690 arg4 = static_cast< int >(val4);
19691 }
19692 if (obj3) {
19693 ecode5 = SWIG_AsVal_int(obj3, &val5);
19694 if (!SWIG_IsOK(ecode5)) {
19695 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
19696 }
19697 arg5 = static_cast< int >(val5);
19698 }
19699 {
19700 PyThreadState* __tstate = wxPyBeginAllowThreads();
19701 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
19702 wxPyEndAllowThreads(__tstate);
19703 if (PyErr_Occurred()) SWIG_fail;
19704 }
19705 resultobj = SWIG_Py_Void();
19706 {
19707 if (arg3) delete [] arg3;
19708 }
19709 return resultobj;
19710fail:
19711 {
19712 if (arg3) delete [] arg3;
19713 }
19714 return NULL;
19715}
19716
19717
19718SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19719 PyObject *resultobj = 0;
19720 wxDC *arg1 = (wxDC *) 0 ;
19721 int arg2 ;
19722 wxPoint *arg3 = (wxPoint *) 0 ;
19723 int arg4 = (int) 0 ;
19724 int arg5 = (int) 0 ;
19725 int arg6 = (int) wxODDEVEN_RULE ;
19726 void *argp1 = 0 ;
19727 int res1 = 0 ;
19728 int val4 ;
19729 int ecode4 = 0 ;
19730 int val5 ;
19731 int ecode5 = 0 ;
19732 int val6 ;
19733 int ecode6 = 0 ;
19734 PyObject * obj0 = 0 ;
19735 PyObject * obj1 = 0 ;
19736 PyObject * obj2 = 0 ;
19737 PyObject * obj3 = 0 ;
19738 PyObject * obj4 = 0 ;
19739 char * kwnames[] = {
19740 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
19741 };
19742
19743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19745 if (!SWIG_IsOK(res1)) {
19746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
19747 }
19748 arg1 = reinterpret_cast< wxDC * >(argp1);
19749 {
19750 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19751 if (arg3 == NULL) SWIG_fail;
19752 }
19753 if (obj2) {
19754 ecode4 = SWIG_AsVal_int(obj2, &val4);
19755 if (!SWIG_IsOK(ecode4)) {
19756 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
19757 }
19758 arg4 = static_cast< int >(val4);
19759 }
19760 if (obj3) {
19761 ecode5 = SWIG_AsVal_int(obj3, &val5);
19762 if (!SWIG_IsOK(ecode5)) {
19763 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
19764 }
19765 arg5 = static_cast< int >(val5);
19766 }
19767 if (obj4) {
19768 ecode6 = SWIG_AsVal_int(obj4, &val6);
19769 if (!SWIG_IsOK(ecode6)) {
19770 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
19771 }
19772 arg6 = static_cast< int >(val6);
19773 }
19774 {
19775 PyThreadState* __tstate = wxPyBeginAllowThreads();
19776 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
19777 wxPyEndAllowThreads(__tstate);
19778 if (PyErr_Occurred()) SWIG_fail;
19779 }
19780 resultobj = SWIG_Py_Void();
19781 {
19782 if (arg3) delete [] arg3;
19783 }
19784 return resultobj;
19785fail:
19786 {
19787 if (arg3) delete [] arg3;
19788 }
19789 return NULL;
19790}
19791
19792
19793SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19794 PyObject *resultobj = 0;
19795 wxDC *arg1 = (wxDC *) 0 ;
19796 wxString *arg2 = 0 ;
19797 wxRect *arg3 = 0 ;
19798 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19799 int arg5 = (int) -1 ;
19800 void *argp1 = 0 ;
19801 int res1 = 0 ;
19802 bool temp2 = false ;
19803 wxRect temp3 ;
19804 int val4 ;
19805 int ecode4 = 0 ;
19806 int val5 ;
19807 int ecode5 = 0 ;
19808 PyObject * obj0 = 0 ;
19809 PyObject * obj1 = 0 ;
19810 PyObject * obj2 = 0 ;
19811 PyObject * obj3 = 0 ;
19812 PyObject * obj4 = 0 ;
19813 char * kwnames[] = {
19814 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19815 };
19816
19817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19819 if (!SWIG_IsOK(res1)) {
19820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19821 }
19822 arg1 = reinterpret_cast< wxDC * >(argp1);
19823 {
19824 arg2 = wxString_in_helper(obj1);
19825 if (arg2 == NULL) SWIG_fail;
19826 temp2 = true;
19827 }
19828 {
19829 arg3 = &temp3;
19830 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
19831 }
19832 if (obj3) {
19833 ecode4 = SWIG_AsVal_int(obj3, &val4);
19834 if (!SWIG_IsOK(ecode4)) {
19835 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
19836 }
19837 arg4 = static_cast< int >(val4);
19838 }
19839 if (obj4) {
19840 ecode5 = SWIG_AsVal_int(obj4, &val5);
19841 if (!SWIG_IsOK(ecode5)) {
19842 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
19843 }
19844 arg5 = static_cast< int >(val5);
19845 }
19846 {
19847 PyThreadState* __tstate = wxPyBeginAllowThreads();
19848 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
19849 wxPyEndAllowThreads(__tstate);
19850 if (PyErr_Occurred()) SWIG_fail;
19851 }
19852 resultobj = SWIG_Py_Void();
19853 {
19854 if (temp2)
19855 delete arg2;
19856 }
19857 return resultobj;
19858fail:
19859 {
19860 if (temp2)
19861 delete arg2;
19862 }
19863 return NULL;
19864}
19865
19866
19867SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19868 PyObject *resultobj = 0;
19869 wxDC *arg1 = (wxDC *) 0 ;
19870 wxString *arg2 = 0 ;
19871 wxBitmap *arg3 = 0 ;
19872 wxRect *arg4 = 0 ;
19873 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19874 int arg6 = (int) -1 ;
19875 wxRect result;
19876 void *argp1 = 0 ;
19877 int res1 = 0 ;
19878 bool temp2 = false ;
19879 void *argp3 = 0 ;
19880 int res3 = 0 ;
19881 wxRect temp4 ;
19882 int val5 ;
19883 int ecode5 = 0 ;
19884 int val6 ;
19885 int ecode6 = 0 ;
19886 PyObject * obj0 = 0 ;
19887 PyObject * obj1 = 0 ;
19888 PyObject * obj2 = 0 ;
19889 PyObject * obj3 = 0 ;
19890 PyObject * obj4 = 0 ;
19891 PyObject * obj5 = 0 ;
19892 char * kwnames[] = {
19893 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19894 };
19895
19896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19898 if (!SWIG_IsOK(res1)) {
19899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19900 }
19901 arg1 = reinterpret_cast< wxDC * >(argp1);
19902 {
19903 arg2 = wxString_in_helper(obj1);
19904 if (arg2 == NULL) SWIG_fail;
19905 temp2 = true;
19906 }
19907 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
19908 if (!SWIG_IsOK(res3)) {
19909 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19910 }
19911 if (!argp3) {
19912 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19913 }
19914 arg3 = reinterpret_cast< wxBitmap * >(argp3);
19915 {
19916 arg4 = &temp4;
19917 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
19918 }
19919 if (obj4) {
19920 ecode5 = SWIG_AsVal_int(obj4, &val5);
19921 if (!SWIG_IsOK(ecode5)) {
19922 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
19923 }
19924 arg5 = static_cast< int >(val5);
19925 }
19926 if (obj5) {
19927 ecode6 = SWIG_AsVal_int(obj5, &val6);
19928 if (!SWIG_IsOK(ecode6)) {
19929 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
19930 }
19931 arg6 = static_cast< int >(val6);
19932 }
19933 {
19934 PyThreadState* __tstate = wxPyBeginAllowThreads();
19935 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
19936 wxPyEndAllowThreads(__tstate);
19937 if (PyErr_Occurred()) SWIG_fail;
19938 }
19939 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
19940 {
19941 if (temp2)
19942 delete arg2;
19943 }
19944 return resultobj;
19945fail:
19946 {
19947 if (temp2)
19948 delete arg2;
19949 }
19950 return NULL;
19951}
19952
19953
19954SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19955 PyObject *resultobj = 0;
19956 wxDC *arg1 = (wxDC *) 0 ;
19957 int arg2 ;
19958 wxPoint *arg3 = (wxPoint *) 0 ;
19959 void *argp1 = 0 ;
19960 int res1 = 0 ;
19961 PyObject * obj0 = 0 ;
19962 PyObject * obj1 = 0 ;
19963 char * kwnames[] = {
19964 (char *) "self",(char *) "points", NULL
19965 };
19966
19967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
19968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19969 if (!SWIG_IsOK(res1)) {
19970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
19971 }
19972 arg1 = reinterpret_cast< wxDC * >(argp1);
19973 {
19974 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19975 if (arg3 == NULL) SWIG_fail;
19976 }
19977 {
19978 PyThreadState* __tstate = wxPyBeginAllowThreads();
19979 (arg1)->DrawSpline(arg2,arg3);
19980 wxPyEndAllowThreads(__tstate);
19981 if (PyErr_Occurred()) SWIG_fail;
19982 }
19983 resultobj = SWIG_Py_Void();
19984 {
19985 if (arg3) delete [] arg3;
19986 }
19987 return resultobj;
19988fail:
19989 {
19990 if (arg3) delete [] arg3;
19991 }
19992 return NULL;
19993}
19994
19995
19996SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19997 PyObject *resultobj = 0;
19998 wxDC *arg1 = (wxDC *) 0 ;
19999 void *argp1 = 0 ;
20000 int res1 = 0 ;
20001 PyObject *swig_obj[1] ;
20002
20003 if (!args) SWIG_fail;
20004 swig_obj[0] = args;
20005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20006 if (!SWIG_IsOK(res1)) {
20007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20008 }
20009 arg1 = reinterpret_cast< wxDC * >(argp1);
20010 {
20011 PyThreadState* __tstate = wxPyBeginAllowThreads();
20012 (arg1)->Clear();
20013 wxPyEndAllowThreads(__tstate);
20014 if (PyErr_Occurred()) SWIG_fail;
20015 }
20016 resultobj = SWIG_Py_Void();
20017 return resultobj;
20018fail:
20019 return NULL;
20020}
20021
20022
20023SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20024 PyObject *resultobj = 0;
20025 wxDC *arg1 = (wxDC *) 0 ;
20026 wxString *arg2 = 0 ;
20027 bool result;
20028 void *argp1 = 0 ;
20029 int res1 = 0 ;
20030 bool temp2 = false ;
20031 PyObject * obj0 = 0 ;
20032 PyObject * obj1 = 0 ;
20033 char * kwnames[] = {
20034 (char *) "self",(char *) "message", NULL
20035 };
20036
20037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20039 if (!SWIG_IsOK(res1)) {
20040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20041 }
20042 arg1 = reinterpret_cast< wxDC * >(argp1);
20043 {
20044 arg2 = wxString_in_helper(obj1);
20045 if (arg2 == NULL) SWIG_fail;
20046 temp2 = true;
20047 }
20048 {
20049 PyThreadState* __tstate = wxPyBeginAllowThreads();
20050 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20051 wxPyEndAllowThreads(__tstate);
20052 if (PyErr_Occurred()) SWIG_fail;
20053 }
20054 {
20055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20056 }
20057 {
20058 if (temp2)
20059 delete arg2;
20060 }
20061 return resultobj;
20062fail:
20063 {
20064 if (temp2)
20065 delete arg2;
20066 }
20067 return NULL;
20068}
20069
20070
20071SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20072 PyObject *resultobj = 0;
20073 wxDC *arg1 = (wxDC *) 0 ;
20074 void *argp1 = 0 ;
20075 int res1 = 0 ;
20076 PyObject *swig_obj[1] ;
20077
20078 if (!args) SWIG_fail;
20079 swig_obj[0] = args;
20080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20081 if (!SWIG_IsOK(res1)) {
20082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20083 }
20084 arg1 = reinterpret_cast< wxDC * >(argp1);
20085 {
20086 PyThreadState* __tstate = wxPyBeginAllowThreads();
20087 (arg1)->EndDoc();
20088 wxPyEndAllowThreads(__tstate);
20089 if (PyErr_Occurred()) SWIG_fail;
20090 }
20091 resultobj = SWIG_Py_Void();
20092 return resultobj;
20093fail:
20094 return NULL;
20095}
20096
20097
20098SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20099 PyObject *resultobj = 0;
20100 wxDC *arg1 = (wxDC *) 0 ;
20101 void *argp1 = 0 ;
20102 int res1 = 0 ;
20103 PyObject *swig_obj[1] ;
20104
20105 if (!args) SWIG_fail;
20106 swig_obj[0] = args;
20107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20108 if (!SWIG_IsOK(res1)) {
20109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20110 }
20111 arg1 = reinterpret_cast< wxDC * >(argp1);
20112 {
20113 PyThreadState* __tstate = wxPyBeginAllowThreads();
20114 (arg1)->StartPage();
20115 wxPyEndAllowThreads(__tstate);
20116 if (PyErr_Occurred()) SWIG_fail;
20117 }
20118 resultobj = SWIG_Py_Void();
20119 return resultobj;
20120fail:
20121 return NULL;
20122}
20123
20124
20125SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20126 PyObject *resultobj = 0;
20127 wxDC *arg1 = (wxDC *) 0 ;
20128 void *argp1 = 0 ;
20129 int res1 = 0 ;
20130 PyObject *swig_obj[1] ;
20131
20132 if (!args) SWIG_fail;
20133 swig_obj[0] = args;
20134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20135 if (!SWIG_IsOK(res1)) {
20136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20137 }
20138 arg1 = reinterpret_cast< wxDC * >(argp1);
20139 {
20140 PyThreadState* __tstate = wxPyBeginAllowThreads();
20141 (arg1)->EndPage();
20142 wxPyEndAllowThreads(__tstate);
20143 if (PyErr_Occurred()) SWIG_fail;
20144 }
20145 resultobj = SWIG_Py_Void();
20146 return resultobj;
20147fail:
20148 return NULL;
20149}
20150
20151
20152SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20153 PyObject *resultobj = 0;
20154 wxDC *arg1 = (wxDC *) 0 ;
20155 wxFont *arg2 = 0 ;
20156 void *argp1 = 0 ;
20157 int res1 = 0 ;
20158 void *argp2 = 0 ;
20159 int res2 = 0 ;
20160 PyObject * obj0 = 0 ;
20161 PyObject * obj1 = 0 ;
20162 char * kwnames[] = {
20163 (char *) "self",(char *) "font", NULL
20164 };
20165
20166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20168 if (!SWIG_IsOK(res1)) {
20169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20170 }
20171 arg1 = reinterpret_cast< wxDC * >(argp1);
20172 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20173 if (!SWIG_IsOK(res2)) {
20174 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20175 }
20176 if (!argp2) {
20177 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20178 }
20179 arg2 = reinterpret_cast< wxFont * >(argp2);
20180 {
20181 PyThreadState* __tstate = wxPyBeginAllowThreads();
20182 (arg1)->SetFont((wxFont const &)*arg2);
20183 wxPyEndAllowThreads(__tstate);
20184 if (PyErr_Occurred()) SWIG_fail;
20185 }
20186 resultobj = SWIG_Py_Void();
20187 return resultobj;
20188fail:
20189 return NULL;
20190}
20191
20192
20193SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20194 PyObject *resultobj = 0;
20195 wxDC *arg1 = (wxDC *) 0 ;
20196 wxPen *arg2 = 0 ;
20197 void *argp1 = 0 ;
20198 int res1 = 0 ;
20199 void *argp2 = 0 ;
20200 int res2 = 0 ;
20201 PyObject * obj0 = 0 ;
20202 PyObject * obj1 = 0 ;
20203 char * kwnames[] = {
20204 (char *) "self",(char *) "pen", NULL
20205 };
20206
20207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20209 if (!SWIG_IsOK(res1)) {
20210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20211 }
20212 arg1 = reinterpret_cast< wxDC * >(argp1);
20213 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20214 if (!SWIG_IsOK(res2)) {
20215 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20216 }
20217 if (!argp2) {
20218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20219 }
20220 arg2 = reinterpret_cast< wxPen * >(argp2);
20221 {
20222 PyThreadState* __tstate = wxPyBeginAllowThreads();
20223 (arg1)->SetPen((wxPen const &)*arg2);
20224 wxPyEndAllowThreads(__tstate);
20225 if (PyErr_Occurred()) SWIG_fail;
20226 }
20227 resultobj = SWIG_Py_Void();
20228 return resultobj;
20229fail:
20230 return NULL;
20231}
20232
20233
20234SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20235 PyObject *resultobj = 0;
20236 wxDC *arg1 = (wxDC *) 0 ;
20237 wxBrush *arg2 = 0 ;
20238 void *argp1 = 0 ;
20239 int res1 = 0 ;
20240 void *argp2 = 0 ;
20241 int res2 = 0 ;
20242 PyObject * obj0 = 0 ;
20243 PyObject * obj1 = 0 ;
20244 char * kwnames[] = {
20245 (char *) "self",(char *) "brush", NULL
20246 };
20247
20248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20250 if (!SWIG_IsOK(res1)) {
20251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20252 }
20253 arg1 = reinterpret_cast< wxDC * >(argp1);
20254 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20255 if (!SWIG_IsOK(res2)) {
20256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20257 }
20258 if (!argp2) {
20259 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20260 }
20261 arg2 = reinterpret_cast< wxBrush * >(argp2);
20262 {
20263 PyThreadState* __tstate = wxPyBeginAllowThreads();
20264 (arg1)->SetBrush((wxBrush const &)*arg2);
20265 wxPyEndAllowThreads(__tstate);
20266 if (PyErr_Occurred()) SWIG_fail;
20267 }
20268 resultobj = SWIG_Py_Void();
20269 return resultobj;
20270fail:
20271 return NULL;
20272}
20273
20274
20275SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20276 PyObject *resultobj = 0;
20277 wxDC *arg1 = (wxDC *) 0 ;
20278 wxBrush *arg2 = 0 ;
20279 void *argp1 = 0 ;
20280 int res1 = 0 ;
20281 void *argp2 = 0 ;
20282 int res2 = 0 ;
20283 PyObject * obj0 = 0 ;
20284 PyObject * obj1 = 0 ;
20285 char * kwnames[] = {
20286 (char *) "self",(char *) "brush", NULL
20287 };
20288
20289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20291 if (!SWIG_IsOK(res1)) {
20292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20293 }
20294 arg1 = reinterpret_cast< wxDC * >(argp1);
20295 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20296 if (!SWIG_IsOK(res2)) {
20297 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20298 }
20299 if (!argp2) {
20300 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20301 }
20302 arg2 = reinterpret_cast< wxBrush * >(argp2);
20303 {
20304 PyThreadState* __tstate = wxPyBeginAllowThreads();
20305 (arg1)->SetBackground((wxBrush const &)*arg2);
20306 wxPyEndAllowThreads(__tstate);
20307 if (PyErr_Occurred()) SWIG_fail;
20308 }
20309 resultobj = SWIG_Py_Void();
20310 return resultobj;
20311fail:
20312 return NULL;
20313}
20314
20315
20316SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20317 PyObject *resultobj = 0;
20318 wxDC *arg1 = (wxDC *) 0 ;
20319 int arg2 ;
20320 void *argp1 = 0 ;
20321 int res1 = 0 ;
20322 int val2 ;
20323 int ecode2 = 0 ;
20324 PyObject * obj0 = 0 ;
20325 PyObject * obj1 = 0 ;
20326 char * kwnames[] = {
20327 (char *) "self",(char *) "mode", NULL
20328 };
20329
20330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20332 if (!SWIG_IsOK(res1)) {
20333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20334 }
20335 arg1 = reinterpret_cast< wxDC * >(argp1);
20336 ecode2 = SWIG_AsVal_int(obj1, &val2);
20337 if (!SWIG_IsOK(ecode2)) {
20338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20339 }
20340 arg2 = static_cast< int >(val2);
20341 {
20342 PyThreadState* __tstate = wxPyBeginAllowThreads();
20343 (arg1)->SetBackgroundMode(arg2);
20344 wxPyEndAllowThreads(__tstate);
20345 if (PyErr_Occurred()) SWIG_fail;
20346 }
20347 resultobj = SWIG_Py_Void();
20348 return resultobj;
20349fail:
20350 return NULL;
20351}
20352
20353
20354SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20355 PyObject *resultobj = 0;
20356 wxDC *arg1 = (wxDC *) 0 ;
20357 wxPalette *arg2 = 0 ;
20358 void *argp1 = 0 ;
20359 int res1 = 0 ;
20360 void *argp2 = 0 ;
20361 int res2 = 0 ;
20362 PyObject * obj0 = 0 ;
20363 PyObject * obj1 = 0 ;
20364 char * kwnames[] = {
20365 (char *) "self",(char *) "palette", NULL
20366 };
20367
20368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20370 if (!SWIG_IsOK(res1)) {
20371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20372 }
20373 arg1 = reinterpret_cast< wxDC * >(argp1);
20374 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20375 if (!SWIG_IsOK(res2)) {
20376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20377 }
20378 if (!argp2) {
20379 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20380 }
20381 arg2 = reinterpret_cast< wxPalette * >(argp2);
20382 {
20383 PyThreadState* __tstate = wxPyBeginAllowThreads();
20384 (arg1)->SetPalette((wxPalette const &)*arg2);
20385 wxPyEndAllowThreads(__tstate);
20386 if (PyErr_Occurred()) SWIG_fail;
20387 }
20388 resultobj = SWIG_Py_Void();
20389 return resultobj;
20390fail:
20391 return NULL;
20392}
20393
20394
20395SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20396 PyObject *resultobj = 0;
20397 wxDC *arg1 = (wxDC *) 0 ;
20398 void *argp1 = 0 ;
20399 int res1 = 0 ;
20400 PyObject *swig_obj[1] ;
20401
20402 if (!args) SWIG_fail;
20403 swig_obj[0] = args;
20404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20405 if (!SWIG_IsOK(res1)) {
20406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20407 }
20408 arg1 = reinterpret_cast< wxDC * >(argp1);
20409 {
20410 PyThreadState* __tstate = wxPyBeginAllowThreads();
20411 (arg1)->DestroyClippingRegion();
20412 wxPyEndAllowThreads(__tstate);
20413 if (PyErr_Occurred()) SWIG_fail;
20414 }
20415 resultobj = SWIG_Py_Void();
20416 return resultobj;
20417fail:
20418 return NULL;
20419}
20420
20421
20422SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20423 PyObject *resultobj = 0;
20424 wxDC *arg1 = (wxDC *) 0 ;
20425 int *arg2 = (int *) 0 ;
20426 int *arg3 = (int *) 0 ;
20427 int *arg4 = (int *) 0 ;
20428 int *arg5 = (int *) 0 ;
20429 void *argp1 = 0 ;
20430 int res1 = 0 ;
20431 int temp2 ;
20432 int res2 = SWIG_TMPOBJ ;
20433 int temp3 ;
20434 int res3 = SWIG_TMPOBJ ;
20435 int temp4 ;
20436 int res4 = SWIG_TMPOBJ ;
20437 int temp5 ;
20438 int res5 = SWIG_TMPOBJ ;
20439 PyObject *swig_obj[1] ;
20440
20441 arg2 = &temp2;
20442 arg3 = &temp3;
20443 arg4 = &temp4;
20444 arg5 = &temp5;
20445 if (!args) SWIG_fail;
20446 swig_obj[0] = args;
20447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20448 if (!SWIG_IsOK(res1)) {
20449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20450 }
20451 arg1 = reinterpret_cast< wxDC * >(argp1);
20452 {
20453 PyThreadState* __tstate = wxPyBeginAllowThreads();
20454 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20455 wxPyEndAllowThreads(__tstate);
20456 if (PyErr_Occurred()) SWIG_fail;
20457 }
20458 resultobj = SWIG_Py_Void();
20459 if (SWIG_IsTmpObj(res2)) {
20460 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20461 } else {
20462 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20463 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20464 }
20465 if (SWIG_IsTmpObj(res3)) {
20466 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20467 } else {
20468 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20469 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20470 }
20471 if (SWIG_IsTmpObj(res4)) {
20472 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20473 } else {
20474 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20475 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20476 }
20477 if (SWIG_IsTmpObj(res5)) {
20478 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20479 } else {
20480 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20481 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20482 }
20483 return resultobj;
20484fail:
20485 return NULL;
20486}
20487
20488
20489SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20490 PyObject *resultobj = 0;
20491 wxDC *arg1 = (wxDC *) 0 ;
20492 wxRect result;
20493 void *argp1 = 0 ;
20494 int res1 = 0 ;
20495 PyObject *swig_obj[1] ;
20496
20497 if (!args) SWIG_fail;
20498 swig_obj[0] = args;
20499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20500 if (!SWIG_IsOK(res1)) {
20501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20502 }
20503 arg1 = reinterpret_cast< wxDC * >(argp1);
20504 {
20505 PyThreadState* __tstate = wxPyBeginAllowThreads();
20506 result = wxDC_GetClippingRect(arg1);
20507 wxPyEndAllowThreads(__tstate);
20508 if (PyErr_Occurred()) SWIG_fail;
20509 }
20510 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20511 return resultobj;
20512fail:
20513 return NULL;
20514}
20515
20516
20517SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20518 PyObject *resultobj = 0;
20519 wxDC *arg1 = (wxDC *) 0 ;
20520 int result;
20521 void *argp1 = 0 ;
20522 int res1 = 0 ;
20523 PyObject *swig_obj[1] ;
20524
20525 if (!args) SWIG_fail;
20526 swig_obj[0] = args;
20527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20528 if (!SWIG_IsOK(res1)) {
20529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20530 }
20531 arg1 = reinterpret_cast< wxDC * >(argp1);
20532 {
20533 PyThreadState* __tstate = wxPyBeginAllowThreads();
20534 result = (int)((wxDC const *)arg1)->GetCharHeight();
20535 wxPyEndAllowThreads(__tstate);
20536 if (PyErr_Occurred()) SWIG_fail;
20537 }
20538 resultobj = SWIG_From_int(static_cast< int >(result));
20539 return resultobj;
20540fail:
20541 return NULL;
20542}
20543
20544
20545SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20546 PyObject *resultobj = 0;
20547 wxDC *arg1 = (wxDC *) 0 ;
20548 int result;
20549 void *argp1 = 0 ;
20550 int res1 = 0 ;
20551 PyObject *swig_obj[1] ;
20552
20553 if (!args) SWIG_fail;
20554 swig_obj[0] = args;
20555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20556 if (!SWIG_IsOK(res1)) {
20557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20558 }
20559 arg1 = reinterpret_cast< wxDC * >(argp1);
20560 {
20561 PyThreadState* __tstate = wxPyBeginAllowThreads();
20562 result = (int)((wxDC const *)arg1)->GetCharWidth();
20563 wxPyEndAllowThreads(__tstate);
20564 if (PyErr_Occurred()) SWIG_fail;
20565 }
20566 resultobj = SWIG_From_int(static_cast< int >(result));
20567 return resultobj;
20568fail:
20569 return NULL;
20570}
20571
20572
20573SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20574 PyObject *resultobj = 0;
20575 wxDC *arg1 = (wxDC *) 0 ;
20576 wxString *arg2 = 0 ;
20577 int *arg3 = (int *) 0 ;
20578 int *arg4 = (int *) 0 ;
20579 void *argp1 = 0 ;
20580 int res1 = 0 ;
20581 bool temp2 = false ;
20582 int temp3 ;
20583 int res3 = SWIG_TMPOBJ ;
20584 int temp4 ;
20585 int res4 = SWIG_TMPOBJ ;
20586 PyObject * obj0 = 0 ;
20587 PyObject * obj1 = 0 ;
20588 char * kwnames[] = {
20589 (char *) "self",(char *) "string", NULL
20590 };
20591
20592 arg3 = &temp3;
20593 arg4 = &temp4;
20594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20596 if (!SWIG_IsOK(res1)) {
20597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20598 }
20599 arg1 = reinterpret_cast< wxDC * >(argp1);
20600 {
20601 arg2 = wxString_in_helper(obj1);
20602 if (arg2 == NULL) SWIG_fail;
20603 temp2 = true;
20604 }
20605 {
20606 PyThreadState* __tstate = wxPyBeginAllowThreads();
20607 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20608 wxPyEndAllowThreads(__tstate);
20609 if (PyErr_Occurred()) SWIG_fail;
20610 }
20611 resultobj = SWIG_Py_Void();
20612 if (SWIG_IsTmpObj(res3)) {
20613 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20614 } else {
20615 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20616 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20617 }
20618 if (SWIG_IsTmpObj(res4)) {
20619 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20620 } else {
20621 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20622 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20623 }
20624 {
20625 if (temp2)
20626 delete arg2;
20627 }
20628 return resultobj;
20629fail:
20630 {
20631 if (temp2)
20632 delete arg2;
20633 }
20634 return NULL;
20635}
20636
20637
20638SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20639 PyObject *resultobj = 0;
20640 wxDC *arg1 = (wxDC *) 0 ;
20641 wxString *arg2 = 0 ;
20642 int *arg3 = (int *) 0 ;
20643 int *arg4 = (int *) 0 ;
20644 int *arg5 = (int *) 0 ;
20645 int *arg6 = (int *) 0 ;
20646 wxFont *arg7 = (wxFont *) NULL ;
20647 void *argp1 = 0 ;
20648 int res1 = 0 ;
20649 bool temp2 = false ;
20650 int temp3 ;
20651 int res3 = SWIG_TMPOBJ ;
20652 int temp4 ;
20653 int res4 = SWIG_TMPOBJ ;
20654 int temp5 ;
20655 int res5 = SWIG_TMPOBJ ;
20656 int temp6 ;
20657 int res6 = SWIG_TMPOBJ ;
20658 void *argp7 = 0 ;
20659 int res7 = 0 ;
20660 PyObject * obj0 = 0 ;
20661 PyObject * obj1 = 0 ;
20662 PyObject * obj2 = 0 ;
20663 char * kwnames[] = {
20664 (char *) "self",(char *) "string",(char *) "font", NULL
20665 };
20666
20667 arg3 = &temp3;
20668 arg4 = &temp4;
20669 arg5 = &temp5;
20670 arg6 = &temp6;
20671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20673 if (!SWIG_IsOK(res1)) {
20674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20675 }
20676 arg1 = reinterpret_cast< wxDC * >(argp1);
20677 {
20678 arg2 = wxString_in_helper(obj1);
20679 if (arg2 == NULL) SWIG_fail;
20680 temp2 = true;
20681 }
20682 if (obj2) {
20683 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
20684 if (!SWIG_IsOK(res7)) {
20685 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
093d3ff1 20686 }
0085ce49
RD
20687 arg7 = reinterpret_cast< wxFont * >(argp7);
20688 }
20689 {
20690 PyThreadState* __tstate = wxPyBeginAllowThreads();
20691 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
20692 wxPyEndAllowThreads(__tstate);
20693 if (PyErr_Occurred()) SWIG_fail;
20694 }
20695 resultobj = SWIG_Py_Void();
20696 if (SWIG_IsTmpObj(res3)) {
20697 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20698 } else {
20699 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20700 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20701 }
20702 if (SWIG_IsTmpObj(res4)) {
20703 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20704 } else {
20705 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20706 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20707 }
20708 if (SWIG_IsTmpObj(res5)) {
20709 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20710 } else {
20711 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20712 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20713 }
20714 if (SWIG_IsTmpObj(res6)) {
20715 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
20716 } else {
20717 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20718 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
20719 }
20720 {
20721 if (temp2)
20722 delete arg2;
20723 }
20724 return resultobj;
20725fail:
20726 {
20727 if (temp2)
20728 delete arg2;
20729 }
20730 return NULL;
20731}
20732
20733
20734SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20735 PyObject *resultobj = 0;
20736 wxDC *arg1 = (wxDC *) 0 ;
20737 wxString *arg2 = 0 ;
20738 int *arg3 = (int *) 0 ;
20739 int *arg4 = (int *) 0 ;
20740 int *arg5 = (int *) 0 ;
20741 wxFont *arg6 = (wxFont *) NULL ;
20742 void *argp1 = 0 ;
20743 int res1 = 0 ;
20744 bool temp2 = false ;
20745 int temp3 ;
20746 int res3 = SWIG_TMPOBJ ;
20747 int temp4 ;
20748 int res4 = SWIG_TMPOBJ ;
20749 int temp5 ;
20750 int res5 = SWIG_TMPOBJ ;
20751 void *argp6 = 0 ;
20752 int res6 = 0 ;
20753 PyObject * obj0 = 0 ;
20754 PyObject * obj1 = 0 ;
20755 PyObject * obj2 = 0 ;
20756 char * kwnames[] = {
20757 (char *) "self",(char *) "text",(char *) "font", NULL
20758 };
20759
20760 arg3 = &temp3;
20761 arg4 = &temp4;
20762 arg5 = &temp5;
20763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20765 if (!SWIG_IsOK(res1)) {
20766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20767 }
20768 arg1 = reinterpret_cast< wxDC * >(argp1);
20769 {
20770 arg2 = wxString_in_helper(obj1);
20771 if (arg2 == NULL) SWIG_fail;
20772 temp2 = true;
20773 }
20774 if (obj2) {
20775 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
20776 if (!SWIG_IsOK(res6)) {
20777 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
093d3ff1 20778 }
0085ce49
RD
20779 arg6 = reinterpret_cast< wxFont * >(argp6);
20780 }
20781 {
20782 PyThreadState* __tstate = wxPyBeginAllowThreads();
20783 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
20784 wxPyEndAllowThreads(__tstate);
20785 if (PyErr_Occurred()) SWIG_fail;
20786 }
20787 resultobj = SWIG_Py_Void();
20788 if (SWIG_IsTmpObj(res3)) {
20789 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20790 } else {
20791 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20792 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20793 }
20794 if (SWIG_IsTmpObj(res4)) {
20795 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20796 } else {
20797 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20798 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20799 }
20800 if (SWIG_IsTmpObj(res5)) {
20801 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20802 } else {
20803 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20804 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20805 }
20806 {
20807 if (temp2)
20808 delete arg2;
20809 }
20810 return resultobj;
20811fail:
20812 {
20813 if (temp2)
20814 delete arg2;
20815 }
20816 return NULL;
20817}
20818
20819
20820SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20821 PyObject *resultobj = 0;
20822 wxDC *arg1 = (wxDC *) 0 ;
20823 wxString *arg2 = 0 ;
20824 wxArrayInt result;
20825 void *argp1 = 0 ;
20826 int res1 = 0 ;
20827 bool temp2 = false ;
20828 PyObject * obj0 = 0 ;
20829 PyObject * obj1 = 0 ;
20830 char * kwnames[] = {
20831 (char *) "self",(char *) "text", NULL
20832 };
20833
20834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
20835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20836 if (!SWIG_IsOK(res1)) {
20837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
20838 }
20839 arg1 = reinterpret_cast< wxDC * >(argp1);
20840 {
20841 arg2 = wxString_in_helper(obj1);
20842 if (arg2 == NULL) SWIG_fail;
20843 temp2 = true;
20844 }
20845 {
20846 PyThreadState* __tstate = wxPyBeginAllowThreads();
20847 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
20848 wxPyEndAllowThreads(__tstate);
20849 if (PyErr_Occurred()) SWIG_fail;
20850 }
20851 {
20852 resultobj = PyList_New(0);
20853 size_t idx;
20854 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
20855 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
20856 PyList_Append(resultobj, val);
20857 Py_DECREF(val);
093d3ff1 20858 }
0085ce49
RD
20859 }
20860 {
20861 if (temp2)
20862 delete arg2;
20863 }
20864 return resultobj;
20865fail:
20866 {
20867 if (temp2)
20868 delete arg2;
20869 }
20870 return NULL;
20871}
20872
20873
20874SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20875 PyObject *resultobj = 0;
20876 wxDC *arg1 = (wxDC *) 0 ;
20877 wxSize result;
20878 void *argp1 = 0 ;
20879 int res1 = 0 ;
20880 PyObject *swig_obj[1] ;
20881
20882 if (!args) SWIG_fail;
20883 swig_obj[0] = args;
20884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20885 if (!SWIG_IsOK(res1)) {
20886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
20887 }
20888 arg1 = reinterpret_cast< wxDC * >(argp1);
20889 {
20890 PyThreadState* __tstate = wxPyBeginAllowThreads();
20891 result = (arg1)->GetSize();
20892 wxPyEndAllowThreads(__tstate);
20893 if (PyErr_Occurred()) SWIG_fail;
20894 }
20895 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20896 return resultobj;
20897fail:
20898 return NULL;
20899}
20900
20901
20902SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20903 PyObject *resultobj = 0;
20904 wxDC *arg1 = (wxDC *) 0 ;
20905 int *arg2 = (int *) 0 ;
20906 int *arg3 = (int *) 0 ;
20907 void *argp1 = 0 ;
20908 int res1 = 0 ;
20909 int temp2 ;
20910 int res2 = SWIG_TMPOBJ ;
20911 int temp3 ;
20912 int res3 = SWIG_TMPOBJ ;
20913 PyObject *swig_obj[1] ;
20914
20915 arg2 = &temp2;
20916 arg3 = &temp3;
20917 if (!args) SWIG_fail;
20918 swig_obj[0] = args;
20919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20920 if (!SWIG_IsOK(res1)) {
20921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
20922 }
20923 arg1 = reinterpret_cast< wxDC * >(argp1);
20924 {
20925 PyThreadState* __tstate = wxPyBeginAllowThreads();
20926 (arg1)->GetSize(arg2,arg3);
20927 wxPyEndAllowThreads(__tstate);
20928 if (PyErr_Occurred()) SWIG_fail;
20929 }
20930 resultobj = SWIG_Py_Void();
20931 if (SWIG_IsTmpObj(res2)) {
20932 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20933 } else {
20934 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20935 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20936 }
20937 if (SWIG_IsTmpObj(res3)) {
20938 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20939 } else {
20940 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20941 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20942 }
20943 return resultobj;
20944fail:
20945 return NULL;
20946}
20947
20948
20949SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20950 PyObject *resultobj = 0;
20951 wxDC *arg1 = (wxDC *) 0 ;
20952 wxSize result;
20953 void *argp1 = 0 ;
20954 int res1 = 0 ;
20955 PyObject *swig_obj[1] ;
20956
20957 if (!args) SWIG_fail;
20958 swig_obj[0] = args;
20959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20960 if (!SWIG_IsOK(res1)) {
20961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
20962 }
20963 arg1 = reinterpret_cast< wxDC * >(argp1);
20964 {
20965 PyThreadState* __tstate = wxPyBeginAllowThreads();
20966 result = ((wxDC const *)arg1)->GetSizeMM();
20967 wxPyEndAllowThreads(__tstate);
20968 if (PyErr_Occurred()) SWIG_fail;
20969 }
20970 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20971 return resultobj;
20972fail:
20973 return NULL;
20974}
20975
20976
20977SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20978 PyObject *resultobj = 0;
20979 wxDC *arg1 = (wxDC *) 0 ;
20980 int *arg2 = (int *) 0 ;
20981 int *arg3 = (int *) 0 ;
20982 void *argp1 = 0 ;
20983 int res1 = 0 ;
20984 int temp2 ;
20985 int res2 = SWIG_TMPOBJ ;
20986 int temp3 ;
20987 int res3 = SWIG_TMPOBJ ;
20988 PyObject *swig_obj[1] ;
20989
20990 arg2 = &temp2;
20991 arg3 = &temp3;
20992 if (!args) SWIG_fail;
20993 swig_obj[0] = args;
20994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20995 if (!SWIG_IsOK(res1)) {
20996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20997 }
20998 arg1 = reinterpret_cast< wxDC * >(argp1);
20999 {
21000 PyThreadState* __tstate = wxPyBeginAllowThreads();
21001 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21002 wxPyEndAllowThreads(__tstate);
21003 if (PyErr_Occurred()) SWIG_fail;
21004 }
21005 resultobj = SWIG_Py_Void();
21006 if (SWIG_IsTmpObj(res2)) {
21007 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21008 } else {
21009 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21010 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21011 }
21012 if (SWIG_IsTmpObj(res3)) {
21013 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21014 } else {
21015 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21016 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21017 }
21018 return resultobj;
21019fail:
21020 return NULL;
21021}
21022
21023
21024SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21025 PyObject *resultobj = 0;
21026 wxDC *arg1 = (wxDC *) 0 ;
21027 int arg2 ;
21028 int result;
21029 void *argp1 = 0 ;
21030 int res1 = 0 ;
21031 int val2 ;
21032 int ecode2 = 0 ;
21033 PyObject * obj0 = 0 ;
21034 PyObject * obj1 = 0 ;
21035 char * kwnames[] = {
21036 (char *) "self",(char *) "x", NULL
21037 };
21038
21039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21041 if (!SWIG_IsOK(res1)) {
21042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21043 }
21044 arg1 = reinterpret_cast< wxDC * >(argp1);
21045 ecode2 = SWIG_AsVal_int(obj1, &val2);
21046 if (!SWIG_IsOK(ecode2)) {
21047 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21048 }
21049 arg2 = static_cast< int >(val2);
21050 {
21051 PyThreadState* __tstate = wxPyBeginAllowThreads();
21052 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21053 wxPyEndAllowThreads(__tstate);
21054 if (PyErr_Occurred()) SWIG_fail;
21055 }
21056 resultobj = SWIG_From_int(static_cast< int >(result));
21057 return resultobj;
21058fail:
21059 return NULL;
21060}
21061
21062
21063SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21064 PyObject *resultobj = 0;
21065 wxDC *arg1 = (wxDC *) 0 ;
21066 int arg2 ;
21067 int result;
21068 void *argp1 = 0 ;
21069 int res1 = 0 ;
21070 int val2 ;
21071 int ecode2 = 0 ;
21072 PyObject * obj0 = 0 ;
21073 PyObject * obj1 = 0 ;
21074 char * kwnames[] = {
21075 (char *) "self",(char *) "y", NULL
21076 };
21077
21078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21080 if (!SWIG_IsOK(res1)) {
21081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21082 }
21083 arg1 = reinterpret_cast< wxDC * >(argp1);
21084 ecode2 = SWIG_AsVal_int(obj1, &val2);
21085 if (!SWIG_IsOK(ecode2)) {
21086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21087 }
21088 arg2 = static_cast< int >(val2);
21089 {
21090 PyThreadState* __tstate = wxPyBeginAllowThreads();
21091 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21092 wxPyEndAllowThreads(__tstate);
21093 if (PyErr_Occurred()) SWIG_fail;
21094 }
21095 resultobj = SWIG_From_int(static_cast< int >(result));
21096 return resultobj;
21097fail:
21098 return NULL;
21099}
21100
21101
21102SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21103 PyObject *resultobj = 0;
21104 wxDC *arg1 = (wxDC *) 0 ;
21105 int arg2 ;
21106 int result;
21107 void *argp1 = 0 ;
21108 int res1 = 0 ;
21109 int val2 ;
21110 int ecode2 = 0 ;
21111 PyObject * obj0 = 0 ;
21112 PyObject * obj1 = 0 ;
21113 char * kwnames[] = {
21114 (char *) "self",(char *) "x", NULL
21115 };
21116
21117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21119 if (!SWIG_IsOK(res1)) {
21120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21121 }
21122 arg1 = reinterpret_cast< wxDC * >(argp1);
21123 ecode2 = SWIG_AsVal_int(obj1, &val2);
21124 if (!SWIG_IsOK(ecode2)) {
21125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21126 }
21127 arg2 = static_cast< int >(val2);
21128 {
21129 PyThreadState* __tstate = wxPyBeginAllowThreads();
21130 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21131 wxPyEndAllowThreads(__tstate);
21132 if (PyErr_Occurred()) SWIG_fail;
21133 }
21134 resultobj = SWIG_From_int(static_cast< int >(result));
21135 return resultobj;
21136fail:
21137 return NULL;
21138}
21139
21140
21141SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21142 PyObject *resultobj = 0;
21143 wxDC *arg1 = (wxDC *) 0 ;
21144 int arg2 ;
21145 int result;
21146 void *argp1 = 0 ;
21147 int res1 = 0 ;
21148 int val2 ;
21149 int ecode2 = 0 ;
21150 PyObject * obj0 = 0 ;
21151 PyObject * obj1 = 0 ;
21152 char * kwnames[] = {
21153 (char *) "self",(char *) "y", NULL
21154 };
21155
21156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21158 if (!SWIG_IsOK(res1)) {
21159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21160 }
21161 arg1 = reinterpret_cast< wxDC * >(argp1);
21162 ecode2 = SWIG_AsVal_int(obj1, &val2);
21163 if (!SWIG_IsOK(ecode2)) {
21164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21165 }
21166 arg2 = static_cast< int >(val2);
21167 {
21168 PyThreadState* __tstate = wxPyBeginAllowThreads();
21169 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21170 wxPyEndAllowThreads(__tstate);
21171 if (PyErr_Occurred()) SWIG_fail;
21172 }
21173 resultobj = SWIG_From_int(static_cast< int >(result));
21174 return resultobj;
21175fail:
21176 return NULL;
21177}
21178
21179
21180SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21181 PyObject *resultobj = 0;
21182 wxDC *arg1 = (wxDC *) 0 ;
21183 int arg2 ;
21184 int result;
21185 void *argp1 = 0 ;
21186 int res1 = 0 ;
21187 int val2 ;
21188 int ecode2 = 0 ;
21189 PyObject * obj0 = 0 ;
21190 PyObject * obj1 = 0 ;
21191 char * kwnames[] = {
21192 (char *) "self",(char *) "x", NULL
21193 };
21194
21195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21197 if (!SWIG_IsOK(res1)) {
21198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21199 }
21200 arg1 = reinterpret_cast< wxDC * >(argp1);
21201 ecode2 = SWIG_AsVal_int(obj1, &val2);
21202 if (!SWIG_IsOK(ecode2)) {
21203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21204 }
21205 arg2 = static_cast< int >(val2);
21206 {
21207 PyThreadState* __tstate = wxPyBeginAllowThreads();
21208 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21209 wxPyEndAllowThreads(__tstate);
21210 if (PyErr_Occurred()) SWIG_fail;
21211 }
21212 resultobj = SWIG_From_int(static_cast< int >(result));
21213 return resultobj;
21214fail:
21215 return NULL;
21216}
21217
21218
21219SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21220 PyObject *resultobj = 0;
21221 wxDC *arg1 = (wxDC *) 0 ;
21222 int arg2 ;
21223 int result;
21224 void *argp1 = 0 ;
21225 int res1 = 0 ;
21226 int val2 ;
21227 int ecode2 = 0 ;
21228 PyObject * obj0 = 0 ;
21229 PyObject * obj1 = 0 ;
21230 char * kwnames[] = {
21231 (char *) "self",(char *) "y", NULL
21232 };
21233
21234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21236 if (!SWIG_IsOK(res1)) {
21237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21238 }
21239 arg1 = reinterpret_cast< wxDC * >(argp1);
21240 ecode2 = SWIG_AsVal_int(obj1, &val2);
21241 if (!SWIG_IsOK(ecode2)) {
21242 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21243 }
21244 arg2 = static_cast< int >(val2);
21245 {
21246 PyThreadState* __tstate = wxPyBeginAllowThreads();
21247 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21248 wxPyEndAllowThreads(__tstate);
21249 if (PyErr_Occurred()) SWIG_fail;
21250 }
21251 resultobj = SWIG_From_int(static_cast< int >(result));
21252 return resultobj;
21253fail:
21254 return NULL;
21255}
21256
21257
21258SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21259 PyObject *resultobj = 0;
21260 wxDC *arg1 = (wxDC *) 0 ;
21261 int arg2 ;
21262 int result;
21263 void *argp1 = 0 ;
21264 int res1 = 0 ;
21265 int val2 ;
21266 int ecode2 = 0 ;
21267 PyObject * obj0 = 0 ;
21268 PyObject * obj1 = 0 ;
21269 char * kwnames[] = {
21270 (char *) "self",(char *) "x", NULL
21271 };
21272
21273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21275 if (!SWIG_IsOK(res1)) {
21276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21277 }
21278 arg1 = reinterpret_cast< wxDC * >(argp1);
21279 ecode2 = SWIG_AsVal_int(obj1, &val2);
21280 if (!SWIG_IsOK(ecode2)) {
21281 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21282 }
21283 arg2 = static_cast< int >(val2);
21284 {
21285 PyThreadState* __tstate = wxPyBeginAllowThreads();
21286 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21287 wxPyEndAllowThreads(__tstate);
21288 if (PyErr_Occurred()) SWIG_fail;
21289 }
21290 resultobj = SWIG_From_int(static_cast< int >(result));
21291 return resultobj;
21292fail:
21293 return NULL;
21294}
21295
21296
21297SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21298 PyObject *resultobj = 0;
21299 wxDC *arg1 = (wxDC *) 0 ;
21300 int arg2 ;
21301 int result;
21302 void *argp1 = 0 ;
21303 int res1 = 0 ;
21304 int val2 ;
21305 int ecode2 = 0 ;
21306 PyObject * obj0 = 0 ;
21307 PyObject * obj1 = 0 ;
21308 char * kwnames[] = {
21309 (char *) "self",(char *) "y", NULL
21310 };
21311
21312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21314 if (!SWIG_IsOK(res1)) {
21315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21316 }
21317 arg1 = reinterpret_cast< wxDC * >(argp1);
21318 ecode2 = SWIG_AsVal_int(obj1, &val2);
21319 if (!SWIG_IsOK(ecode2)) {
21320 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21321 }
21322 arg2 = static_cast< int >(val2);
21323 {
21324 PyThreadState* __tstate = wxPyBeginAllowThreads();
21325 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21326 wxPyEndAllowThreads(__tstate);
21327 if (PyErr_Occurred()) SWIG_fail;
21328 }
21329 resultobj = SWIG_From_int(static_cast< int >(result));
21330 return resultobj;
21331fail:
21332 return NULL;
21333}
21334
21335
21336SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21337 PyObject *resultobj = 0;
21338 wxDC *arg1 = (wxDC *) 0 ;
21339 bool result;
21340 void *argp1 = 0 ;
21341 int res1 = 0 ;
21342 PyObject *swig_obj[1] ;
21343
21344 if (!args) SWIG_fail;
21345 swig_obj[0] = args;
21346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21347 if (!SWIG_IsOK(res1)) {
21348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21349 }
21350 arg1 = reinterpret_cast< wxDC * >(argp1);
21351 {
21352 PyThreadState* __tstate = wxPyBeginAllowThreads();
21353 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21354 wxPyEndAllowThreads(__tstate);
21355 if (PyErr_Occurred()) SWIG_fail;
21356 }
21357 {
21358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21359 }
21360 return resultobj;
21361fail:
21362 return NULL;
21363}
21364
21365
21366SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21367 PyObject *resultobj = 0;
21368 wxDC *arg1 = (wxDC *) 0 ;
21369 bool result;
21370 void *argp1 = 0 ;
21371 int res1 = 0 ;
21372 PyObject *swig_obj[1] ;
21373
21374 if (!args) SWIG_fail;
21375 swig_obj[0] = args;
21376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21377 if (!SWIG_IsOK(res1)) {
21378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21379 }
21380 arg1 = reinterpret_cast< wxDC * >(argp1);
21381 {
21382 PyThreadState* __tstate = wxPyBeginAllowThreads();
21383 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21384 wxPyEndAllowThreads(__tstate);
21385 if (PyErr_Occurred()) SWIG_fail;
21386 }
21387 {
21388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21389 }
21390 return resultobj;
21391fail:
21392 return NULL;
21393}
21394
21395
21396SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21397 PyObject *resultobj = 0;
21398 wxDC *arg1 = (wxDC *) 0 ;
21399 int result;
21400 void *argp1 = 0 ;
21401 int res1 = 0 ;
21402 PyObject *swig_obj[1] ;
21403
21404 if (!args) SWIG_fail;
21405 swig_obj[0] = args;
21406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21407 if (!SWIG_IsOK(res1)) {
21408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21409 }
21410 arg1 = reinterpret_cast< wxDC * >(argp1);
21411 {
21412 PyThreadState* __tstate = wxPyBeginAllowThreads();
21413 result = (int)((wxDC const *)arg1)->GetDepth();
21414 wxPyEndAllowThreads(__tstate);
21415 if (PyErr_Occurred()) SWIG_fail;
21416 }
21417 resultobj = SWIG_From_int(static_cast< int >(result));
21418 return resultobj;
21419fail:
21420 return NULL;
21421}
21422
21423
21424SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21425 PyObject *resultobj = 0;
21426 wxDC *arg1 = (wxDC *) 0 ;
21427 wxSize 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_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21437 }
21438 arg1 = reinterpret_cast< wxDC * >(argp1);
21439 {
21440 PyThreadState* __tstate = wxPyBeginAllowThreads();
21441 result = ((wxDC const *)arg1)->GetPPI();
21442 wxPyEndAllowThreads(__tstate);
21443 if (PyErr_Occurred()) SWIG_fail;
21444 }
21445 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21446 return resultobj;
21447fail:
21448 return NULL;
21449}
21450
21451
21452SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21453 PyObject *resultobj = 0;
21454 wxDC *arg1 = (wxDC *) 0 ;
21455 bool 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_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
21465 }
21466 arg1 = reinterpret_cast< wxDC * >(argp1);
21467 {
21468 PyThreadState* __tstate = wxPyBeginAllowThreads();
21469 result = (bool)((wxDC const *)arg1)->Ok();
21470 wxPyEndAllowThreads(__tstate);
21471 if (PyErr_Occurred()) SWIG_fail;
21472 }
21473 {
21474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21475 }
21476 return resultobj;
21477fail:
21478 return NULL;
21479}
21480
21481
21482SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21483 PyObject *resultobj = 0;
21484 wxDC *arg1 = (wxDC *) 0 ;
21485 int result;
21486 void *argp1 = 0 ;
21487 int res1 = 0 ;
21488 PyObject *swig_obj[1] ;
21489
21490 if (!args) SWIG_fail;
21491 swig_obj[0] = args;
21492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21493 if (!SWIG_IsOK(res1)) {
21494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21495 }
21496 arg1 = reinterpret_cast< wxDC * >(argp1);
21497 {
21498 PyThreadState* __tstate = wxPyBeginAllowThreads();
21499 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21500 wxPyEndAllowThreads(__tstate);
21501 if (PyErr_Occurred()) SWIG_fail;
21502 }
21503 resultobj = SWIG_From_int(static_cast< int >(result));
21504 return resultobj;
21505fail:
21506 return NULL;
21507}
21508
21509
21510SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21511 PyObject *resultobj = 0;
21512 wxDC *arg1 = (wxDC *) 0 ;
21513 wxBrush *result = 0 ;
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_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21523 }
21524 arg1 = reinterpret_cast< wxDC * >(argp1);
21525 {
21526 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21527 {
0085ce49
RD
21528 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21529 result = (wxBrush *) &_result_ref;
093d3ff1 21530 }
0085ce49
RD
21531 wxPyEndAllowThreads(__tstate);
21532 if (PyErr_Occurred()) SWIG_fail;
21533 }
21534 {
21535 wxBrush* resultptr = new wxBrush(*result);
21536 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21537 }
21538 return resultobj;
21539fail:
21540 return NULL;
21541}
21542
21543
21544SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21545 PyObject *resultobj = 0;
21546 wxDC *arg1 = (wxDC *) 0 ;
21547 wxBrush *result = 0 ;
21548 void *argp1 = 0 ;
21549 int res1 = 0 ;
21550 PyObject *swig_obj[1] ;
21551
21552 if (!args) SWIG_fail;
21553 swig_obj[0] = args;
21554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21555 if (!SWIG_IsOK(res1)) {
21556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21557 }
21558 arg1 = reinterpret_cast< wxDC * >(argp1);
21559 {
21560 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21561 {
0085ce49
RD
21562 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21563 result = (wxBrush *) &_result_ref;
093d3ff1 21564 }
0085ce49
RD
21565 wxPyEndAllowThreads(__tstate);
21566 if (PyErr_Occurred()) SWIG_fail;
21567 }
21568 {
21569 wxBrush* resultptr = new wxBrush(*result);
21570 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21571 }
21572 return resultobj;
21573fail:
21574 return NULL;
21575}
21576
21577
21578SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21579 PyObject *resultobj = 0;
21580 wxDC *arg1 = (wxDC *) 0 ;
21581 wxFont *result = 0 ;
21582 void *argp1 = 0 ;
21583 int res1 = 0 ;
21584 PyObject *swig_obj[1] ;
21585
21586 if (!args) SWIG_fail;
21587 swig_obj[0] = args;
21588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21589 if (!SWIG_IsOK(res1)) {
21590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21591 }
21592 arg1 = reinterpret_cast< wxDC * >(argp1);
21593 {
21594 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21595 {
0085ce49
RD
21596 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21597 result = (wxFont *) &_result_ref;
093d3ff1 21598 }
0085ce49
RD
21599 wxPyEndAllowThreads(__tstate);
21600 if (PyErr_Occurred()) SWIG_fail;
21601 }
21602 {
21603 wxFont* resultptr = new wxFont(*result);
21604 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21605 }
21606 return resultobj;
21607fail:
21608 return NULL;
21609}
21610
21611
21612SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21613 PyObject *resultobj = 0;
21614 wxDC *arg1 = (wxDC *) 0 ;
21615 wxPen *result = 0 ;
21616 void *argp1 = 0 ;
21617 int res1 = 0 ;
21618 PyObject *swig_obj[1] ;
21619
21620 if (!args) SWIG_fail;
21621 swig_obj[0] = args;
21622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21623 if (!SWIG_IsOK(res1)) {
21624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21625 }
21626 arg1 = reinterpret_cast< wxDC * >(argp1);
21627 {
21628 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21629 {
0085ce49
RD
21630 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21631 result = (wxPen *) &_result_ref;
093d3ff1 21632 }
0085ce49
RD
21633 wxPyEndAllowThreads(__tstate);
21634 if (PyErr_Occurred()) SWIG_fail;
21635 }
21636 {
21637 wxPen* resultptr = new wxPen(*result);
21638 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21639 }
21640 return resultobj;
21641fail:
21642 return NULL;
21643}
21644
21645
21646SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21647 PyObject *resultobj = 0;
21648 wxDC *arg1 = (wxDC *) 0 ;
21649 wxColour *result = 0 ;
21650 void *argp1 = 0 ;
21651 int res1 = 0 ;
21652 PyObject *swig_obj[1] ;
21653
21654 if (!args) SWIG_fail;
21655 swig_obj[0] = args;
21656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21657 if (!SWIG_IsOK(res1)) {
21658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21659 }
21660 arg1 = reinterpret_cast< wxDC * >(argp1);
21661 {
21662 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21663 {
0085ce49
RD
21664 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
21665 result = (wxColour *) &_result_ref;
093d3ff1 21666 }
0085ce49
RD
21667 wxPyEndAllowThreads(__tstate);
21668 if (PyErr_Occurred()) SWIG_fail;
21669 }
21670 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21671 return resultobj;
21672fail:
21673 return NULL;
21674}
21675
21676
21677SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21678 PyObject *resultobj = 0;
21679 wxDC *arg1 = (wxDC *) 0 ;
21680 wxColour *result = 0 ;
21681 void *argp1 = 0 ;
21682 int res1 = 0 ;
21683 PyObject *swig_obj[1] ;
21684
21685 if (!args) SWIG_fail;
21686 swig_obj[0] = args;
21687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21688 if (!SWIG_IsOK(res1)) {
21689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
21690 }
21691 arg1 = reinterpret_cast< wxDC * >(argp1);
21692 {
21693 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21694 {
0085ce49
RD
21695 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
21696 result = (wxColour *) &_result_ref;
093d3ff1 21697 }
0085ce49
RD
21698 wxPyEndAllowThreads(__tstate);
21699 if (PyErr_Occurred()) SWIG_fail;
21700 }
21701 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21702 return resultobj;
21703fail:
21704 return NULL;
21705}
21706
21707
21708SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21709 PyObject *resultobj = 0;
21710 wxDC *arg1 = (wxDC *) 0 ;
21711 wxColour *arg2 = 0 ;
21712 void *argp1 = 0 ;
21713 int res1 = 0 ;
21714 wxColour temp2 ;
21715 PyObject * obj0 = 0 ;
21716 PyObject * obj1 = 0 ;
21717 char * kwnames[] = {
21718 (char *) "self",(char *) "colour", NULL
21719 };
21720
21721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
21722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21723 if (!SWIG_IsOK(res1)) {
21724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
21725 }
21726 arg1 = reinterpret_cast< wxDC * >(argp1);
21727 {
21728 arg2 = &temp2;
21729 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21730 }
21731 {
21732 PyThreadState* __tstate = wxPyBeginAllowThreads();
21733 (arg1)->SetTextForeground((wxColour const &)*arg2);
21734 wxPyEndAllowThreads(__tstate);
21735 if (PyErr_Occurred()) SWIG_fail;
21736 }
21737 resultobj = SWIG_Py_Void();
21738 return resultobj;
21739fail:
21740 return NULL;
21741}
21742
21743
21744SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21745 PyObject *resultobj = 0;
21746 wxDC *arg1 = (wxDC *) 0 ;
21747 wxColour *arg2 = 0 ;
21748 void *argp1 = 0 ;
21749 int res1 = 0 ;
21750 wxColour temp2 ;
21751 PyObject * obj0 = 0 ;
21752 PyObject * obj1 = 0 ;
21753 char * kwnames[] = {
21754 (char *) "self",(char *) "colour", NULL
21755 };
21756
21757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21759 if (!SWIG_IsOK(res1)) {
21760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21761 }
21762 arg1 = reinterpret_cast< wxDC * >(argp1);
21763 {
21764 arg2 = &temp2;
21765 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21766 }
21767 {
21768 PyThreadState* __tstate = wxPyBeginAllowThreads();
21769 (arg1)->SetTextBackground((wxColour const &)*arg2);
21770 wxPyEndAllowThreads(__tstate);
21771 if (PyErr_Occurred()) SWIG_fail;
21772 }
21773 resultobj = SWIG_Py_Void();
21774 return resultobj;
21775fail:
21776 return NULL;
21777}
21778
21779
21780SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21781 PyObject *resultobj = 0;
21782 wxDC *arg1 = (wxDC *) 0 ;
21783 int result;
21784 void *argp1 = 0 ;
21785 int res1 = 0 ;
21786 PyObject *swig_obj[1] ;
21787
21788 if (!args) SWIG_fail;
21789 swig_obj[0] = args;
21790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21791 if (!SWIG_IsOK(res1)) {
21792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21793 }
21794 arg1 = reinterpret_cast< wxDC * >(argp1);
21795 {
21796 PyThreadState* __tstate = wxPyBeginAllowThreads();
21797 result = (int)((wxDC const *)arg1)->GetMapMode();
21798 wxPyEndAllowThreads(__tstate);
21799 if (PyErr_Occurred()) SWIG_fail;
21800 }
21801 resultobj = SWIG_From_int(static_cast< int >(result));
21802 return resultobj;
21803fail:
21804 return NULL;
21805}
21806
21807
21808SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21809 PyObject *resultobj = 0;
21810 wxDC *arg1 = (wxDC *) 0 ;
21811 int arg2 ;
21812 void *argp1 = 0 ;
21813 int res1 = 0 ;
21814 int val2 ;
21815 int ecode2 = 0 ;
21816 PyObject * obj0 = 0 ;
21817 PyObject * obj1 = 0 ;
21818 char * kwnames[] = {
21819 (char *) "self",(char *) "mode", NULL
21820 };
21821
21822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
21823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21824 if (!SWIG_IsOK(res1)) {
21825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
21826 }
21827 arg1 = reinterpret_cast< wxDC * >(argp1);
21828 ecode2 = SWIG_AsVal_int(obj1, &val2);
21829 if (!SWIG_IsOK(ecode2)) {
21830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
21831 }
21832 arg2 = static_cast< int >(val2);
21833 {
21834 PyThreadState* __tstate = wxPyBeginAllowThreads();
21835 (arg1)->SetMapMode(arg2);
21836 wxPyEndAllowThreads(__tstate);
21837 if (PyErr_Occurred()) SWIG_fail;
21838 }
21839 resultobj = SWIG_Py_Void();
21840 return resultobj;
21841fail:
21842 return NULL;
21843}
21844
21845
21846SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21847 PyObject *resultobj = 0;
21848 wxDC *arg1 = (wxDC *) 0 ;
21849 double *arg2 = (double *) 0 ;
21850 double *arg3 = (double *) 0 ;
21851 void *argp1 = 0 ;
21852 int res1 = 0 ;
21853 double temp2 ;
21854 int res2 = SWIG_TMPOBJ ;
21855 double temp3 ;
21856 int res3 = SWIG_TMPOBJ ;
21857 PyObject *swig_obj[1] ;
21858
21859 arg2 = &temp2;
21860 arg3 = &temp3;
21861 if (!args) SWIG_fail;
21862 swig_obj[0] = args;
21863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21864 if (!SWIG_IsOK(res1)) {
21865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
21866 }
21867 arg1 = reinterpret_cast< wxDC * >(argp1);
21868 {
21869 PyThreadState* __tstate = wxPyBeginAllowThreads();
21870 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
21871 wxPyEndAllowThreads(__tstate);
21872 if (PyErr_Occurred()) SWIG_fail;
21873 }
21874 resultobj = SWIG_Py_Void();
21875 if (SWIG_IsTmpObj(res2)) {
21876 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21877 } else {
21878 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21879 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21880 }
21881 if (SWIG_IsTmpObj(res3)) {
21882 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21883 } else {
21884 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21885 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21886 }
21887 return resultobj;
21888fail:
21889 return NULL;
21890}
21891
21892
21893SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21894 PyObject *resultobj = 0;
21895 wxDC *arg1 = (wxDC *) 0 ;
21896 double arg2 ;
21897 double arg3 ;
21898 void *argp1 = 0 ;
21899 int res1 = 0 ;
21900 double val2 ;
21901 int ecode2 = 0 ;
21902 double val3 ;
21903 int ecode3 = 0 ;
21904 PyObject * obj0 = 0 ;
21905 PyObject * obj1 = 0 ;
21906 PyObject * obj2 = 0 ;
21907 char * kwnames[] = {
21908 (char *) "self",(char *) "x",(char *) "y", NULL
21909 };
21910
21911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21913 if (!SWIG_IsOK(res1)) {
21914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
21915 }
21916 arg1 = reinterpret_cast< wxDC * >(argp1);
21917 ecode2 = SWIG_AsVal_double(obj1, &val2);
21918 if (!SWIG_IsOK(ecode2)) {
21919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
21920 }
21921 arg2 = static_cast< double >(val2);
21922 ecode3 = SWIG_AsVal_double(obj2, &val3);
21923 if (!SWIG_IsOK(ecode3)) {
21924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
21925 }
21926 arg3 = static_cast< double >(val3);
21927 {
21928 PyThreadState* __tstate = wxPyBeginAllowThreads();
21929 (arg1)->SetUserScale(arg2,arg3);
21930 wxPyEndAllowThreads(__tstate);
21931 if (PyErr_Occurred()) SWIG_fail;
21932 }
21933 resultobj = SWIG_Py_Void();
21934 return resultobj;
21935fail:
21936 return NULL;
21937}
21938
21939
21940SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21941 PyObject *resultobj = 0;
21942 wxDC *arg1 = (wxDC *) 0 ;
21943 double *arg2 = (double *) 0 ;
21944 double *arg3 = (double *) 0 ;
21945 void *argp1 = 0 ;
21946 int res1 = 0 ;
21947 double temp2 ;
21948 int res2 = SWIG_TMPOBJ ;
21949 double temp3 ;
21950 int res3 = SWIG_TMPOBJ ;
21951 PyObject *swig_obj[1] ;
21952
21953 arg2 = &temp2;
21954 arg3 = &temp3;
21955 if (!args) SWIG_fail;
21956 swig_obj[0] = args;
21957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21958 if (!SWIG_IsOK(res1)) {
21959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21960 }
21961 arg1 = reinterpret_cast< wxDC * >(argp1);
21962 {
21963 PyThreadState* __tstate = wxPyBeginAllowThreads();
21964 (arg1)->GetLogicalScale(arg2,arg3);
21965 wxPyEndAllowThreads(__tstate);
21966 if (PyErr_Occurred()) SWIG_fail;
21967 }
21968 resultobj = SWIG_Py_Void();
21969 if (SWIG_IsTmpObj(res2)) {
21970 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21971 } else {
21972 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21973 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21974 }
21975 if (SWIG_IsTmpObj(res3)) {
21976 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21977 } else {
21978 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21979 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21980 }
21981 return resultobj;
21982fail:
21983 return NULL;
21984}
21985
21986
21987SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21988 PyObject *resultobj = 0;
21989 wxDC *arg1 = (wxDC *) 0 ;
21990 double arg2 ;
21991 double arg3 ;
21992 void *argp1 = 0 ;
21993 int res1 = 0 ;
21994 double val2 ;
21995 int ecode2 = 0 ;
21996 double val3 ;
21997 int ecode3 = 0 ;
21998 PyObject * obj0 = 0 ;
21999 PyObject * obj1 = 0 ;
22000 PyObject * obj2 = 0 ;
22001 char * kwnames[] = {
22002 (char *) "self",(char *) "x",(char *) "y", NULL
22003 };
22004
22005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22007 if (!SWIG_IsOK(res1)) {
22008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22009 }
22010 arg1 = reinterpret_cast< wxDC * >(argp1);
22011 ecode2 = SWIG_AsVal_double(obj1, &val2);
22012 if (!SWIG_IsOK(ecode2)) {
22013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22014 }
22015 arg2 = static_cast< double >(val2);
22016 ecode3 = SWIG_AsVal_double(obj2, &val3);
22017 if (!SWIG_IsOK(ecode3)) {
22018 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22019 }
22020 arg3 = static_cast< double >(val3);
22021 {
22022 PyThreadState* __tstate = wxPyBeginAllowThreads();
22023 (arg1)->SetLogicalScale(arg2,arg3);
22024 wxPyEndAllowThreads(__tstate);
22025 if (PyErr_Occurred()) SWIG_fail;
22026 }
22027 resultobj = SWIG_Py_Void();
22028 return resultobj;
22029fail:
22030 return NULL;
22031}
22032
22033
22034SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22035 PyObject *resultobj = 0;
22036 wxDC *arg1 = (wxDC *) 0 ;
22037 wxPoint result;
22038 void *argp1 = 0 ;
22039 int res1 = 0 ;
22040 PyObject *swig_obj[1] ;
22041
22042 if (!args) SWIG_fail;
22043 swig_obj[0] = args;
22044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22045 if (!SWIG_IsOK(res1)) {
22046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22047 }
22048 arg1 = reinterpret_cast< wxDC * >(argp1);
22049 {
22050 PyThreadState* __tstate = wxPyBeginAllowThreads();
22051 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22052 wxPyEndAllowThreads(__tstate);
22053 if (PyErr_Occurred()) SWIG_fail;
22054 }
22055 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22056 return resultobj;
22057fail:
22058 return NULL;
22059}
22060
22061
22062SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22063 PyObject *resultobj = 0;
22064 wxDC *arg1 = (wxDC *) 0 ;
22065 int *arg2 = (int *) 0 ;
22066 int *arg3 = (int *) 0 ;
22067 void *argp1 = 0 ;
22068 int res1 = 0 ;
22069 int temp2 ;
22070 int res2 = SWIG_TMPOBJ ;
22071 int temp3 ;
22072 int res3 = SWIG_TMPOBJ ;
22073 PyObject *swig_obj[1] ;
22074
22075 arg2 = &temp2;
22076 arg3 = &temp3;
22077 if (!args) SWIG_fail;
22078 swig_obj[0] = args;
22079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22080 if (!SWIG_IsOK(res1)) {
22081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22082 }
22083 arg1 = reinterpret_cast< wxDC * >(argp1);
22084 {
22085 PyThreadState* __tstate = wxPyBeginAllowThreads();
22086 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22087 wxPyEndAllowThreads(__tstate);
22088 if (PyErr_Occurred()) SWIG_fail;
22089 }
22090 resultobj = SWIG_Py_Void();
22091 if (SWIG_IsTmpObj(res2)) {
22092 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22093 } else {
22094 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22095 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22096 }
22097 if (SWIG_IsTmpObj(res3)) {
22098 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22099 } else {
22100 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22101 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22102 }
22103 return resultobj;
22104fail:
22105 return NULL;
22106}
22107
22108
22109SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22110 PyObject *resultobj = 0;
22111 wxDC *arg1 = (wxDC *) 0 ;
22112 int arg2 ;
22113 int arg3 ;
22114 void *argp1 = 0 ;
22115 int res1 = 0 ;
22116 int val2 ;
22117 int ecode2 = 0 ;
22118 int val3 ;
22119 int ecode3 = 0 ;
22120 PyObject * obj0 = 0 ;
22121 PyObject * obj1 = 0 ;
22122 PyObject * obj2 = 0 ;
22123 char * kwnames[] = {
22124 (char *) "self",(char *) "x",(char *) "y", NULL
22125 };
22126
22127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22129 if (!SWIG_IsOK(res1)) {
22130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22131 }
22132 arg1 = reinterpret_cast< wxDC * >(argp1);
22133 ecode2 = SWIG_AsVal_int(obj1, &val2);
22134 if (!SWIG_IsOK(ecode2)) {
22135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22136 }
22137 arg2 = static_cast< int >(val2);
22138 ecode3 = SWIG_AsVal_int(obj2, &val3);
22139 if (!SWIG_IsOK(ecode3)) {
22140 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22141 }
22142 arg3 = static_cast< int >(val3);
22143 {
22144 PyThreadState* __tstate = wxPyBeginAllowThreads();
22145 (arg1)->SetLogicalOrigin(arg2,arg3);
22146 wxPyEndAllowThreads(__tstate);
22147 if (PyErr_Occurred()) SWIG_fail;
22148 }
22149 resultobj = SWIG_Py_Void();
22150 return resultobj;
22151fail:
22152 return NULL;
22153}
22154
22155
22156SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22157 PyObject *resultobj = 0;
22158 wxDC *arg1 = (wxDC *) 0 ;
22159 wxPoint *arg2 = 0 ;
22160 void *argp1 = 0 ;
22161 int res1 = 0 ;
22162 wxPoint temp2 ;
22163 PyObject * obj0 = 0 ;
22164 PyObject * obj1 = 0 ;
22165 char * kwnames[] = {
22166 (char *) "self",(char *) "point", NULL
22167 };
22168
22169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22171 if (!SWIG_IsOK(res1)) {
22172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22173 }
22174 arg1 = reinterpret_cast< wxDC * >(argp1);
22175 {
22176 arg2 = &temp2;
22177 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22178 }
22179 {
22180 PyThreadState* __tstate = wxPyBeginAllowThreads();
22181 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22182 wxPyEndAllowThreads(__tstate);
22183 if (PyErr_Occurred()) SWIG_fail;
22184 }
22185 resultobj = SWIG_Py_Void();
22186 return resultobj;
22187fail:
22188 return NULL;
22189}
22190
22191
22192SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22193 PyObject *resultobj = 0;
22194 wxDC *arg1 = (wxDC *) 0 ;
22195 wxPoint result;
22196 void *argp1 = 0 ;
22197 int res1 = 0 ;
22198 PyObject *swig_obj[1] ;
22199
22200 if (!args) SWIG_fail;
22201 swig_obj[0] = args;
22202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22203 if (!SWIG_IsOK(res1)) {
22204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22205 }
22206 arg1 = reinterpret_cast< wxDC * >(argp1);
22207 {
22208 PyThreadState* __tstate = wxPyBeginAllowThreads();
22209 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22210 wxPyEndAllowThreads(__tstate);
22211 if (PyErr_Occurred()) SWIG_fail;
22212 }
22213 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22214 return resultobj;
22215fail:
22216 return NULL;
22217}
22218
22219
22220SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22221 PyObject *resultobj = 0;
22222 wxDC *arg1 = (wxDC *) 0 ;
22223 int *arg2 = (int *) 0 ;
22224 int *arg3 = (int *) 0 ;
22225 void *argp1 = 0 ;
22226 int res1 = 0 ;
22227 int temp2 ;
22228 int res2 = SWIG_TMPOBJ ;
22229 int temp3 ;
22230 int res3 = SWIG_TMPOBJ ;
22231 PyObject *swig_obj[1] ;
22232
22233 arg2 = &temp2;
22234 arg3 = &temp3;
22235 if (!args) SWIG_fail;
22236 swig_obj[0] = args;
22237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22238 if (!SWIG_IsOK(res1)) {
22239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22240 }
22241 arg1 = reinterpret_cast< wxDC * >(argp1);
22242 {
22243 PyThreadState* __tstate = wxPyBeginAllowThreads();
22244 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22245 wxPyEndAllowThreads(__tstate);
22246 if (PyErr_Occurred()) SWIG_fail;
22247 }
22248 resultobj = SWIG_Py_Void();
22249 if (SWIG_IsTmpObj(res2)) {
22250 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22251 } else {
22252 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22253 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22254 }
22255 if (SWIG_IsTmpObj(res3)) {
22256 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22257 } else {
22258 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22259 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22260 }
22261 return resultobj;
22262fail:
22263 return NULL;
22264}
22265
22266
22267SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22268 PyObject *resultobj = 0;
22269 wxDC *arg1 = (wxDC *) 0 ;
22270 int arg2 ;
22271 int arg3 ;
22272 void *argp1 = 0 ;
22273 int res1 = 0 ;
22274 int val2 ;
22275 int ecode2 = 0 ;
22276 int val3 ;
22277 int ecode3 = 0 ;
22278 PyObject * obj0 = 0 ;
22279 PyObject * obj1 = 0 ;
22280 PyObject * obj2 = 0 ;
22281 char * kwnames[] = {
22282 (char *) "self",(char *) "x",(char *) "y", NULL
22283 };
22284
22285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22287 if (!SWIG_IsOK(res1)) {
22288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22289 }
22290 arg1 = reinterpret_cast< wxDC * >(argp1);
22291 ecode2 = SWIG_AsVal_int(obj1, &val2);
22292 if (!SWIG_IsOK(ecode2)) {
22293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22294 }
22295 arg2 = static_cast< int >(val2);
22296 ecode3 = SWIG_AsVal_int(obj2, &val3);
22297 if (!SWIG_IsOK(ecode3)) {
22298 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22299 }
22300 arg3 = static_cast< int >(val3);
22301 {
22302 PyThreadState* __tstate = wxPyBeginAllowThreads();
22303 (arg1)->SetDeviceOrigin(arg2,arg3);
22304 wxPyEndAllowThreads(__tstate);
22305 if (PyErr_Occurred()) SWIG_fail;
22306 }
22307 resultobj = SWIG_Py_Void();
22308 return resultobj;
22309fail:
22310 return NULL;
22311}
22312
22313
22314SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22315 PyObject *resultobj = 0;
22316 wxDC *arg1 = (wxDC *) 0 ;
22317 wxPoint *arg2 = 0 ;
22318 void *argp1 = 0 ;
22319 int res1 = 0 ;
22320 wxPoint temp2 ;
22321 PyObject * obj0 = 0 ;
22322 PyObject * obj1 = 0 ;
22323 char * kwnames[] = {
22324 (char *) "self",(char *) "point", NULL
22325 };
22326
22327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22329 if (!SWIG_IsOK(res1)) {
22330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22331 }
22332 arg1 = reinterpret_cast< wxDC * >(argp1);
22333 {
22334 arg2 = &temp2;
22335 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22336 }
22337 {
22338 PyThreadState* __tstate = wxPyBeginAllowThreads();
22339 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22340 wxPyEndAllowThreads(__tstate);
22341 if (PyErr_Occurred()) SWIG_fail;
22342 }
22343 resultobj = SWIG_Py_Void();
22344 return resultobj;
22345fail:
22346 return NULL;
22347}
22348
22349
22350SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22351 PyObject *resultobj = 0;
22352 wxDC *arg1 = (wxDC *) 0 ;
22353 bool arg2 ;
22354 bool arg3 ;
22355 void *argp1 = 0 ;
22356 int res1 = 0 ;
22357 bool val2 ;
22358 int ecode2 = 0 ;
22359 bool val3 ;
22360 int ecode3 = 0 ;
22361 PyObject * obj0 = 0 ;
22362 PyObject * obj1 = 0 ;
22363 PyObject * obj2 = 0 ;
22364 char * kwnames[] = {
22365 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22366 };
22367
22368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22370 if (!SWIG_IsOK(res1)) {
22371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22372 }
22373 arg1 = reinterpret_cast< wxDC * >(argp1);
22374 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22375 if (!SWIG_IsOK(ecode2)) {
22376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22377 }
22378 arg2 = static_cast< bool >(val2);
22379 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22380 if (!SWIG_IsOK(ecode3)) {
22381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22382 }
22383 arg3 = static_cast< bool >(val3);
22384 {
22385 PyThreadState* __tstate = wxPyBeginAllowThreads();
22386 (arg1)->SetAxisOrientation(arg2,arg3);
22387 wxPyEndAllowThreads(__tstate);
22388 if (PyErr_Occurred()) SWIG_fail;
22389 }
22390 resultobj = SWIG_Py_Void();
22391 return resultobj;
22392fail:
22393 return NULL;
22394}
22395
22396
22397SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22398 PyObject *resultobj = 0;
22399 wxDC *arg1 = (wxDC *) 0 ;
22400 int result;
22401 void *argp1 = 0 ;
22402 int res1 = 0 ;
22403 PyObject *swig_obj[1] ;
22404
22405 if (!args) SWIG_fail;
22406 swig_obj[0] = args;
22407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22408 if (!SWIG_IsOK(res1)) {
22409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22410 }
22411 arg1 = reinterpret_cast< wxDC * >(argp1);
22412 {
22413 PyThreadState* __tstate = wxPyBeginAllowThreads();
22414 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22415 wxPyEndAllowThreads(__tstate);
22416 if (PyErr_Occurred()) SWIG_fail;
22417 }
22418 resultobj = SWIG_From_int(static_cast< int >(result));
22419 return resultobj;
22420fail:
22421 return NULL;
22422}
22423
22424
22425SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22426 PyObject *resultobj = 0;
22427 wxDC *arg1 = (wxDC *) 0 ;
22428 int arg2 ;
22429 void *argp1 = 0 ;
22430 int res1 = 0 ;
22431 int val2 ;
22432 int ecode2 = 0 ;
22433 PyObject * obj0 = 0 ;
22434 PyObject * obj1 = 0 ;
22435 char * kwnames[] = {
22436 (char *) "self",(char *) "function", NULL
22437 };
22438
22439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22441 if (!SWIG_IsOK(res1)) {
22442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22443 }
22444 arg1 = reinterpret_cast< wxDC * >(argp1);
22445 ecode2 = SWIG_AsVal_int(obj1, &val2);
22446 if (!SWIG_IsOK(ecode2)) {
22447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22448 }
22449 arg2 = static_cast< int >(val2);
22450 {
22451 PyThreadState* __tstate = wxPyBeginAllowThreads();
22452 (arg1)->SetLogicalFunction(arg2);
22453 wxPyEndAllowThreads(__tstate);
22454 if (PyErr_Occurred()) SWIG_fail;
22455 }
22456 resultobj = SWIG_Py_Void();
22457 return resultobj;
22458fail:
22459 return NULL;
22460}
22461
22462
22463SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22464 PyObject *resultobj = 0;
22465 wxDC *arg1 = (wxDC *) 0 ;
22466 void *argp1 = 0 ;
22467 int res1 = 0 ;
22468 PyObject *swig_obj[1] ;
22469
22470 if (!args) SWIG_fail;
22471 swig_obj[0] = args;
22472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22473 if (!SWIG_IsOK(res1)) {
22474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22475 }
22476 arg1 = reinterpret_cast< wxDC * >(argp1);
22477 {
22478 PyThreadState* __tstate = wxPyBeginAllowThreads();
22479 (arg1)->ComputeScaleAndOrigin();
22480 wxPyEndAllowThreads(__tstate);
22481 if (PyErr_Occurred()) SWIG_fail;
22482 }
22483 resultobj = SWIG_Py_Void();
22484 return resultobj;
22485fail:
22486 return NULL;
22487}
22488
22489
22490SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22491 PyObject *resultobj = 0;
22492 wxDC *arg1 = (wxDC *) 0 ;
22493 int arg2 ;
22494 int arg3 ;
22495 void *argp1 = 0 ;
22496 int res1 = 0 ;
22497 int val2 ;
22498 int ecode2 = 0 ;
22499 int val3 ;
22500 int ecode3 = 0 ;
22501 PyObject * obj0 = 0 ;
22502 PyObject * obj1 = 0 ;
22503 PyObject * obj2 = 0 ;
22504 char * kwnames[] = {
22505 (char *) "self",(char *) "x",(char *) "y", NULL
22506 };
22507
22508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22510 if (!SWIG_IsOK(res1)) {
22511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22512 }
22513 arg1 = reinterpret_cast< wxDC * >(argp1);
22514 ecode2 = SWIG_AsVal_int(obj1, &val2);
22515 if (!SWIG_IsOK(ecode2)) {
22516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22517 }
22518 arg2 = static_cast< int >(val2);
22519 ecode3 = SWIG_AsVal_int(obj2, &val3);
22520 if (!SWIG_IsOK(ecode3)) {
22521 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22522 }
22523 arg3 = static_cast< int >(val3);
22524 {
22525 PyThreadState* __tstate = wxPyBeginAllowThreads();
22526 (arg1)->CalcBoundingBox(arg2,arg3);
22527 wxPyEndAllowThreads(__tstate);
22528 if (PyErr_Occurred()) SWIG_fail;
22529 }
22530 resultobj = SWIG_Py_Void();
22531 return resultobj;
22532fail:
22533 return NULL;
22534}
22535
22536
22537SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22538 PyObject *resultobj = 0;
22539 wxDC *arg1 = (wxDC *) 0 ;
22540 wxPoint *arg2 = 0 ;
22541 void *argp1 = 0 ;
22542 int res1 = 0 ;
22543 wxPoint temp2 ;
22544 PyObject * obj0 = 0 ;
22545 PyObject * obj1 = 0 ;
22546 char * kwnames[] = {
22547 (char *) "self",(char *) "point", NULL
22548 };
22549
22550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22552 if (!SWIG_IsOK(res1)) {
22553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22554 }
22555 arg1 = reinterpret_cast< wxDC * >(argp1);
22556 {
22557 arg2 = &temp2;
22558 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22559 }
22560 {
22561 PyThreadState* __tstate = wxPyBeginAllowThreads();
22562 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22563 wxPyEndAllowThreads(__tstate);
22564 if (PyErr_Occurred()) SWIG_fail;
22565 }
22566 resultobj = SWIG_Py_Void();
22567 return resultobj;
22568fail:
22569 return NULL;
22570}
22571
22572
22573SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22574 PyObject *resultobj = 0;
22575 wxDC *arg1 = (wxDC *) 0 ;
22576 void *argp1 = 0 ;
22577 int res1 = 0 ;
22578 PyObject *swig_obj[1] ;
22579
22580 if (!args) SWIG_fail;
22581 swig_obj[0] = args;
22582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22583 if (!SWIG_IsOK(res1)) {
22584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22585 }
22586 arg1 = reinterpret_cast< wxDC * >(argp1);
22587 {
22588 PyThreadState* __tstate = wxPyBeginAllowThreads();
22589 (arg1)->ResetBoundingBox();
22590 wxPyEndAllowThreads(__tstate);
22591 if (PyErr_Occurred()) SWIG_fail;
22592 }
22593 resultobj = SWIG_Py_Void();
22594 return resultobj;
22595fail:
22596 return NULL;
22597}
22598
22599
22600SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22601 PyObject *resultobj = 0;
22602 wxDC *arg1 = (wxDC *) 0 ;
22603 int result;
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_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22613 }
22614 arg1 = reinterpret_cast< wxDC * >(argp1);
22615 {
22616 PyThreadState* __tstate = wxPyBeginAllowThreads();
22617 result = (int)((wxDC const *)arg1)->MinX();
22618 wxPyEndAllowThreads(__tstate);
22619 if (PyErr_Occurred()) SWIG_fail;
22620 }
22621 resultobj = SWIG_From_int(static_cast< int >(result));
22622 return resultobj;
22623fail:
22624 return NULL;
22625}
22626
22627
22628SWIGINTERN PyObject *_wrap_DC_MaxX(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_MaxX" "', 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)->MaxX();
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_MinY(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_MinY" "', 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)->MinY();
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_MaxY(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_MaxY" "', 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)->MaxY();
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_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22713 PyObject *resultobj = 0;
22714 wxDC *arg1 = (wxDC *) 0 ;
22715 int *arg2 = (int *) 0 ;
22716 int *arg3 = (int *) 0 ;
22717 int *arg4 = (int *) 0 ;
22718 int *arg5 = (int *) 0 ;
22719 void *argp1 = 0 ;
22720 int res1 = 0 ;
22721 int temp2 ;
22722 int res2 = SWIG_TMPOBJ ;
22723 int temp3 ;
22724 int res3 = SWIG_TMPOBJ ;
22725 int temp4 ;
22726 int res4 = SWIG_TMPOBJ ;
22727 int temp5 ;
22728 int res5 = SWIG_TMPOBJ ;
22729 PyObject *swig_obj[1] ;
22730
22731 arg2 = &temp2;
22732 arg3 = &temp3;
22733 arg4 = &temp4;
22734 arg5 = &temp5;
22735 if (!args) SWIG_fail;
22736 swig_obj[0] = args;
22737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22738 if (!SWIG_IsOK(res1)) {
22739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22740 }
22741 arg1 = reinterpret_cast< wxDC * >(argp1);
22742 {
22743 PyThreadState* __tstate = wxPyBeginAllowThreads();
22744 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
22745 wxPyEndAllowThreads(__tstate);
22746 if (PyErr_Occurred()) SWIG_fail;
22747 }
22748 resultobj = SWIG_Py_Void();
22749 if (SWIG_IsTmpObj(res2)) {
22750 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22751 } else {
22752 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22753 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22754 }
22755 if (SWIG_IsTmpObj(res3)) {
22756 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22757 } else {
22758 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22759 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22760 }
22761 if (SWIG_IsTmpObj(res4)) {
22762 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22763 } else {
22764 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22765 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22766 }
22767 if (SWIG_IsTmpObj(res5)) {
22768 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22769 } else {
22770 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22771 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22772 }
22773 return resultobj;
22774fail:
22775 return NULL;
22776}
22777
22778
22779SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22780 PyObject *resultobj = 0;
22781 wxDC *arg1 = (wxDC *) 0 ;
22782 PyObject *arg2 = (PyObject *) 0 ;
22783 PyObject *arg3 = (PyObject *) 0 ;
22784 PyObject *arg4 = (PyObject *) 0 ;
22785 PyObject *result = 0 ;
22786 void *argp1 = 0 ;
22787 int res1 = 0 ;
22788 PyObject * obj0 = 0 ;
22789 PyObject * obj1 = 0 ;
22790 PyObject * obj2 = 0 ;
22791 PyObject * obj3 = 0 ;
22792 char * kwnames[] = {
22793 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22794 };
22795
22796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22798 if (!SWIG_IsOK(res1)) {
22799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
22800 }
22801 arg1 = reinterpret_cast< wxDC * >(argp1);
22802 arg2 = obj1;
22803 arg3 = obj2;
22804 arg4 = obj3;
22805 {
22806 PyThreadState* __tstate = wxPyBeginAllowThreads();
22807 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
22808 wxPyEndAllowThreads(__tstate);
22809 if (PyErr_Occurred()) SWIG_fail;
22810 }
22811 resultobj = result;
22812 return resultobj;
22813fail:
22814 return NULL;
22815}
22816
22817
22818SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22819 PyObject *resultobj = 0;
22820 wxDC *arg1 = (wxDC *) 0 ;
22821 PyObject *arg2 = (PyObject *) 0 ;
22822 PyObject *arg3 = (PyObject *) 0 ;
22823 PyObject *arg4 = (PyObject *) 0 ;
22824 PyObject *result = 0 ;
22825 void *argp1 = 0 ;
22826 int res1 = 0 ;
22827 PyObject * obj0 = 0 ;
22828 PyObject * obj1 = 0 ;
22829 PyObject * obj2 = 0 ;
22830 PyObject * obj3 = 0 ;
22831 char * kwnames[] = {
22832 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22833 };
22834
22835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22837 if (!SWIG_IsOK(res1)) {
22838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
22839 }
22840 arg1 = reinterpret_cast< wxDC * >(argp1);
22841 arg2 = obj1;
22842 arg3 = obj2;
22843 arg4 = obj3;
22844 {
22845 PyThreadState* __tstate = wxPyBeginAllowThreads();
22846 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
22847 wxPyEndAllowThreads(__tstate);
22848 if (PyErr_Occurred()) SWIG_fail;
22849 }
22850 resultobj = result;
22851 return resultobj;
22852fail:
22853 return NULL;
22854}
22855
22856
22857SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22858 PyObject *resultobj = 0;
22859 wxDC *arg1 = (wxDC *) 0 ;
22860 PyObject *arg2 = (PyObject *) 0 ;
22861 PyObject *arg3 = (PyObject *) 0 ;
22862 PyObject *arg4 = (PyObject *) 0 ;
22863 PyObject *result = 0 ;
22864 void *argp1 = 0 ;
22865 int res1 = 0 ;
22866 PyObject * obj0 = 0 ;
22867 PyObject * obj1 = 0 ;
22868 PyObject * obj2 = 0 ;
22869 PyObject * obj3 = 0 ;
22870 char * kwnames[] = {
22871 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22872 };
22873
22874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22876 if (!SWIG_IsOK(res1)) {
22877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
22878 }
22879 arg1 = reinterpret_cast< wxDC * >(argp1);
22880 arg2 = obj1;
22881 arg3 = obj2;
22882 arg4 = obj3;
22883 {
22884 PyThreadState* __tstate = wxPyBeginAllowThreads();
22885 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
22886 wxPyEndAllowThreads(__tstate);
22887 if (PyErr_Occurred()) SWIG_fail;
22888 }
22889 resultobj = result;
22890 return resultobj;
22891fail:
22892 return NULL;
22893}
22894
22895
22896SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22897 PyObject *resultobj = 0;
22898 wxDC *arg1 = (wxDC *) 0 ;
22899 PyObject *arg2 = (PyObject *) 0 ;
22900 PyObject *arg3 = (PyObject *) 0 ;
22901 PyObject *arg4 = (PyObject *) 0 ;
22902 PyObject *result = 0 ;
22903 void *argp1 = 0 ;
22904 int res1 = 0 ;
22905 PyObject * obj0 = 0 ;
22906 PyObject * obj1 = 0 ;
22907 PyObject * obj2 = 0 ;
22908 PyObject * obj3 = 0 ;
22909 char * kwnames[] = {
22910 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22911 };
22912
22913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22915 if (!SWIG_IsOK(res1)) {
22916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
22917 }
22918 arg1 = reinterpret_cast< wxDC * >(argp1);
22919 arg2 = obj1;
22920 arg3 = obj2;
22921 arg4 = obj3;
22922 {
22923 PyThreadState* __tstate = wxPyBeginAllowThreads();
22924 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
22925 wxPyEndAllowThreads(__tstate);
22926 if (PyErr_Occurred()) SWIG_fail;
22927 }
22928 resultobj = result;
22929 return resultobj;
22930fail:
22931 return NULL;
22932}
22933
22934
22935SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22936 PyObject *resultobj = 0;
22937 wxDC *arg1 = (wxDC *) 0 ;
22938 PyObject *arg2 = (PyObject *) 0 ;
22939 PyObject *arg3 = (PyObject *) 0 ;
22940 PyObject *arg4 = (PyObject *) 0 ;
22941 PyObject *result = 0 ;
22942 void *argp1 = 0 ;
22943 int res1 = 0 ;
22944 PyObject * obj0 = 0 ;
22945 PyObject * obj1 = 0 ;
22946 PyObject * obj2 = 0 ;
22947 PyObject * obj3 = 0 ;
22948 char * kwnames[] = {
22949 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22950 };
22951
22952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22954 if (!SWIG_IsOK(res1)) {
22955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
22956 }
22957 arg1 = reinterpret_cast< wxDC * >(argp1);
22958 arg2 = obj1;
22959 arg3 = obj2;
22960 arg4 = obj3;
22961 {
22962 PyThreadState* __tstate = wxPyBeginAllowThreads();
22963 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
22964 wxPyEndAllowThreads(__tstate);
22965 if (PyErr_Occurred()) SWIG_fail;
22966 }
22967 resultobj = result;
22968 return resultobj;
22969fail:
22970 return NULL;
22971}
22972
22973
22974SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22975 PyObject *resultobj = 0;
22976 wxDC *arg1 = (wxDC *) 0 ;
22977 PyObject *arg2 = (PyObject *) 0 ;
22978 PyObject *arg3 = (PyObject *) 0 ;
22979 PyObject *arg4 = (PyObject *) 0 ;
22980 PyObject *arg5 = (PyObject *) 0 ;
22981 PyObject *result = 0 ;
22982 void *argp1 = 0 ;
22983 int res1 = 0 ;
22984 PyObject * obj0 = 0 ;
22985 PyObject * obj1 = 0 ;
22986 PyObject * obj2 = 0 ;
22987 PyObject * obj3 = 0 ;
22988 PyObject * obj4 = 0 ;
22989 char * kwnames[] = {
22990 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
22991 };
22992
22993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22995 if (!SWIG_IsOK(res1)) {
22996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
22997 }
22998 arg1 = reinterpret_cast< wxDC * >(argp1);
22999 arg2 = obj1;
23000 arg3 = obj2;
23001 arg4 = obj3;
23002 arg5 = obj4;
23003 {
23004 PyThreadState* __tstate = wxPyBeginAllowThreads();
23005 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23006 wxPyEndAllowThreads(__tstate);
23007 if (PyErr_Occurred()) SWIG_fail;
23008 }
23009 resultobj = result;
23010 return resultobj;
23011fail:
23012 return NULL;
23013}
23014
23015
23016SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23017 PyObject *obj;
23018 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23019 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23020 return SWIG_Py_Void();
23021}
23022
23023SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23024 PyObject *resultobj = 0;
23025 wxMemoryDC *result = 0 ;
23026
23027 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
23028 {
23029 if (!wxPyCheckForApp()) SWIG_fail;
23030 PyThreadState* __tstate = wxPyBeginAllowThreads();
23031 result = (wxMemoryDC *)new wxMemoryDC();
23032 wxPyEndAllowThreads(__tstate);
23033 if (PyErr_Occurred()) SWIG_fail;
23034 }
23035 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23036 return resultobj;
23037fail:
23038 return NULL;
23039}
23040
23041
23042SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23043 PyObject *resultobj = 0;
23044 wxDC *arg1 = (wxDC *) 0 ;
23045 wxMemoryDC *result = 0 ;
23046 void *argp1 = 0 ;
23047 int res1 = 0 ;
23048 PyObject * obj0 = 0 ;
23049 char * kwnames[] = {
23050 (char *) "oldDC", NULL
23051 };
23052
23053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23055 if (!SWIG_IsOK(res1)) {
23056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23057 }
23058 arg1 = reinterpret_cast< wxDC * >(argp1);
23059 {
23060 if (!wxPyCheckForApp()) SWIG_fail;
23061 PyThreadState* __tstate = wxPyBeginAllowThreads();
23062 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23063 wxPyEndAllowThreads(__tstate);
23064 if (PyErr_Occurred()) SWIG_fail;
23065 }
23066 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23067 return resultobj;
23068fail:
23069 return NULL;
23070}
23071
23072
23073SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23074 PyObject *resultobj = 0;
23075 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23076 wxBitmap *arg2 = 0 ;
23077 void *argp1 = 0 ;
23078 int res1 = 0 ;
23079 void *argp2 = 0 ;
23080 int res2 = 0 ;
23081 PyObject * obj0 = 0 ;
23082 PyObject * obj1 = 0 ;
23083 char * kwnames[] = {
23084 (char *) "self",(char *) "bitmap", NULL
23085 };
23086
23087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23089 if (!SWIG_IsOK(res1)) {
23090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23091 }
23092 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23093 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23094 if (!SWIG_IsOK(res2)) {
23095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23096 }
23097 if (!argp2) {
23098 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23099 }
23100 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23101 {
23102 PyThreadState* __tstate = wxPyBeginAllowThreads();
23103 (arg1)->SelectObject((wxBitmap const &)*arg2);
23104 wxPyEndAllowThreads(__tstate);
23105 if (PyErr_Occurred()) SWIG_fail;
23106 }
23107 resultobj = SWIG_Py_Void();
23108 return resultobj;
23109fail:
23110 return NULL;
23111}
23112
23113
23114SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23115 PyObject *obj;
23116 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23117 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23118 return SWIG_Py_Void();
23119}
23120
23121SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23122 return SWIG_Python_InitShadowInstance(args);
23123}
23124
23125SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23126 PyObject *resultobj = 0;
23127 wxDC *arg1 = (wxDC *) 0 ;
23128 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23129 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23130 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23131 wxBufferedDC *result = 0 ;
23132 void *argp1 = 0 ;
23133 int res1 = 0 ;
23134 void *argp2 = 0 ;
23135 int res2 = 0 ;
23136 int val3 ;
23137 int ecode3 = 0 ;
23138
23139 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
23140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23141 if (!SWIG_IsOK(res1)) {
23142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23143 }
23144 arg1 = reinterpret_cast< wxDC * >(argp1);
23145 if (swig_obj[1]) {
23146 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23147 if (!SWIG_IsOK(res2)) {
23148 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 23149 }
0085ce49
RD
23150 if (!argp2) {
23151 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 23152 }
0085ce49
RD
23153 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23154 }
23155 if (swig_obj[2]) {
23156 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23157 if (!SWIG_IsOK(ecode3)) {
23158 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23159 }
23160 arg3 = static_cast< int >(val3);
23161 }
23162 {
23163 if (!wxPyCheckForApp()) SWIG_fail;
23164 PyThreadState* __tstate = wxPyBeginAllowThreads();
23165 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
23166 wxPyEndAllowThreads(__tstate);
23167 if (PyErr_Occurred()) SWIG_fail;
23168 }
23169 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23170 return resultobj;
23171fail:
23172 return NULL;
23173}
23174
23175
23176SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23177 PyObject *resultobj = 0;
23178 wxDC *arg1 = (wxDC *) 0 ;
23179 wxSize *arg2 = 0 ;
23180 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23181 wxBufferedDC *result = 0 ;
23182 void *argp1 = 0 ;
23183 int res1 = 0 ;
23184 wxSize temp2 ;
23185 int val3 ;
23186 int ecode3 = 0 ;
23187
23188 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
23189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23190 if (!SWIG_IsOK(res1)) {
23191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23192 }
23193 arg1 = reinterpret_cast< wxDC * >(argp1);
23194 {
23195 arg2 = &temp2;
23196 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
23197 }
23198 if (swig_obj[2]) {
23199 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23200 if (!SWIG_IsOK(ecode3)) {
23201 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23202 }
23203 arg3 = static_cast< int >(val3);
23204 }
23205 {
23206 if (!wxPyCheckForApp()) SWIG_fail;
23207 PyThreadState* __tstate = wxPyBeginAllowThreads();
23208 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23209 wxPyEndAllowThreads(__tstate);
23210 if (PyErr_Occurred()) SWIG_fail;
23211 }
23212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23213 return resultobj;
23214fail:
23215 return NULL;
23216}
23217
23218
23219SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23220 int argc;
23221 PyObject *argv[4];
23222
23223 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
23224 --argc;
23225 if ((argc >= 1) && (argc <= 3)) {
23226 int _v = 0;
23227 if (argc > 1) {
23228 {
23229 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23230 _v = SWIG_CheckState(res);
23231 }
23232 if (!_v) goto check_1;
093d3ff1 23233 }
0085ce49
RD
23234 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23235 }
23236check_1:
23237
23238 if ((argc >= 2) && (argc <= 3)) {
23239 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23240 }
23241
23242fail:
23243 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23244 return NULL;
23245}
23246
23247
23248SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23249 PyObject *resultobj = 0;
23250 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23251 void *argp1 = 0 ;
23252 int res1 = 0 ;
23253 PyObject *swig_obj[1] ;
23254
23255 if (!args) SWIG_fail;
23256 swig_obj[0] = args;
23257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23258 if (!SWIG_IsOK(res1)) {
23259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23260 }
23261 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23262 {
23263 PyThreadState* __tstate = wxPyBeginAllowThreads();
23264 delete arg1;
23265
23266 wxPyEndAllowThreads(__tstate);
23267 if (PyErr_Occurred()) SWIG_fail;
23268 }
23269 resultobj = SWIG_Py_Void();
23270 return resultobj;
23271fail:
23272 return NULL;
23273}
23274
23275
23276SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23277 PyObject *resultobj = 0;
23278 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23279 void *argp1 = 0 ;
23280 int res1 = 0 ;
23281 PyObject *swig_obj[1] ;
23282
23283 if (!args) SWIG_fail;
23284 swig_obj[0] = args;
23285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23286 if (!SWIG_IsOK(res1)) {
23287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23288 }
23289 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23290 {
23291 PyThreadState* __tstate = wxPyBeginAllowThreads();
23292 (arg1)->UnMask();
23293 wxPyEndAllowThreads(__tstate);
23294 if (PyErr_Occurred()) SWIG_fail;
23295 }
23296 resultobj = SWIG_Py_Void();
23297 return resultobj;
23298fail:
23299 return NULL;
23300}
23301
23302
23303SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23304 PyObject *obj;
23305 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23306 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23307 return SWIG_Py_Void();
23308}
23309
23310SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23311 return SWIG_Python_InitShadowInstance(args);
23312}
23313
23314SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23315 PyObject *resultobj = 0;
23316 wxWindow *arg1 = (wxWindow *) 0 ;
23317 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23318 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23319 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23320 wxBufferedPaintDC *result = 0 ;
23321 void *argp1 = 0 ;
23322 int res1 = 0 ;
23323 void *argp2 = 0 ;
23324 int res2 = 0 ;
23325 int val3 ;
23326 int ecode3 = 0 ;
23327 PyObject * obj0 = 0 ;
23328 PyObject * obj1 = 0 ;
23329 PyObject * obj2 = 0 ;
23330 char * kwnames[] = {
23331 (char *) "window",(char *) "buffer",(char *) "style", NULL
23332 };
23333
23334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23336 if (!SWIG_IsOK(res1)) {
23337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23338 }
23339 arg1 = reinterpret_cast< wxWindow * >(argp1);
23340 if (obj1) {
23341 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23342 if (!SWIG_IsOK(res2)) {
23343 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 23344 }
0085ce49
RD
23345 if (!argp2) {
23346 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 23347 }
0085ce49
RD
23348 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23349 }
23350 if (obj2) {
23351 ecode3 = SWIG_AsVal_int(obj2, &val3);
23352 if (!SWIG_IsOK(ecode3)) {
23353 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23354 }
23355 arg3 = static_cast< int >(val3);
23356 }
23357 {
23358 if (!wxPyCheckForApp()) SWIG_fail;
23359 PyThreadState* __tstate = wxPyBeginAllowThreads();
23360 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23361 wxPyEndAllowThreads(__tstate);
23362 if (PyErr_Occurred()) SWIG_fail;
23363 }
23364 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23365 return resultobj;
23366fail:
23367 return NULL;
23368}
23369
23370
23371SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23372 PyObject *obj;
23373 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23374 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23375 return SWIG_Py_Void();
23376}
23377
23378SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23379 return SWIG_Python_InitShadowInstance(args);
23380}
23381
23382SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23383 PyObject *resultobj = 0;
23384 wxScreenDC *result = 0 ;
23385
23386 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23387 {
23388 if (!wxPyCheckForApp()) SWIG_fail;
23389 PyThreadState* __tstate = wxPyBeginAllowThreads();
23390 result = (wxScreenDC *)new wxScreenDC();
23391 wxPyEndAllowThreads(__tstate);
23392 if (PyErr_Occurred()) SWIG_fail;
23393 }
23394 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23395 return resultobj;
23396fail:
23397 return NULL;
23398}
23399
23400
23401SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23402 PyObject *resultobj = 0;
23403 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23404 wxWindow *arg2 = (wxWindow *) 0 ;
23405 bool result;
23406 void *argp1 = 0 ;
23407 int res1 = 0 ;
23408 void *argp2 = 0 ;
23409 int res2 = 0 ;
23410 PyObject * obj0 = 0 ;
23411 PyObject * obj1 = 0 ;
23412 char * kwnames[] = {
23413 (char *) "self",(char *) "window", NULL
23414 };
23415
23416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23418 if (!SWIG_IsOK(res1)) {
23419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23420 }
23421 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23422 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23423 if (!SWIG_IsOK(res2)) {
23424 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23425 }
23426 arg2 = reinterpret_cast< wxWindow * >(argp2);
23427 {
23428 PyThreadState* __tstate = wxPyBeginAllowThreads();
23429 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23430 wxPyEndAllowThreads(__tstate);
23431 if (PyErr_Occurred()) SWIG_fail;
23432 }
23433 {
23434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23435 }
23436 return resultobj;
23437fail:
23438 return NULL;
23439}
23440
23441
23442SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23443 PyObject *resultobj = 0;
23444 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23445 wxRect *arg2 = (wxRect *) NULL ;
23446 bool result;
23447 void *argp1 = 0 ;
23448 int res1 = 0 ;
23449 void *argp2 = 0 ;
23450 int res2 = 0 ;
23451 PyObject * obj0 = 0 ;
23452 PyObject * obj1 = 0 ;
23453 char * kwnames[] = {
23454 (char *) "self",(char *) "rect", NULL
23455 };
23456
23457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23459 if (!SWIG_IsOK(res1)) {
23460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23461 }
23462 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23463 if (obj1) {
23464 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23465 if (!SWIG_IsOK(res2)) {
23466 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
e2950dbb 23467 }
0085ce49
RD
23468 arg2 = reinterpret_cast< wxRect * >(argp2);
23469 }
23470 {
23471 PyThreadState* __tstate = wxPyBeginAllowThreads();
23472 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23473 wxPyEndAllowThreads(__tstate);
23474 if (PyErr_Occurred()) SWIG_fail;
23475 }
23476 {
23477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23478 }
23479 return resultobj;
23480fail:
23481 return NULL;
23482}
23483
23484
23485SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23486 PyObject *resultobj = 0;
23487 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23488 bool result;
23489 void *argp1 = 0 ;
23490 int res1 = 0 ;
23491 PyObject *swig_obj[1] ;
23492
23493 if (!args) SWIG_fail;
23494 swig_obj[0] = args;
23495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23496 if (!SWIG_IsOK(res1)) {
23497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23498 }
23499 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23500 {
23501 PyThreadState* __tstate = wxPyBeginAllowThreads();
23502 result = (bool)(arg1)->EndDrawingOnTop();
23503 wxPyEndAllowThreads(__tstate);
23504 if (PyErr_Occurred()) SWIG_fail;
23505 }
23506 {
23507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23508 }
23509 return resultobj;
23510fail:
23511 return NULL;
23512}
23513
23514
23515SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23516 PyObject *obj;
23517 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23518 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
23519 return SWIG_Py_Void();
23520}
23521
23522SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23523 return SWIG_Python_InitShadowInstance(args);
23524}
23525
72ef6efb 23526SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
23527 PyObject *resultobj = 0;
23528 wxWindow *arg1 = (wxWindow *) 0 ;
72ef6efb 23529 wxWindowDC *result = 0 ;
0085ce49
RD
23530 void *argp1 = 0 ;
23531 int res1 = 0 ;
23532 PyObject * obj0 = 0 ;
23533 char * kwnames[] = {
23534 (char *) "win", NULL
23535 };
23536
72ef6efb 23537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
0085ce49
RD
23538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23539 if (!SWIG_IsOK(res1)) {
72ef6efb 23540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
0085ce49
RD
23541 }
23542 arg1 = reinterpret_cast< wxWindow * >(argp1);
23543 {
23544 if (!wxPyCheckForApp()) SWIG_fail;
23545 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 23546 result = (wxWindowDC *)new wxWindowDC(arg1);
0085ce49
RD
23547 wxPyEndAllowThreads(__tstate);
23548 if (PyErr_Occurred()) SWIG_fail;
23549 }
72ef6efb 23550 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
0085ce49
RD
23551 return resultobj;
23552fail:
23553 return NULL;
23554}
23555
23556
72ef6efb 23557SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
23558 PyObject *obj;
23559 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
72ef6efb 23560 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
0085ce49
RD
23561 return SWIG_Py_Void();
23562}
23563
72ef6efb 23564SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
23565 return SWIG_Python_InitShadowInstance(args);
23566}
23567
72ef6efb 23568SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
23569 PyObject *resultobj = 0;
23570 wxWindow *arg1 = (wxWindow *) 0 ;
72ef6efb 23571 wxClientDC *result = 0 ;
0085ce49
RD
23572 void *argp1 = 0 ;
23573 int res1 = 0 ;
23574 PyObject * obj0 = 0 ;
23575 char * kwnames[] = {
23576 (char *) "win", NULL
23577 };
23578
72ef6efb 23579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
0085ce49
RD
23580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23581 if (!SWIG_IsOK(res1)) {
72ef6efb 23582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
0085ce49
RD
23583 }
23584 arg1 = reinterpret_cast< wxWindow * >(argp1);
23585 {
23586 if (!wxPyCheckForApp()) SWIG_fail;
23587 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 23588 result = (wxClientDC *)new wxClientDC(arg1);
0085ce49
RD
23589 wxPyEndAllowThreads(__tstate);
23590 if (PyErr_Occurred()) SWIG_fail;
23591 }
72ef6efb 23592 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
0085ce49
RD
23593 return resultobj;
23594fail:
23595 return NULL;
23596}
23597
23598
72ef6efb 23599SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
23600 PyObject *obj;
23601 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
72ef6efb 23602 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
0085ce49
RD
23603 return SWIG_Py_Void();
23604}
23605
72ef6efb 23606SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
23607 return SWIG_Python_InitShadowInstance(args);
23608}
23609
72ef6efb 23610SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
23611 PyObject *resultobj = 0;
23612 wxWindow *arg1 = (wxWindow *) 0 ;
72ef6efb 23613 wxPaintDC *result = 0 ;
0085ce49
RD
23614 void *argp1 = 0 ;
23615 int res1 = 0 ;
23616 PyObject * obj0 = 0 ;
23617 char * kwnames[] = {
23618 (char *) "win", NULL
23619 };
23620
72ef6efb 23621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
0085ce49
RD
23622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23623 if (!SWIG_IsOK(res1)) {
72ef6efb 23624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
0085ce49
RD
23625 }
23626 arg1 = reinterpret_cast< wxWindow * >(argp1);
23627 {
23628 if (!wxPyCheckForApp()) SWIG_fail;
23629 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 23630 result = (wxPaintDC *)new wxPaintDC(arg1);
0085ce49
RD
23631 wxPyEndAllowThreads(__tstate);
23632 if (PyErr_Occurred()) SWIG_fail;
23633 }
72ef6efb 23634 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
0085ce49
RD
23635 return resultobj;
23636fail:
23637 return NULL;
23638}
23639
23640
72ef6efb 23641SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
23642 PyObject *obj;
23643 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
72ef6efb 23644 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
0085ce49
RD
23645 return SWIG_Py_Void();
23646}
23647
72ef6efb 23648SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
23649 return SWIG_Python_InitShadowInstance(args);
23650}
23651
23652SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23653 PyObject *resultobj = 0;
23654 wxDC *arg1 = 0 ;
23655 bool arg2 ;
23656 wxMirrorDC *result = 0 ;
23657 void *argp1 = 0 ;
23658 int res1 = 0 ;
23659 bool val2 ;
23660 int ecode2 = 0 ;
23661 PyObject * obj0 = 0 ;
23662 PyObject * obj1 = 0 ;
23663 char * kwnames[] = {
23664 (char *) "dc",(char *) "mirror", NULL
23665 };
23666
23667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
23668 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23669 if (!SWIG_IsOK(res1)) {
23670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23671 }
23672 if (!argp1) {
23673 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23674 }
23675 arg1 = reinterpret_cast< wxDC * >(argp1);
23676 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23677 if (!SWIG_IsOK(ecode2)) {
23678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
23679 }
23680 arg2 = static_cast< bool >(val2);
23681 {
23682 if (!wxPyCheckForApp()) SWIG_fail;
23683 PyThreadState* __tstate = wxPyBeginAllowThreads();
23684 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
23685 wxPyEndAllowThreads(__tstate);
23686 if (PyErr_Occurred()) SWIG_fail;
23687 }
23688 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
23689 return resultobj;
23690fail:
23691 return NULL;
23692}
23693
23694
23695SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23696 PyObject *obj;
23697 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23698 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
23699 return SWIG_Py_Void();
23700}
23701
23702SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23703 return SWIG_Python_InitShadowInstance(args);
23704}
23705
23706SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23707 PyObject *resultobj = 0;
23708 wxPrintData *arg1 = 0 ;
23709 wxPostScriptDC *result = 0 ;
23710 void *argp1 = 0 ;
23711 int res1 = 0 ;
23712 PyObject * obj0 = 0 ;
23713 char * kwnames[] = {
23714 (char *) "printData", NULL
23715 };
23716
23717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
23718 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
23719 if (!SWIG_IsOK(res1)) {
23720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23721 }
23722 if (!argp1) {
23723 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23724 }
23725 arg1 = reinterpret_cast< wxPrintData * >(argp1);
23726 {
23727 if (!wxPyCheckForApp()) SWIG_fail;
23728 PyThreadState* __tstate = wxPyBeginAllowThreads();
23729 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
23730 wxPyEndAllowThreads(__tstate);
23731 if (PyErr_Occurred()) SWIG_fail;
23732 }
23733 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
23734 return resultobj;
23735fail:
23736 return NULL;
23737}
23738
23739
23740SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23741 PyObject *resultobj = 0;
23742 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23743 wxPrintData *result = 0 ;
23744 void *argp1 = 0 ;
23745 int res1 = 0 ;
23746 PyObject *swig_obj[1] ;
23747
23748 if (!args) SWIG_fail;
23749 swig_obj[0] = args;
23750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23751 if (!SWIG_IsOK(res1)) {
23752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23753 }
23754 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23755 {
23756 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 23757 {
0085ce49
RD
23758 wxPrintData &_result_ref = (arg1)->GetPrintData();
23759 result = (wxPrintData *) &_result_ref;
e2950dbb 23760 }
0085ce49
RD
23761 wxPyEndAllowThreads(__tstate);
23762 if (PyErr_Occurred()) SWIG_fail;
23763 }
23764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
23765 return resultobj;
23766fail:
23767 return NULL;
23768}
23769
23770
23771SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23772 PyObject *resultobj = 0;
23773 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23774 wxPrintData *arg2 = 0 ;
23775 void *argp1 = 0 ;
23776 int res1 = 0 ;
23777 void *argp2 = 0 ;
23778 int res2 = 0 ;
23779 PyObject * obj0 = 0 ;
23780 PyObject * obj1 = 0 ;
23781 char * kwnames[] = {
23782 (char *) "self",(char *) "data", NULL
23783 };
23784
23785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
23786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23787 if (!SWIG_IsOK(res1)) {
23788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23789 }
23790 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23791 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
23792 if (!SWIG_IsOK(res2)) {
23793 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23794 }
23795 if (!argp2) {
23796 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23797 }
23798 arg2 = reinterpret_cast< wxPrintData * >(argp2);
23799 {
23800 PyThreadState* __tstate = wxPyBeginAllowThreads();
23801 (arg1)->SetPrintData((wxPrintData const &)*arg2);
23802 wxPyEndAllowThreads(__tstate);
23803 if (PyErr_Occurred()) SWIG_fail;
23804 }
23805 resultobj = SWIG_Py_Void();
23806 return resultobj;
23807fail:
23808 return NULL;
23809}
23810
23811
23812SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23813 PyObject *resultobj = 0;
23814 int arg1 ;
23815 int val1 ;
23816 int ecode1 = 0 ;
23817 PyObject * obj0 = 0 ;
23818 char * kwnames[] = {
23819 (char *) "ppi", NULL
23820 };
23821
23822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
23823 ecode1 = SWIG_AsVal_int(obj0, &val1);
23824 if (!SWIG_IsOK(ecode1)) {
23825 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
23826 }
23827 arg1 = static_cast< int >(val1);
23828 {
23829 PyThreadState* __tstate = wxPyBeginAllowThreads();
23830 wxPostScriptDC::SetResolution(arg1);
23831 wxPyEndAllowThreads(__tstate);
23832 if (PyErr_Occurred()) SWIG_fail;
23833 }
23834 resultobj = SWIG_Py_Void();
23835 return resultobj;
23836fail:
23837 return NULL;
23838}
23839
23840
23841SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23842 PyObject *resultobj = 0;
23843 int result;
23844
23845 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
23846 {
23847 PyThreadState* __tstate = wxPyBeginAllowThreads();
23848 result = (int)wxPostScriptDC::GetResolution();
23849 wxPyEndAllowThreads(__tstate);
23850 if (PyErr_Occurred()) SWIG_fail;
23851 }
23852 resultobj = SWIG_From_int(static_cast< int >(result));
23853 return resultobj;
23854fail:
23855 return NULL;
23856}
23857
23858
23859SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23860 PyObject *obj;
23861 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23862 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
23863 return SWIG_Py_Void();
23864}
23865
23866SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23867 return SWIG_Python_InitShadowInstance(args);
23868}
23869
23870SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23871 PyObject *resultobj = 0;
23872 wxString const &arg1_defvalue = wxPyEmptyString ;
23873 wxString *arg1 = (wxString *) &arg1_defvalue ;
23874 wxMetaFile *result = 0 ;
23875 bool temp1 = false ;
23876 PyObject * obj0 = 0 ;
23877 char * kwnames[] = {
23878 (char *) "filename", NULL
23879 };
23880
23881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
23882 if (obj0) {
093d3ff1 23883 {
0085ce49
RD
23884 arg1 = wxString_in_helper(obj0);
23885 if (arg1 == NULL) SWIG_fail;
23886 temp1 = true;
093d3ff1 23887 }
0085ce49
RD
23888 }
23889 {
23890 if (!wxPyCheckForApp()) SWIG_fail;
23891 PyThreadState* __tstate = wxPyBeginAllowThreads();
23892 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
23893 wxPyEndAllowThreads(__tstate);
23894 if (PyErr_Occurred()) SWIG_fail;
23895 }
23896 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
23897 {
23898 if (temp1)
23899 delete arg1;
23900 }
23901 return resultobj;
23902fail:
23903 {
23904 if (temp1)
23905 delete arg1;
23906 }
23907 return NULL;
23908}
23909
23910
23911SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23912 PyObject *obj;
23913 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23914 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
23915 return SWIG_Py_Void();
23916}
23917
23918SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23919 return SWIG_Python_InitShadowInstance(args);
23920}
23921
23922SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23923 PyObject *resultobj = 0;
23924 wxString const &arg1_defvalue = wxPyEmptyString ;
23925 wxString *arg1 = (wxString *) &arg1_defvalue ;
23926 int arg2 = (int) 0 ;
23927 int arg3 = (int) 0 ;
23928 wxString const &arg4_defvalue = wxPyEmptyString ;
23929 wxString *arg4 = (wxString *) &arg4_defvalue ;
23930 wxMetaFileDC *result = 0 ;
23931 bool temp1 = false ;
23932 int val2 ;
23933 int ecode2 = 0 ;
23934 int val3 ;
23935 int ecode3 = 0 ;
23936 bool temp4 = false ;
23937 PyObject * obj0 = 0 ;
23938 PyObject * obj1 = 0 ;
23939 PyObject * obj2 = 0 ;
23940 PyObject * obj3 = 0 ;
23941 char * kwnames[] = {
23942 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
23943 };
23944
23945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23946 if (obj0) {
093d3ff1 23947 {
0085ce49
RD
23948 arg1 = wxString_in_helper(obj0);
23949 if (arg1 == NULL) SWIG_fail;
23950 temp1 = true;
093d3ff1 23951 }
0085ce49
RD
23952 }
23953 if (obj1) {
23954 ecode2 = SWIG_AsVal_int(obj1, &val2);
23955 if (!SWIG_IsOK(ecode2)) {
23956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
23957 }
23958 arg2 = static_cast< int >(val2);
23959 }
23960 if (obj2) {
23961 ecode3 = SWIG_AsVal_int(obj2, &val3);
23962 if (!SWIG_IsOK(ecode3)) {
23963 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
23964 }
23965 arg3 = static_cast< int >(val3);
23966 }
23967 if (obj3) {
093d3ff1 23968 {
0085ce49
RD
23969 arg4 = wxString_in_helper(obj3);
23970 if (arg4 == NULL) SWIG_fail;
23971 temp4 = true;
093d3ff1 23972 }
0085ce49
RD
23973 }
23974 {
23975 if (!wxPyCheckForApp()) SWIG_fail;
23976 PyThreadState* __tstate = wxPyBeginAllowThreads();
23977 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
23978 wxPyEndAllowThreads(__tstate);
23979 if (PyErr_Occurred()) SWIG_fail;
23980 }
23981 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
23982 {
23983 if (temp1)
23984 delete arg1;
23985 }
23986 {
23987 if (temp4)
23988 delete arg4;
23989 }
23990 return resultobj;
23991fail:
23992 {
23993 if (temp1)
23994 delete arg1;
23995 }
23996 {
23997 if (temp4)
23998 delete arg4;
23999 }
24000 return NULL;
24001}
24002
24003
24004SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24005 PyObject *obj;
24006 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24007 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
24008 return SWIG_Py_Void();
24009}
24010
24011SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24012 return SWIG_Python_InitShadowInstance(args);
24013}
24014
24015SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24016 PyObject *resultobj = 0;
24017 wxPrintData *arg1 = 0 ;
24018 wxPrinterDC *result = 0 ;
24019 void *argp1 = 0 ;
24020 int res1 = 0 ;
24021 PyObject * obj0 = 0 ;
24022 char * kwnames[] = {
24023 (char *) "printData", NULL
24024 };
24025
24026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
24027 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24028 if (!SWIG_IsOK(res1)) {
24029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24030 }
24031 if (!argp1) {
24032 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24033 }
24034 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24035 {
24036 if (!wxPyCheckForApp()) SWIG_fail;
24037 PyThreadState* __tstate = wxPyBeginAllowThreads();
24038 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
24039 wxPyEndAllowThreads(__tstate);
24040 if (PyErr_Occurred()) SWIG_fail;
24041 }
24042 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
24043 return resultobj;
24044fail:
24045 return NULL;
24046}
24047
24048
24049SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24050 PyObject *obj;
24051 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24052 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
24053 return SWIG_Py_Void();
24054}
24055
24056SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24057 return SWIG_Python_InitShadowInstance(args);
24058}
24059
72ef6efb 24060SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 24061 PyObject *resultobj = 0;
72ef6efb 24062 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
0085ce49
RD
24063 void *argp1 = 0 ;
24064 int res1 = 0 ;
24065 PyObject *swig_obj[1] ;
24066
24067 if (!args) SWIG_fail;
24068 swig_obj[0] = args;
72ef6efb 24069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
0085ce49 24070 if (!SWIG_IsOK(res1)) {
72ef6efb 24071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
0085ce49 24072 }
72ef6efb 24073 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
0085ce49
RD
24074 {
24075 PyThreadState* __tstate = wxPyBeginAllowThreads();
24076 delete arg1;
24077
24078 wxPyEndAllowThreads(__tstate);
24079 if (PyErr_Occurred()) SWIG_fail;
24080 }
24081 resultobj = SWIG_Py_Void();
24082 return resultobj;
24083fail:
24084 return NULL;
24085}
24086
24087
72ef6efb 24088SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 24089 PyObject *resultobj = 0;
72ef6efb
RD
24090 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24091 wxDouble arg2 ;
24092 wxDouble arg3 ;
0085ce49
RD
24093 void *argp1 = 0 ;
24094 int res1 = 0 ;
72ef6efb
RD
24095 double val2 ;
24096 int ecode2 = 0 ;
24097 double val3 ;
24098 int ecode3 = 0 ;
0085ce49
RD
24099 PyObject * obj0 = 0 ;
24100 PyObject * obj1 = 0 ;
24101 PyObject * obj2 = 0 ;
24102 char * kwnames[] = {
72ef6efb 24103 (char *) "self",(char *) "x",(char *) "y", NULL
0085ce49
RD
24104 };
24105
72ef6efb
RD
24106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_MoveToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
0085ce49 24108 if (!SWIG_IsOK(res1)) {
72ef6efb 24109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
0085ce49 24110 }
72ef6efb
RD
24111 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24112 ecode2 = SWIG_AsVal_double(obj1, &val2);
24113 if (!SWIG_IsOK(ecode2)) {
24114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24115 }
24116 arg2 = static_cast< wxDouble >(val2);
24117 ecode3 = SWIG_AsVal_double(obj2, &val3);
24118 if (!SWIG_IsOK(ecode3)) {
24119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24120 }
24121 arg3 = static_cast< wxDouble >(val3);
0085ce49
RD
24122 {
24123 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 24124 (arg1)->MoveToPoint(arg2,arg3);
0085ce49
RD
24125 wxPyEndAllowThreads(__tstate);
24126 if (PyErr_Occurred()) SWIG_fail;
24127 }
72ef6efb 24128 resultobj = SWIG_Py_Void();
0085ce49
RD
24129 return resultobj;
24130fail:
24131 return NULL;
24132}
24133
24134
72ef6efb 24135SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 24136 PyObject *resultobj = 0;
72ef6efb
RD
24137 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24138 wxDouble arg2 ;
24139 wxDouble arg3 ;
0085ce49
RD
24140 void *argp1 = 0 ;
24141 int res1 = 0 ;
72ef6efb
RD
24142 double val2 ;
24143 int ecode2 = 0 ;
24144 double val3 ;
24145 int ecode3 = 0 ;
0085ce49
RD
24146 PyObject * obj0 = 0 ;
24147 PyObject * obj1 = 0 ;
24148 PyObject * obj2 = 0 ;
24149 char * kwnames[] = {
72ef6efb 24150 (char *) "self",(char *) "x",(char *) "y", NULL
0085ce49
RD
24151 };
24152
72ef6efb
RD
24153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_AddLineToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
0085ce49 24155 if (!SWIG_IsOK(res1)) {
72ef6efb 24156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
0085ce49 24157 }
72ef6efb
RD
24158 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24159 ecode2 = SWIG_AsVal_double(obj1, &val2);
24160 if (!SWIG_IsOK(ecode2)) {
24161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24162 }
24163 arg2 = static_cast< wxDouble >(val2);
24164 ecode3 = SWIG_AsVal_double(obj2, &val3);
24165 if (!SWIG_IsOK(ecode3)) {
24166 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24167 }
24168 arg3 = static_cast< wxDouble >(val3);
0085ce49
RD
24169 {
24170 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 24171 (arg1)->AddLineToPoint(arg2,arg3);
0085ce49
RD
24172 wxPyEndAllowThreads(__tstate);
24173 if (PyErr_Occurred()) SWIG_fail;
24174 }
72ef6efb 24175 resultobj = SWIG_Py_Void();
0085ce49
RD
24176 return resultobj;
24177fail:
24178 return NULL;
24179}
24180
24181
72ef6efb 24182SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 24183 PyObject *resultobj = 0;
72ef6efb
RD
24184 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24185 wxDouble arg2 ;
24186 wxDouble arg3 ;
24187 wxDouble arg4 ;
24188 wxDouble arg5 ;
24189 wxDouble arg6 ;
24190 wxDouble arg7 ;
0085ce49
RD
24191 void *argp1 = 0 ;
24192 int res1 = 0 ;
72ef6efb
RD
24193 double val2 ;
24194 int ecode2 = 0 ;
24195 double val3 ;
24196 int ecode3 = 0 ;
24197 double val4 ;
24198 int ecode4 = 0 ;
24199 double val5 ;
24200 int ecode5 = 0 ;
24201 double val6 ;
24202 int ecode6 = 0 ;
24203 double val7 ;
24204 int ecode7 = 0 ;
24205 PyObject * obj0 = 0 ;
24206 PyObject * obj1 = 0 ;
24207 PyObject * obj2 = 0 ;
24208 PyObject * obj3 = 0 ;
24209 PyObject * obj4 = 0 ;
24210 PyObject * obj5 = 0 ;
24211 PyObject * obj6 = 0 ;
24212 char * kwnames[] = {
24213 (char *) "self",(char *) "cx1",(char *) "cy1",(char *) "cx2",(char *) "cy2",(char *) "x",(char *) "y", NULL
24214 };
24215
24216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24218 if (!SWIG_IsOK(res1)) {
24219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24220 }
24221 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24222 ecode2 = SWIG_AsVal_double(obj1, &val2);
24223 if (!SWIG_IsOK(ecode2)) {
24224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24225 }
24226 arg2 = static_cast< wxDouble >(val2);
24227 ecode3 = SWIG_AsVal_double(obj2, &val3);
24228 if (!SWIG_IsOK(ecode3)) {
24229 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24230 }
24231 arg3 = static_cast< wxDouble >(val3);
24232 ecode4 = SWIG_AsVal_double(obj3, &val4);
24233 if (!SWIG_IsOK(ecode4)) {
24234 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24235 }
24236 arg4 = static_cast< wxDouble >(val4);
24237 ecode5 = SWIG_AsVal_double(obj4, &val5);
24238 if (!SWIG_IsOK(ecode5)) {
24239 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24240 }
24241 arg5 = static_cast< wxDouble >(val5);
24242 ecode6 = SWIG_AsVal_double(obj5, &val6);
24243 if (!SWIG_IsOK(ecode6)) {
24244 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
24245 }
24246 arg6 = static_cast< wxDouble >(val6);
24247 ecode7 = SWIG_AsVal_double(obj6, &val7);
24248 if (!SWIG_IsOK(ecode7)) {
24249 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
24250 }
24251 arg7 = static_cast< wxDouble >(val7);
24252 {
24253 PyThreadState* __tstate = wxPyBeginAllowThreads();
24254 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
24255 wxPyEndAllowThreads(__tstate);
24256 if (PyErr_Occurred()) SWIG_fail;
24257 }
24258 resultobj = SWIG_Py_Void();
24259 return resultobj;
24260fail:
24261 return NULL;
24262}
24263
24264
24265SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24266 PyObject *resultobj = 0;
24267 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
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_wxGraphicsPath, 0 | 0 );
24275 if (!SWIG_IsOK(res1)) {
24276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24277 }
24278 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24279 {
24280 PyThreadState* __tstate = wxPyBeginAllowThreads();
24281 (arg1)->CloseSubpath();
24282 wxPyEndAllowThreads(__tstate);
24283 if (PyErr_Occurred()) SWIG_fail;
24284 }
24285 resultobj = SWIG_Py_Void();
24286 return resultobj;
24287fail:
24288 return NULL;
24289}
24290
24291
24292SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24293 PyObject *resultobj = 0;
24294 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24295 wxPoint2D result;
24296 void *argp1 = 0 ;
24297 int res1 = 0 ;
24298 PyObject *swig_obj[1] ;
24299
24300 if (!args) SWIG_fail;
24301 swig_obj[0] = args;
24302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24303 if (!SWIG_IsOK(res1)) {
24304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24305 }
24306 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24307 {
24308 PyThreadState* __tstate = wxPyBeginAllowThreads();
24309 result = (arg1)->GetCurrentPoint();
24310 wxPyEndAllowThreads(__tstate);
24311 if (PyErr_Occurred()) SWIG_fail;
24312 }
24313 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
24314 return resultobj;
24315fail:
24316 return NULL;
24317}
24318
24319
24320SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24321 PyObject *resultobj = 0;
24322 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24323 wxDouble arg2 ;
24324 wxDouble arg3 ;
24325 wxDouble arg4 ;
24326 wxDouble arg5 ;
24327 wxDouble arg6 ;
24328 bool arg7 ;
24329 void *argp1 = 0 ;
24330 int res1 = 0 ;
24331 double val2 ;
24332 int ecode2 = 0 ;
24333 double val3 ;
24334 int ecode3 = 0 ;
24335 double val4 ;
24336 int ecode4 = 0 ;
24337 double val5 ;
24338 int ecode5 = 0 ;
24339 double val6 ;
24340 int ecode6 = 0 ;
24341 bool val7 ;
24342 int ecode7 = 0 ;
24343 PyObject * obj0 = 0 ;
24344 PyObject * obj1 = 0 ;
24345 PyObject * obj2 = 0 ;
24346 PyObject * obj3 = 0 ;
24347 PyObject * obj4 = 0 ;
24348 PyObject * obj5 = 0 ;
24349 PyObject * obj6 = 0 ;
24350 char * kwnames[] = {
24351 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "startAngle",(char *) "endAngle",(char *) "clockwise", NULL
24352 };
24353
24354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24356 if (!SWIG_IsOK(res1)) {
24357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24358 }
24359 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24360 ecode2 = SWIG_AsVal_double(obj1, &val2);
24361 if (!SWIG_IsOK(ecode2)) {
24362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
24363 }
24364 arg2 = static_cast< wxDouble >(val2);
24365 ecode3 = SWIG_AsVal_double(obj2, &val3);
24366 if (!SWIG_IsOK(ecode3)) {
24367 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
24368 }
24369 arg3 = static_cast< wxDouble >(val3);
24370 ecode4 = SWIG_AsVal_double(obj3, &val4);
24371 if (!SWIG_IsOK(ecode4)) {
24372 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
24373 }
24374 arg4 = static_cast< wxDouble >(val4);
24375 ecode5 = SWIG_AsVal_double(obj4, &val5);
24376 if (!SWIG_IsOK(ecode5)) {
24377 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
24378 }
24379 arg5 = static_cast< wxDouble >(val5);
24380 ecode6 = SWIG_AsVal_double(obj5, &val6);
24381 if (!SWIG_IsOK(ecode6)) {
24382 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
24383 }
24384 arg6 = static_cast< wxDouble >(val6);
24385 ecode7 = SWIG_AsVal_bool(obj6, &val7);
24386 if (!SWIG_IsOK(ecode7)) {
24387 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
24388 }
24389 arg7 = static_cast< bool >(val7);
24390 {
24391 PyThreadState* __tstate = wxPyBeginAllowThreads();
24392 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
24393 wxPyEndAllowThreads(__tstate);
24394 if (PyErr_Occurred()) SWIG_fail;
24395 }
24396 resultobj = SWIG_Py_Void();
24397 return resultobj;
24398fail:
24399 return NULL;
24400}
24401
24402
24403SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24404 PyObject *resultobj = 0;
24405 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24406 wxDouble arg2 ;
24407 wxDouble arg3 ;
24408 wxDouble arg4 ;
24409 wxDouble arg5 ;
24410 void *argp1 = 0 ;
24411 int res1 = 0 ;
24412 double val2 ;
24413 int ecode2 = 0 ;
24414 double val3 ;
24415 int ecode3 = 0 ;
24416 double val4 ;
24417 int ecode4 = 0 ;
24418 double val5 ;
24419 int ecode5 = 0 ;
24420 PyObject * obj0 = 0 ;
24421 PyObject * obj1 = 0 ;
24422 PyObject * obj2 = 0 ;
24423 PyObject * obj3 = 0 ;
24424 PyObject * obj4 = 0 ;
24425 char * kwnames[] = {
24426 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
24427 };
24428
24429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24431 if (!SWIG_IsOK(res1)) {
24432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24433 }
24434 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24435 ecode2 = SWIG_AsVal_double(obj1, &val2);
24436 if (!SWIG_IsOK(ecode2)) {
24437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24438 }
24439 arg2 = static_cast< wxDouble >(val2);
24440 ecode3 = SWIG_AsVal_double(obj2, &val3);
24441 if (!SWIG_IsOK(ecode3)) {
24442 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24443 }
24444 arg3 = static_cast< wxDouble >(val3);
24445 ecode4 = SWIG_AsVal_double(obj3, &val4);
24446 if (!SWIG_IsOK(ecode4)) {
24447 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24448 }
24449 arg4 = static_cast< wxDouble >(val4);
24450 ecode5 = SWIG_AsVal_double(obj4, &val5);
24451 if (!SWIG_IsOK(ecode5)) {
24452 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24453 }
24454 arg5 = static_cast< wxDouble >(val5);
24455 {
24456 PyThreadState* __tstate = wxPyBeginAllowThreads();
24457 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
24458 wxPyEndAllowThreads(__tstate);
24459 if (PyErr_Occurred()) SWIG_fail;
24460 }
24461 resultobj = SWIG_Py_Void();
24462 return resultobj;
24463fail:
24464 return NULL;
24465}
24466
24467
24468SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24469 PyObject *resultobj = 0;
24470 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24471 wxDouble arg2 ;
24472 wxDouble arg3 ;
24473 wxDouble arg4 ;
24474 wxDouble arg5 ;
24475 void *argp1 = 0 ;
24476 int res1 = 0 ;
24477 double val2 ;
24478 int ecode2 = 0 ;
24479 double val3 ;
24480 int ecode3 = 0 ;
24481 double val4 ;
24482 int ecode4 = 0 ;
24483 double val5 ;
24484 int ecode5 = 0 ;
24485 PyObject * obj0 = 0 ;
24486 PyObject * obj1 = 0 ;
24487 PyObject * obj2 = 0 ;
24488 PyObject * obj3 = 0 ;
24489 PyObject * obj4 = 0 ;
24490 char * kwnames[] = {
24491 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
24492 };
24493
24494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24496 if (!SWIG_IsOK(res1)) {
24497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24498 }
24499 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24500 ecode2 = SWIG_AsVal_double(obj1, &val2);
24501 if (!SWIG_IsOK(ecode2)) {
24502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
24503 }
24504 arg2 = static_cast< wxDouble >(val2);
24505 ecode3 = SWIG_AsVal_double(obj2, &val3);
24506 if (!SWIG_IsOK(ecode3)) {
24507 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
24508 }
24509 arg3 = static_cast< wxDouble >(val3);
24510 ecode4 = SWIG_AsVal_double(obj3, &val4);
24511 if (!SWIG_IsOK(ecode4)) {
24512 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
24513 }
24514 arg4 = static_cast< wxDouble >(val4);
24515 ecode5 = SWIG_AsVal_double(obj4, &val5);
24516 if (!SWIG_IsOK(ecode5)) {
24517 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
24518 }
24519 arg5 = static_cast< wxDouble >(val5);
24520 {
24521 PyThreadState* __tstate = wxPyBeginAllowThreads();
24522 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
24523 wxPyEndAllowThreads(__tstate);
24524 if (PyErr_Occurred()) SWIG_fail;
24525 }
24526 resultobj = SWIG_Py_Void();
24527 return resultobj;
24528fail:
24529 return NULL;
24530}
24531
24532
24533SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24534 PyObject *resultobj = 0;
24535 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24536 wxDouble arg2 ;
24537 wxDouble arg3 ;
24538 wxDouble arg4 ;
24539 void *argp1 = 0 ;
24540 int res1 = 0 ;
24541 double val2 ;
24542 int ecode2 = 0 ;
24543 double val3 ;
24544 int ecode3 = 0 ;
24545 double val4 ;
24546 int ecode4 = 0 ;
24547 PyObject * obj0 = 0 ;
24548 PyObject * obj1 = 0 ;
24549 PyObject * obj2 = 0 ;
24550 PyObject * obj3 = 0 ;
24551 char * kwnames[] = {
24552 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
24553 };
24554
24555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24557 if (!SWIG_IsOK(res1)) {
24558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24559 }
24560 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24561 ecode2 = SWIG_AsVal_double(obj1, &val2);
24562 if (!SWIG_IsOK(ecode2)) {
24563 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
24564 }
24565 arg2 = static_cast< wxDouble >(val2);
24566 ecode3 = SWIG_AsVal_double(obj2, &val3);
24567 if (!SWIG_IsOK(ecode3)) {
24568 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
24569 }
24570 arg3 = static_cast< wxDouble >(val3);
24571 ecode4 = SWIG_AsVal_double(obj3, &val4);
24572 if (!SWIG_IsOK(ecode4)) {
24573 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
24574 }
24575 arg4 = static_cast< wxDouble >(val4);
24576 {
24577 PyThreadState* __tstate = wxPyBeginAllowThreads();
24578 (arg1)->AddCircle(arg2,arg3,arg4);
24579 wxPyEndAllowThreads(__tstate);
24580 if (PyErr_Occurred()) SWIG_fail;
24581 }
24582 resultobj = SWIG_Py_Void();
24583 return resultobj;
24584fail:
24585 return NULL;
24586}
24587
24588
24589SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24590 PyObject *resultobj = 0;
24591 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24592 wxDouble arg2 ;
24593 wxDouble arg3 ;
24594 wxDouble arg4 ;
24595 wxDouble arg5 ;
24596 wxDouble arg6 ;
24597 void *argp1 = 0 ;
24598 int res1 = 0 ;
24599 double val2 ;
24600 int ecode2 = 0 ;
24601 double val3 ;
24602 int ecode3 = 0 ;
24603 double val4 ;
24604 int ecode4 = 0 ;
24605 double val5 ;
24606 int ecode5 = 0 ;
24607 double val6 ;
24608 int ecode6 = 0 ;
24609 PyObject * obj0 = 0 ;
24610 PyObject * obj1 = 0 ;
24611 PyObject * obj2 = 0 ;
24612 PyObject * obj3 = 0 ;
24613 PyObject * obj4 = 0 ;
24614 PyObject * obj5 = 0 ;
24615 char * kwnames[] = {
24616 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
24617 };
24618
24619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) 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_AddArcToPoint" "', 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_AddArcToPoint" "', 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_AddArcToPoint" "', 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_AddArcToPoint" "', 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_AddArcToPoint" "', 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_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
24648 }
24649 arg6 = static_cast< wxDouble >(val6);
24650 {
24651 PyThreadState* __tstate = wxPyBeginAllowThreads();
24652 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
24653 wxPyEndAllowThreads(__tstate);
24654 if (PyErr_Occurred()) SWIG_fail;
24655 }
24656 resultobj = SWIG_Py_Void();
24657 return resultobj;
24658fail:
24659 return NULL;
24660}
24661
24662
24663SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24664 PyObject *obj;
24665 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24666 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
24667 return SWIG_Py_Void();
24668}
24669
24670SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24671 PyObject *resultobj = 0;
24672 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24673 void *argp1 = 0 ;
24674 int res1 = 0 ;
24675 PyObject *swig_obj[1] ;
24676
24677 if (!args) SWIG_fail;
24678 swig_obj[0] = args;
24679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
24680 if (!SWIG_IsOK(res1)) {
24681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24682 }
24683 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24684 {
24685 PyThreadState* __tstate = wxPyBeginAllowThreads();
24686 delete arg1;
24687
24688 wxPyEndAllowThreads(__tstate);
24689 if (PyErr_Occurred()) SWIG_fail;
24690 }
24691 resultobj = SWIG_Py_Void();
24692 return resultobj;
24693fail:
24694 return NULL;
24695}
24696
24697
24698SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24699 PyObject *resultobj = 0;
24700 wxWindowDC *arg1 = 0 ;
24701 wxGraphicsContext *result = 0 ;
24702 void *argp1 = 0 ;
24703 int res1 = 0 ;
24704 PyObject * obj0 = 0 ;
24705 char * kwnames[] = {
24706 (char *) "dc", NULL
24707 };
24708
24709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_Create",kwnames,&obj0)) SWIG_fail;
24710 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
24711 if (!SWIG_IsOK(res1)) {
24712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
24713 }
24714 if (!argp1) {
24715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
24716 }
24717 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
24718 {
24719 PyThreadState* __tstate = wxPyBeginAllowThreads();
24720 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
24721 wxPyEndAllowThreads(__tstate);
24722 if (PyErr_Occurred()) SWIG_fail;
24723 }
24724 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24725 return resultobj;
24726fail:
24727 return NULL;
24728}
24729
24730
24731SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24732 PyObject *resultobj = 0;
24733 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24734 wxGraphicsPath *result = 0 ;
24735 void *argp1 = 0 ;
24736 int res1 = 0 ;
24737 PyObject *swig_obj[1] ;
24738
24739 if (!args) SWIG_fail;
24740 swig_obj[0] = args;
24741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24742 if (!SWIG_IsOK(res1)) {
24743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24744 }
24745 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24746 {
24747 PyThreadState* __tstate = wxPyBeginAllowThreads();
24748 result = (wxGraphicsPath *)(arg1)->CreatePath();
24749 wxPyEndAllowThreads(__tstate);
24750 if (PyErr_Occurred()) SWIG_fail;
24751 }
24752 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24753 return resultobj;
24754fail:
24755 return NULL;
24756}
24757
24758
24759SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24760 PyObject *resultobj = 0;
24761 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24762 void *argp1 = 0 ;
24763 int res1 = 0 ;
24764 PyObject *swig_obj[1] ;
24765
24766 if (!args) SWIG_fail;
24767 swig_obj[0] = args;
24768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24769 if (!SWIG_IsOK(res1)) {
24770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24771 }
24772 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24773 {
24774 PyThreadState* __tstate = wxPyBeginAllowThreads();
24775 (arg1)->PushState();
24776 wxPyEndAllowThreads(__tstate);
24777 if (PyErr_Occurred()) SWIG_fail;
24778 }
24779 resultobj = SWIG_Py_Void();
24780 return resultobj;
24781fail:
24782 return NULL;
24783}
24784
24785
24786SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24787 PyObject *resultobj = 0;
24788 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24789 void *argp1 = 0 ;
24790 int res1 = 0 ;
24791 PyObject *swig_obj[1] ;
24792
24793 if (!args) SWIG_fail;
24794 swig_obj[0] = args;
24795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24796 if (!SWIG_IsOK(res1)) {
24797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24798 }
24799 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24800 {
24801 PyThreadState* __tstate = wxPyBeginAllowThreads();
24802 (arg1)->PopState();
24803 wxPyEndAllowThreads(__tstate);
24804 if (PyErr_Occurred()) SWIG_fail;
24805 }
24806 resultobj = SWIG_Py_Void();
24807 return resultobj;
24808fail:
24809 return NULL;
24810}
24811
24812
24813SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24814 PyObject *resultobj = 0;
24815 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24816 wxRegion *arg2 = 0 ;
24817 void *argp1 = 0 ;
24818 int res1 = 0 ;
24819 void *argp2 = 0 ;
24820 int res2 = 0 ;
24821 PyObject * obj0 = 0 ;
24822 PyObject * obj1 = 0 ;
24823 char * kwnames[] = {
24824 (char *) "self",(char *) "region", NULL
24825 };
24826
24827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Clip",kwnames,&obj0,&obj1)) SWIG_fail;
24828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24829 if (!SWIG_IsOK(res1)) {
24830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24831 }
24832 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24833 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
24834 if (!SWIG_IsOK(res2)) {
24835 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxRegion const &""'");
24836 }
24837 if (!argp2) {
24838 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxRegion const &""'");
24839 }
24840 arg2 = reinterpret_cast< wxRegion * >(argp2);
24841 {
24842 PyThreadState* __tstate = wxPyBeginAllowThreads();
24843 (arg1)->Clip((wxRegion const &)*arg2);
24844 wxPyEndAllowThreads(__tstate);
24845 if (PyErr_Occurred()) SWIG_fail;
24846 }
24847 resultobj = SWIG_Py_Void();
24848 return resultobj;
24849fail:
24850 return NULL;
24851}
24852
24853
24854SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24855 PyObject *resultobj = 0;
24856 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24857 wxDouble arg2 ;
24858 wxDouble arg3 ;
24859 void *argp1 = 0 ;
24860 int res1 = 0 ;
24861 double val2 ;
24862 int ecode2 = 0 ;
24863 double val3 ;
24864 int ecode3 = 0 ;
24865 PyObject * obj0 = 0 ;
24866 PyObject * obj1 = 0 ;
24867 PyObject * obj2 = 0 ;
24868 char * kwnames[] = {
24869 (char *) "self",(char *) "dx",(char *) "dy", NULL
24870 };
24871
24872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24874 if (!SWIG_IsOK(res1)) {
24875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24876 }
24877 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24878 ecode2 = SWIG_AsVal_double(obj1, &val2);
24879 if (!SWIG_IsOK(ecode2)) {
24880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
24881 }
24882 arg2 = static_cast< wxDouble >(val2);
24883 ecode3 = SWIG_AsVal_double(obj2, &val3);
24884 if (!SWIG_IsOK(ecode3)) {
24885 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
24886 }
24887 arg3 = static_cast< wxDouble >(val3);
24888 {
24889 PyThreadState* __tstate = wxPyBeginAllowThreads();
24890 (arg1)->Translate(arg2,arg3);
24891 wxPyEndAllowThreads(__tstate);
24892 if (PyErr_Occurred()) SWIG_fail;
24893 }
24894 resultobj = SWIG_Py_Void();
24895 return resultobj;
24896fail:
24897 return NULL;
24898}
24899
24900
24901SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24902 PyObject *resultobj = 0;
24903 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24904 wxDouble arg2 ;
24905 wxDouble arg3 ;
24906 void *argp1 = 0 ;
24907 int res1 = 0 ;
24908 double val2 ;
24909 int ecode2 = 0 ;
24910 double val3 ;
24911 int ecode3 = 0 ;
24912 PyObject * obj0 = 0 ;
24913 PyObject * obj1 = 0 ;
24914 PyObject * obj2 = 0 ;
24915 char * kwnames[] = {
24916 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
24917 };
24918
24919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24921 if (!SWIG_IsOK(res1)) {
24922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24923 }
24924 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24925 ecode2 = SWIG_AsVal_double(obj1, &val2);
24926 if (!SWIG_IsOK(ecode2)) {
24927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
24928 }
24929 arg2 = static_cast< wxDouble >(val2);
24930 ecode3 = SWIG_AsVal_double(obj2, &val3);
24931 if (!SWIG_IsOK(ecode3)) {
24932 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
24933 }
24934 arg3 = static_cast< wxDouble >(val3);
24935 {
24936 PyThreadState* __tstate = wxPyBeginAllowThreads();
24937 (arg1)->Scale(arg2,arg3);
24938 wxPyEndAllowThreads(__tstate);
24939 if (PyErr_Occurred()) SWIG_fail;
24940 }
24941 resultobj = SWIG_Py_Void();
24942 return resultobj;
24943fail:
24944 return NULL;
24945}
24946
24947
24948SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24949 PyObject *resultobj = 0;
24950 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24951 wxDouble arg2 ;
24952 void *argp1 = 0 ;
24953 int res1 = 0 ;
24954 double val2 ;
24955 int ecode2 = 0 ;
24956 PyObject * obj0 = 0 ;
24957 PyObject * obj1 = 0 ;
24958 char * kwnames[] = {
24959 (char *) "self",(char *) "angle", NULL
24960 };
24961
24962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
24963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24964 if (!SWIG_IsOK(res1)) {
24965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24966 }
24967 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24968 ecode2 = SWIG_AsVal_double(obj1, &val2);
24969 if (!SWIG_IsOK(ecode2)) {
24970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
24971 }
24972 arg2 = static_cast< wxDouble >(val2);
24973 {
24974 PyThreadState* __tstate = wxPyBeginAllowThreads();
24975 (arg1)->Rotate(arg2);
24976 wxPyEndAllowThreads(__tstate);
24977 if (PyErr_Occurred()) SWIG_fail;
24978 }
24979 resultobj = SWIG_Py_Void();
24980 return resultobj;
24981fail:
24982 return NULL;
24983}
24984
24985
24986SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24987 PyObject *resultobj = 0;
24988 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24989 wxPen *arg2 = 0 ;
24990 void *argp1 = 0 ;
24991 int res1 = 0 ;
24992 void *argp2 = 0 ;
24993 int res2 = 0 ;
24994 PyObject * obj0 = 0 ;
24995 PyObject * obj1 = 0 ;
24996 char * kwnames[] = {
24997 (char *) "self",(char *) "pen", NULL
24998 };
24999
25000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
25001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25002 if (!SWIG_IsOK(res1)) {
25003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25004 }
25005 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25006 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
25007 if (!SWIG_IsOK(res2)) {
25008 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25009 }
25010 if (!argp2) {
25011 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25012 }
25013 arg2 = reinterpret_cast< wxPen * >(argp2);
25014 {
25015 PyThreadState* __tstate = wxPyBeginAllowThreads();
25016 (arg1)->SetPen((wxPen const &)*arg2);
25017 wxPyEndAllowThreads(__tstate);
25018 if (PyErr_Occurred()) SWIG_fail;
25019 }
25020 resultobj = SWIG_Py_Void();
25021 return resultobj;
25022fail:
25023 return NULL;
25024}
25025
25026
25027SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25028 PyObject *resultobj = 0;
25029 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25030 wxBrush *arg2 = 0 ;
25031 void *argp1 = 0 ;
25032 int res1 = 0 ;
25033 void *argp2 = 0 ;
25034 int res2 = 0 ;
25035 PyObject * obj0 = 0 ;
25036 PyObject * obj1 = 0 ;
25037 char * kwnames[] = {
25038 (char *) "self",(char *) "brush", NULL
25039 };
25040
25041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25043 if (!SWIG_IsOK(res1)) {
25044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25045 }
25046 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25047 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
25048 if (!SWIG_IsOK(res2)) {
25049 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25050 }
25051 if (!argp2) {
25052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25053 }
25054 arg2 = reinterpret_cast< wxBrush * >(argp2);
25055 {
25056 PyThreadState* __tstate = wxPyBeginAllowThreads();
25057 (arg1)->SetBrush((wxBrush const &)*arg2);
25058 wxPyEndAllowThreads(__tstate);
25059 if (PyErr_Occurred()) SWIG_fail;
25060 }
25061 resultobj = SWIG_Py_Void();
25062 return resultobj;
25063fail:
25064 return NULL;
25065}
25066
25067
25068SWIGINTERN PyObject *_wrap_GraphicsContext_SetLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25069 PyObject *resultobj = 0;
25070 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25071 wxDouble arg2 ;
25072 wxDouble arg3 ;
25073 wxDouble arg4 ;
25074 wxDouble arg5 ;
25075 wxColour *arg6 = 0 ;
25076 wxColour *arg7 = 0 ;
25077 void *argp1 = 0 ;
25078 int res1 = 0 ;
25079 double val2 ;
25080 int ecode2 = 0 ;
25081 double val3 ;
25082 int ecode3 = 0 ;
25083 double val4 ;
25084 int ecode4 = 0 ;
25085 double val5 ;
25086 int ecode5 = 0 ;
25087 wxColour temp6 ;
25088 wxColour temp7 ;
25089 PyObject * obj0 = 0 ;
25090 PyObject * obj1 = 0 ;
25091 PyObject * obj2 = 0 ;
25092 PyObject * obj3 = 0 ;
25093 PyObject * obj4 = 0 ;
25094 PyObject * obj5 = 0 ;
25095 PyObject * obj6 = 0 ;
25096 char * kwnames[] = {
25097 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
25098 };
25099
25100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_SetLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25102 if (!SWIG_IsOK(res1)) {
25103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25104 }
25105 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25106 ecode2 = SWIG_AsVal_double(obj1, &val2);
25107 if (!SWIG_IsOK(ecode2)) {
25108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25109 }
25110 arg2 = static_cast< wxDouble >(val2);
25111 ecode3 = SWIG_AsVal_double(obj2, &val3);
25112 if (!SWIG_IsOK(ecode3)) {
25113 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25114 }
25115 arg3 = static_cast< wxDouble >(val3);
25116 ecode4 = SWIG_AsVal_double(obj3, &val4);
25117 if (!SWIG_IsOK(ecode4)) {
25118 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25119 }
25120 arg4 = static_cast< wxDouble >(val4);
25121 ecode5 = SWIG_AsVal_double(obj4, &val5);
25122 if (!SWIG_IsOK(ecode5)) {
25123 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25124 }
25125 arg5 = static_cast< wxDouble >(val5);
25126 {
25127 arg6 = &temp6;
25128 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
25129 }
25130 {
25131 arg7 = &temp7;
25132 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25133 }
25134 {
25135 PyThreadState* __tstate = wxPyBeginAllowThreads();
25136 (arg1)->SetLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
25137 wxPyEndAllowThreads(__tstate);
25138 if (PyErr_Occurred()) SWIG_fail;
25139 }
25140 resultobj = SWIG_Py_Void();
25141 return resultobj;
25142fail:
25143 return NULL;
25144}
25145
25146
25147SWIGINTERN PyObject *_wrap_GraphicsContext_SetRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25148 PyObject *resultobj = 0;
25149 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25150 wxDouble arg2 ;
25151 wxDouble arg3 ;
25152 wxDouble arg4 ;
25153 wxDouble arg5 ;
25154 wxDouble arg6 ;
25155 wxColour *arg7 = 0 ;
25156 wxColour *arg8 = 0 ;
25157 void *argp1 = 0 ;
25158 int res1 = 0 ;
25159 double val2 ;
25160 int ecode2 = 0 ;
25161 double val3 ;
25162 int ecode3 = 0 ;
25163 double val4 ;
25164 int ecode4 = 0 ;
25165 double val5 ;
25166 int ecode5 = 0 ;
25167 double val6 ;
25168 int ecode6 = 0 ;
25169 wxColour temp7 ;
25170 wxColour temp8 ;
25171 PyObject * obj0 = 0 ;
25172 PyObject * obj1 = 0 ;
25173 PyObject * obj2 = 0 ;
25174 PyObject * obj3 = 0 ;
25175 PyObject * obj4 = 0 ;
25176 PyObject * obj5 = 0 ;
25177 PyObject * obj6 = 0 ;
25178 PyObject * obj7 = 0 ;
25179 char * kwnames[] = {
25180 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
25181 };
25182
25183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_SetRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
25184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25185 if (!SWIG_IsOK(res1)) {
25186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25187 }
25188 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25189 ecode2 = SWIG_AsVal_double(obj1, &val2);
25190 if (!SWIG_IsOK(ecode2)) {
25191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25192 }
25193 arg2 = static_cast< wxDouble >(val2);
25194 ecode3 = SWIG_AsVal_double(obj2, &val3);
25195 if (!SWIG_IsOK(ecode3)) {
25196 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25197 }
25198 arg3 = static_cast< wxDouble >(val3);
25199 ecode4 = SWIG_AsVal_double(obj3, &val4);
25200 if (!SWIG_IsOK(ecode4)) {
25201 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25202 }
25203 arg4 = static_cast< wxDouble >(val4);
25204 ecode5 = SWIG_AsVal_double(obj4, &val5);
25205 if (!SWIG_IsOK(ecode5)) {
25206 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25207 }
25208 arg5 = static_cast< wxDouble >(val5);
25209 ecode6 = SWIG_AsVal_double(obj5, &val6);
25210 if (!SWIG_IsOK(ecode6)) {
25211 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
25212 }
25213 arg6 = static_cast< wxDouble >(val6);
25214 {
25215 arg7 = &temp7;
25216 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25217 }
25218 {
25219 arg8 = &temp8;
25220 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
25221 }
25222 {
25223 PyThreadState* __tstate = wxPyBeginAllowThreads();
25224 (arg1)->SetRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
25225 wxPyEndAllowThreads(__tstate);
25226 if (PyErr_Occurred()) SWIG_fail;
25227 }
25228 resultobj = SWIG_Py_Void();
25229 return resultobj;
25230fail:
25231 return NULL;
25232}
25233
25234
25235SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25236 PyObject *resultobj = 0;
25237 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25238 wxFont *arg2 = 0 ;
25239 void *argp1 = 0 ;
25240 int res1 = 0 ;
25241 void *argp2 = 0 ;
25242 int res2 = 0 ;
25243 PyObject * obj0 = 0 ;
25244 PyObject * obj1 = 0 ;
25245 char * kwnames[] = {
25246 (char *) "self",(char *) "font", NULL
25247 };
25248
25249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25251 if (!SWIG_IsOK(res1)) {
25252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25253 }
25254 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25255 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25256 if (!SWIG_IsOK(res2)) {
25257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25258 }
25259 if (!argp2) {
25260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25261 }
25262 arg2 = reinterpret_cast< wxFont * >(argp2);
25263 {
25264 PyThreadState* __tstate = wxPyBeginAllowThreads();
25265 (arg1)->SetFont((wxFont const &)*arg2);
25266 wxPyEndAllowThreads(__tstate);
25267 if (PyErr_Occurred()) SWIG_fail;
25268 }
25269 resultobj = SWIG_Py_Void();
25270 return resultobj;
25271fail:
25272 return NULL;
25273}
25274
25275
25276SWIGINTERN PyObject *_wrap_GraphicsContext_SetTextColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25277 PyObject *resultobj = 0;
25278 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25279 wxColour *arg2 = 0 ;
25280 void *argp1 = 0 ;
25281 int res1 = 0 ;
25282 wxColour temp2 ;
25283 PyObject * obj0 = 0 ;
25284 PyObject * obj1 = 0 ;
25285 char * kwnames[] = {
25286 (char *) "self",(char *) "col", NULL
25287 };
25288
25289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTextColor",kwnames,&obj0,&obj1)) SWIG_fail;
25290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25291 if (!SWIG_IsOK(res1)) {
25292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTextColor" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25293 }
25294 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25295 {
25296 arg2 = &temp2;
25297 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25298 }
25299 {
25300 PyThreadState* __tstate = wxPyBeginAllowThreads();
25301 (arg1)->SetTextColor((wxColour const &)*arg2);
25302 wxPyEndAllowThreads(__tstate);
25303 if (PyErr_Occurred()) SWIG_fail;
25304 }
25305 resultobj = SWIG_Py_Void();
25306 return resultobj;
25307fail:
25308 return NULL;
25309}
25310
25311
25312SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25313 PyObject *resultobj = 0;
25314 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25315 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25316 void *argp1 = 0 ;
25317 int res1 = 0 ;
25318 void *argp2 = 0 ;
25319 int res2 = 0 ;
25320 PyObject * obj0 = 0 ;
25321 PyObject * obj1 = 0 ;
25322 char * kwnames[] = {
25323 (char *) "self",(char *) "path", NULL
25324 };
25325
25326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
25327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25328 if (!SWIG_IsOK(res1)) {
25329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25330 }
25331 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25332 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25333 if (!SWIG_IsOK(res2)) {
25334 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25335 }
25336 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25337 {
25338 PyThreadState* __tstate = wxPyBeginAllowThreads();
25339 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
25340 wxPyEndAllowThreads(__tstate);
25341 if (PyErr_Occurred()) SWIG_fail;
25342 }
25343 resultobj = SWIG_Py_Void();
25344 return resultobj;
25345fail:
25346 return NULL;
25347}
25348
25349
25350SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25351 PyObject *resultobj = 0;
25352 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25353 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25354 int arg3 = (int) wxWINDING_RULE ;
25355 void *argp1 = 0 ;
25356 int res1 = 0 ;
25357 void *argp2 = 0 ;
25358 int res2 = 0 ;
25359 int val3 ;
25360 int ecode3 = 0 ;
25361 PyObject * obj0 = 0 ;
25362 PyObject * obj1 = 0 ;
25363 PyObject * obj2 = 0 ;
25364 char * kwnames[] = {
25365 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25366 };
25367
25368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25370 if (!SWIG_IsOK(res1)) {
25371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25372 }
25373 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25374 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25375 if (!SWIG_IsOK(res2)) {
25376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25377 }
25378 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25379 if (obj2) {
25380 ecode3 = SWIG_AsVal_int(obj2, &val3);
25381 if (!SWIG_IsOK(ecode3)) {
25382 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
25383 }
25384 arg3 = static_cast< int >(val3);
25385 }
25386 {
25387 PyThreadState* __tstate = wxPyBeginAllowThreads();
25388 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
25389 wxPyEndAllowThreads(__tstate);
25390 if (PyErr_Occurred()) SWIG_fail;
25391 }
25392 resultobj = SWIG_Py_Void();
25393 return resultobj;
25394fail:
25395 return NULL;
25396}
25397
25398
25399SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25400 PyObject *resultobj = 0;
25401 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25402 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25403 int arg3 = (int) wxWINDING_RULE ;
25404 void *argp1 = 0 ;
25405 int res1 = 0 ;
25406 void *argp2 = 0 ;
25407 int res2 = 0 ;
25408 int val3 ;
25409 int ecode3 = 0 ;
25410 PyObject * obj0 = 0 ;
25411 PyObject * obj1 = 0 ;
25412 PyObject * obj2 = 0 ;
25413 char * kwnames[] = {
25414 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25415 };
25416
25417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25419 if (!SWIG_IsOK(res1)) {
25420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25421 }
25422 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25423 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25424 if (!SWIG_IsOK(res2)) {
25425 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25426 }
25427 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25428 if (obj2) {
25429 ecode3 = SWIG_AsVal_int(obj2, &val3);
25430 if (!SWIG_IsOK(ecode3)) {
25431 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
25432 }
25433 arg3 = static_cast< int >(val3);
25434 }
25435 {
25436 PyThreadState* __tstate = wxPyBeginAllowThreads();
25437 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
25438 wxPyEndAllowThreads(__tstate);
25439 if (PyErr_Occurred()) SWIG_fail;
25440 }
25441 resultobj = SWIG_Py_Void();
25442 return resultobj;
25443fail:
25444 return NULL;
25445}
25446
25447
25448SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25449 PyObject *resultobj = 0;
25450 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25451 wxString *arg2 = 0 ;
25452 wxDouble arg3 ;
25453 wxDouble arg4 ;
25454 void *argp1 = 0 ;
25455 int res1 = 0 ;
25456 bool temp2 = false ;
25457 double val3 ;
25458 int ecode3 = 0 ;
25459 double val4 ;
25460 int ecode4 = 0 ;
25461
25462 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
25463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25464 if (!SWIG_IsOK(res1)) {
25465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25466 }
25467 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25468 {
25469 arg2 = wxString_in_helper(swig_obj[1]);
25470 if (arg2 == NULL) SWIG_fail;
25471 temp2 = true;
25472 }
25473 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
25474 if (!SWIG_IsOK(ecode3)) {
25475 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
25476 }
25477 arg3 = static_cast< wxDouble >(val3);
25478 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
25479 if (!SWIG_IsOK(ecode4)) {
25480 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
25481 }
25482 arg4 = static_cast< wxDouble >(val4);
25483 {
25484 PyThreadState* __tstate = wxPyBeginAllowThreads();
25485 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
25486 wxPyEndAllowThreads(__tstate);
25487 if (PyErr_Occurred()) SWIG_fail;
25488 }
25489 resultobj = SWIG_Py_Void();
25490 {
25491 if (temp2)
25492 delete arg2;
25493 }
25494 return resultobj;
25495fail:
25496 {
25497 if (temp2)
25498 delete arg2;
25499 }
25500 return NULL;
25501}
25502
25503
25504SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25505 PyObject *resultobj = 0;
25506 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25507 wxString *arg2 = 0 ;
25508 wxDouble arg3 ;
25509 wxDouble arg4 ;
25510 wxDouble arg5 ;
25511 void *argp1 = 0 ;
25512 int res1 = 0 ;
25513 bool temp2 = false ;
25514 double val3 ;
25515 int ecode3 = 0 ;
25516 double val4 ;
25517 int ecode4 = 0 ;
25518 double val5 ;
25519 int ecode5 = 0 ;
25520
25521 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
25522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25523 if (!SWIG_IsOK(res1)) {
25524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25525 }
25526 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25527 {
25528 arg2 = wxString_in_helper(swig_obj[1]);
25529 if (arg2 == NULL) SWIG_fail;
25530 temp2 = true;
25531 }
25532 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
25533 if (!SWIG_IsOK(ecode3)) {
25534 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
25535 }
25536 arg3 = static_cast< wxDouble >(val3);
25537 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
25538 if (!SWIG_IsOK(ecode4)) {
25539 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
25540 }
25541 arg4 = static_cast< wxDouble >(val4);
25542 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
25543 if (!SWIG_IsOK(ecode5)) {
25544 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxDouble""'");
25545 }
25546 arg5 = static_cast< wxDouble >(val5);
25547 {
25548 PyThreadState* __tstate = wxPyBeginAllowThreads();
25549 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
25550 wxPyEndAllowThreads(__tstate);
25551 if (PyErr_Occurred()) SWIG_fail;
25552 }
25553 resultobj = SWIG_Py_Void();
25554 {
25555 if (temp2)
25556 delete arg2;
25557 }
25558 return resultobj;
25559fail:
25560 {
25561 if (temp2)
25562 delete arg2;
25563 }
25564 return NULL;
25565}
25566
25567
25568SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *self, PyObject *args) {
25569 int argc;
25570 PyObject *argv[6];
25571
25572 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_DrawText",0,5,argv))) SWIG_fail;
25573 --argc;
25574 if (argc == 4) {
25575 return _wrap_GraphicsContext_DrawText__SWIG_0(self, argc, argv);
25576 }
25577 if (argc == 5) {
25578 return _wrap_GraphicsContext_DrawText__SWIG_1(self, argc, argv);
25579 }
25580
25581fail:
25582 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_DrawText'");
25583 return NULL;
25584}
25585
25586
25587SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25588 PyObject *resultobj = 0;
25589 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25590 wxString *arg2 = 0 ;
25591 wxDouble *arg3 = (wxDouble *) 0 ;
25592 wxDouble *arg4 = (wxDouble *) 0 ;
25593 wxDouble *arg5 = (wxDouble *) 0 ;
25594 wxDouble *arg6 = (wxDouble *) 0 ;
25595 void *argp1 = 0 ;
25596 int res1 = 0 ;
25597 bool temp2 = false ;
25598 wxDouble temp3 ;
25599 int res3 = SWIG_TMPOBJ ;
25600 wxDouble temp4 ;
25601 int res4 = SWIG_TMPOBJ ;
25602 wxDouble temp5 ;
25603 int res5 = SWIG_TMPOBJ ;
25604 wxDouble temp6 ;
25605 int res6 = SWIG_TMPOBJ ;
25606 PyObject * obj0 = 0 ;
25607 PyObject * obj1 = 0 ;
25608 char * kwnames[] = {
25609 (char *) "self",(char *) "text", NULL
25610 };
25611
25612 arg3 = &temp3;
25613 arg4 = &temp4;
25614 arg5 = &temp5;
25615 arg6 = &temp6;
25616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
25617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25618 if (!SWIG_IsOK(res1)) {
25619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
25620 }
25621 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25622 {
25623 arg2 = wxString_in_helper(obj1);
25624 if (arg2 == NULL) SWIG_fail;
25625 temp2 = true;
25626 }
25627 {
25628 PyThreadState* __tstate = wxPyBeginAllowThreads();
25629 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
25630 wxPyEndAllowThreads(__tstate);
25631 if (PyErr_Occurred()) SWIG_fail;
25632 }
25633 resultobj = SWIG_Py_Void();
25634 if (SWIG_IsTmpObj(res3)) {
25635 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25636 } else {
25637 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25638 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25639 }
25640 if (SWIG_IsTmpObj(res4)) {
25641 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
25642 } else {
25643 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25644 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
25645 }
25646 if (SWIG_IsTmpObj(res5)) {
25647 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
25648 } else {
25649 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25650 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
25651 }
25652 if (SWIG_IsTmpObj(res6)) {
25653 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
25654 } else {
25655 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25656 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
25657 }
25658 {
25659 if (temp2)
25660 delete arg2;
25661 }
25662 return resultobj;
25663fail:
25664 {
25665 if (temp2)
25666 delete arg2;
25667 }
25668 return NULL;
25669}
25670
25671
25672SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25673 PyObject *resultobj = 0;
25674 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25675 wxString *arg2 = 0 ;
25676 wxArrayDouble *arg3 = 0 ;
25677 void *argp1 = 0 ;
25678 int res1 = 0 ;
25679 bool temp2 = false ;
25680 void *argp3 = 0 ;
25681 int res3 = 0 ;
25682 PyObject * obj0 = 0 ;
25683 PyObject * obj1 = 0 ;
25684 PyObject * obj2 = 0 ;
25685 char * kwnames[] = {
25686 (char *) "self",(char *) "text",(char *) "widths", NULL
25687 };
25688
25689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25691 if (!SWIG_IsOK(res1)) {
25692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
25693 }
25694 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25695 {
25696 arg2 = wxString_in_helper(obj1);
25697 if (arg2 == NULL) SWIG_fail;
25698 temp2 = true;
25699 }
25700 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxArrayDouble, 0 );
25701 if (!SWIG_IsOK(res3)) {
25702 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "3"" of type '" "wxArrayDouble &""'");
25703 }
25704 if (!argp3) {
25705 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "3"" of type '" "wxArrayDouble &""'");
25706 }
25707 arg3 = reinterpret_cast< wxArrayDouble * >(argp3);
25708 {
25709 PyThreadState* __tstate = wxPyBeginAllowThreads();
25710 ((wxGraphicsContext const *)arg1)->GetPartialTextExtents((wxString const &)*arg2,*arg3);
25711 wxPyEndAllowThreads(__tstate);
25712 if (PyErr_Occurred()) SWIG_fail;
25713 }
25714 resultobj = SWIG_Py_Void();
25715 {
25716 if (temp2)
25717 delete arg2;
25718 }
25719 return resultobj;
25720fail:
25721 {
25722 if (temp2)
25723 delete arg2;
25724 }
25725 return NULL;
25726}
25727
25728
25729SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25730 PyObject *resultobj = 0;
25731 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25732 wxBitmap *arg2 = 0 ;
25733 wxDouble arg3 ;
25734 wxDouble arg4 ;
25735 wxDouble arg5 ;
25736 wxDouble arg6 ;
25737 void *argp1 = 0 ;
25738 int res1 = 0 ;
25739 void *argp2 = 0 ;
25740 int res2 = 0 ;
25741 double val3 ;
25742 int ecode3 = 0 ;
25743 double val4 ;
25744 int ecode4 = 0 ;
25745 double val5 ;
25746 int ecode5 = 0 ;
25747 double val6 ;
25748 int ecode6 = 0 ;
25749 PyObject * obj0 = 0 ;
25750 PyObject * obj1 = 0 ;
25751 PyObject * obj2 = 0 ;
25752 PyObject * obj3 = 0 ;
25753 PyObject * obj4 = 0 ;
25754 PyObject * obj5 = 0 ;
25755 char * kwnames[] = {
25756 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25757 };
25758
25759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25761 if (!SWIG_IsOK(res1)) {
25762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25763 }
25764 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25765 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
25766 if (!SWIG_IsOK(res2)) {
25767 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25768 }
25769 if (!argp2) {
25770 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25771 }
25772 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25773 ecode3 = SWIG_AsVal_double(obj2, &val3);
25774 if (!SWIG_IsOK(ecode3)) {
25775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
25776 }
25777 arg3 = static_cast< wxDouble >(val3);
25778 ecode4 = SWIG_AsVal_double(obj3, &val4);
25779 if (!SWIG_IsOK(ecode4)) {
25780 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
25781 }
25782 arg4 = static_cast< wxDouble >(val4);
25783 ecode5 = SWIG_AsVal_double(obj4, &val5);
25784 if (!SWIG_IsOK(ecode5)) {
25785 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
25786 }
25787 arg5 = static_cast< wxDouble >(val5);
25788 ecode6 = SWIG_AsVal_double(obj5, &val6);
25789 if (!SWIG_IsOK(ecode6)) {
25790 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
25791 }
25792 arg6 = static_cast< wxDouble >(val6);
25793 {
25794 PyThreadState* __tstate = wxPyBeginAllowThreads();
25795 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
25796 wxPyEndAllowThreads(__tstate);
25797 if (PyErr_Occurred()) SWIG_fail;
25798 }
25799 resultobj = SWIG_Py_Void();
25800 return resultobj;
25801fail:
25802 return NULL;
25803}
25804
25805
25806SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25807 PyObject *resultobj = 0;
25808 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25809 wxIcon *arg2 = 0 ;
25810 wxDouble arg3 ;
25811 wxDouble arg4 ;
25812 wxDouble arg5 ;
25813 wxDouble arg6 ;
25814 void *argp1 = 0 ;
25815 int res1 = 0 ;
25816 void *argp2 = 0 ;
25817 int res2 = 0 ;
25818 double val3 ;
25819 int ecode3 = 0 ;
25820 double val4 ;
25821 int ecode4 = 0 ;
25822 double val5 ;
25823 int ecode5 = 0 ;
25824 double val6 ;
25825 int ecode6 = 0 ;
25826 PyObject * obj0 = 0 ;
25827 PyObject * obj1 = 0 ;
25828 PyObject * obj2 = 0 ;
25829 PyObject * obj3 = 0 ;
25830 PyObject * obj4 = 0 ;
25831 PyObject * obj5 = 0 ;
25832 char * kwnames[] = {
25833 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25834 };
25835
25836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25838 if (!SWIG_IsOK(res1)) {
25839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25840 }
25841 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25842 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
25843 if (!SWIG_IsOK(res2)) {
25844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
25845 }
25846 if (!argp2) {
25847 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
25848 }
25849 arg2 = reinterpret_cast< wxIcon * >(argp2);
25850 ecode3 = SWIG_AsVal_double(obj2, &val3);
25851 if (!SWIG_IsOK(ecode3)) {
25852 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
25853 }
25854 arg3 = static_cast< wxDouble >(val3);
25855 ecode4 = SWIG_AsVal_double(obj3, &val4);
25856 if (!SWIG_IsOK(ecode4)) {
25857 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
25858 }
25859 arg4 = static_cast< wxDouble >(val4);
25860 ecode5 = SWIG_AsVal_double(obj4, &val5);
25861 if (!SWIG_IsOK(ecode5)) {
25862 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
25863 }
25864 arg5 = static_cast< wxDouble >(val5);
25865 ecode6 = SWIG_AsVal_double(obj5, &val6);
25866 if (!SWIG_IsOK(ecode6)) {
25867 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
25868 }
25869 arg6 = static_cast< wxDouble >(val6);
25870 {
25871 PyThreadState* __tstate = wxPyBeginAllowThreads();
25872 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
25873 wxPyEndAllowThreads(__tstate);
25874 if (PyErr_Occurred()) SWIG_fail;
25875 }
25876 resultobj = SWIG_Py_Void();
25877 return resultobj;
25878fail:
25879 return NULL;
25880}
25881
25882
25883SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25884 PyObject *resultobj = 0;
25885 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25886 wxDouble arg2 ;
25887 wxDouble arg3 ;
25888 wxDouble arg4 ;
25889 wxDouble arg5 ;
25890 void *argp1 = 0 ;
25891 int res1 = 0 ;
25892 double val2 ;
25893 int ecode2 = 0 ;
25894 double val3 ;
25895 int ecode3 = 0 ;
25896 double val4 ;
25897 int ecode4 = 0 ;
25898 double val5 ;
25899 int ecode5 = 0 ;
25900 PyObject * obj0 = 0 ;
25901 PyObject * obj1 = 0 ;
25902 PyObject * obj2 = 0 ;
25903 PyObject * obj3 = 0 ;
25904 PyObject * obj4 = 0 ;
25905 char * kwnames[] = {
25906 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
25907 };
25908
25909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25911 if (!SWIG_IsOK(res1)) {
25912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25913 }
25914 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25915 ecode2 = SWIG_AsVal_double(obj1, &val2);
25916 if (!SWIG_IsOK(ecode2)) {
25917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
25918 }
25919 arg2 = static_cast< wxDouble >(val2);
25920 ecode3 = SWIG_AsVal_double(obj2, &val3);
25921 if (!SWIG_IsOK(ecode3)) {
25922 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
25923 }
25924 arg3 = static_cast< wxDouble >(val3);
25925 ecode4 = SWIG_AsVal_double(obj3, &val4);
25926 if (!SWIG_IsOK(ecode4)) {
25927 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
25928 }
25929 arg4 = static_cast< wxDouble >(val4);
25930 ecode5 = SWIG_AsVal_double(obj4, &val5);
25931 if (!SWIG_IsOK(ecode5)) {
25932 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
25933 }
25934 arg5 = static_cast< wxDouble >(val5);
25935 {
25936 PyThreadState* __tstate = wxPyBeginAllowThreads();
25937 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
25938 wxPyEndAllowThreads(__tstate);
25939 if (PyErr_Occurred()) SWIG_fail;
25940 }
25941 resultobj = SWIG_Py_Void();
25942 return resultobj;
25943fail:
25944 return NULL;
25945}
25946
25947
25948SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25949 PyObject *resultobj = 0;
25950 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25951 size_t arg2 ;
25952 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
25953 void *argp1 = 0 ;
25954 int res1 = 0 ;
25955 size_t val2 ;
25956 int ecode2 = 0 ;
25957 void *argp3 = 0 ;
25958 int res3 = 0 ;
25959
25960 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
25961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25962 if (!SWIG_IsOK(res1)) {
25963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25964 }
25965 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25966 ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
25967 if (!SWIG_IsOK(ecode2)) {
25968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "2"" of type '" "size_t""'");
25969 }
25970 arg2 = static_cast< size_t >(val2);
25971 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPoint2D, 0 | 0 );
25972 if (!SWIG_IsOK(res3)) {
25973 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "3"" of type '" "wxPoint2D const *""'");
25974 }
25975 arg3 = reinterpret_cast< wxPoint2D * >(argp3);
25976 {
25977 PyThreadState* __tstate = wxPyBeginAllowThreads();
25978 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
25979 wxPyEndAllowThreads(__tstate);
25980 if (PyErr_Occurred()) SWIG_fail;
25981 }
25982 resultobj = SWIG_Py_Void();
25983 return resultobj;
25984fail:
25985 return NULL;
25986}
25987
25988
25989SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25990 PyObject *resultobj = 0;
25991 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25992 size_t arg2 ;
25993 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
25994 wxPoint2D *arg4 = (wxPoint2D *) 0 ;
25995 void *argp1 = 0 ;
25996 int res1 = 0 ;
25997 size_t val2 ;
25998 int ecode2 = 0 ;
25999 void *argp3 = 0 ;
26000 int res3 = 0 ;
26001 void *argp4 = 0 ;
26002 int res4 = 0 ;
26003
26004 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26006 if (!SWIG_IsOK(res1)) {
26007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26008 }
26009 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26010 ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
26011 if (!SWIG_IsOK(ecode2)) {
26012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "2"" of type '" "size_t""'");
26013 }
26014 arg2 = static_cast< size_t >(val2);
26015 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPoint2D, 0 | 0 );
26016 if (!SWIG_IsOK(res3)) {
26017 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "3"" of type '" "wxPoint2D const *""'");
26018 }
26019 arg3 = reinterpret_cast< wxPoint2D * >(argp3);
26020 res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_wxPoint2D, 0 | 0 );
26021 if (!SWIG_IsOK(res4)) {
26022 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "4"" of type '" "wxPoint2D const *""'");
26023 }
26024 arg4 = reinterpret_cast< wxPoint2D * >(argp4);
26025 {
26026 PyThreadState* __tstate = wxPyBeginAllowThreads();
26027 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3,(wxPoint2D const *)arg4);
26028 wxPyEndAllowThreads(__tstate);
26029 if (PyErr_Occurred()) SWIG_fail;
26030 }
26031 resultobj = SWIG_Py_Void();
26032 return resultobj;
26033fail:
26034 return NULL;
26035}
26036
26037
26038SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *self, PyObject *args) {
26039 int argc;
26040 PyObject *argv[5];
26041
26042 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_StrokeLines",0,4,argv))) SWIG_fail;
26043 --argc;
26044 if (argc == 3) {
26045 return _wrap_GraphicsContext_StrokeLines__SWIG_0(self, argc, argv);
26046 }
26047 if (argc == 4) {
26048 return _wrap_GraphicsContext_StrokeLines__SWIG_1(self, argc, argv);
26049 }
26050
26051fail:
26052 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_StrokeLines'");
26053 return NULL;
26054}
26055
26056
26057SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26058 PyObject *resultobj = 0;
26059 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26060 size_t arg2 ;
26061 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26062 int arg4 = (int) wxWINDING_RULE ;
26063 void *argp1 = 0 ;
26064 int res1 = 0 ;
26065 size_t val2 ;
26066 int ecode2 = 0 ;
26067 void *argp3 = 0 ;
26068 int res3 = 0 ;
26069 int val4 ;
26070 int ecode4 = 0 ;
26071 PyObject * obj0 = 0 ;
26072 PyObject * obj1 = 0 ;
26073 PyObject * obj2 = 0 ;
26074 PyObject * obj3 = 0 ;
26075 char * kwnames[] = {
26076 (char *) "self",(char *) "n",(char *) "points",(char *) "fillStyle", NULL
26077 };
26078
26079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26081 if (!SWIG_IsOK(res1)) {
26082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26083 }
26084 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26085 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
26086 if (!SWIG_IsOK(ecode2)) {
26087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawLines" "', expected argument " "2"" of type '" "size_t""'");
26088 }
26089 arg2 = static_cast< size_t >(val2);
26090 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPoint2D, 0 | 0 );
26091 if (!SWIG_IsOK(res3)) {
26092 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GraphicsContext_DrawLines" "', expected argument " "3"" of type '" "wxPoint2D const *""'");
26093 }
26094 arg3 = reinterpret_cast< wxPoint2D * >(argp3);
26095 if (obj3) {
26096 ecode4 = SWIG_AsVal_int(obj3, &val4);
26097 if (!SWIG_IsOK(ecode4)) {
26098 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
26099 }
26100 arg4 = static_cast< int >(val4);
26101 }
26102 {
26103 PyThreadState* __tstate = wxPyBeginAllowThreads();
26104 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
26105 wxPyEndAllowThreads(__tstate);
26106 if (PyErr_Occurred()) SWIG_fail;
26107 }
26108 resultobj = SWIG_Py_Void();
26109 return resultobj;
26110fail:
26111 return NULL;
26112}
26113
26114
26115SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26116 PyObject *resultobj = 0;
26117 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26118 wxDouble arg2 ;
26119 wxDouble arg3 ;
26120 wxDouble arg4 ;
26121 wxDouble arg5 ;
26122 void *argp1 = 0 ;
26123 int res1 = 0 ;
26124 double val2 ;
26125 int ecode2 = 0 ;
26126 double val3 ;
26127 int ecode3 = 0 ;
26128 double val4 ;
26129 int ecode4 = 0 ;
26130 double val5 ;
26131 int ecode5 = 0 ;
26132 PyObject * obj0 = 0 ;
26133 PyObject * obj1 = 0 ;
26134 PyObject * obj2 = 0 ;
26135 PyObject * obj3 = 0 ;
26136 PyObject * obj4 = 0 ;
26137 char * kwnames[] = {
26138 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26139 };
26140
26141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26143 if (!SWIG_IsOK(res1)) {
26144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26145 }
26146 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26147 ecode2 = SWIG_AsVal_double(obj1, &val2);
26148 if (!SWIG_IsOK(ecode2)) {
26149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26150 }
26151 arg2 = static_cast< wxDouble >(val2);
26152 ecode3 = SWIG_AsVal_double(obj2, &val3);
26153 if (!SWIG_IsOK(ecode3)) {
26154 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26155 }
26156 arg3 = static_cast< wxDouble >(val3);
26157 ecode4 = SWIG_AsVal_double(obj3, &val4);
26158 if (!SWIG_IsOK(ecode4)) {
26159 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26160 }
26161 arg4 = static_cast< wxDouble >(val4);
26162 ecode5 = SWIG_AsVal_double(obj4, &val5);
26163 if (!SWIG_IsOK(ecode5)) {
26164 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26165 }
26166 arg5 = static_cast< wxDouble >(val5);
26167 {
26168 PyThreadState* __tstate = wxPyBeginAllowThreads();
26169 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
26170 wxPyEndAllowThreads(__tstate);
26171 if (PyErr_Occurred()) SWIG_fail;
26172 }
26173 resultobj = SWIG_Py_Void();
26174 return resultobj;
26175fail:
26176 return NULL;
26177}
26178
26179
26180SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26181 PyObject *resultobj = 0;
26182 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26183 wxDouble arg2 ;
26184 wxDouble arg3 ;
26185 wxDouble arg4 ;
26186 wxDouble arg5 ;
26187 void *argp1 = 0 ;
26188 int res1 = 0 ;
26189 double val2 ;
26190 int ecode2 = 0 ;
26191 double val3 ;
26192 int ecode3 = 0 ;
26193 double val4 ;
26194 int ecode4 = 0 ;
26195 double val5 ;
26196 int ecode5 = 0 ;
26197 PyObject * obj0 = 0 ;
26198 PyObject * obj1 = 0 ;
26199 PyObject * obj2 = 0 ;
26200 PyObject * obj3 = 0 ;
26201 PyObject * obj4 = 0 ;
26202 char * kwnames[] = {
26203 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26204 };
26205
26206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26208 if (!SWIG_IsOK(res1)) {
26209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26210 }
26211 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26212 ecode2 = SWIG_AsVal_double(obj1, &val2);
26213 if (!SWIG_IsOK(ecode2)) {
26214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
26215 }
26216 arg2 = static_cast< wxDouble >(val2);
26217 ecode3 = SWIG_AsVal_double(obj2, &val3);
26218 if (!SWIG_IsOK(ecode3)) {
26219 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
26220 }
26221 arg3 = static_cast< wxDouble >(val3);
26222 ecode4 = SWIG_AsVal_double(obj3, &val4);
26223 if (!SWIG_IsOK(ecode4)) {
26224 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
26225 }
26226 arg4 = static_cast< wxDouble >(val4);
26227 ecode5 = SWIG_AsVal_double(obj4, &val5);
26228 if (!SWIG_IsOK(ecode5)) {
26229 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
26230 }
26231 arg5 = static_cast< wxDouble >(val5);
26232 {
26233 PyThreadState* __tstate = wxPyBeginAllowThreads();
26234 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
26235 wxPyEndAllowThreads(__tstate);
26236 if (PyErr_Occurred()) SWIG_fail;
26237 }
26238 resultobj = SWIG_Py_Void();
26239 return resultobj;
26240fail:
26241 return NULL;
26242}
26243
26244
26245SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26246 PyObject *resultobj = 0;
26247 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26248 wxDouble arg2 ;
26249 wxDouble arg3 ;
26250 wxDouble arg4 ;
26251 wxDouble arg5 ;
26252 wxDouble arg6 ;
26253 void *argp1 = 0 ;
26254 int res1 = 0 ;
26255 double val2 ;
26256 int ecode2 = 0 ;
26257 double val3 ;
26258 int ecode3 = 0 ;
26259 double val4 ;
26260 int ecode4 = 0 ;
26261 double val5 ;
26262 int ecode5 = 0 ;
26263 double val6 ;
26264 int ecode6 = 0 ;
26265 PyObject * obj0 = 0 ;
26266 PyObject * obj1 = 0 ;
26267 PyObject * obj2 = 0 ;
26268 PyObject * obj3 = 0 ;
26269 PyObject * obj4 = 0 ;
26270 PyObject * obj5 = 0 ;
26271 char * kwnames[] = {
26272 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
26273 };
26274
26275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26277 if (!SWIG_IsOK(res1)) {
26278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26279 }
26280 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26281 ecode2 = SWIG_AsVal_double(obj1, &val2);
26282 if (!SWIG_IsOK(ecode2)) {
26283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26284 }
26285 arg2 = static_cast< wxDouble >(val2);
26286 ecode3 = SWIG_AsVal_double(obj2, &val3);
26287 if (!SWIG_IsOK(ecode3)) {
26288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26289 }
26290 arg3 = static_cast< wxDouble >(val3);
26291 ecode4 = SWIG_AsVal_double(obj3, &val4);
26292 if (!SWIG_IsOK(ecode4)) {
26293 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26294 }
26295 arg4 = static_cast< wxDouble >(val4);
26296 ecode5 = SWIG_AsVal_double(obj4, &val5);
26297 if (!SWIG_IsOK(ecode5)) {
26298 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26299 }
26300 arg5 = static_cast< wxDouble >(val5);
26301 ecode6 = SWIG_AsVal_double(obj5, &val6);
26302 if (!SWIG_IsOK(ecode6)) {
26303 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
26304 }
26305 arg6 = static_cast< wxDouble >(val6);
26306 {
26307 PyThreadState* __tstate = wxPyBeginAllowThreads();
26308 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
26309 wxPyEndAllowThreads(__tstate);
26310 if (PyErr_Occurred()) SWIG_fail;
26311 }
26312 resultobj = SWIG_Py_Void();
26313 return resultobj;
26314fail:
26315 return NULL;
26316}
26317
26318
26319SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26320 PyObject *obj;
26321 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26322 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
26323 return SWIG_Py_Void();
26324}
26325
26326SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26327 PyObject *resultobj = 0;
26328 wxWindowDC *arg1 = 0 ;
26329 wxGCDC *result = 0 ;
26330 void *argp1 = 0 ;
26331 int res1 = 0 ;
26332 PyObject * obj0 = 0 ;
26333 char * kwnames[] = {
26334 (char *) "dc", NULL
26335 };
26336
26337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
26338 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
26339 if (!SWIG_IsOK(res1)) {
26340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26341 }
26342 if (!argp1) {
26343 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26344 }
26345 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
26346 {
26347 if (!wxPyCheckForApp()) SWIG_fail;
26348 PyThreadState* __tstate = wxPyBeginAllowThreads();
26349 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
26350 wxPyEndAllowThreads(__tstate);
26351 if (PyErr_Occurred()) SWIG_fail;
26352 }
26353 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
26354 return resultobj;
26355fail:
26356 return NULL;
26357}
26358
26359
26360SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26361 PyObject *resultobj = 0;
26362 wxGCDC *arg1 = (wxGCDC *) 0 ;
26363 void *argp1 = 0 ;
26364 int res1 = 0 ;
26365 PyObject *swig_obj[1] ;
26366
26367 if (!args) SWIG_fail;
26368 swig_obj[0] = args;
26369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
26370 if (!SWIG_IsOK(res1)) {
26371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
26372 }
26373 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26374 {
26375 PyThreadState* __tstate = wxPyBeginAllowThreads();
26376 delete arg1;
26377
26378 wxPyEndAllowThreads(__tstate);
26379 if (PyErr_Occurred()) SWIG_fail;
26380 }
26381 resultobj = SWIG_Py_Void();
26382 return resultobj;
26383fail:
26384 return NULL;
26385}
26386
26387
26388SWIGINTERN PyObject *_wrap_GCDC_GetGraphicContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26389 PyObject *resultobj = 0;
26390 wxGCDC *arg1 = (wxGCDC *) 0 ;
26391 wxGraphicsContext *result = 0 ;
26392 void *argp1 = 0 ;
26393 int res1 = 0 ;
26394 PyObject *swig_obj[1] ;
26395
26396 if (!args) SWIG_fail;
26397 swig_obj[0] = args;
26398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
26399 if (!SWIG_IsOK(res1)) {
26400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
26401 }
26402 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26403 {
26404 PyThreadState* __tstate = wxPyBeginAllowThreads();
26405 result = (wxGraphicsContext *)(arg1)->GetGraphicContext();
26406 wxPyEndAllowThreads(__tstate);
26407 if (PyErr_Occurred()) SWIG_fail;
26408 }
26409 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26410 return resultobj;
26411fail:
26412 return NULL;
26413}
26414
26415
26416SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26417 PyObject *obj;
26418 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26419 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
26420 return SWIG_Py_Void();
26421}
26422
26423SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26424 return SWIG_Python_InitShadowInstance(args);
26425}
26426
26427SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26428 PyObject *resultobj = 0;
26429 int arg1 ;
26430 int arg2 ;
26431 int arg3 = (int) true ;
26432 int arg4 = (int) 1 ;
26433 wxImageList *result = 0 ;
26434 int val1 ;
26435 int ecode1 = 0 ;
26436 int val2 ;
26437 int ecode2 = 0 ;
26438 int val3 ;
26439 int ecode3 = 0 ;
26440 int val4 ;
26441 int ecode4 = 0 ;
26442 PyObject * obj0 = 0 ;
26443 PyObject * obj1 = 0 ;
26444 PyObject * obj2 = 0 ;
26445 PyObject * obj3 = 0 ;
26446 char * kwnames[] = {
26447 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
26448 };
26449
26450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26451 ecode1 = SWIG_AsVal_int(obj0, &val1);
26452 if (!SWIG_IsOK(ecode1)) {
26453 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
26454 }
26455 arg1 = static_cast< int >(val1);
26456 ecode2 = SWIG_AsVal_int(obj1, &val2);
26457 if (!SWIG_IsOK(ecode2)) {
26458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
26459 }
26460 arg2 = static_cast< int >(val2);
26461 if (obj2) {
26462 ecode3 = SWIG_AsVal_int(obj2, &val3);
26463 if (!SWIG_IsOK(ecode3)) {
26464 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
26465 }
26466 arg3 = static_cast< int >(val3);
26467 }
26468 if (obj3) {
26469 ecode4 = SWIG_AsVal_int(obj3, &val4);
26470 if (!SWIG_IsOK(ecode4)) {
26471 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
26472 }
26473 arg4 = static_cast< int >(val4);
26474 }
26475 {
26476 if (!wxPyCheckForApp()) SWIG_fail;
26477 PyThreadState* __tstate = wxPyBeginAllowThreads();
26478 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
26479 wxPyEndAllowThreads(__tstate);
26480 if (PyErr_Occurred()) SWIG_fail;
26481 }
26482 {
26483 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26484 }
26485 return resultobj;
26486fail:
26487 return NULL;
26488}
26489
26490
26491SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26492 PyObject *resultobj = 0;
26493 wxImageList *arg1 = (wxImageList *) 0 ;
26494 void *argp1 = 0 ;
26495 int res1 = 0 ;
26496 PyObject *swig_obj[1] ;
26497
26498 if (!args) SWIG_fail;
26499 swig_obj[0] = args;
26500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
26501 if (!SWIG_IsOK(res1)) {
26502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
26503 }
26504 arg1 = reinterpret_cast< wxImageList * >(argp1);
26505 {
26506 PyThreadState* __tstate = wxPyBeginAllowThreads();
26507 delete arg1;
26508
26509 wxPyEndAllowThreads(__tstate);
26510 if (PyErr_Occurred()) SWIG_fail;
26511 }
26512 resultobj = SWIG_Py_Void();
26513 return resultobj;
26514fail:
26515 return NULL;
26516}
26517
26518
26519SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26520 PyObject *resultobj = 0;
26521 wxImageList *arg1 = (wxImageList *) 0 ;
26522 wxBitmap *arg2 = 0 ;
26523 wxBitmap const &arg3_defvalue = wxNullBitmap ;
26524 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
26525 int result;
26526 void *argp1 = 0 ;
26527 int res1 = 0 ;
26528 void *argp2 = 0 ;
26529 int res2 = 0 ;
26530 void *argp3 = 0 ;
26531 int res3 = 0 ;
26532 PyObject * obj0 = 0 ;
26533 PyObject * obj1 = 0 ;
26534 PyObject * obj2 = 0 ;
26535 char * kwnames[] = {
26536 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
26537 };
26538
26539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26541 if (!SWIG_IsOK(res1)) {
26542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
26543 }
26544 arg1 = reinterpret_cast< wxImageList * >(argp1);
26545 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26546 if (!SWIG_IsOK(res2)) {
26547 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26548 }
26549 if (!argp2) {
26550 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26551 }
26552 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26553 if (obj2) {
26554 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
26555 if (!SWIG_IsOK(res3)) {
26556 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26557 }
26558 if (!argp3) {
26559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26560 }
26561 arg3 = reinterpret_cast< wxBitmap * >(argp3);
26562 }
26563 {
26564 PyThreadState* __tstate = wxPyBeginAllowThreads();
26565 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
26566 wxPyEndAllowThreads(__tstate);
26567 if (PyErr_Occurred()) SWIG_fail;
26568 }
26569 resultobj = SWIG_From_int(static_cast< int >(result));
26570 return resultobj;
26571fail:
26572 return NULL;
26573}
26574
26575
26576SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26577 PyObject *resultobj = 0;
26578 wxImageList *arg1 = (wxImageList *) 0 ;
26579 wxBitmap *arg2 = 0 ;
26580 wxColour *arg3 = 0 ;
26581 int result;
26582 void *argp1 = 0 ;
26583 int res1 = 0 ;
26584 void *argp2 = 0 ;
26585 int res2 = 0 ;
26586 wxColour temp3 ;
26587 PyObject * obj0 = 0 ;
26588 PyObject * obj1 = 0 ;
26589 PyObject * obj2 = 0 ;
26590 char * kwnames[] = {
26591 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
26592 };
26593
26594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26596 if (!SWIG_IsOK(res1)) {
26597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
26598 }
26599 arg1 = reinterpret_cast< wxImageList * >(argp1);
26600 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26601 if (!SWIG_IsOK(res2)) {
26602 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26603 }
26604 if (!argp2) {
26605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26606 }
26607 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26608 {
26609 arg3 = &temp3;
26610 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26611 }
26612 {
26613 PyThreadState* __tstate = wxPyBeginAllowThreads();
26614 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
26615 wxPyEndAllowThreads(__tstate);
26616 if (PyErr_Occurred()) SWIG_fail;
26617 }
26618 resultobj = SWIG_From_int(static_cast< int >(result));
26619 return resultobj;
26620fail:
26621 return NULL;
26622}
26623
26624
26625SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26626 PyObject *resultobj = 0;
26627 wxImageList *arg1 = (wxImageList *) 0 ;
26628 wxIcon *arg2 = 0 ;
26629 int result;
26630 void *argp1 = 0 ;
26631 int res1 = 0 ;
26632 void *argp2 = 0 ;
26633 int res2 = 0 ;
26634 PyObject * obj0 = 0 ;
26635 PyObject * obj1 = 0 ;
26636 char * kwnames[] = {
26637 (char *) "self",(char *) "icon", NULL
26638 };
26639
26640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
26641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26642 if (!SWIG_IsOK(res1)) {
26643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
26644 }
0085ce49
RD
26645 arg1 = reinterpret_cast< wxImageList * >(argp1);
26646 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
26647 if (!SWIG_IsOK(res2)) {
26648 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26649 }
26650 if (!argp2) {
26651 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26652 }
26653 arg2 = reinterpret_cast< wxIcon * >(argp2);
26654 {
26655 PyThreadState* __tstate = wxPyBeginAllowThreads();
26656 result = (int)(arg1)->Add((wxIcon const &)*arg2);
26657 wxPyEndAllowThreads(__tstate);
26658 if (PyErr_Occurred()) SWIG_fail;
26659 }
26660 resultobj = SWIG_From_int(static_cast< int >(result));
26661 return resultobj;
26662fail:
26663 return NULL;
26664}
26665
26666
26667SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26668 PyObject *resultobj = 0;
26669 wxImageList *arg1 = (wxImageList *) 0 ;
26670 int arg2 ;
26671 SwigValueWrapper<wxBitmap > result;
26672 void *argp1 = 0 ;
26673 int res1 = 0 ;
26674 int val2 ;
26675 int ecode2 = 0 ;
26676 PyObject * obj0 = 0 ;
26677 PyObject * obj1 = 0 ;
26678 char * kwnames[] = {
26679 (char *) "self",(char *) "index", NULL
26680 };
26681
26682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
26683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26684 if (!SWIG_IsOK(res1)) {
26685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
26686 }
26687 arg1 = reinterpret_cast< wxImageList * >(argp1);
26688 ecode2 = SWIG_AsVal_int(obj1, &val2);
26689 if (!SWIG_IsOK(ecode2)) {
26690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
26691 }
26692 arg2 = static_cast< int >(val2);
26693 {
26694 PyThreadState* __tstate = wxPyBeginAllowThreads();
26695 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
26696 wxPyEndAllowThreads(__tstate);
26697 if (PyErr_Occurred()) SWIG_fail;
26698 }
26699 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
26700 return resultobj;
26701fail:
26702 return NULL;
26703}
26704
26705
26706SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26707 PyObject *resultobj = 0;
26708 wxImageList *arg1 = (wxImageList *) 0 ;
26709 int arg2 ;
26710 wxIcon result;
26711 void *argp1 = 0 ;
26712 int res1 = 0 ;
26713 int val2 ;
26714 int ecode2 = 0 ;
26715 PyObject * obj0 = 0 ;
26716 PyObject * obj1 = 0 ;
26717 char * kwnames[] = {
26718 (char *) "self",(char *) "index", NULL
26719 };
26720
26721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
26722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26723 if (!SWIG_IsOK(res1)) {
26724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
26725 }
26726 arg1 = reinterpret_cast< wxImageList * >(argp1);
26727 ecode2 = SWIG_AsVal_int(obj1, &val2);
26728 if (!SWIG_IsOK(ecode2)) {
26729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
26730 }
26731 arg2 = static_cast< int >(val2);
26732 {
26733 PyThreadState* __tstate = wxPyBeginAllowThreads();
26734 result = ((wxImageList const *)arg1)->GetIcon(arg2);
26735 wxPyEndAllowThreads(__tstate);
26736 if (PyErr_Occurred()) SWIG_fail;
26737 }
26738 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
26739 return resultobj;
26740fail:
26741 return NULL;
26742}
26743
26744
26745SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26746 PyObject *resultobj = 0;
26747 wxImageList *arg1 = (wxImageList *) 0 ;
26748 int arg2 ;
26749 wxBitmap *arg3 = 0 ;
01f6b6d3
RD
26750 wxBitmap const &arg4_defvalue = wxNullBitmap ;
26751 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
0085ce49
RD
26752 bool result;
26753 void *argp1 = 0 ;
26754 int res1 = 0 ;
26755 int val2 ;
26756 int ecode2 = 0 ;
26757 void *argp3 = 0 ;
26758 int res3 = 0 ;
01f6b6d3
RD
26759 void *argp4 = 0 ;
26760 int res4 = 0 ;
0085ce49
RD
26761 PyObject * obj0 = 0 ;
26762 PyObject * obj1 = 0 ;
26763 PyObject * obj2 = 0 ;
01f6b6d3 26764 PyObject * obj3 = 0 ;
0085ce49 26765 char * kwnames[] = {
01f6b6d3 26766 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
0085ce49
RD
26767 };
26768
01f6b6d3 26769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
26770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26771 if (!SWIG_IsOK(res1)) {
26772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
26773 }
26774 arg1 = reinterpret_cast< wxImageList * >(argp1);
26775 ecode2 = SWIG_AsVal_int(obj1, &val2);
26776 if (!SWIG_IsOK(ecode2)) {
26777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
26778 }
26779 arg2 = static_cast< int >(val2);
26780 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
26781 if (!SWIG_IsOK(res3)) {
26782 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26783 }
26784 if (!argp3) {
26785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26786 }
26787 arg3 = reinterpret_cast< wxBitmap * >(argp3);
01f6b6d3
RD
26788 if (obj3) {
26789 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
26790 if (!SWIG_IsOK(res4)) {
26791 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
26792 }
26793 if (!argp4) {
26794 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
26795 }
26796 arg4 = reinterpret_cast< wxBitmap * >(argp4);
26797 }
0085ce49
RD
26798 {
26799 PyThreadState* __tstate = wxPyBeginAllowThreads();
01f6b6d3 26800 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
0085ce49
RD
26801 wxPyEndAllowThreads(__tstate);
26802 if (PyErr_Occurred()) SWIG_fail;
26803 }
26804 {
26805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26806 }
26807 return resultobj;
26808fail:
26809 return NULL;
26810}
26811
26812
26813SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26814 PyObject *resultobj = 0;
26815 wxImageList *arg1 = (wxImageList *) 0 ;
26816 int arg2 ;
26817 wxDC *arg3 = 0 ;
26818 int arg4 ;
26819 int arg5 ;
26820 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
26821 bool arg7 = (bool) (bool)false ;
26822 bool result;
26823 void *argp1 = 0 ;
26824 int res1 = 0 ;
26825 int val2 ;
26826 int ecode2 = 0 ;
26827 void *argp3 = 0 ;
26828 int res3 = 0 ;
26829 int val4 ;
26830 int ecode4 = 0 ;
26831 int val5 ;
26832 int ecode5 = 0 ;
26833 int val6 ;
26834 int ecode6 = 0 ;
26835 bool val7 ;
26836 int ecode7 = 0 ;
26837 PyObject * obj0 = 0 ;
26838 PyObject * obj1 = 0 ;
26839 PyObject * obj2 = 0 ;
26840 PyObject * obj3 = 0 ;
26841 PyObject * obj4 = 0 ;
26842 PyObject * obj5 = 0 ;
26843 PyObject * obj6 = 0 ;
26844 char * kwnames[] = {
26845 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
26846 };
26847
26848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26850 if (!SWIG_IsOK(res1)) {
26851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
26852 }
26853 arg1 = reinterpret_cast< wxImageList * >(argp1);
26854 ecode2 = SWIG_AsVal_int(obj1, &val2);
26855 if (!SWIG_IsOK(ecode2)) {
26856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
26857 }
26858 arg2 = static_cast< int >(val2);
26859 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26860 if (!SWIG_IsOK(res3)) {
26861 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
26862 }
26863 if (!argp3) {
26864 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
26865 }
26866 arg3 = reinterpret_cast< wxDC * >(argp3);
26867 ecode4 = SWIG_AsVal_int(obj3, &val4);
26868 if (!SWIG_IsOK(ecode4)) {
26869 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
26870 }
26871 arg4 = static_cast< int >(val4);
26872 ecode5 = SWIG_AsVal_int(obj4, &val5);
26873 if (!SWIG_IsOK(ecode5)) {
26874 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
26875 }
26876 arg5 = static_cast< int >(val5);
26877 if (obj5) {
26878 ecode6 = SWIG_AsVal_int(obj5, &val6);
26879 if (!SWIG_IsOK(ecode6)) {
26880 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
26881 }
26882 arg6 = static_cast< int >(val6);
26883 }
26884 if (obj6) {
26885 ecode7 = SWIG_AsVal_bool(obj6, &val7);
26886 if (!SWIG_IsOK(ecode7)) {
26887 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
26888 }
26889 arg7 = static_cast< bool >(val7);
26890 }
26891 {
26892 PyThreadState* __tstate = wxPyBeginAllowThreads();
26893 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
26894 wxPyEndAllowThreads(__tstate);
26895 if (PyErr_Occurred()) SWIG_fail;
26896 }
26897 {
26898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26899 }
26900 return resultobj;
26901fail:
26902 return NULL;
26903}
26904
26905
26906SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26907 PyObject *resultobj = 0;
26908 wxImageList *arg1 = (wxImageList *) 0 ;
26909 int result;
26910 void *argp1 = 0 ;
26911 int res1 = 0 ;
26912 PyObject *swig_obj[1] ;
26913
26914 if (!args) SWIG_fail;
26915 swig_obj[0] = args;
26916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26917 if (!SWIG_IsOK(res1)) {
26918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
26919 }
26920 arg1 = reinterpret_cast< wxImageList * >(argp1);
26921 {
26922 PyThreadState* __tstate = wxPyBeginAllowThreads();
26923 result = (int)(arg1)->GetImageCount();
26924 wxPyEndAllowThreads(__tstate);
26925 if (PyErr_Occurred()) SWIG_fail;
26926 }
26927 resultobj = SWIG_From_int(static_cast< int >(result));
26928 return resultobj;
26929fail:
26930 return NULL;
26931}
26932
26933
26934SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26935 PyObject *resultobj = 0;
26936 wxImageList *arg1 = (wxImageList *) 0 ;
26937 int arg2 ;
26938 bool result;
26939 void *argp1 = 0 ;
26940 int res1 = 0 ;
26941 int val2 ;
26942 int ecode2 = 0 ;
26943 PyObject * obj0 = 0 ;
26944 PyObject * obj1 = 0 ;
26945 char * kwnames[] = {
26946 (char *) "self",(char *) "index", NULL
26947 };
26948
26949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
26950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26951 if (!SWIG_IsOK(res1)) {
26952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
26953 }
26954 arg1 = reinterpret_cast< wxImageList * >(argp1);
26955 ecode2 = SWIG_AsVal_int(obj1, &val2);
26956 if (!SWIG_IsOK(ecode2)) {
26957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
26958 }
26959 arg2 = static_cast< int >(val2);
26960 {
26961 PyThreadState* __tstate = wxPyBeginAllowThreads();
26962 result = (bool)(arg1)->Remove(arg2);
26963 wxPyEndAllowThreads(__tstate);
26964 if (PyErr_Occurred()) SWIG_fail;
26965 }
26966 {
26967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26968 }
26969 return resultobj;
26970fail:
26971 return NULL;
26972}
26973
26974
26975SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26976 PyObject *resultobj = 0;
26977 wxImageList *arg1 = (wxImageList *) 0 ;
26978 bool result;
26979 void *argp1 = 0 ;
26980 int res1 = 0 ;
26981 PyObject *swig_obj[1] ;
26982
26983 if (!args) SWIG_fail;
26984 swig_obj[0] = args;
26985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26986 if (!SWIG_IsOK(res1)) {
26987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
26988 }
26989 arg1 = reinterpret_cast< wxImageList * >(argp1);
26990 {
26991 PyThreadState* __tstate = wxPyBeginAllowThreads();
26992 result = (bool)(arg1)->RemoveAll();
26993 wxPyEndAllowThreads(__tstate);
26994 if (PyErr_Occurred()) SWIG_fail;
26995 }
26996 {
26997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26998 }
26999 return resultobj;
27000fail:
27001 return NULL;
27002}
27003
27004
27005SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27006 PyObject *resultobj = 0;
27007 wxImageList *arg1 = (wxImageList *) 0 ;
27008 int arg2 ;
27009 int *arg3 = 0 ;
27010 int *arg4 = 0 ;
27011 void *argp1 = 0 ;
27012 int res1 = 0 ;
27013 int val2 ;
27014 int ecode2 = 0 ;
27015 int temp3 ;
27016 int res3 = SWIG_TMPOBJ ;
27017 int temp4 ;
27018 int res4 = SWIG_TMPOBJ ;
27019 PyObject * obj0 = 0 ;
27020 PyObject * obj1 = 0 ;
27021 char * kwnames[] = {
27022 (char *) "self",(char *) "index", NULL
27023 };
27024
27025 arg3 = &temp3;
27026 arg4 = &temp4;
27027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
27028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27029 if (!SWIG_IsOK(res1)) {
27030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
27031 }
27032 arg1 = reinterpret_cast< wxImageList * >(argp1);
27033 ecode2 = SWIG_AsVal_int(obj1, &val2);
27034 if (!SWIG_IsOK(ecode2)) {
27035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
27036 }
27037 arg2 = static_cast< int >(val2);
27038 {
27039 PyThreadState* __tstate = wxPyBeginAllowThreads();
27040 (arg1)->GetSize(arg2,*arg3,*arg4);
27041 wxPyEndAllowThreads(__tstate);
27042 if (PyErr_Occurred()) SWIG_fail;
27043 }
27044 resultobj = SWIG_Py_Void();
27045 if (SWIG_IsTmpObj(res3)) {
27046 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
27047 } else {
27048 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27049 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
27050 }
27051 if (SWIG_IsTmpObj(res4)) {
27052 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
27053 } else {
27054 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27055 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
27056 }
27057 return resultobj;
27058fail:
27059 return NULL;
27060}
27061
27062
27063SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27064 PyObject *obj;
27065 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27066 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
27067 return SWIG_Py_Void();
27068}
27069
27070SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27071 return SWIG_Python_InitShadowInstance(args);
27072}
27073
50efceee
RD
27074SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27075 PyObject *resultobj = 0;
27076 wxStockGDI *result = 0 ;
0085ce49 27077
50efceee
RD
27078 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
27079 {
27080 PyThreadState* __tstate = wxPyBeginAllowThreads();
27081 result = (wxStockGDI *)new wxStockGDI();
27082 wxPyEndAllowThreads(__tstate);
27083 if (PyErr_Occurred()) SWIG_fail;
27084 }
27085 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
27086 return resultobj;
27087fail:
27088 return NULL;
0085ce49
RD
27089}
27090
27091
50efceee
RD
27092SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27093 PyObject *resultobj = 0;
27094 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27095 void *argp1 = 0 ;
27096 int res1 = 0 ;
27097 PyObject *swig_obj[1] ;
0085ce49 27098
50efceee
RD
27099 if (!args) SWIG_fail;
27100 swig_obj[0] = args;
27101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
27102 if (!SWIG_IsOK(res1)) {
27103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27104 }
27105 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27106 {
27107 PyThreadState* __tstate = wxPyBeginAllowThreads();
27108 delete arg1;
27109
27110 wxPyEndAllowThreads(__tstate);
27111 if (PyErr_Occurred()) SWIG_fail;
27112 }
27113 resultobj = SWIG_Py_Void();
27114 return resultobj;
27115fail:
27116 return NULL;
0085ce49
RD
27117}
27118
27119
50efceee
RD
27120SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27121 PyObject *resultobj = 0;
0085ce49 27122
50efceee
RD
27123 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
27124 {
27125 PyThreadState* __tstate = wxPyBeginAllowThreads();
27126 wxStockGDI::DeleteAll();
27127 wxPyEndAllowThreads(__tstate);
27128 if (PyErr_Occurred()) SWIG_fail;
27129 }
27130 resultobj = SWIG_Py_Void();
27131 return resultobj;
27132fail:
27133 return NULL;
0085ce49
RD
27134}
27135
27136
50efceee
RD
27137SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27138 PyObject *resultobj = 0;
27139 wxStockGDI *result = 0 ;
0085ce49 27140
50efceee
RD
27141 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
27142 {
27143 PyThreadState* __tstate = wxPyBeginAllowThreads();
27144 {
27145 wxStockGDI &_result_ref = wxStockGDI::instance();
27146 result = (wxStockGDI *) &_result_ref;
27147 }
27148 wxPyEndAllowThreads(__tstate);
27149 if (PyErr_Occurred()) SWIG_fail;
27150 }
27151 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
27152 return resultobj;
27153fail:
27154 return NULL;
0085ce49
RD
27155}
27156
27157
50efceee
RD
27158SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27159 PyObject *resultobj = 0;
27160 wxStockGDI::Item arg1 ;
27161 wxBrush *result = 0 ;
27162 int val1 ;
27163 int ecode1 = 0 ;
27164 PyObject * obj0 = 0 ;
27165 char * kwnames[] = {
27166 (char *) "item", NULL
27167 };
27168
27169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
27170 ecode1 = SWIG_AsVal_int(obj0, &val1);
27171 if (!SWIG_IsOK(ecode1)) {
27172 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27173 }
27174 arg1 = static_cast< wxStockGDI::Item >(val1);
27175 {
27176 PyThreadState* __tstate = wxPyBeginAllowThreads();
27177 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
27178 wxPyEndAllowThreads(__tstate);
27179 if (PyErr_Occurred()) SWIG_fail;
27180 }
27181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
27182 return resultobj;
27183fail:
27184 return NULL;
0085ce49
RD
27185}
27186
27187
50efceee
RD
27188SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27189 PyObject *resultobj = 0;
27190 wxStockGDI::Item arg1 ;
27191 wxColour *result = 0 ;
27192 int val1 ;
27193 int ecode1 = 0 ;
27194 PyObject * obj0 = 0 ;
27195 char * kwnames[] = {
27196 (char *) "item", NULL
27197 };
0085ce49 27198
50efceee
RD
27199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
27200 ecode1 = SWIG_AsVal_int(obj0, &val1);
27201 if (!SWIG_IsOK(ecode1)) {
27202 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27203 }
27204 arg1 = static_cast< wxStockGDI::Item >(val1);
27205 {
27206 PyThreadState* __tstate = wxPyBeginAllowThreads();
27207 result = (wxColour *)wxStockGDI::GetColour(arg1);
27208 wxPyEndAllowThreads(__tstate);
27209 if (PyErr_Occurred()) SWIG_fail;
27210 }
27211 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
27212 return resultobj;
27213fail:
27214 return NULL;
0085ce49
RD
27215}
27216
27217
50efceee
RD
27218SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27219 PyObject *resultobj = 0;
27220 wxStockGDI::Item arg1 ;
27221 wxCursor *result = 0 ;
27222 int val1 ;
27223 int ecode1 = 0 ;
27224 PyObject * obj0 = 0 ;
27225 char * kwnames[] = {
27226 (char *) "item", NULL
27227 };
27228
27229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
27230 ecode1 = SWIG_AsVal_int(obj0, &val1);
27231 if (!SWIG_IsOK(ecode1)) {
27232 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27233 }
27234 arg1 = static_cast< wxStockGDI::Item >(val1);
27235 {
27236 PyThreadState* __tstate = wxPyBeginAllowThreads();
27237 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
27238 wxPyEndAllowThreads(__tstate);
27239 if (PyErr_Occurred()) SWIG_fail;
27240 }
27241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
27242 return resultobj;
27243fail:
27244 return NULL;
0085ce49
RD
27245}
27246
27247
50efceee
RD
27248SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27249 PyObject *resultobj = 0;
27250 wxStockGDI::Item arg1 ;
27251 wxPen *result = 0 ;
27252 int val1 ;
27253 int ecode1 = 0 ;
27254 PyObject * obj0 = 0 ;
27255 char * kwnames[] = {
27256 (char *) "item", NULL
27257 };
27258
27259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
27260 ecode1 = SWIG_AsVal_int(obj0, &val1);
27261 if (!SWIG_IsOK(ecode1)) {
27262 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27263 }
27264 arg1 = static_cast< wxStockGDI::Item >(val1);
27265 {
27266 PyThreadState* __tstate = wxPyBeginAllowThreads();
27267 result = (wxPen *)wxStockGDI::GetPen(arg1);
27268 wxPyEndAllowThreads(__tstate);
27269 if (PyErr_Occurred()) SWIG_fail;
27270 }
27271 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
27272 return resultobj;
27273fail:
27274 return NULL;
0085ce49
RD
27275}
27276
27277
50efceee
RD
27278SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27279 PyObject *resultobj = 0;
27280 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27281 wxStockGDI::Item arg2 ;
27282 wxFont *result = 0 ;
27283 void *argp1 = 0 ;
27284 int res1 = 0 ;
27285 int val2 ;
27286 int ecode2 = 0 ;
27287 PyObject * obj0 = 0 ;
27288 PyObject * obj1 = 0 ;
27289 char * kwnames[] = {
27290 (char *) "self",(char *) "item", NULL
27291 };
0085ce49 27292
50efceee
RD
27293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
27295 if (!SWIG_IsOK(res1)) {
27296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27297 }
27298 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27299 ecode2 = SWIG_AsVal_int(obj1, &val2);
27300 if (!SWIG_IsOK(ecode2)) {
27301 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
27302 }
27303 arg2 = static_cast< wxStockGDI::Item >(val2);
27304 {
27305 PyThreadState* __tstate = wxPyBeginAllowThreads();
27306 result = (wxFont *)(arg1)->GetFont(arg2);
27307 wxPyEndAllowThreads(__tstate);
27308 if (PyErr_Occurred()) SWIG_fail;
27309 }
27310 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
27311 return resultobj;
27312fail:
27313 return NULL;
0085ce49
RD
27314}
27315
27316
50efceee
RD
27317SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27318 PyObject *obj;
27319 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27320 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
27321 return SWIG_Py_Void();
0085ce49
RD
27322}
27323
50efceee
RD
27324SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27325 return SWIG_Python_InitShadowInstance(args);
0085ce49
RD
27326}
27327
0085ce49
RD
27328SWIGINTERN int NullBitmap_set(PyObject *) {
27329 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
27330 return 1;
27331}
27332
27333
27334SWIGINTERN PyObject *NullBitmap_get(void) {
27335 PyObject *pyobj = 0;
27336
27337 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
27338 return pyobj;
27339}
27340
27341
27342SWIGINTERN int NullIcon_set(PyObject *) {
27343 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
27344 return 1;
27345}
27346
27347
27348SWIGINTERN PyObject *NullIcon_get(void) {
27349 PyObject *pyobj = 0;
27350
27351 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
27352 return pyobj;
27353}
27354
27355
27356SWIGINTERN int NullCursor_set(PyObject *) {
27357 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
27358 return 1;
27359}
27360
27361
27362SWIGINTERN PyObject *NullCursor_get(void) {
27363 PyObject *pyobj = 0;
27364
27365 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
27366 return pyobj;
27367}
27368
27369
27370SWIGINTERN int NullPen_set(PyObject *) {
27371 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
27372 return 1;
27373}
27374
27375
27376SWIGINTERN PyObject *NullPen_get(void) {
27377 PyObject *pyobj = 0;
27378
27379 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
27380 return pyobj;
27381}
27382
27383
27384SWIGINTERN int NullBrush_set(PyObject *) {
27385 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
27386 return 1;
27387}
27388
27389
27390SWIGINTERN PyObject *NullBrush_get(void) {
27391 PyObject *pyobj = 0;
27392
27393 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
27394 return pyobj;
27395}
27396
27397
27398SWIGINTERN int NullPalette_set(PyObject *) {
27399 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
27400 return 1;
27401}
27402
27403
27404SWIGINTERN PyObject *NullPalette_get(void) {
27405 PyObject *pyobj = 0;
27406
27407 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
27408 return pyobj;
27409}
27410
27411
27412SWIGINTERN int NullFont_set(PyObject *) {
27413 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
27414 return 1;
27415}
27416
27417
27418SWIGINTERN PyObject *NullFont_get(void) {
27419 PyObject *pyobj = 0;
27420
27421 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
27422 return pyobj;
27423}
27424
27425
27426SWIGINTERN int NullColour_set(PyObject *) {
27427 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
27428 return 1;
27429}
27430
27431
27432SWIGINTERN PyObject *NullColour_get(void) {
27433 PyObject *pyobj = 0;
27434
27435 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
27436 return pyobj;
27437}
27438
27439
50efceee 27440SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 27441 PyObject *resultobj = 0;
50efceee
RD
27442 wxGDIObjListBase *result = 0 ;
27443
27444 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
27445 {
27446 PyThreadState* __tstate = wxPyBeginAllowThreads();
27447 result = (wxGDIObjListBase *)new wxGDIObjListBase();
27448 wxPyEndAllowThreads(__tstate);
27449 if (PyErr_Occurred()) SWIG_fail;
27450 }
27451 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
27452 return resultobj;
27453fail:
27454 return NULL;
27455}
27456
27457
27458SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27459 PyObject *resultobj = 0;
27460 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
0085ce49
RD
27461 void *argp1 = 0 ;
27462 int res1 = 0 ;
50efceee 27463 PyObject *swig_obj[1] ;
0085ce49 27464
50efceee
RD
27465 if (!args) SWIG_fail;
27466 swig_obj[0] = args;
27467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
0085ce49 27468 if (!SWIG_IsOK(res1)) {
50efceee 27469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
0085ce49 27470 }
50efceee 27471 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
0085ce49
RD
27472 {
27473 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee
RD
27474 delete arg1;
27475
0085ce49
RD
27476 wxPyEndAllowThreads(__tstate);
27477 if (PyErr_Occurred()) SWIG_fail;
27478 }
27479 resultobj = SWIG_Py_Void();
27480 return resultobj;
27481fail:
27482 return NULL;
27483}
27484
27485
50efceee
RD
27486SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27487 PyObject *obj;
27488 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27489 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
27490 return SWIG_Py_Void();
27491}
27492
27493SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27494 return SWIG_Python_InitShadowInstance(args);
27495}
27496
0085ce49
RD
27497SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27498 PyObject *resultobj = 0;
27499 wxPenList *arg1 = (wxPenList *) 0 ;
27500 wxColour *arg2 = 0 ;
27501 int arg3 ;
27502 int arg4 ;
27503 wxPen *result = 0 ;
27504 void *argp1 = 0 ;
27505 int res1 = 0 ;
27506 wxColour temp2 ;
27507 int val3 ;
27508 int ecode3 = 0 ;
27509 int val4 ;
27510 int ecode4 = 0 ;
27511 PyObject * obj0 = 0 ;
27512 PyObject * obj1 = 0 ;
27513 PyObject * obj2 = 0 ;
27514 PyObject * obj3 = 0 ;
27515 char * kwnames[] = {
27516 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
27517 };
27518
27519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
27521 if (!SWIG_IsOK(res1)) {
27522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
27523 }
27524 arg1 = reinterpret_cast< wxPenList * >(argp1);
27525 {
27526 arg2 = &temp2;
27527 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27528 }
27529 ecode3 = SWIG_AsVal_int(obj2, &val3);
27530 if (!SWIG_IsOK(ecode3)) {
27531 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
27532 }
27533 arg3 = static_cast< int >(val3);
27534 ecode4 = SWIG_AsVal_int(obj3, &val4);
27535 if (!SWIG_IsOK(ecode4)) {
27536 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
27537 }
27538 arg4 = static_cast< int >(val4);
27539 {
27540 PyThreadState* __tstate = wxPyBeginAllowThreads();
27541 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
27542 wxPyEndAllowThreads(__tstate);
27543 if (PyErr_Occurred()) SWIG_fail;
27544 }
27545 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
27546 return resultobj;
27547fail:
27548 return NULL;
27549}
27550
27551
50efceee 27552SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
27553 PyObject *resultobj = 0;
27554 wxPenList *arg1 = (wxPenList *) 0 ;
27555 wxPen *arg2 = (wxPen *) 0 ;
27556 void *argp1 = 0 ;
27557 int res1 = 0 ;
27558 void *argp2 = 0 ;
27559 int res2 = 0 ;
27560 PyObject * obj0 = 0 ;
27561 PyObject * obj1 = 0 ;
27562 char * kwnames[] = {
27563 (char *) "self",(char *) "pen", NULL
27564 };
27565
50efceee 27566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
0085ce49
RD
27567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
27568 if (!SWIG_IsOK(res1)) {
50efceee 27569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
0085ce49
RD
27570 }
27571 arg1 = reinterpret_cast< wxPenList * >(argp1);
27572 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
27573 if (!SWIG_IsOK(res2)) {
50efceee 27574 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
0085ce49
RD
27575 }
27576 arg2 = reinterpret_cast< wxPen * >(argp2);
27577 {
27578 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 27579 (arg1)->AddPen(arg2);
0085ce49
RD
27580 wxPyEndAllowThreads(__tstate);
27581 if (PyErr_Occurred()) SWIG_fail;
27582 }
27583 resultobj = SWIG_Py_Void();
27584 return resultobj;
27585fail:
27586 return NULL;
27587}
27588
27589
50efceee 27590SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
27591 PyObject *resultobj = 0;
27592 wxPenList *arg1 = (wxPenList *) 0 ;
50efceee 27593 wxPen *arg2 = (wxPen *) 0 ;
0085ce49
RD
27594 void *argp1 = 0 ;
27595 int res1 = 0 ;
50efceee
RD
27596 void *argp2 = 0 ;
27597 int res2 = 0 ;
27598 PyObject * obj0 = 0 ;
27599 PyObject * obj1 = 0 ;
27600 char * kwnames[] = {
27601 (char *) "self",(char *) "pen", NULL
27602 };
0085ce49 27603
50efceee
RD
27604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
27605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
0085ce49 27606 if (!SWIG_IsOK(res1)) {
50efceee 27607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
0085ce49
RD
27608 }
27609 arg1 = reinterpret_cast< wxPenList * >(argp1);
50efceee
RD
27610 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
27611 if (!SWIG_IsOK(res2)) {
27612 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
27613 }
27614 arg2 = reinterpret_cast< wxPen * >(argp2);
0085ce49
RD
27615 {
27616 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 27617 (arg1)->RemovePen(arg2);
0085ce49
RD
27618 wxPyEndAllowThreads(__tstate);
27619 if (PyErr_Occurred()) SWIG_fail;
27620 }
50efceee 27621 resultobj = SWIG_Py_Void();
0085ce49
RD
27622 return resultobj;
27623fail:
27624 return NULL;
27625}
27626
27627
27628SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27629 PyObject *obj;
27630 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27631 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
27632 return SWIG_Py_Void();
27633}
27634
50efceee
RD
27635SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27636 PyObject *resultobj = 0;
27637 wxBrushList *arg1 = (wxBrushList *) 0 ;
27638 wxColour *arg2 = 0 ;
27639 int arg3 = (int) wxSOLID ;
27640 wxBrush *result = 0 ;
27641 void *argp1 = 0 ;
27642 int res1 = 0 ;
27643 wxColour temp2 ;
27644 int val3 ;
27645 int ecode3 = 0 ;
27646 PyObject * obj0 = 0 ;
27647 PyObject * obj1 = 0 ;
27648 PyObject * obj2 = 0 ;
27649 char * kwnames[] = {
27650 (char *) "self",(char *) "colour",(char *) "style", NULL
27651 };
27652
27653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
27655 if (!SWIG_IsOK(res1)) {
27656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
27657 }
27658 arg1 = reinterpret_cast< wxBrushList * >(argp1);
27659 {
27660 arg2 = &temp2;
27661 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27662 }
27663 if (obj2) {
27664 ecode3 = SWIG_AsVal_int(obj2, &val3);
27665 if (!SWIG_IsOK(ecode3)) {
27666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
27667 }
27668 arg3 = static_cast< int >(val3);
27669 }
27670 {
27671 PyThreadState* __tstate = wxPyBeginAllowThreads();
27672 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
27673 wxPyEndAllowThreads(__tstate);
27674 if (PyErr_Occurred()) SWIG_fail;
27675 }
27676 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
27677 return resultobj;
27678fail:
27679 return NULL;
27680}
27681
27682
0085ce49
RD
27683SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27684 PyObject *resultobj = 0;
27685 wxBrushList *arg1 = (wxBrushList *) 0 ;
27686 wxBrush *arg2 = (wxBrush *) 0 ;
27687 void *argp1 = 0 ;
27688 int res1 = 0 ;
27689 void *argp2 = 0 ;
27690 int res2 = 0 ;
27691 PyObject * obj0 = 0 ;
27692 PyObject * obj1 = 0 ;
27693 char * kwnames[] = {
27694 (char *) "self",(char *) "brush", NULL
27695 };
27696
27697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
27699 if (!SWIG_IsOK(res1)) {
27700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
27701 }
27702 arg1 = reinterpret_cast< wxBrushList * >(argp1);
27703 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
27704 if (!SWIG_IsOK(res2)) {
27705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
27706 }
27707 arg2 = reinterpret_cast< wxBrush * >(argp2);
27708 {
27709 PyThreadState* __tstate = wxPyBeginAllowThreads();
27710 (arg1)->AddBrush(arg2);
27711 wxPyEndAllowThreads(__tstate);
27712 if (PyErr_Occurred()) SWIG_fail;
27713 }
27714 resultobj = SWIG_Py_Void();
27715 return resultobj;
27716fail:
27717 return NULL;
27718}
27719
27720
50efceee 27721SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
27722 PyObject *resultobj = 0;
27723 wxBrushList *arg1 = (wxBrushList *) 0 ;
50efceee 27724 wxBrush *arg2 = (wxBrush *) 0 ;
0085ce49
RD
27725 void *argp1 = 0 ;
27726 int res1 = 0 ;
50efceee
RD
27727 void *argp2 = 0 ;
27728 int res2 = 0 ;
27729 PyObject * obj0 = 0 ;
27730 PyObject * obj1 = 0 ;
27731 char * kwnames[] = {
27732 (char *) "self",(char *) "brush", NULL
27733 };
27734
27735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
27737 if (!SWIG_IsOK(res1)) {
27738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
27739 }
27740 arg1 = reinterpret_cast< wxBrushList * >(argp1);
27741 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
27742 if (!SWIG_IsOK(res2)) {
27743 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
27744 }
27745 arg2 = reinterpret_cast< wxBrush * >(argp2);
27746 {
27747 PyThreadState* __tstate = wxPyBeginAllowThreads();
27748 (arg1)->RemoveBrush(arg2);
27749 wxPyEndAllowThreads(__tstate);
27750 if (PyErr_Occurred()) SWIG_fail;
27751 }
27752 resultobj = SWIG_Py_Void();
27753 return resultobj;
27754fail:
27755 return NULL;
27756}
27757
27758
27759SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27760 PyObject *obj;
27761 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27762 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
27763 return SWIG_Py_Void();
27764}
27765
27766SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27767 PyObject *resultobj = 0;
27768 wxFontList *arg1 = (wxFontList *) 0 ;
27769 int arg2 ;
27770 int arg3 ;
27771 int arg4 ;
27772 int arg5 ;
27773 bool arg6 = (bool) false ;
27774 wxString const &arg7_defvalue = wxPyEmptyString ;
27775 wxString *arg7 = (wxString *) &arg7_defvalue ;
27776 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
27777 wxFont *result = 0 ;
27778 void *argp1 = 0 ;
27779 int res1 = 0 ;
27780 int val2 ;
27781 int ecode2 = 0 ;
0085ce49
RD
27782 int val3 ;
27783 int ecode3 = 0 ;
50efceee
RD
27784 int val4 ;
27785 int ecode4 = 0 ;
27786 int val5 ;
27787 int ecode5 = 0 ;
27788 bool val6 ;
27789 int ecode6 = 0 ;
27790 bool temp7 = false ;
27791 int val8 ;
27792 int ecode8 = 0 ;
0085ce49
RD
27793 PyObject * obj0 = 0 ;
27794 PyObject * obj1 = 0 ;
27795 PyObject * obj2 = 0 ;
50efceee
RD
27796 PyObject * obj3 = 0 ;
27797 PyObject * obj4 = 0 ;
27798 PyObject * obj5 = 0 ;
27799 PyObject * obj6 = 0 ;
27800 PyObject * obj7 = 0 ;
0085ce49 27801 char * kwnames[] = {
50efceee 27802 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
0085ce49
RD
27803 };
27804
50efceee
RD
27805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
27806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 27807 if (!SWIG_IsOK(res1)) {
50efceee 27808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 27809 }
50efceee
RD
27810 arg1 = reinterpret_cast< wxFontList * >(argp1);
27811 ecode2 = SWIG_AsVal_int(obj1, &val2);
27812 if (!SWIG_IsOK(ecode2)) {
27813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
27814 }
27815 arg2 = static_cast< int >(val2);
27816 ecode3 = SWIG_AsVal_int(obj2, &val3);
27817 if (!SWIG_IsOK(ecode3)) {
27818 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
27819 }
27820 arg3 = static_cast< int >(val3);
27821 ecode4 = SWIG_AsVal_int(obj3, &val4);
27822 if (!SWIG_IsOK(ecode4)) {
27823 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
27824 }
27825 arg4 = static_cast< int >(val4);
27826 ecode5 = SWIG_AsVal_int(obj4, &val5);
27827 if (!SWIG_IsOK(ecode5)) {
27828 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
27829 }
27830 arg5 = static_cast< int >(val5);
27831 if (obj5) {
27832 ecode6 = SWIG_AsVal_bool(obj5, &val6);
27833 if (!SWIG_IsOK(ecode6)) {
27834 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
27835 }
27836 arg6 = static_cast< bool >(val6);
0085ce49 27837 }
50efceee
RD
27838 if (obj6) {
27839 {
27840 arg7 = wxString_in_helper(obj6);
27841 if (arg7 == NULL) SWIG_fail;
27842 temp7 = true;
27843 }
27844 }
27845 if (obj7) {
27846 ecode8 = SWIG_AsVal_int(obj7, &val8);
27847 if (!SWIG_IsOK(ecode8)) {
27848 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
0085ce49 27849 }
50efceee 27850 arg8 = static_cast< wxFontEncoding >(val8);
0085ce49
RD
27851 }
27852 {
27853 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 27854 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
0085ce49
RD
27855 wxPyEndAllowThreads(__tstate);
27856 if (PyErr_Occurred()) SWIG_fail;
27857 }
50efceee
RD
27858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
27859 {
27860 if (temp7)
27861 delete arg7;
27862 }
0085ce49
RD
27863 return resultobj;
27864fail:
50efceee
RD
27865 {
27866 if (temp7)
27867 delete arg7;
27868 }
0085ce49
RD
27869 return NULL;
27870}
27871
27872
50efceee 27873SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 27874 PyObject *resultobj = 0;
50efceee
RD
27875 wxFontList *arg1 = (wxFontList *) 0 ;
27876 wxFont *arg2 = (wxFont *) 0 ;
0085ce49
RD
27877 void *argp1 = 0 ;
27878 int res1 = 0 ;
27879 void *argp2 = 0 ;
27880 int res2 = 0 ;
27881 PyObject * obj0 = 0 ;
27882 PyObject * obj1 = 0 ;
27883 char * kwnames[] = {
50efceee 27884 (char *) "self",(char *) "font", NULL
0085ce49
RD
27885 };
27886
50efceee
RD
27887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
27888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 27889 if (!SWIG_IsOK(res1)) {
50efceee 27890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 27891 }
50efceee
RD
27892 arg1 = reinterpret_cast< wxFontList * >(argp1);
27893 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
0085ce49 27894 if (!SWIG_IsOK(res2)) {
50efceee 27895 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
0085ce49 27896 }
50efceee 27897 arg2 = reinterpret_cast< wxFont * >(argp2);
0085ce49
RD
27898 {
27899 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 27900 (arg1)->AddFont(arg2);
0085ce49
RD
27901 wxPyEndAllowThreads(__tstate);
27902 if (PyErr_Occurred()) SWIG_fail;
27903 }
27904 resultobj = SWIG_Py_Void();
27905 return resultobj;
27906fail:
27907 return NULL;
27908}
27909
27910
50efceee 27911SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 27912 PyObject *resultobj = 0;
50efceee
RD
27913 wxFontList *arg1 = (wxFontList *) 0 ;
27914 wxFont *arg2 = (wxFont *) 0 ;
0085ce49
RD
27915 void *argp1 = 0 ;
27916 int res1 = 0 ;
50efceee
RD
27917 void *argp2 = 0 ;
27918 int res2 = 0 ;
27919 PyObject * obj0 = 0 ;
27920 PyObject * obj1 = 0 ;
27921 char * kwnames[] = {
27922 (char *) "self",(char *) "font", NULL
27923 };
0085ce49 27924
50efceee
RD
27925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
27926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 27927 if (!SWIG_IsOK(res1)) {
50efceee 27928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 27929 }
50efceee
RD
27930 arg1 = reinterpret_cast< wxFontList * >(argp1);
27931 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
27932 if (!SWIG_IsOK(res2)) {
27933 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
27934 }
27935 arg2 = reinterpret_cast< wxFont * >(argp2);
0085ce49
RD
27936 {
27937 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 27938 (arg1)->RemoveFont(arg2);
0085ce49
RD
27939 wxPyEndAllowThreads(__tstate);
27940 if (PyErr_Occurred()) SWIG_fail;
27941 }
50efceee 27942 resultobj = SWIG_Py_Void();
0085ce49
RD
27943 return resultobj;
27944fail:
27945 return NULL;
27946}
27947
27948
50efceee 27949SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
27950 PyObject *obj;
27951 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
50efceee 27952 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
0085ce49
RD
27953 return SWIG_Py_Void();
27954}
27955
27956SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27957 PyObject *resultobj = 0;
27958 wxColourDatabase *result = 0 ;
27959
27960 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
27961 {
27962 if (!wxPyCheckForApp()) SWIG_fail;
27963 PyThreadState* __tstate = wxPyBeginAllowThreads();
27964 result = (wxColourDatabase *)new wxColourDatabase();
27965 wxPyEndAllowThreads(__tstate);
27966 if (PyErr_Occurred()) SWIG_fail;
27967 }
27968 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
27969 return resultobj;
27970fail:
27971 return NULL;
27972}
27973
27974
27975SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27976 PyObject *resultobj = 0;
27977 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
27978 void *argp1 = 0 ;
27979 int res1 = 0 ;
27980 PyObject *swig_obj[1] ;
27981
27982 if (!args) SWIG_fail;
27983 swig_obj[0] = args;
27984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
27985 if (!SWIG_IsOK(res1)) {
27986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
27987 }
27988 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
27989 {
27990 PyThreadState* __tstate = wxPyBeginAllowThreads();
27991 delete arg1;
27992
27993 wxPyEndAllowThreads(__tstate);
27994 if (PyErr_Occurred()) SWIG_fail;
27995 }
27996 resultobj = SWIG_Py_Void();
27997 return resultobj;
27998fail:
27999 return NULL;
28000}
28001
28002
28003SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28004 PyObject *resultobj = 0;
28005 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28006 wxString *arg2 = 0 ;
28007 wxColour result;
28008 void *argp1 = 0 ;
28009 int res1 = 0 ;
28010 bool temp2 = false ;
28011 PyObject * obj0 = 0 ;
28012 PyObject * obj1 = 0 ;
28013 char * kwnames[] = {
28014 (char *) "self",(char *) "name", NULL
28015 };
28016
28017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
28018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28019 if (!SWIG_IsOK(res1)) {
28020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28021 }
28022 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28023 {
28024 arg2 = wxString_in_helper(obj1);
28025 if (arg2 == NULL) SWIG_fail;
28026 temp2 = true;
28027 }
28028 {
28029 PyThreadState* __tstate = wxPyBeginAllowThreads();
28030 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
28031 wxPyEndAllowThreads(__tstate);
28032 if (PyErr_Occurred()) SWIG_fail;
28033 }
28034 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28035 {
28036 if (temp2)
28037 delete arg2;
28038 }
28039 return resultobj;
28040fail:
28041 {
28042 if (temp2)
28043 delete arg2;
28044 }
28045 return NULL;
28046}
28047
28048
28049SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28050 PyObject *resultobj = 0;
28051 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28052 wxColour *arg2 = 0 ;
28053 wxString result;
28054 void *argp1 = 0 ;
28055 int res1 = 0 ;
28056 wxColour temp2 ;
28057 PyObject * obj0 = 0 ;
28058 PyObject * obj1 = 0 ;
28059 char * kwnames[] = {
28060 (char *) "self",(char *) "colour", NULL
28061 };
28062
28063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
28064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28065 if (!SWIG_IsOK(res1)) {
28066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28067 }
28068 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28069 {
28070 arg2 = &temp2;
28071 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28072 }
28073 {
28074 PyThreadState* __tstate = wxPyBeginAllowThreads();
28075 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
28076 wxPyEndAllowThreads(__tstate);
28077 if (PyErr_Occurred()) SWIG_fail;
28078 }
28079 {
28080#if wxUSE_UNICODE
28081 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28082#else
28083 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28084#endif
28085 }
28086 return resultobj;
28087fail:
28088 return NULL;
28089}
28090
28091
28092SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28093 PyObject *resultobj = 0;
28094 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28095 wxString *arg2 = 0 ;
28096 wxColour *arg3 = 0 ;
28097 void *argp1 = 0 ;
28098 int res1 = 0 ;
28099 bool temp2 = false ;
28100 wxColour temp3 ;
28101 PyObject * obj0 = 0 ;
28102 PyObject * obj1 = 0 ;
28103 PyObject * obj2 = 0 ;
28104 char * kwnames[] = {
28105 (char *) "self",(char *) "name",(char *) "colour", NULL
28106 };
28107
28108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28110 if (!SWIG_IsOK(res1)) {
28111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28112 }
28113 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28114 {
28115 arg2 = wxString_in_helper(obj1);
28116 if (arg2 == NULL) SWIG_fail;
28117 temp2 = true;
28118 }
28119 {
28120 arg3 = &temp3;
28121 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28122 }
28123 {
28124 PyThreadState* __tstate = wxPyBeginAllowThreads();
28125 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
28126 wxPyEndAllowThreads(__tstate);
28127 if (PyErr_Occurred()) SWIG_fail;
28128 }
28129 resultobj = SWIG_Py_Void();
28130 {
28131 if (temp2)
28132 delete arg2;
28133 }
28134 return resultobj;
28135fail:
28136 {
28137 if (temp2)
28138 delete arg2;
28139 }
28140 return NULL;
28141}
28142
28143
28144SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28145 PyObject *resultobj = 0;
28146 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28147 wxString *arg2 = 0 ;
28148 int arg3 ;
28149 int arg4 ;
28150 int arg5 ;
28151 void *argp1 = 0 ;
28152 int res1 = 0 ;
28153 bool temp2 = false ;
28154 int val3 ;
28155 int ecode3 = 0 ;
28156 int val4 ;
28157 int ecode4 = 0 ;
50efceee
RD
28158 int val5 ;
28159 int ecode5 = 0 ;
0085ce49
RD
28160 PyObject * obj0 = 0 ;
28161 PyObject * obj1 = 0 ;
28162 PyObject * obj2 = 0 ;
28163 PyObject * obj3 = 0 ;
28164 PyObject * obj4 = 0 ;
0085ce49 28165 char * kwnames[] = {
50efceee 28166 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
0085ce49
RD
28167 };
28168
50efceee
RD
28169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
0085ce49 28171 if (!SWIG_IsOK(res1)) {
50efceee
RD
28172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28173 }
28174 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28175 {
28176 arg2 = wxString_in_helper(obj1);
28177 if (arg2 == NULL) SWIG_fail;
28178 temp2 = true;
0085ce49 28179 }
0085ce49
RD
28180 ecode3 = SWIG_AsVal_int(obj2, &val3);
28181 if (!SWIG_IsOK(ecode3)) {
50efceee 28182 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
0085ce49
RD
28183 }
28184 arg3 = static_cast< int >(val3);
28185 ecode4 = SWIG_AsVal_int(obj3, &val4);
28186 if (!SWIG_IsOK(ecode4)) {
50efceee 28187 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
0085ce49
RD
28188 }
28189 arg4 = static_cast< int >(val4);
28190 ecode5 = SWIG_AsVal_int(obj4, &val5);
28191 if (!SWIG_IsOK(ecode5)) {
50efceee 28192 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
0085ce49
RD
28193 }
28194 arg5 = static_cast< int >(val5);
0085ce49
RD
28195 {
28196 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 28197 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
0085ce49
RD
28198 wxPyEndAllowThreads(__tstate);
28199 if (PyErr_Occurred()) SWIG_fail;
28200 }
50efceee 28201 resultobj = SWIG_Py_Void();
0085ce49 28202 {
50efceee
RD
28203 if (temp2)
28204 delete arg2;
0085ce49
RD
28205 }
28206 return resultobj;
28207fail:
28208 {
50efceee
RD
28209 if (temp2)
28210 delete arg2;
0085ce49
RD
28211 }
28212 return NULL;
28213}
28214
28215
50efceee
RD
28216SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28217 PyObject *obj;
28218 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28219 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
28220 return SWIG_Py_Void();
28221}
28222
28223SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28224 return SWIG_Python_InitShadowInstance(args);
28225}
28226
28227SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 28228 PyObject *resultobj = 0;
50efceee 28229 wxFontList *result = 0 ;
0085ce49 28230
50efceee 28231 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
0085ce49
RD
28232 {
28233 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 28234 result = (wxFontList *)_wxPyInitTheFontList();
0085ce49
RD
28235 wxPyEndAllowThreads(__tstate);
28236 if (PyErr_Occurred()) SWIG_fail;
28237 }
50efceee 28238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49
RD
28239 return resultobj;
28240fail:
28241 return NULL;
28242}
28243
28244
50efceee 28245SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 28246 PyObject *resultobj = 0;
50efceee 28247 wxPenList *result = 0 ;
0085ce49 28248
50efceee 28249 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
0085ce49
RD
28250 {
28251 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 28252 result = (wxPenList *)_wxPyInitThePenList();
0085ce49
RD
28253 wxPyEndAllowThreads(__tstate);
28254 if (PyErr_Occurred()) SWIG_fail;
28255 }
50efceee 28256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
0085ce49
RD
28257 return resultobj;
28258fail:
28259 return NULL;
28260}
28261
28262
50efceee
RD
28263SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28264 PyObject *resultobj = 0;
28265 wxBrushList *result = 0 ;
0085ce49 28266
50efceee
RD
28267 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
28268 {
28269 PyThreadState* __tstate = wxPyBeginAllowThreads();
28270 result = (wxBrushList *)_wxPyInitTheBrushList();
28271 wxPyEndAllowThreads(__tstate);
28272 if (PyErr_Occurred()) SWIG_fail;
28273 }
28274 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
28275 return resultobj;
28276fail:
28277 return NULL;
0085ce49
RD
28278}
28279
28280
50efceee
RD
28281SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28282 PyObject *resultobj = 0;
28283 wxColourDatabase *result = 0 ;
0085ce49 28284
50efceee
RD
28285 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
28286 {
28287 PyThreadState* __tstate = wxPyBeginAllowThreads();
28288 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
28289 wxPyEndAllowThreads(__tstate);
28290 if (PyErr_Occurred()) SWIG_fail;
28291 }
28292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28293 return resultobj;
28294fail:
28295 return NULL;
0085ce49
RD
28296}
28297
28298
28299SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28300 PyObject *resultobj = 0;
28301 wxEffects *result = 0 ;
28302
28303 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
28304 {
28305 PyThreadState* __tstate = wxPyBeginAllowThreads();
28306 result = (wxEffects *)new wxEffects();
28307 wxPyEndAllowThreads(__tstate);
28308 if (PyErr_Occurred()) SWIG_fail;
28309 }
28310 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
28311 return resultobj;
28312fail:
28313 return NULL;
28314}
28315
28316
28317SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28318 PyObject *resultobj = 0;
28319 wxEffects *arg1 = (wxEffects *) 0 ;
28320 wxColour result;
28321 void *argp1 = 0 ;
28322 int res1 = 0 ;
28323 PyObject *swig_obj[1] ;
28324
28325 if (!args) SWIG_fail;
28326 swig_obj[0] = args;
28327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28328 if (!SWIG_IsOK(res1)) {
28329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
28330 }
28331 arg1 = reinterpret_cast< wxEffects * >(argp1);
28332 {
28333 PyThreadState* __tstate = wxPyBeginAllowThreads();
28334 result = ((wxEffects const *)arg1)->GetHighlightColour();
28335 wxPyEndAllowThreads(__tstate);
28336 if (PyErr_Occurred()) SWIG_fail;
28337 }
28338 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28339 return resultobj;
28340fail:
28341 return NULL;
28342}
28343
28344
28345SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28346 PyObject *resultobj = 0;
28347 wxEffects *arg1 = (wxEffects *) 0 ;
28348 wxColour result;
28349 void *argp1 = 0 ;
28350 int res1 = 0 ;
28351 PyObject *swig_obj[1] ;
28352
28353 if (!args) SWIG_fail;
28354 swig_obj[0] = args;
28355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28356 if (!SWIG_IsOK(res1)) {
28357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28358 }
28359 arg1 = reinterpret_cast< wxEffects * >(argp1);
28360 {
28361 PyThreadState* __tstate = wxPyBeginAllowThreads();
28362 result = ((wxEffects const *)arg1)->GetLightShadow();
28363 wxPyEndAllowThreads(__tstate);
28364 if (PyErr_Occurred()) SWIG_fail;
28365 }
28366 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28367 return resultobj;
28368fail:
28369 return NULL;
28370}
28371
28372
28373SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28374 PyObject *resultobj = 0;
28375 wxEffects *arg1 = (wxEffects *) 0 ;
28376 wxColour result;
28377 void *argp1 = 0 ;
28378 int res1 = 0 ;
28379 PyObject *swig_obj[1] ;
28380
28381 if (!args) SWIG_fail;
28382 swig_obj[0] = args;
28383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28384 if (!SWIG_IsOK(res1)) {
28385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
28386 }
28387 arg1 = reinterpret_cast< wxEffects * >(argp1);
28388 {
28389 PyThreadState* __tstate = wxPyBeginAllowThreads();
28390 result = ((wxEffects const *)arg1)->GetFaceColour();
28391 wxPyEndAllowThreads(__tstate);
28392 if (PyErr_Occurred()) SWIG_fail;
28393 }
28394 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28395 return resultobj;
28396fail:
28397 return NULL;
28398}
28399
28400
28401SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28402 PyObject *resultobj = 0;
28403 wxEffects *arg1 = (wxEffects *) 0 ;
28404 wxColour result;
28405 void *argp1 = 0 ;
28406 int res1 = 0 ;
28407 PyObject *swig_obj[1] ;
28408
28409 if (!args) SWIG_fail;
28410 swig_obj[0] = args;
28411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28412 if (!SWIG_IsOK(res1)) {
28413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28414 }
28415 arg1 = reinterpret_cast< wxEffects * >(argp1);
28416 {
28417 PyThreadState* __tstate = wxPyBeginAllowThreads();
28418 result = ((wxEffects const *)arg1)->GetMediumShadow();
28419 wxPyEndAllowThreads(__tstate);
28420 if (PyErr_Occurred()) SWIG_fail;
28421 }
28422 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28423 return resultobj;
28424fail:
28425 return NULL;
28426}
28427
28428
28429SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28430 PyObject *resultobj = 0;
28431 wxEffects *arg1 = (wxEffects *) 0 ;
28432 wxColour result;
28433 void *argp1 = 0 ;
28434 int res1 = 0 ;
28435 PyObject *swig_obj[1] ;
28436
28437 if (!args) SWIG_fail;
28438 swig_obj[0] = args;
28439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28440 if (!SWIG_IsOK(res1)) {
28441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28442 }
28443 arg1 = reinterpret_cast< wxEffects * >(argp1);
28444 {
28445 PyThreadState* __tstate = wxPyBeginAllowThreads();
28446 result = ((wxEffects const *)arg1)->GetDarkShadow();
28447 wxPyEndAllowThreads(__tstate);
28448 if (PyErr_Occurred()) SWIG_fail;
28449 }
28450 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28451 return resultobj;
28452fail:
28453 return NULL;
28454}
28455
28456
28457SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28458 PyObject *resultobj = 0;
28459 wxEffects *arg1 = (wxEffects *) 0 ;
28460 wxColour *arg2 = 0 ;
28461 void *argp1 = 0 ;
28462 int res1 = 0 ;
28463 wxColour temp2 ;
28464 PyObject * obj0 = 0 ;
28465 PyObject * obj1 = 0 ;
28466 char * kwnames[] = {
28467 (char *) "self",(char *) "c", NULL
28468 };
28469
28470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
28471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28472 if (!SWIG_IsOK(res1)) {
28473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
28474 }
28475 arg1 = reinterpret_cast< wxEffects * >(argp1);
28476 {
28477 arg2 = &temp2;
28478 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28479 }
28480 {
28481 PyThreadState* __tstate = wxPyBeginAllowThreads();
28482 (arg1)->SetHighlightColour((wxColour const &)*arg2);
28483 wxPyEndAllowThreads(__tstate);
28484 if (PyErr_Occurred()) SWIG_fail;
28485 }
28486 resultobj = SWIG_Py_Void();
28487 return resultobj;
28488fail:
28489 return NULL;
28490}
28491
28492
28493SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28494 PyObject *resultobj = 0;
28495 wxEffects *arg1 = (wxEffects *) 0 ;
28496 wxColour *arg2 = 0 ;
28497 void *argp1 = 0 ;
28498 int res1 = 0 ;
28499 wxColour temp2 ;
28500 PyObject * obj0 = 0 ;
28501 PyObject * obj1 = 0 ;
28502 char * kwnames[] = {
28503 (char *) "self",(char *) "c", NULL
28504 };
28505
28506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
28507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28508 if (!SWIG_IsOK(res1)) {
28509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
28510 }
28511 arg1 = reinterpret_cast< wxEffects * >(argp1);
28512 {
28513 arg2 = &temp2;
28514 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28515 }
28516 {
28517 PyThreadState* __tstate = wxPyBeginAllowThreads();
28518 (arg1)->SetLightShadow((wxColour const &)*arg2);
28519 wxPyEndAllowThreads(__tstate);
28520 if (PyErr_Occurred()) SWIG_fail;
28521 }
28522 resultobj = SWIG_Py_Void();
28523 return resultobj;
28524fail:
28525 return NULL;
28526}
28527
28528
28529SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28530 PyObject *resultobj = 0;
28531 wxEffects *arg1 = (wxEffects *) 0 ;
28532 wxColour *arg2 = 0 ;
28533 void *argp1 = 0 ;
28534 int res1 = 0 ;
28535 wxColour temp2 ;
28536 PyObject * obj0 = 0 ;
28537 PyObject * obj1 = 0 ;
28538 char * kwnames[] = {
28539 (char *) "self",(char *) "c", NULL
28540 };
28541
28542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
28543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28544 if (!SWIG_IsOK(res1)) {
28545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
28546 }
28547 arg1 = reinterpret_cast< wxEffects * >(argp1);
28548 {
28549 arg2 = &temp2;
28550 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28551 }
28552 {
28553 PyThreadState* __tstate = wxPyBeginAllowThreads();
28554 (arg1)->SetFaceColour((wxColour const &)*arg2);
28555 wxPyEndAllowThreads(__tstate);
28556 if (PyErr_Occurred()) SWIG_fail;
28557 }
28558 resultobj = SWIG_Py_Void();
28559 return resultobj;
28560fail:
28561 return NULL;
28562}
28563
28564
28565SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28566 PyObject *resultobj = 0;
28567 wxEffects *arg1 = (wxEffects *) 0 ;
28568 wxColour *arg2 = 0 ;
28569 void *argp1 = 0 ;
28570 int res1 = 0 ;
28571 wxColour temp2 ;
28572 PyObject * obj0 = 0 ;
28573 PyObject * obj1 = 0 ;
28574 char * kwnames[] = {
28575 (char *) "self",(char *) "c", NULL
28576 };
28577
28578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
28579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28580 if (!SWIG_IsOK(res1)) {
28581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
28582 }
28583 arg1 = reinterpret_cast< wxEffects * >(argp1);
28584 {
28585 arg2 = &temp2;
28586 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28587 }
28588 {
28589 PyThreadState* __tstate = wxPyBeginAllowThreads();
28590 (arg1)->SetMediumShadow((wxColour const &)*arg2);
28591 wxPyEndAllowThreads(__tstate);
28592 if (PyErr_Occurred()) SWIG_fail;
28593 }
28594 resultobj = SWIG_Py_Void();
28595 return resultobj;
28596fail:
28597 return NULL;
28598}
28599
28600
28601SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28602 PyObject *resultobj = 0;
28603 wxEffects *arg1 = (wxEffects *) 0 ;
28604 wxColour *arg2 = 0 ;
28605 void *argp1 = 0 ;
28606 int res1 = 0 ;
28607 wxColour temp2 ;
28608 PyObject * obj0 = 0 ;
28609 PyObject * obj1 = 0 ;
28610 char * kwnames[] = {
28611 (char *) "self",(char *) "c", NULL
28612 };
28613
28614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
28615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28616 if (!SWIG_IsOK(res1)) {
28617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
28618 }
28619 arg1 = reinterpret_cast< wxEffects * >(argp1);
28620 {
28621 arg2 = &temp2;
28622 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28623 }
28624 {
28625 PyThreadState* __tstate = wxPyBeginAllowThreads();
28626 (arg1)->SetDarkShadow((wxColour const &)*arg2);
28627 wxPyEndAllowThreads(__tstate);
28628 if (PyErr_Occurred()) SWIG_fail;
28629 }
28630 resultobj = SWIG_Py_Void();
28631 return resultobj;
28632fail:
28633 return NULL;
28634}
28635
28636
28637SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28638 PyObject *resultobj = 0;
28639 wxEffects *arg1 = (wxEffects *) 0 ;
28640 wxColour *arg2 = 0 ;
28641 wxColour *arg3 = 0 ;
28642 wxColour *arg4 = 0 ;
28643 wxColour *arg5 = 0 ;
28644 wxColour *arg6 = 0 ;
28645 void *argp1 = 0 ;
28646 int res1 = 0 ;
28647 wxColour temp2 ;
28648 wxColour temp3 ;
28649 wxColour temp4 ;
28650 wxColour temp5 ;
28651 wxColour temp6 ;
28652 PyObject * obj0 = 0 ;
28653 PyObject * obj1 = 0 ;
28654 PyObject * obj2 = 0 ;
28655 PyObject * obj3 = 0 ;
28656 PyObject * obj4 = 0 ;
28657 PyObject * obj5 = 0 ;
28658 char * kwnames[] = {
28659 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
28660 };
28661
28662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28664 if (!SWIG_IsOK(res1)) {
28665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
28666 }
28667 arg1 = reinterpret_cast< wxEffects * >(argp1);
28668 {
28669 arg2 = &temp2;
28670 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28671 }
28672 {
28673 arg3 = &temp3;
28674 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28675 }
28676 {
28677 arg4 = &temp4;
28678 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
28679 }
28680 {
28681 arg5 = &temp5;
28682 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
28683 }
28684 {
28685 arg6 = &temp6;
28686 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
28687 }
28688 {
28689 PyThreadState* __tstate = wxPyBeginAllowThreads();
28690 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
28691 wxPyEndAllowThreads(__tstate);
28692 if (PyErr_Occurred()) SWIG_fail;
28693 }
28694 resultobj = SWIG_Py_Void();
28695 return resultobj;
28696fail:
28697 return NULL;
28698}
28699
28700
28701SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28702 PyObject *resultobj = 0;
28703 wxEffects *arg1 = (wxEffects *) 0 ;
28704 wxDC *arg2 = 0 ;
28705 wxRect *arg3 = 0 ;
28706 int arg4 = (int) 1 ;
28707 void *argp1 = 0 ;
28708 int res1 = 0 ;
28709 void *argp2 = 0 ;
28710 int res2 = 0 ;
28711 wxRect temp3 ;
28712 int val4 ;
28713 int ecode4 = 0 ;
28714 PyObject * obj0 = 0 ;
28715 PyObject * obj1 = 0 ;
28716 PyObject * obj2 = 0 ;
28717 PyObject * obj3 = 0 ;
28718 char * kwnames[] = {
28719 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
28720 };
28721
28722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28724 if (!SWIG_IsOK(res1)) {
28725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
28726 }
28727 arg1 = reinterpret_cast< wxEffects * >(argp1);
28728 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
28729 if (!SWIG_IsOK(res2)) {
28730 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
28731 }
28732 if (!argp2) {
28733 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
28734 }
28735 arg2 = reinterpret_cast< wxDC * >(argp2);
28736 {
28737 arg3 = &temp3;
28738 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
28739 }
28740 if (obj3) {
28741 ecode4 = SWIG_AsVal_int(obj3, &val4);
28742 if (!SWIG_IsOK(ecode4)) {
28743 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
28744 }
28745 arg4 = static_cast< int >(val4);
28746 }
28747 {
28748 PyThreadState* __tstate = wxPyBeginAllowThreads();
28749 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
28750 wxPyEndAllowThreads(__tstate);
28751 if (PyErr_Occurred()) SWIG_fail;
28752 }
28753 resultobj = SWIG_Py_Void();
28754 return resultobj;
28755fail:
28756 return NULL;
28757}
28758
28759
28760SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28761 PyObject *resultobj = 0;
28762 wxEffects *arg1 = (wxEffects *) 0 ;
28763 wxRect *arg2 = 0 ;
28764 wxDC *arg3 = 0 ;
28765 wxBitmap *arg4 = 0 ;
28766 bool result;
28767 void *argp1 = 0 ;
28768 int res1 = 0 ;
28769 wxRect temp2 ;
28770 void *argp3 = 0 ;
28771 int res3 = 0 ;
28772 void *argp4 = 0 ;
28773 int res4 = 0 ;
28774 PyObject * obj0 = 0 ;
28775 PyObject * obj1 = 0 ;
28776 PyObject * obj2 = 0 ;
28777 PyObject * obj3 = 0 ;
28778 char * kwnames[] = {
28779 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
28780 };
28781
28782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28784 if (!SWIG_IsOK(res1)) {
28785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
28786 }
28787 arg1 = reinterpret_cast< wxEffects * >(argp1);
28788 {
28789 arg2 = &temp2;
28790 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
28791 }
28792 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28793 if (!SWIG_IsOK(res3)) {
28794 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
28795 }
28796 if (!argp3) {
28797 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
28798 }
28799 arg3 = reinterpret_cast< wxDC * >(argp3);
28800 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
28801 if (!SWIG_IsOK(res4)) {
28802 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
28803 }
28804 if (!argp4) {
28805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
28806 }
28807 arg4 = reinterpret_cast< wxBitmap * >(argp4);
28808 {
28809 PyThreadState* __tstate = wxPyBeginAllowThreads();
28810 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
28811 wxPyEndAllowThreads(__tstate);
28812 if (PyErr_Occurred()) SWIG_fail;
28813 }
28814 {
28815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28816 }
28817 return resultobj;
28818fail:
28819 return NULL;
28820}
28821
28822
28823SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28824 PyObject *obj;
28825 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28826 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
28827 return SWIG_Py_Void();
28828}
28829
28830SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28831 return SWIG_Python_InitShadowInstance(args);
28832}
28833
28834SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28835 PyObject *resultobj = 0;
28836 int arg1 ;
28837 int arg2 ;
28838 bool arg3 ;
28839 wxSplitterRenderParams *result = 0 ;
28840 int val1 ;
28841 int ecode1 = 0 ;
28842 int val2 ;
28843 int ecode2 = 0 ;
28844 bool val3 ;
28845 int ecode3 = 0 ;
28846 PyObject * obj0 = 0 ;
28847 PyObject * obj1 = 0 ;
28848 PyObject * obj2 = 0 ;
28849 char * kwnames[] = {
28850 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
28851 };
28852
28853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28854 ecode1 = SWIG_AsVal_int(obj0, &val1);
28855 if (!SWIG_IsOK(ecode1)) {
28856 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
28857 }
28858 arg1 = static_cast< int >(val1);
28859 ecode2 = SWIG_AsVal_int(obj1, &val2);
28860 if (!SWIG_IsOK(ecode2)) {
28861 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
28862 }
28863 arg2 = static_cast< int >(val2);
28864 ecode3 = SWIG_AsVal_bool(obj2, &val3);
28865 if (!SWIG_IsOK(ecode3)) {
28866 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
28867 }
28868 arg3 = static_cast< bool >(val3);
28869 {
28870 PyThreadState* __tstate = wxPyBeginAllowThreads();
28871 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
28872 wxPyEndAllowThreads(__tstate);
28873 if (PyErr_Occurred()) SWIG_fail;
28874 }
28875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
28876 return resultobj;
28877fail:
28878 return NULL;
28879}
28880
28881
28882SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28883 PyObject *resultobj = 0;
28884 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
28885 void *argp1 = 0 ;
28886 int res1 = 0 ;
28887 PyObject *swig_obj[1] ;
28888
28889 if (!args) SWIG_fail;
28890 swig_obj[0] = args;
28891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
28892 if (!SWIG_IsOK(res1)) {
28893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
28894 }
28895 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
28896 {
28897 PyThreadState* __tstate = wxPyBeginAllowThreads();
28898 delete arg1;
28899
28900 wxPyEndAllowThreads(__tstate);
28901 if (PyErr_Occurred()) SWIG_fail;
28902 }
28903 resultobj = SWIG_Py_Void();
28904 return resultobj;
28905fail:
28906 return NULL;
28907}
28908
28909
28910SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28911 PyObject *resultobj = 0;
28912 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
28913 int result;
28914 void *argp1 = 0 ;
28915 int res1 = 0 ;
28916 PyObject *swig_obj[1] ;
28917
28918 if (!args) SWIG_fail;
28919 swig_obj[0] = args;
28920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
28921 if (!SWIG_IsOK(res1)) {
28922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
28923 }
28924 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
28925 result = (int)(int) ((arg1)->widthSash);
28926 resultobj = SWIG_From_int(static_cast< int >(result));
28927 return resultobj;
28928fail:
28929 return NULL;
28930}
28931
28932
28933SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28934 PyObject *resultobj = 0;
28935 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
28936 int result;
28937 void *argp1 = 0 ;
28938 int res1 = 0 ;
28939 PyObject *swig_obj[1] ;
28940
28941 if (!args) SWIG_fail;
28942 swig_obj[0] = args;
28943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
28944 if (!SWIG_IsOK(res1)) {
28945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
28946 }
28947 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
28948 result = (int)(int) ((arg1)->border);
28949 resultobj = SWIG_From_int(static_cast< int >(result));
28950 return resultobj;
28951fail:
28952 return NULL;
28953}
28954
28955
28956SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28957 PyObject *resultobj = 0;
28958 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
28959 bool result;
28960 void *argp1 = 0 ;
28961 int res1 = 0 ;
28962 PyObject *swig_obj[1] ;
28963
28964 if (!args) SWIG_fail;
28965 swig_obj[0] = args;
28966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
28967 if (!SWIG_IsOK(res1)) {
28968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
28969 }
28970 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
28971 result = (bool)(bool) ((arg1)->isHotSensitive);
28972 resultobj = SWIG_From_bool(static_cast< bool >(result));
28973 return resultobj;
28974fail:
28975 return NULL;
28976}
28977
28978
28979SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28980 PyObject *obj;
28981 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28982 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
28983 return SWIG_Py_Void();
28984}
28985
28986SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28987 return SWIG_Python_InitShadowInstance(args);
28988}
28989
33d6fd3b
RD
28990SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28991 PyObject *resultobj = 0;
28992 wxHeaderButtonParams *result = 0 ;
28993
28994 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
28995 {
28996 PyThreadState* __tstate = wxPyBeginAllowThreads();
28997 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
28998 wxPyEndAllowThreads(__tstate);
28999 if (PyErr_Occurred()) SWIG_fail;
29000 }
29001 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
29002 return resultobj;
29003fail:
29004 return NULL;
29005}
29006
29007
29008SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29009 PyObject *resultobj = 0;
29010 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29011 void *argp1 = 0 ;
29012 int res1 = 0 ;
29013 PyObject *swig_obj[1] ;
29014
29015 if (!args) SWIG_fail;
29016 swig_obj[0] = args;
29017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
29018 if (!SWIG_IsOK(res1)) {
29019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29020 }
29021 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29022 {
29023 PyThreadState* __tstate = wxPyBeginAllowThreads();
29024 delete arg1;
29025
29026 wxPyEndAllowThreads(__tstate);
29027 if (PyErr_Occurred()) SWIG_fail;
29028 }
29029 resultobj = SWIG_Py_Void();
29030 return resultobj;
29031fail:
29032 return NULL;
29033}
29034
29035
29036SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29037 PyObject *resultobj = 0;
29038 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29039 wxColour *arg2 = (wxColour *) 0 ;
29040 void *argp1 = 0 ;
29041 int res1 = 0 ;
29042 wxColour temp2 ;
29043 PyObject *swig_obj[2] ;
29044
29045 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
29046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29047 if (!SWIG_IsOK(res1)) {
29048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29049 }
29050 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29051 {
29052 arg2 = &temp2;
29053 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29054 }
29055 if (arg1) (arg1)->m_arrowColour = *arg2;
29056
29057 resultobj = SWIG_Py_Void();
29058 return resultobj;
29059fail:
29060 return NULL;
29061}
29062
29063
29064SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29065 PyObject *resultobj = 0;
29066 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29067 wxColour *result = 0 ;
29068 void *argp1 = 0 ;
29069 int res1 = 0 ;
29070 PyObject *swig_obj[1] ;
29071
29072 if (!args) SWIG_fail;
29073 swig_obj[0] = args;
29074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29075 if (!SWIG_IsOK(res1)) {
29076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29077 }
29078 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29079 result = (wxColour *)& ((arg1)->m_arrowColour);
29080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29081 return resultobj;
29082fail:
29083 return NULL;
29084}
29085
29086
29087SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29088 PyObject *resultobj = 0;
29089 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29090 wxColour *arg2 = (wxColour *) 0 ;
29091 void *argp1 = 0 ;
29092 int res1 = 0 ;
29093 wxColour temp2 ;
29094 PyObject *swig_obj[2] ;
29095
29096 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
29097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29098 if (!SWIG_IsOK(res1)) {
29099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29100 }
29101 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29102 {
29103 arg2 = &temp2;
29104 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29105 }
29106 if (arg1) (arg1)->m_selectionColour = *arg2;
29107
29108 resultobj = SWIG_Py_Void();
29109 return resultobj;
29110fail:
29111 return NULL;
29112}
29113
29114
29115SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29116 PyObject *resultobj = 0;
29117 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29118 wxColour *result = 0 ;
29119 void *argp1 = 0 ;
29120 int res1 = 0 ;
29121 PyObject *swig_obj[1] ;
29122
29123 if (!args) SWIG_fail;
29124 swig_obj[0] = args;
29125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29126 if (!SWIG_IsOK(res1)) {
29127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29128 }
29129 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29130 result = (wxColour *)& ((arg1)->m_selectionColour);
29131 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29132 return resultobj;
29133fail:
29134 return NULL;
29135}
29136
29137
29138SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29139 PyObject *resultobj = 0;
29140 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29141 wxString *arg2 = (wxString *) 0 ;
29142 void *argp1 = 0 ;
29143 int res1 = 0 ;
29144 bool temp2 = false ;
29145 PyObject *swig_obj[2] ;
29146
29147 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
29148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29149 if (!SWIG_IsOK(res1)) {
29150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29151 }
29152 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29153 {
29154 arg2 = wxString_in_helper(swig_obj[1]);
29155 if (arg2 == NULL) SWIG_fail;
29156 temp2 = true;
29157 }
29158 if (arg1) (arg1)->m_labelText = *arg2;
29159
29160 resultobj = SWIG_Py_Void();
29161 {
29162 if (temp2)
29163 delete arg2;
29164 }
29165 return resultobj;
29166fail:
29167 {
29168 if (temp2)
29169 delete arg2;
29170 }
29171 return NULL;
29172}
29173
29174
29175SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29176 PyObject *resultobj = 0;
29177 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29178 wxString *result = 0 ;
29179 void *argp1 = 0 ;
29180 int res1 = 0 ;
29181 PyObject *swig_obj[1] ;
29182
29183 if (!args) SWIG_fail;
29184 swig_obj[0] = args;
29185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29186 if (!SWIG_IsOK(res1)) {
29187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29188 }
29189 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29190 result = (wxString *)& ((arg1)->m_labelText);
29191 {
29192#if wxUSE_UNICODE
29193 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29194#else
29195 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29196#endif
29197 }
29198 return resultobj;
29199fail:
29200 return NULL;
29201}
29202
29203
29204SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29205 PyObject *resultobj = 0;
29206 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29207 wxFont *arg2 = (wxFont *) 0 ;
29208 void *argp1 = 0 ;
29209 int res1 = 0 ;
29210 void *argp2 = 0 ;
29211 int res2 = 0 ;
29212 PyObject *swig_obj[2] ;
29213
29214 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
29215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29216 if (!SWIG_IsOK(res1)) {
29217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29218 }
29219 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29220 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29221 if (!SWIG_IsOK(res2)) {
29222 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
29223 }
29224 arg2 = reinterpret_cast< wxFont * >(argp2);
29225 if (arg1) (arg1)->m_labelFont = *arg2;
29226
29227 resultobj = SWIG_Py_Void();
29228 return resultobj;
29229fail:
29230 return NULL;
29231}
29232
29233
29234SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29235 PyObject *resultobj = 0;
29236 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29237 wxFont *result = 0 ;
29238 void *argp1 = 0 ;
29239 int res1 = 0 ;
29240 PyObject *swig_obj[1] ;
29241
29242 if (!args) SWIG_fail;
29243 swig_obj[0] = args;
29244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29245 if (!SWIG_IsOK(res1)) {
29246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29247 }
29248 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29249 result = (wxFont *)& ((arg1)->m_labelFont);
29250 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
29251 return resultobj;
29252fail:
29253 return NULL;
29254}
29255
29256
29257SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29258 PyObject *resultobj = 0;
29259 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29260 wxColour *arg2 = (wxColour *) 0 ;
29261 void *argp1 = 0 ;
29262 int res1 = 0 ;
29263 wxColour temp2 ;
29264 PyObject *swig_obj[2] ;
29265
29266 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
29267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29268 if (!SWIG_IsOK(res1)) {
29269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29270 }
29271 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29272 {
29273 arg2 = &temp2;
29274 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29275 }
29276 if (arg1) (arg1)->m_labelColour = *arg2;
29277
29278 resultobj = SWIG_Py_Void();
29279 return resultobj;
29280fail:
29281 return NULL;
29282}
29283
29284
29285SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29286 PyObject *resultobj = 0;
29287 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29288 wxColour *result = 0 ;
29289 void *argp1 = 0 ;
29290 int res1 = 0 ;
29291 PyObject *swig_obj[1] ;
29292
29293 if (!args) SWIG_fail;
29294 swig_obj[0] = args;
29295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29296 if (!SWIG_IsOK(res1)) {
29297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29298 }
29299 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29300 result = (wxColour *)& ((arg1)->m_labelColour);
29301 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29302 return resultobj;
29303fail:
29304 return NULL;
29305}
29306
29307
29308SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29309 PyObject *resultobj = 0;
29310 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29311 wxBitmap *arg2 = (wxBitmap *) 0 ;
29312 void *argp1 = 0 ;
29313 int res1 = 0 ;
29314 void *argp2 = 0 ;
29315 int res2 = 0 ;
29316 PyObject *swig_obj[2] ;
29317
29318 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
29319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29320 if (!SWIG_IsOK(res1)) {
29321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29322 }
29323 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29324 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
29325 if (!SWIG_IsOK(res2)) {
29326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
29327 }
29328 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29329 if (arg1) (arg1)->m_labelBitmap = *arg2;
29330
29331 resultobj = SWIG_Py_Void();
29332 return resultobj;
29333fail:
29334 return NULL;
29335}
29336
29337
29338SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29339 PyObject *resultobj = 0;
29340 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29341 wxBitmap *result = 0 ;
29342 void *argp1 = 0 ;
29343 int res1 = 0 ;
29344 PyObject *swig_obj[1] ;
29345
29346 if (!args) SWIG_fail;
29347 swig_obj[0] = args;
29348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29349 if (!SWIG_IsOK(res1)) {
29350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29351 }
29352 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29353 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
29354 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
29355 return resultobj;
29356fail:
29357 return NULL;
29358}
29359
29360
29361SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29362 PyObject *resultobj = 0;
29363 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29364 int arg2 ;
29365 void *argp1 = 0 ;
29366 int res1 = 0 ;
29367 int val2 ;
29368 int ecode2 = 0 ;
29369 PyObject *swig_obj[2] ;
29370
29371 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
29372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29373 if (!SWIG_IsOK(res1)) {
29374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29375 }
29376 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29377 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
29378 if (!SWIG_IsOK(ecode2)) {
29379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
29380 }
29381 arg2 = static_cast< int >(val2);
29382 if (arg1) (arg1)->m_labelAlignment = arg2;
29383
29384 resultobj = SWIG_Py_Void();
29385 return resultobj;
29386fail:
29387 return NULL;
29388}
29389
29390
29391SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29392 PyObject *resultobj = 0;
29393 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29394 int result;
29395 void *argp1 = 0 ;
29396 int res1 = 0 ;
29397 PyObject *swig_obj[1] ;
29398
29399 if (!args) SWIG_fail;
29400 swig_obj[0] = args;
29401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29402 if (!SWIG_IsOK(res1)) {
29403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29404 }
29405 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29406 result = (int) ((arg1)->m_labelAlignment);
29407 resultobj = SWIG_From_int(static_cast< int >(result));
29408 return resultobj;
29409fail:
29410 return NULL;
29411}
29412
29413
29414SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29415 PyObject *obj;
29416 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29417 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
29418 return SWIG_Py_Void();
29419}
29420
29421SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29422 return SWIG_Python_InitShadowInstance(args);
29423}
29424
0085ce49
RD
29425SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29426 PyObject *resultobj = 0;
29427 int arg1 ;
29428 int arg2 ;
29429 wxRendererVersion *result = 0 ;
29430 int val1 ;
29431 int ecode1 = 0 ;
29432 int val2 ;
29433 int ecode2 = 0 ;
29434 PyObject * obj0 = 0 ;
29435 PyObject * obj1 = 0 ;
29436 char * kwnames[] = {
29437 (char *) "version_",(char *) "age_", NULL
29438 };
29439
29440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
29441 ecode1 = SWIG_AsVal_int(obj0, &val1);
29442 if (!SWIG_IsOK(ecode1)) {
29443 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
29444 }
29445 arg1 = static_cast< int >(val1);
29446 ecode2 = SWIG_AsVal_int(obj1, &val2);
29447 if (!SWIG_IsOK(ecode2)) {
29448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
29449 }
29450 arg2 = static_cast< int >(val2);
29451 {
29452 PyThreadState* __tstate = wxPyBeginAllowThreads();
29453 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
29454 wxPyEndAllowThreads(__tstate);
29455 if (PyErr_Occurred()) SWIG_fail;
29456 }
29457 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
29458 return resultobj;
29459fail:
29460 return NULL;
29461}
29462
29463
29464SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29465 PyObject *resultobj = 0;
29466 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
29467 void *argp1 = 0 ;
29468 int res1 = 0 ;
29469 PyObject *swig_obj[1] ;
29470
29471 if (!args) SWIG_fail;
29472 swig_obj[0] = args;
29473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
29474 if (!SWIG_IsOK(res1)) {
29475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
29476 }
29477 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
29478 {
29479 PyThreadState* __tstate = wxPyBeginAllowThreads();
29480 delete arg1;
29481
29482 wxPyEndAllowThreads(__tstate);
29483 if (PyErr_Occurred()) SWIG_fail;
29484 }
29485 resultobj = SWIG_Py_Void();
29486 return resultobj;
29487fail:
29488 return NULL;
29489}
29490
29491
29492SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29493 PyObject *resultobj = 0;
29494 wxRendererVersion *arg1 = 0 ;
29495 bool result;
29496 void *argp1 = 0 ;
29497 int res1 = 0 ;
29498 PyObject * obj0 = 0 ;
29499 char * kwnames[] = {
29500 (char *) "ver", NULL
29501 };
29502
29503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
29504 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
29505 if (!SWIG_IsOK(res1)) {
29506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
29507 }
29508 if (!argp1) {
29509 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
29510 }
29511 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
29512 {
29513 PyThreadState* __tstate = wxPyBeginAllowThreads();
29514 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
29515 wxPyEndAllowThreads(__tstate);
29516 if (PyErr_Occurred()) SWIG_fail;
29517 }
29518 {
29519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29520 }
29521 return resultobj;
29522fail:
29523 return NULL;
29524}
29525
29526
29527SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29528 PyObject *resultobj = 0;
29529 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
29530 int result;
29531 void *argp1 = 0 ;
29532 int res1 = 0 ;
29533 PyObject *swig_obj[1] ;
29534
29535 if (!args) SWIG_fail;
29536 swig_obj[0] = args;
29537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
29538 if (!SWIG_IsOK(res1)) {
29539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
29540 }
29541 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
29542 result = (int)(int) ((arg1)->version);
29543 resultobj = SWIG_From_int(static_cast< int >(result));
29544 return resultobj;
29545fail:
29546 return NULL;
29547}
29548
29549
29550SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29551 PyObject *resultobj = 0;
29552 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
29553 int result;
29554 void *argp1 = 0 ;
29555 int res1 = 0 ;
29556 PyObject *swig_obj[1] ;
29557
29558 if (!args) SWIG_fail;
29559 swig_obj[0] = args;
29560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
29561 if (!SWIG_IsOK(res1)) {
29562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
29563 }
29564 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
29565 result = (int)(int) ((arg1)->age);
29566 resultobj = SWIG_From_int(static_cast< int >(result));
29567 return resultobj;
29568fail:
29569 return NULL;
29570}
29571
29572
29573SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29574 PyObject *obj;
29575 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29576 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
29577 return SWIG_Py_Void();
29578}
29579
29580SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29581 return SWIG_Python_InitShadowInstance(args);
29582}
29583
29584SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29585 PyObject *resultobj = 0;
29586 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
29587 wxWindow *arg2 = (wxWindow *) 0 ;
29588 wxDC *arg3 = 0 ;
29589 wxRect *arg4 = 0 ;
29590 int arg5 = (int) 0 ;
33d6fd3b
RD
29591 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
29592 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
0085ce49
RD
29593 void *argp1 = 0 ;
29594 int res1 = 0 ;
29595 void *argp2 = 0 ;
29596 int res2 = 0 ;
29597 void *argp3 = 0 ;
29598 int res3 = 0 ;
29599 wxRect temp4 ;
29600 int val5 ;
29601 int ecode5 = 0 ;
33d6fd3b
RD
29602 int val6 ;
29603 int ecode6 = 0 ;
29604 void *argp7 = 0 ;
29605 int res7 = 0 ;
0085ce49
RD
29606 PyObject * obj0 = 0 ;
29607 PyObject * obj1 = 0 ;
29608 PyObject * obj2 = 0 ;
29609 PyObject * obj3 = 0 ;
29610 PyObject * obj4 = 0 ;
33d6fd3b
RD
29611 PyObject * obj5 = 0 ;
29612 PyObject * obj6 = 0 ;
0085ce49 29613 char * kwnames[] = {
33d6fd3b 29614 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
0085ce49
RD
29615 };
29616
33d6fd3b 29617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
0085ce49
RD
29618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
29619 if (!SWIG_IsOK(res1)) {
29620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
29621 }
29622 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
29623 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29624 if (!SWIG_IsOK(res2)) {
29625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
29626 }
29627 arg2 = reinterpret_cast< wxWindow * >(argp2);
29628 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29629 if (!SWIG_IsOK(res3)) {
29630 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
29631 }
29632 if (!argp3) {
29633 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
29634 }
29635 arg3 = reinterpret_cast< wxDC * >(argp3);
29636 {
29637 arg4 = &temp4;
29638 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
29639 }
29640 if (obj4) {
29641 ecode5 = SWIG_AsVal_int(obj4, &val5);
29642 if (!SWIG_IsOK(ecode5)) {
29643 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
29644 }
29645 arg5 = static_cast< int >(val5);
29646 }
33d6fd3b
RD
29647 if (obj5) {
29648 ecode6 = SWIG_AsVal_int(obj5, &val6);
29649 if (!SWIG_IsOK(ecode6)) {
29650 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
29651 }
29652 arg6 = static_cast< wxHeaderSortIconType >(val6);
29653 }
29654 if (obj6) {
29655 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29656 if (!SWIG_IsOK(res7)) {
29657 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
29658 }
29659 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
29660 }
29661 {
29662 PyThreadState* __tstate = wxPyBeginAllowThreads();
29663 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
29664 wxPyEndAllowThreads(__tstate);
29665 if (PyErr_Occurred()) SWIG_fail;
29666 }
29667 resultobj = SWIG_Py_Void();
29668 return resultobj;
29669fail:
29670 return NULL;
29671}
29672
29673
29674SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29675 PyObject *resultobj = 0;
29676 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
29677 wxWindow *arg2 = (wxWindow *) 0 ;
29678 wxDC *arg3 = 0 ;
29679 wxRect *arg4 = 0 ;
29680 int arg5 = (int) 0 ;
29681 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
29682 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
29683 void *argp1 = 0 ;
29684 int res1 = 0 ;
29685 void *argp2 = 0 ;
29686 int res2 = 0 ;
29687 void *argp3 = 0 ;
29688 int res3 = 0 ;
29689 wxRect temp4 ;
29690 int val5 ;
29691 int ecode5 = 0 ;
29692 int val6 ;
29693 int ecode6 = 0 ;
29694 void *argp7 = 0 ;
29695 int res7 = 0 ;
29696 PyObject * obj0 = 0 ;
29697 PyObject * obj1 = 0 ;
29698 PyObject * obj2 = 0 ;
29699 PyObject * obj3 = 0 ;
29700 PyObject * obj4 = 0 ;
29701 PyObject * obj5 = 0 ;
29702 PyObject * obj6 = 0 ;
29703 char * kwnames[] = {
29704 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
29705 };
29706
29707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
29709 if (!SWIG_IsOK(res1)) {
29710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
29711 }
29712 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
29713 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29714 if (!SWIG_IsOK(res2)) {
29715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
29716 }
29717 arg2 = reinterpret_cast< wxWindow * >(argp2);
29718 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29719 if (!SWIG_IsOK(res3)) {
29720 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
29721 }
29722 if (!argp3) {
29723 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
29724 }
29725 arg3 = reinterpret_cast< wxDC * >(argp3);
29726 {
29727 arg4 = &temp4;
29728 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
29729 }
29730 if (obj4) {
29731 ecode5 = SWIG_AsVal_int(obj4, &val5);
29732 if (!SWIG_IsOK(ecode5)) {
29733 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
29734 }
29735 arg5 = static_cast< int >(val5);
29736 }
29737 if (obj5) {
29738 ecode6 = SWIG_AsVal_int(obj5, &val6);
29739 if (!SWIG_IsOK(ecode6)) {
29740 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
29741 }
29742 arg6 = static_cast< wxHeaderSortIconType >(val6);
29743 }
29744 if (obj6) {
29745 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29746 if (!SWIG_IsOK(res7)) {
29747 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
29748 }
29749 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
29750 }
0085ce49
RD
29751 {
29752 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 29753 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
0085ce49
RD
29754 wxPyEndAllowThreads(__tstate);
29755 if (PyErr_Occurred()) SWIG_fail;
29756 }
29757 resultobj = SWIG_Py_Void();
29758 return resultobj;
29759fail:
29760 return NULL;
29761}
29762
29763
33d6fd3b
RD
29764SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29765 PyObject *resultobj = 0;
29766 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
29767 wxWindow *arg2 = (wxWindow *) 0 ;
29768 int result;
29769 void *argp1 = 0 ;
29770 int res1 = 0 ;
29771 void *argp2 = 0 ;
29772 int res2 = 0 ;
29773 PyObject * obj0 = 0 ;
29774 PyObject * obj1 = 0 ;
29775 char * kwnames[] = {
29776 (char *) "self",(char *) "win", NULL
29777 };
29778
29779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
29780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
29781 if (!SWIG_IsOK(res1)) {
29782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
29783 }
29784 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
29785 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29786 if (!SWIG_IsOK(res2)) {
29787 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
29788 }
29789 arg2 = reinterpret_cast< wxWindow * >(argp2);
29790 {
29791 PyThreadState* __tstate = wxPyBeginAllowThreads();
29792 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
29793 wxPyEndAllowThreads(__tstate);
29794 if (PyErr_Occurred()) SWIG_fail;
29795 }
29796 resultobj = SWIG_From_int(static_cast< int >(result));
29797 return resultobj;
29798fail:
29799 return NULL;
29800}
29801
29802
0085ce49
RD
29803SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29804 PyObject *resultobj = 0;
29805 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
29806 wxWindow *arg2 = (wxWindow *) 0 ;
29807 wxDC *arg3 = 0 ;
29808 wxRect *arg4 = 0 ;
29809 int arg5 = (int) 0 ;
29810 void *argp1 = 0 ;
29811 int res1 = 0 ;
29812 void *argp2 = 0 ;
29813 int res2 = 0 ;
29814 void *argp3 = 0 ;
29815 int res3 = 0 ;
29816 wxRect temp4 ;
29817 int val5 ;
29818 int ecode5 = 0 ;
29819 PyObject * obj0 = 0 ;
29820 PyObject * obj1 = 0 ;
29821 PyObject * obj2 = 0 ;
29822 PyObject * obj3 = 0 ;
29823 PyObject * obj4 = 0 ;
29824 char * kwnames[] = {
29825 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
29826 };
29827
29828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
29830 if (!SWIG_IsOK(res1)) {
29831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
29832 }
29833 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
29834 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29835 if (!SWIG_IsOK(res2)) {
29836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
29837 }
29838 arg2 = reinterpret_cast< wxWindow * >(argp2);
29839 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29840 if (!SWIG_IsOK(res3)) {
29841 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
29842 }
29843 if (!argp3) {
29844 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
29845 }
29846 arg3 = reinterpret_cast< wxDC * >(argp3);
29847 {
29848 arg4 = &temp4;
29849 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
29850 }
29851 if (obj4) {
29852 ecode5 = SWIG_AsVal_int(obj4, &val5);
29853 if (!SWIG_IsOK(ecode5)) {
29854 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
29855 }
29856 arg5 = static_cast< int >(val5);
29857 }
29858 {
29859 PyThreadState* __tstate = wxPyBeginAllowThreads();
29860 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
29861 wxPyEndAllowThreads(__tstate);
29862 if (PyErr_Occurred()) SWIG_fail;
29863 }
29864 resultobj = SWIG_Py_Void();
29865 return resultobj;
29866fail:
29867 return NULL;
29868}
29869
29870
29871SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29872 PyObject *resultobj = 0;
29873 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
29874 wxWindow *arg2 = (wxWindow *) 0 ;
29875 wxDC *arg3 = 0 ;
29876 wxRect *arg4 = 0 ;
29877 int arg5 = (int) 0 ;
29878 void *argp1 = 0 ;
29879 int res1 = 0 ;
29880 void *argp2 = 0 ;
29881 int res2 = 0 ;
29882 void *argp3 = 0 ;
29883 int res3 = 0 ;
29884 wxRect temp4 ;
29885 int val5 ;
29886 int ecode5 = 0 ;
29887 PyObject * obj0 = 0 ;
29888 PyObject * obj1 = 0 ;
29889 PyObject * obj2 = 0 ;
29890 PyObject * obj3 = 0 ;
29891 PyObject * obj4 = 0 ;
29892 char * kwnames[] = {
29893 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
29894 };
29895
29896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
29898 if (!SWIG_IsOK(res1)) {
29899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
29900 }
29901 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
29902 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29903 if (!SWIG_IsOK(res2)) {
29904 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
29905 }
29906 arg2 = reinterpret_cast< wxWindow * >(argp2);
29907 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29908 if (!SWIG_IsOK(res3)) {
29909 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
29910 }
29911 if (!argp3) {
29912 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
29913 }
29914 arg3 = reinterpret_cast< wxDC * >(argp3);
29915 {
29916 arg4 = &temp4;
29917 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
29918 }
29919 if (obj4) {
29920 ecode5 = SWIG_AsVal_int(obj4, &val5);
29921 if (!SWIG_IsOK(ecode5)) {
29922 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
29923 }
29924 arg5 = static_cast< int >(val5);
29925 }
29926 {
29927 PyThreadState* __tstate = wxPyBeginAllowThreads();
29928 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
29929 wxPyEndAllowThreads(__tstate);
29930 if (PyErr_Occurred()) SWIG_fail;
29931 }
29932 resultobj = SWIG_Py_Void();
29933 return resultobj;
29934fail:
29935 return NULL;
29936}
29937
29938
29939SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29940 PyObject *resultobj = 0;
29941 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
29942 wxWindow *arg2 = (wxWindow *) 0 ;
29943 wxDC *arg3 = 0 ;
29944 wxSize *arg4 = 0 ;
29945 int arg5 ;
29946 wxOrientation arg6 ;
29947 int arg7 = (int) 0 ;
29948 void *argp1 = 0 ;
29949 int res1 = 0 ;
29950 void *argp2 = 0 ;
29951 int res2 = 0 ;
29952 void *argp3 = 0 ;
29953 int res3 = 0 ;
29954 wxSize temp4 ;
29955 int val5 ;
29956 int ecode5 = 0 ;
29957 int val6 ;
29958 int ecode6 = 0 ;
29959 int val7 ;
29960 int ecode7 = 0 ;
29961 PyObject * obj0 = 0 ;
29962 PyObject * obj1 = 0 ;
29963 PyObject * obj2 = 0 ;
29964 PyObject * obj3 = 0 ;
29965 PyObject * obj4 = 0 ;
29966 PyObject * obj5 = 0 ;
29967 PyObject * obj6 = 0 ;
29968 char * kwnames[] = {
29969 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
29970 };
29971
29972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
29974 if (!SWIG_IsOK(res1)) {
29975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
29976 }
29977 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
29978 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29979 if (!SWIG_IsOK(res2)) {
29980 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
29981 }
29982 arg2 = reinterpret_cast< wxWindow * >(argp2);
29983 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29984 if (!SWIG_IsOK(res3)) {
29985 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
29986 }
29987 if (!argp3) {
29988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
29989 }
29990 arg3 = reinterpret_cast< wxDC * >(argp3);
29991 {
29992 arg4 = &temp4;
29993 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29994 }
29995 ecode5 = SWIG_AsVal_int(obj4, &val5);
29996 if (!SWIG_IsOK(ecode5)) {
29997 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
29998 }
29999 arg5 = static_cast< int >(val5);
30000 ecode6 = SWIG_AsVal_int(obj5, &val6);
30001 if (!SWIG_IsOK(ecode6)) {
30002 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
30003 }
30004 arg6 = static_cast< wxOrientation >(val6);
30005 if (obj6) {
30006 ecode7 = SWIG_AsVal_int(obj6, &val7);
30007 if (!SWIG_IsOK(ecode7)) {
30008 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
30009 }
30010 arg7 = static_cast< int >(val7);
30011 }
30012 {
30013 PyThreadState* __tstate = wxPyBeginAllowThreads();
30014 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
30015 wxPyEndAllowThreads(__tstate);
30016 if (PyErr_Occurred()) SWIG_fail;
30017 }
30018 resultobj = SWIG_Py_Void();
30019 return resultobj;
30020fail:
30021 return NULL;
30022}
30023
30024
30025SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30026 PyObject *resultobj = 0;
30027 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30028 wxWindow *arg2 = (wxWindow *) 0 ;
30029 wxDC *arg3 = 0 ;
30030 wxRect *arg4 = 0 ;
30031 int arg5 = (int) 0 ;
30032 void *argp1 = 0 ;
30033 int res1 = 0 ;
30034 void *argp2 = 0 ;
30035 int res2 = 0 ;
30036 void *argp3 = 0 ;
30037 int res3 = 0 ;
30038 wxRect temp4 ;
30039 int val5 ;
30040 int ecode5 = 0 ;
30041 PyObject * obj0 = 0 ;
30042 PyObject * obj1 = 0 ;
30043 PyObject * obj2 = 0 ;
30044 PyObject * obj3 = 0 ;
30045 PyObject * obj4 = 0 ;
30046 char * kwnames[] = {
30047 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30048 };
30049
30050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30052 if (!SWIG_IsOK(res1)) {
30053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30054 }
30055 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30056 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30057 if (!SWIG_IsOK(res2)) {
30058 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30059 }
30060 arg2 = reinterpret_cast< wxWindow * >(argp2);
30061 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30062 if (!SWIG_IsOK(res3)) {
30063 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30064 }
30065 if (!argp3) {
30066 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30067 }
30068 arg3 = reinterpret_cast< wxDC * >(argp3);
30069 {
30070 arg4 = &temp4;
30071 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30072 }
30073 if (obj4) {
30074 ecode5 = SWIG_AsVal_int(obj4, &val5);
30075 if (!SWIG_IsOK(ecode5)) {
30076 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
30077 }
30078 arg5 = static_cast< int >(val5);
30079 }
30080 {
30081 PyThreadState* __tstate = wxPyBeginAllowThreads();
30082 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30083 wxPyEndAllowThreads(__tstate);
30084 if (PyErr_Occurred()) SWIG_fail;
30085 }
30086 resultobj = SWIG_Py_Void();
30087 return resultobj;
30088fail:
30089 return NULL;
30090}
30091
30092
30093SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30094 PyObject *resultobj = 0;
30095 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30096 wxWindow *arg2 = (wxWindow *) 0 ;
30097 wxDC *arg3 = 0 ;
30098 wxRect *arg4 = 0 ;
30099 int arg5 = (int) 0 ;
30100 void *argp1 = 0 ;
30101 int res1 = 0 ;
30102 void *argp2 = 0 ;
30103 int res2 = 0 ;
30104 void *argp3 = 0 ;
30105 int res3 = 0 ;
30106 wxRect temp4 ;
30107 int val5 ;
30108 int ecode5 = 0 ;
30109 PyObject * obj0 = 0 ;
30110 PyObject * obj1 = 0 ;
30111 PyObject * obj2 = 0 ;
30112 PyObject * obj3 = 0 ;
30113 PyObject * obj4 = 0 ;
30114 char * kwnames[] = {
30115 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30116 };
30117
30118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30120 if (!SWIG_IsOK(res1)) {
30121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30122 }
30123 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30124 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30125 if (!SWIG_IsOK(res2)) {
30126 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
30127 }
30128 arg2 = reinterpret_cast< wxWindow * >(argp2);
30129 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30130 if (!SWIG_IsOK(res3)) {
30131 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30132 }
30133 if (!argp3) {
30134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30135 }
30136 arg3 = reinterpret_cast< wxDC * >(argp3);
30137 {
30138 arg4 = &temp4;
30139 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30140 }
30141 if (obj4) {
30142 ecode5 = SWIG_AsVal_int(obj4, &val5);
30143 if (!SWIG_IsOK(ecode5)) {
30144 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
30145 }
30146 arg5 = static_cast< int >(val5);
30147 }
30148 {
30149 PyThreadState* __tstate = wxPyBeginAllowThreads();
30150 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
30151 wxPyEndAllowThreads(__tstate);
30152 if (PyErr_Occurred()) SWIG_fail;
30153 }
30154 resultobj = SWIG_Py_Void();
30155 return resultobj;
30156fail:
30157 return NULL;
30158}
30159
30160
01f6b6d3
RD
30161SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30162 PyObject *resultobj = 0;
30163 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30164 wxWindow *arg2 = (wxWindow *) 0 ;
30165 wxDC *arg3 = 0 ;
30166 wxRect *arg4 = 0 ;
30167 int arg5 = (int) 0 ;
30168 void *argp1 = 0 ;
30169 int res1 = 0 ;
30170 void *argp2 = 0 ;
30171 int res2 = 0 ;
30172 void *argp3 = 0 ;
30173 int res3 = 0 ;
30174 wxRect temp4 ;
30175 int val5 ;
30176 int ecode5 = 0 ;
30177 PyObject * obj0 = 0 ;
30178 PyObject * obj1 = 0 ;
30179 PyObject * obj2 = 0 ;
30180 PyObject * obj3 = 0 ;
30181 PyObject * obj4 = 0 ;
30182 char * kwnames[] = {
30183 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30184 };
30185
30186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30188 if (!SWIG_IsOK(res1)) {
30189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30190 }
30191 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30192 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30193 if (!SWIG_IsOK(res2)) {
30194 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
30195 }
30196 arg2 = reinterpret_cast< wxWindow * >(argp2);
30197 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30198 if (!SWIG_IsOK(res3)) {
30199 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
30200 }
30201 if (!argp3) {
30202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
30203 }
30204 arg3 = reinterpret_cast< wxDC * >(argp3);
30205 {
30206 arg4 = &temp4;
30207 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30208 }
30209 if (obj4) {
30210 ecode5 = SWIG_AsVal_int(obj4, &val5);
30211 if (!SWIG_IsOK(ecode5)) {
30212 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
30213 }
30214 arg5 = static_cast< int >(val5);
30215 }
30216 {
30217 PyThreadState* __tstate = wxPyBeginAllowThreads();
30218 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
30219 wxPyEndAllowThreads(__tstate);
30220 if (PyErr_Occurred()) SWIG_fail;
30221 }
30222 resultobj = SWIG_Py_Void();
30223 return resultobj;
30224fail:
30225 return NULL;
30226}
30227
30228
30229SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30230 PyObject *resultobj = 0;
30231 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30232 wxWindow *arg2 = (wxWindow *) 0 ;
30233 wxDC *arg3 = 0 ;
30234 wxRect *arg4 = 0 ;
30235 int arg5 = (int) 0 ;
30236 void *argp1 = 0 ;
30237 int res1 = 0 ;
30238 void *argp2 = 0 ;
30239 int res2 = 0 ;
30240 void *argp3 = 0 ;
30241 int res3 = 0 ;
30242 wxRect temp4 ;
30243 int val5 ;
30244 int ecode5 = 0 ;
30245 PyObject * obj0 = 0 ;
30246 PyObject * obj1 = 0 ;
30247 PyObject * obj2 = 0 ;
30248 PyObject * obj3 = 0 ;
30249 PyObject * obj4 = 0 ;
30250 char * kwnames[] = {
30251 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30252 };
30253
30254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30256 if (!SWIG_IsOK(res1)) {
30257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30258 }
30259 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30260 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30261 if (!SWIG_IsOK(res2)) {
30262 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30263 }
30264 arg2 = reinterpret_cast< wxWindow * >(argp2);
30265 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30266 if (!SWIG_IsOK(res3)) {
30267 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
30268 }
30269 if (!argp3) {
30270 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
30271 }
30272 arg3 = reinterpret_cast< wxDC * >(argp3);
30273 {
30274 arg4 = &temp4;
30275 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30276 }
30277 if (obj4) {
30278 ecode5 = SWIG_AsVal_int(obj4, &val5);
30279 if (!SWIG_IsOK(ecode5)) {
30280 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
30281 }
30282 arg5 = static_cast< int >(val5);
30283 }
30284 {
30285 PyThreadState* __tstate = wxPyBeginAllowThreads();
30286 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30287 wxPyEndAllowThreads(__tstate);
30288 if (PyErr_Occurred()) SWIG_fail;
30289 }
30290 resultobj = SWIG_Py_Void();
30291 return resultobj;
30292fail:
30293 return NULL;
30294}
30295
30296
30297SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50efceee
RD
30298 PyObject *resultobj = 0;
30299 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30300 wxWindow *arg2 = (wxWindow *) 0 ;
30301 wxDC *arg3 = 0 ;
30302 wxRect *arg4 = 0 ;
30303 int arg5 = (int) 0 ;
30304 void *argp1 = 0 ;
30305 int res1 = 0 ;
30306 void *argp2 = 0 ;
30307 int res2 = 0 ;
30308 void *argp3 = 0 ;
30309 int res3 = 0 ;
30310 wxRect temp4 ;
30311 int val5 ;
30312 int ecode5 = 0 ;
30313 PyObject * obj0 = 0 ;
30314 PyObject * obj1 = 0 ;
30315 PyObject * obj2 = 0 ;
30316 PyObject * obj3 = 0 ;
30317 PyObject * obj4 = 0 ;
30318 char * kwnames[] = {
30319 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30320 };
30321
01f6b6d3 30322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
50efceee
RD
30323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30324 if (!SWIG_IsOK(res1)) {
01f6b6d3 30325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
50efceee
RD
30326 }
30327 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30328 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30329 if (!SWIG_IsOK(res2)) {
01f6b6d3 30330 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
50efceee
RD
30331 }
30332 arg2 = reinterpret_cast< wxWindow * >(argp2);
30333 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30334 if (!SWIG_IsOK(res3)) {
01f6b6d3 30335 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
30336 }
30337 if (!argp3) {
01f6b6d3 30338 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
30339 }
30340 arg3 = reinterpret_cast< wxDC * >(argp3);
30341 {
30342 arg4 = &temp4;
30343 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30344 }
30345 if (obj4) {
30346 ecode5 = SWIG_AsVal_int(obj4, &val5);
30347 if (!SWIG_IsOK(ecode5)) {
01f6b6d3 30348 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
50efceee
RD
30349 }
30350 arg5 = static_cast< int >(val5);
30351 }
30352 {
30353 PyThreadState* __tstate = wxPyBeginAllowThreads();
01f6b6d3 30354 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
50efceee
RD
30355 wxPyEndAllowThreads(__tstate);
30356 if (PyErr_Occurred()) SWIG_fail;
30357 }
30358 resultobj = SWIG_Py_Void();
30359 return resultobj;
30360fail:
30361 return NULL;
30362}
30363
30364
0085ce49
RD
30365SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30366 PyObject *resultobj = 0;
30367 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30368 wxWindow *arg2 = (wxWindow *) 0 ;
30369 SwigValueWrapper<wxSplitterRenderParams > result;
30370 void *argp1 = 0 ;
30371 int res1 = 0 ;
30372 void *argp2 = 0 ;
30373 int res2 = 0 ;
30374 PyObject * obj0 = 0 ;
30375 PyObject * obj1 = 0 ;
30376 char * kwnames[] = {
30377 (char *) "self",(char *) "win", NULL
30378 };
30379
30380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
30381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30382 if (!SWIG_IsOK(res1)) {
30383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30384 }
30385 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30386 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30387 if (!SWIG_IsOK(res2)) {
30388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
30389 }
30390 arg2 = reinterpret_cast< wxWindow * >(argp2);
30391 {
30392 PyThreadState* __tstate = wxPyBeginAllowThreads();
30393 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
30394 wxPyEndAllowThreads(__tstate);
30395 if (PyErr_Occurred()) SWIG_fail;
30396 }
30397 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
30398 return resultobj;
30399fail:
30400 return NULL;
30401}
30402
30403
30404SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30405 PyObject *resultobj = 0;
30406 wxRendererNative *result = 0 ;
30407
30408 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
30409 {
704eda0c 30410 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 30411 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 30412 {
0085ce49
RD
30413 wxRendererNative &_result_ref = wxRendererNative::Get();
30414 result = (wxRendererNative *) &_result_ref;
093d3ff1 30415 }
0085ce49
RD
30416 wxPyEndAllowThreads(__tstate);
30417 if (PyErr_Occurred()) SWIG_fail;
30418 }
30419 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30420 return resultobj;
30421fail:
30422 return NULL;
30423}
30424
30425
30426SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30427 PyObject *resultobj = 0;
30428 wxRendererNative *result = 0 ;
30429
30430 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
30431 {
704eda0c 30432 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 30433 PyThreadState* __tstate = wxPyBeginAllowThreads();
8d38bd1d 30434 {
0085ce49
RD
30435 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
30436 result = (wxRendererNative *) &_result_ref;
8d38bd1d 30437 }
0085ce49
RD
30438 wxPyEndAllowThreads(__tstate);
30439 if (PyErr_Occurred()) SWIG_fail;
30440 }
30441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30442 return resultobj;
30443fail:
30444 return NULL;
30445}
30446
30447
30448SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30449 PyObject *resultobj = 0;
30450 wxRendererNative *result = 0 ;
30451
30452 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
30453 {
704eda0c 30454 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 30455 PyThreadState* __tstate = wxPyBeginAllowThreads();
8d38bd1d 30456 {
0085ce49
RD
30457 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
30458 result = (wxRendererNative *) &_result_ref;
8d38bd1d 30459 }
0085ce49
RD
30460 wxPyEndAllowThreads(__tstate);
30461 if (PyErr_Occurred()) SWIG_fail;
30462 }
30463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30464 return resultobj;
30465fail:
30466 return NULL;
30467}
30468
30469
30470SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30471 PyObject *resultobj = 0;
30472 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30473 wxRendererNative *result = 0 ;
30474 void *argp1 = 0 ;
30475 int res1 = 0 ;
30476 PyObject * obj0 = 0 ;
30477 char * kwnames[] = {
30478 (char *) "renderer", NULL
30479 };
30480
30481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
30482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30483 if (!SWIG_IsOK(res1)) {
30484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30485 }
30486 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30487 {
704eda0c 30488 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49
RD
30489 PyThreadState* __tstate = wxPyBeginAllowThreads();
30490 result = (wxRendererNative *)wxRendererNative::Set(arg1);
30491 wxPyEndAllowThreads(__tstate);
30492 if (PyErr_Occurred()) SWIG_fail;
30493 }
30494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30495 return resultobj;
30496fail:
30497 return NULL;
30498}
30499
30500
30501SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30502 PyObject *resultobj = 0;
30503 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30504 SwigValueWrapper<wxRendererVersion > result;
30505 void *argp1 = 0 ;
30506 int res1 = 0 ;
30507 PyObject *swig_obj[1] ;
30508
30509 if (!args) SWIG_fail;
30510 swig_obj[0] = args;
30511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30512 if (!SWIG_IsOK(res1)) {
30513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
30514 }
30515 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30516 {
30517 PyThreadState* __tstate = wxPyBeginAllowThreads();
30518 result = ((wxRendererNative const *)arg1)->GetVersion();
30519 wxPyEndAllowThreads(__tstate);
30520 if (PyErr_Occurred()) SWIG_fail;
30521 }
30522 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
30523 return resultobj;
30524fail:
30525 return NULL;
30526}
30527
30528
30529SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30530 PyObject *obj;
30531 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30532 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
30533 return SWIG_Py_Void();
30534}
30535
27e45892
RD
30536SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30537 PyObject *resultobj = 0;
30538 wxPseudoDC *result = 0 ;
30539
30540 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
30541 {
30542 PyThreadState* __tstate = wxPyBeginAllowThreads();
30543 result = (wxPseudoDC *)new wxPseudoDC();
30544 wxPyEndAllowThreads(__tstate);
30545 if (PyErr_Occurred()) SWIG_fail;
30546 }
30547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
30548 return resultobj;
30549fail:
30550 return NULL;
30551}
30552
30553
30554SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30555 PyObject *resultobj = 0;
30556 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30557 void *argp1 = 0 ;
30558 int res1 = 0 ;
30559 PyObject *swig_obj[1] ;
30560
30561 if (!args) SWIG_fail;
30562 swig_obj[0] = args;
30563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30564 if (!SWIG_IsOK(res1)) {
30565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30566 }
30567 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30568 {
30569 PyThreadState* __tstate = wxPyBeginAllowThreads();
30570 (arg1)->BeginDrawing();
30571 wxPyEndAllowThreads(__tstate);
30572 if (PyErr_Occurred()) SWIG_fail;
30573 }
30574 resultobj = SWIG_Py_Void();
30575 return resultobj;
30576fail:
30577 return NULL;
30578}
30579
30580
30581SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30582 PyObject *resultobj = 0;
30583 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30584 void *argp1 = 0 ;
30585 int res1 = 0 ;
30586 PyObject *swig_obj[1] ;
30587
30588 if (!args) SWIG_fail;
30589 swig_obj[0] = args;
30590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30591 if (!SWIG_IsOK(res1)) {
30592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30593 }
30594 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30595 {
30596 PyThreadState* __tstate = wxPyBeginAllowThreads();
30597 (arg1)->EndDrawing();
30598 wxPyEndAllowThreads(__tstate);
30599 if (PyErr_Occurred()) SWIG_fail;
30600 }
30601 resultobj = SWIG_Py_Void();
30602 return resultobj;
30603fail:
30604 return NULL;
30605}
30606
30607
30608SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30609 PyObject *resultobj = 0;
30610 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30611 void *argp1 = 0 ;
30612 int res1 = 0 ;
30613 PyObject *swig_obj[1] ;
30614
30615 if (!args) SWIG_fail;
30616 swig_obj[0] = args;
30617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
30618 if (!SWIG_IsOK(res1)) {
30619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30620 }
30621 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30622 {
30623 PyThreadState* __tstate = wxPyBeginAllowThreads();
30624 delete arg1;
30625
30626 wxPyEndAllowThreads(__tstate);
30627 if (PyErr_Occurred()) SWIG_fail;
30628 }
30629 resultobj = SWIG_Py_Void();
30630 return resultobj;
30631fail:
30632 return NULL;
30633}
30634
30635
30636SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30637 PyObject *resultobj = 0;
30638 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30639 void *argp1 = 0 ;
30640 int res1 = 0 ;
30641 PyObject *swig_obj[1] ;
30642
30643 if (!args) SWIG_fail;
30644 swig_obj[0] = args;
30645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30646 if (!SWIG_IsOK(res1)) {
30647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30648 }
30649 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30650 {
30651 PyThreadState* __tstate = wxPyBeginAllowThreads();
30652 (arg1)->RemoveAll();
30653 wxPyEndAllowThreads(__tstate);
30654 if (PyErr_Occurred()) SWIG_fail;
30655 }
30656 resultobj = SWIG_Py_Void();
30657 return resultobj;
30658fail:
30659 return NULL;
30660}
30661
30662
30663SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30664 PyObject *resultobj = 0;
30665 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30666 int result;
30667 void *argp1 = 0 ;
30668 int res1 = 0 ;
30669 PyObject *swig_obj[1] ;
30670
30671 if (!args) SWIG_fail;
30672 swig_obj[0] = args;
30673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30674 if (!SWIG_IsOK(res1)) {
30675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30676 }
30677 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30678 {
30679 PyThreadState* __tstate = wxPyBeginAllowThreads();
30680 result = (int)(arg1)->GetLen();
30681 wxPyEndAllowThreads(__tstate);
30682 if (PyErr_Occurred()) SWIG_fail;
30683 }
30684 resultobj = SWIG_From_int(static_cast< int >(result));
30685 return resultobj;
30686fail:
30687 return NULL;
30688}
30689
30690
30691SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30692 PyObject *resultobj = 0;
30693 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30694 int arg2 ;
30695 void *argp1 = 0 ;
30696 int res1 = 0 ;
30697 int val2 ;
30698 int ecode2 = 0 ;
30699 PyObject * obj0 = 0 ;
30700 PyObject * obj1 = 0 ;
30701 char * kwnames[] = {
30702 (char *) "self",(char *) "id", NULL
30703 };
30704
30705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
30706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30707 if (!SWIG_IsOK(res1)) {
30708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30709 }
30710 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30711 ecode2 = SWIG_AsVal_int(obj1, &val2);
30712 if (!SWIG_IsOK(ecode2)) {
30713 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
30714 }
30715 arg2 = static_cast< int >(val2);
30716 {
30717 PyThreadState* __tstate = wxPyBeginAllowThreads();
30718 (arg1)->SetId(arg2);
30719 wxPyEndAllowThreads(__tstate);
30720 if (PyErr_Occurred()) SWIG_fail;
30721 }
30722 resultobj = SWIG_Py_Void();
30723 return resultobj;
30724fail:
30725 return NULL;
30726}
30727
30728
30729SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30730 PyObject *resultobj = 0;
30731 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30732 int arg2 ;
30733 void *argp1 = 0 ;
30734 int res1 = 0 ;
30735 int val2 ;
30736 int ecode2 = 0 ;
30737 PyObject * obj0 = 0 ;
30738 PyObject * obj1 = 0 ;
30739 char * kwnames[] = {
30740 (char *) "self",(char *) "id", NULL
30741 };
30742
30743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
30744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30745 if (!SWIG_IsOK(res1)) {
30746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30747 }
30748 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30749 ecode2 = SWIG_AsVal_int(obj1, &val2);
30750 if (!SWIG_IsOK(ecode2)) {
30751 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
30752 }
30753 arg2 = static_cast< int >(val2);
30754 {
30755 PyThreadState* __tstate = wxPyBeginAllowThreads();
30756 (arg1)->ClearId(arg2);
30757 wxPyEndAllowThreads(__tstate);
30758 if (PyErr_Occurred()) SWIG_fail;
30759 }
30760 resultobj = SWIG_Py_Void();
30761 return resultobj;
30762fail:
30763 return NULL;
30764}
30765
30766
30767SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30768 PyObject *resultobj = 0;
30769 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30770 int arg2 ;
30771 void *argp1 = 0 ;
30772 int res1 = 0 ;
30773 int val2 ;
30774 int ecode2 = 0 ;
30775 PyObject * obj0 = 0 ;
30776 PyObject * obj1 = 0 ;
30777 char * kwnames[] = {
30778 (char *) "self",(char *) "id", NULL
30779 };
30780
30781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
30782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30783 if (!SWIG_IsOK(res1)) {
30784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30785 }
30786 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30787 ecode2 = SWIG_AsVal_int(obj1, &val2);
30788 if (!SWIG_IsOK(ecode2)) {
30789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
30790 }
30791 arg2 = static_cast< int >(val2);
30792 {
30793 PyThreadState* __tstate = wxPyBeginAllowThreads();
30794 (arg1)->RemoveId(arg2);
30795 wxPyEndAllowThreads(__tstate);
30796 if (PyErr_Occurred()) SWIG_fail;
30797 }
30798 resultobj = SWIG_Py_Void();
30799 return resultobj;
30800fail:
30801 return NULL;
30802}
30803
30804
30805SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30806 PyObject *resultobj = 0;
30807 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30808 int arg2 ;
30809 int arg3 ;
30810 int arg4 ;
30811 void *argp1 = 0 ;
30812 int res1 = 0 ;
30813 int val2 ;
30814 int ecode2 = 0 ;
30815 int val3 ;
30816 int ecode3 = 0 ;
30817 int val4 ;
30818 int ecode4 = 0 ;
30819 PyObject * obj0 = 0 ;
30820 PyObject * obj1 = 0 ;
30821 PyObject * obj2 = 0 ;
30822 PyObject * obj3 = 0 ;
30823 char * kwnames[] = {
30824 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
30825 };
30826
30827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30829 if (!SWIG_IsOK(res1)) {
30830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30831 }
30832 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30833 ecode2 = SWIG_AsVal_int(obj1, &val2);
30834 if (!SWIG_IsOK(ecode2)) {
30835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
30836 }
30837 arg2 = static_cast< int >(val2);
30838 ecode3 = SWIG_AsVal_int(obj2, &val3);
30839 if (!SWIG_IsOK(ecode3)) {
30840 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
30841 }
30842 arg3 = static_cast< int >(val3);
30843 ecode4 = SWIG_AsVal_int(obj3, &val4);
30844 if (!SWIG_IsOK(ecode4)) {
30845 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
30846 }
30847 arg4 = static_cast< int >(val4);
30848 {
30849 PyThreadState* __tstate = wxPyBeginAllowThreads();
30850 (arg1)->TranslateId(arg2,arg3,arg4);
30851 wxPyEndAllowThreads(__tstate);
30852 if (PyErr_Occurred()) SWIG_fail;
30853 }
30854 resultobj = SWIG_Py_Void();
30855 return resultobj;
30856fail:
30857 return NULL;
30858}
30859
30860
72ef6efb
RD
30861SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30862 PyObject *resultobj = 0;
30863 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30864 int arg2 ;
30865 bool arg3 = (bool) true ;
30866 void *argp1 = 0 ;
30867 int res1 = 0 ;
30868 int val2 ;
30869 int ecode2 = 0 ;
30870 bool val3 ;
30871 int ecode3 = 0 ;
30872 PyObject * obj0 = 0 ;
30873 PyObject * obj1 = 0 ;
30874 PyObject * obj2 = 0 ;
30875 char * kwnames[] = {
30876 (char *) "self",(char *) "id",(char *) "greyout", NULL
30877 };
30878
30879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30881 if (!SWIG_IsOK(res1)) {
30882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30883 }
30884 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30885 ecode2 = SWIG_AsVal_int(obj1, &val2);
30886 if (!SWIG_IsOK(ecode2)) {
30887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
30888 }
30889 arg2 = static_cast< int >(val2);
30890 if (obj2) {
30891 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30892 if (!SWIG_IsOK(ecode3)) {
30893 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
30894 }
30895 arg3 = static_cast< bool >(val3);
30896 }
30897 {
30898 PyThreadState* __tstate = wxPyBeginAllowThreads();
30899 (arg1)->SetIdGreyedOut(arg2,arg3);
30900 wxPyEndAllowThreads(__tstate);
30901 if (PyErr_Occurred()) SWIG_fail;
30902 }
30903 resultobj = SWIG_Py_Void();
30904 return resultobj;
30905fail:
30906 return NULL;
30907}
30908
30909
30910SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30911 PyObject *resultobj = 0;
30912 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30913 int arg2 ;
30914 bool result;
30915 void *argp1 = 0 ;
30916 int res1 = 0 ;
30917 int val2 ;
30918 int ecode2 = 0 ;
30919 PyObject * obj0 = 0 ;
30920 PyObject * obj1 = 0 ;
30921 char * kwnames[] = {
30922 (char *) "self",(char *) "id", NULL
30923 };
30924
30925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
30926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30927 if (!SWIG_IsOK(res1)) {
30928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30929 }
30930 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30931 ecode2 = SWIG_AsVal_int(obj1, &val2);
30932 if (!SWIG_IsOK(ecode2)) {
30933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
30934 }
30935 arg2 = static_cast< int >(val2);
30936 {
30937 PyThreadState* __tstate = wxPyBeginAllowThreads();
30938 result = (bool)(arg1)->GetIdGreyedOut(arg2);
30939 wxPyEndAllowThreads(__tstate);
30940 if (PyErr_Occurred()) SWIG_fail;
30941 }
30942 {
30943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30944 }
30945 return resultobj;
30946fail:
30947 return NULL;
30948}
30949
30950
30951SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30952 PyObject *resultobj = 0;
30953 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30954 int arg2 ;
30955 int arg3 ;
30956 int arg4 = (int) 1 ;
30957 wxColor const &arg5_defvalue = *wxWHITE ;
30958 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
30959 PyObject *result = 0 ;
30960 void *argp1 = 0 ;
30961 int res1 = 0 ;
30962 int val2 ;
30963 int ecode2 = 0 ;
30964 int val3 ;
30965 int ecode3 = 0 ;
30966 int val4 ;
30967 int ecode4 = 0 ;
30968 void *argp5 = 0 ;
30969 int res5 = 0 ;
30970 PyObject * obj0 = 0 ;
30971 PyObject * obj1 = 0 ;
30972 PyObject * obj2 = 0 ;
30973 PyObject * obj3 = 0 ;
30974 PyObject * obj4 = 0 ;
30975 char * kwnames[] = {
30976 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
30977 };
30978
30979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30981 if (!SWIG_IsOK(res1)) {
30982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30983 }
30984 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30985 ecode2 = SWIG_AsVal_int(obj1, &val2);
30986 if (!SWIG_IsOK(ecode2)) {
30987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
30988 }
30989 arg2 = static_cast< int >(val2);
30990 ecode3 = SWIG_AsVal_int(obj2, &val3);
30991 if (!SWIG_IsOK(ecode3)) {
30992 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
30993 }
30994 arg3 = static_cast< int >(val3);
30995 if (obj3) {
30996 ecode4 = SWIG_AsVal_int(obj3, &val4);
30997 if (!SWIG_IsOK(ecode4)) {
30998 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
30999 }
31000 arg4 = static_cast< int >(val4);
31001 }
31002 if (obj4) {
31003 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
31004 if (!SWIG_IsOK(res5)) {
31005 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31006 }
31007 if (!argp5) {
31008 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31009 }
31010 arg5 = reinterpret_cast< wxColor * >(argp5);
31011 }
31012 {
31013 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
31014 if (PyErr_Occurred()) SWIG_fail;
31015 }
31016 resultobj = result;
31017 return resultobj;
31018fail:
31019 return NULL;
31020}
31021
31022
31023SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31024 PyObject *resultobj = 0;
31025 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31026 int arg2 ;
31027 int arg3 ;
31028 PyObject *result = 0 ;
31029 void *argp1 = 0 ;
31030 int res1 = 0 ;
31031 int val2 ;
31032 int ecode2 = 0 ;
31033 int val3 ;
31034 int ecode3 = 0 ;
31035 PyObject * obj0 = 0 ;
31036 PyObject * obj1 = 0 ;
31037 PyObject * obj2 = 0 ;
31038 char * kwnames[] = {
31039 (char *) "self",(char *) "x",(char *) "y", NULL
31040 };
31041
31042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31044 if (!SWIG_IsOK(res1)) {
31045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31046 }
31047 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31048 ecode2 = SWIG_AsVal_int(obj1, &val2);
31049 if (!SWIG_IsOK(ecode2)) {
31050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
31051 }
31052 arg2 = static_cast< int >(val2);
31053 ecode3 = SWIG_AsVal_int(obj2, &val3);
31054 if (!SWIG_IsOK(ecode3)) {
31055 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
31056 }
31057 arg3 = static_cast< int >(val3);
31058 {
31059 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
31060 if (PyErr_Occurred()) SWIG_fail;
31061 }
31062 resultobj = result;
31063 return resultobj;
31064fail:
31065 return NULL;
31066}
31067
31068
27e45892
RD
31069SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31070 PyObject *resultobj = 0;
31071 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31072 int arg2 ;
31073 wxDC *arg3 = (wxDC *) 0 ;
31074 void *argp1 = 0 ;
31075 int res1 = 0 ;
31076 int val2 ;
31077 int ecode2 = 0 ;
31078 void *argp3 = 0 ;
31079 int res3 = 0 ;
31080 PyObject * obj0 = 0 ;
31081 PyObject * obj1 = 0 ;
31082 PyObject * obj2 = 0 ;
31083 char * kwnames[] = {
31084 (char *) "self",(char *) "id",(char *) "dc", NULL
31085 };
31086
31087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31089 if (!SWIG_IsOK(res1)) {
31090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31091 }
31092 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31093 ecode2 = SWIG_AsVal_int(obj1, &val2);
31094 if (!SWIG_IsOK(ecode2)) {
31095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
31096 }
31097 arg2 = static_cast< int >(val2);
31098 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
31099 if (!SWIG_IsOK(res3)) {
31100 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
31101 }
31102 arg3 = reinterpret_cast< wxDC * >(argp3);
31103 {
31104 PyThreadState* __tstate = wxPyBeginAllowThreads();
31105 (arg1)->DrawIdToDC(arg2,arg3);
31106 wxPyEndAllowThreads(__tstate);
31107 if (PyErr_Occurred()) SWIG_fail;
31108 }
31109 resultobj = SWIG_Py_Void();
31110 return resultobj;
31111fail:
31112 return NULL;
31113}
31114
31115
31116SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31117 PyObject *resultobj = 0;
31118 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31119 int arg2 ;
31120 wxRect *arg3 = 0 ;
31121 void *argp1 = 0 ;
31122 int res1 = 0 ;
31123 int val2 ;
31124 int ecode2 = 0 ;
31125 wxRect temp3 ;
31126 PyObject * obj0 = 0 ;
31127 PyObject * obj1 = 0 ;
31128 PyObject * obj2 = 0 ;
31129 char * kwnames[] = {
31130 (char *) "self",(char *) "id",(char *) "rect", NULL
31131 };
31132
31133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31135 if (!SWIG_IsOK(res1)) {
31136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31137 }
31138 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31139 ecode2 = SWIG_AsVal_int(obj1, &val2);
31140 if (!SWIG_IsOK(ecode2)) {
31141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
31142 }
31143 arg2 = static_cast< int >(val2);
31144 {
31145 arg3 = &temp3;
31146 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31147 }
31148 {
31149 PyThreadState* __tstate = wxPyBeginAllowThreads();
31150 (arg1)->SetIdBounds(arg2,*arg3);
31151 wxPyEndAllowThreads(__tstate);
31152 if (PyErr_Occurred()) SWIG_fail;
31153 }
31154 resultobj = SWIG_Py_Void();
31155 return resultobj;
31156fail:
31157 return NULL;
31158}
31159
31160
31161SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31162 PyObject *resultobj = 0;
31163 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31164 int arg2 ;
31165 wxRect result;
31166 void *argp1 = 0 ;
31167 int res1 = 0 ;
31168 int val2 ;
31169 int ecode2 = 0 ;
31170 PyObject * obj0 = 0 ;
31171 PyObject * obj1 = 0 ;
31172 char * kwnames[] = {
31173 (char *) "self",(char *) "id", NULL
31174 };
31175
31176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
31177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31178 if (!SWIG_IsOK(res1)) {
31179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31180 }
31181 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31182 ecode2 = SWIG_AsVal_int(obj1, &val2);
31183 if (!SWIG_IsOK(ecode2)) {
31184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
31185 }
31186 arg2 = static_cast< int >(val2);
31187 {
31188 PyThreadState* __tstate = wxPyBeginAllowThreads();
31189 result = wxPseudoDC_GetIdBounds(arg1,arg2);
31190 wxPyEndAllowThreads(__tstate);
31191 if (PyErr_Occurred()) SWIG_fail;
31192 }
31193 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
31194 return resultobj;
31195fail:
31196 return NULL;
31197}
31198
31199
31200SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31201 PyObject *resultobj = 0;
31202 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31203 wxDC *arg2 = (wxDC *) 0 ;
31204 wxRect *arg3 = 0 ;
31205 void *argp1 = 0 ;
31206 int res1 = 0 ;
31207 void *argp2 = 0 ;
31208 int res2 = 0 ;
31209 wxRect temp3 ;
31210 PyObject * obj0 = 0 ;
31211 PyObject * obj1 = 0 ;
31212 PyObject * obj2 = 0 ;
31213 char * kwnames[] = {
31214 (char *) "self",(char *) "dc",(char *) "rect", NULL
31215 };
31216
31217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31219 if (!SWIG_IsOK(res1)) {
31220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31221 }
31222 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31223 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31224 if (!SWIG_IsOK(res2)) {
31225 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
31226 }
31227 arg2 = reinterpret_cast< wxDC * >(argp2);
31228 {
31229 arg3 = &temp3;
31230 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31231 }
31232 {
31233 PyThreadState* __tstate = wxPyBeginAllowThreads();
31234 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
31235 wxPyEndAllowThreads(__tstate);
31236 if (PyErr_Occurred()) SWIG_fail;
31237 }
31238 resultobj = SWIG_Py_Void();
31239 return resultobj;
31240fail:
31241 return NULL;
31242}
31243
31244
31245SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31246 PyObject *resultobj = 0;
31247 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31248 wxDC *arg2 = (wxDC *) 0 ;
31249 wxRegion *arg3 = 0 ;
31250 void *argp1 = 0 ;
31251 int res1 = 0 ;
31252 void *argp2 = 0 ;
31253 int res2 = 0 ;
31254 void *argp3 = 0 ;
31255 int res3 = 0 ;
31256 PyObject * obj0 = 0 ;
31257 PyObject * obj1 = 0 ;
31258 PyObject * obj2 = 0 ;
31259 char * kwnames[] = {
31260 (char *) "self",(char *) "dc",(char *) "region", NULL
31261 };
31262
31263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31265 if (!SWIG_IsOK(res1)) {
31266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31267 }
31268 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31269 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31270 if (!SWIG_IsOK(res2)) {
31271 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
31272 }
31273 arg2 = reinterpret_cast< wxDC * >(argp2);
31274 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
31275 if (!SWIG_IsOK(res3)) {
31276 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
31277 }
31278 if (!argp3) {
31279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
31280 }
31281 arg3 = reinterpret_cast< wxRegion * >(argp3);
31282 {
31283 PyThreadState* __tstate = wxPyBeginAllowThreads();
31284 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
31285 wxPyEndAllowThreads(__tstate);
31286 if (PyErr_Occurred()) SWIG_fail;
31287 }
31288 resultobj = SWIG_Py_Void();
31289 return resultobj;
31290fail:
31291 return NULL;
31292}
31293
31294
31295SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31296 PyObject *resultobj = 0;
31297 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31298 wxDC *arg2 = (wxDC *) 0 ;
31299 void *argp1 = 0 ;
31300 int res1 = 0 ;
31301 void *argp2 = 0 ;
31302 int res2 = 0 ;
31303 PyObject * obj0 = 0 ;
31304 PyObject * obj1 = 0 ;
31305 char * kwnames[] = {
31306 (char *) "self",(char *) "dc", NULL
31307 };
31308
31309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
31310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31311 if (!SWIG_IsOK(res1)) {
31312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31313 }
31314 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31315 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31316 if (!SWIG_IsOK(res2)) {
31317 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
31318 }
31319 arg2 = reinterpret_cast< wxDC * >(argp2);
31320 {
31321 PyThreadState* __tstate = wxPyBeginAllowThreads();
31322 (arg1)->DrawToDC(arg2);
31323 wxPyEndAllowThreads(__tstate);
31324 if (PyErr_Occurred()) SWIG_fail;
31325 }
31326 resultobj = SWIG_Py_Void();
31327 return resultobj;
31328fail:
31329 return NULL;
31330}
31331
31332
31333SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31334 PyObject *resultobj = 0;
31335 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31336 int arg2 ;
31337 int arg3 ;
31338 wxColour *arg4 = 0 ;
31339 int arg5 = (int) wxFLOOD_SURFACE ;
31340 void *argp1 = 0 ;
31341 int res1 = 0 ;
31342 int val2 ;
31343 int ecode2 = 0 ;
31344 int val3 ;
31345 int ecode3 = 0 ;
31346 wxColour temp4 ;
31347 int val5 ;
31348 int ecode5 = 0 ;
31349 PyObject * obj0 = 0 ;
31350 PyObject * obj1 = 0 ;
31351 PyObject * obj2 = 0 ;
31352 PyObject * obj3 = 0 ;
31353 PyObject * obj4 = 0 ;
31354 char * kwnames[] = {
31355 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
31356 };
31357
31358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31360 if (!SWIG_IsOK(res1)) {
31361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31362 }
31363 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31364 ecode2 = SWIG_AsVal_int(obj1, &val2);
31365 if (!SWIG_IsOK(ecode2)) {
31366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
31367 }
31368 arg2 = static_cast< int >(val2);
31369 ecode3 = SWIG_AsVal_int(obj2, &val3);
31370 if (!SWIG_IsOK(ecode3)) {
31371 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
31372 }
31373 arg3 = static_cast< int >(val3);
31374 {
31375 arg4 = &temp4;
31376 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
31377 }
31378 if (obj4) {
31379 ecode5 = SWIG_AsVal_int(obj4, &val5);
31380 if (!SWIG_IsOK(ecode5)) {
31381 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
31382 }
31383 arg5 = static_cast< int >(val5);
31384 }
31385 {
31386 PyThreadState* __tstate = wxPyBeginAllowThreads();
31387 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
31388 wxPyEndAllowThreads(__tstate);
31389 if (PyErr_Occurred()) SWIG_fail;
31390 }
31391 resultobj = SWIG_Py_Void();
31392 return resultobj;
31393fail:
31394 return NULL;
31395}
31396
31397
31398SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31399 PyObject *resultobj = 0;
31400 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31401 wxPoint *arg2 = 0 ;
31402 wxColour *arg3 = 0 ;
31403 int arg4 = (int) wxFLOOD_SURFACE ;
31404 void *argp1 = 0 ;
31405 int res1 = 0 ;
31406 wxPoint temp2 ;
31407 wxColour temp3 ;
31408 int val4 ;
31409 int ecode4 = 0 ;
31410 PyObject * obj0 = 0 ;
31411 PyObject * obj1 = 0 ;
31412 PyObject * obj2 = 0 ;
31413 PyObject * obj3 = 0 ;
31414 char * kwnames[] = {
31415 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
31416 };
31417
31418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31420 if (!SWIG_IsOK(res1)) {
31421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31422 }
31423 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31424 {
31425 arg2 = &temp2;
31426 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31427 }
31428 {
31429 arg3 = &temp3;
31430 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31431 }
31432 if (obj3) {
31433 ecode4 = SWIG_AsVal_int(obj3, &val4);
31434 if (!SWIG_IsOK(ecode4)) {
31435 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
31436 }
31437 arg4 = static_cast< int >(val4);
31438 }
31439 {
31440 PyThreadState* __tstate = wxPyBeginAllowThreads();
31441 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
31442 wxPyEndAllowThreads(__tstate);
31443 if (PyErr_Occurred()) SWIG_fail;
31444 }
31445 resultobj = SWIG_Py_Void();
31446 return resultobj;
31447fail:
31448 return NULL;
31449}
31450
31451
31452SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31453 PyObject *resultobj = 0;
31454 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31455 int arg2 ;
31456 int arg3 ;
31457 int arg4 ;
31458 int arg5 ;
31459 void *argp1 = 0 ;
31460 int res1 = 0 ;
31461 int val2 ;
31462 int ecode2 = 0 ;
31463 int val3 ;
31464 int ecode3 = 0 ;
31465 int val4 ;
31466 int ecode4 = 0 ;
31467 int val5 ;
31468 int ecode5 = 0 ;
31469 PyObject * obj0 = 0 ;
31470 PyObject * obj1 = 0 ;
31471 PyObject * obj2 = 0 ;
31472 PyObject * obj3 = 0 ;
31473 PyObject * obj4 = 0 ;
31474 char * kwnames[] = {
31475 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
31476 };
31477
31478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31480 if (!SWIG_IsOK(res1)) {
31481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31482 }
31483 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31484 ecode2 = SWIG_AsVal_int(obj1, &val2);
31485 if (!SWIG_IsOK(ecode2)) {
31486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
31487 }
31488 arg2 = static_cast< int >(val2);
31489 ecode3 = SWIG_AsVal_int(obj2, &val3);
31490 if (!SWIG_IsOK(ecode3)) {
31491 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
31492 }
31493 arg3 = static_cast< int >(val3);
31494 ecode4 = SWIG_AsVal_int(obj3, &val4);
31495 if (!SWIG_IsOK(ecode4)) {
31496 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
31497 }
31498 arg4 = static_cast< int >(val4);
31499 ecode5 = SWIG_AsVal_int(obj4, &val5);
31500 if (!SWIG_IsOK(ecode5)) {
31501 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
31502 }
31503 arg5 = static_cast< int >(val5);
31504 {
31505 PyThreadState* __tstate = wxPyBeginAllowThreads();
31506 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
31507 wxPyEndAllowThreads(__tstate);
31508 if (PyErr_Occurred()) SWIG_fail;
31509 }
31510 resultobj = SWIG_Py_Void();
31511 return resultobj;
31512fail:
31513 return NULL;
31514}
31515
31516
31517SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31518 PyObject *resultobj = 0;
31519 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31520 wxPoint *arg2 = 0 ;
31521 wxPoint *arg3 = 0 ;
31522 void *argp1 = 0 ;
31523 int res1 = 0 ;
31524 wxPoint temp2 ;
31525 wxPoint temp3 ;
31526 PyObject * obj0 = 0 ;
31527 PyObject * obj1 = 0 ;
31528 PyObject * obj2 = 0 ;
31529 char * kwnames[] = {
31530 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
31531 };
31532
31533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31535 if (!SWIG_IsOK(res1)) {
31536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31537 }
31538 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31539 {
31540 arg2 = &temp2;
31541 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31542 }
31543 {
31544 arg3 = &temp3;
31545 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31546 }
31547 {
31548 PyThreadState* __tstate = wxPyBeginAllowThreads();
31549 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
31550 wxPyEndAllowThreads(__tstate);
31551 if (PyErr_Occurred()) SWIG_fail;
31552 }
31553 resultobj = SWIG_Py_Void();
31554 return resultobj;
31555fail:
31556 return NULL;
31557}
31558
31559
31560SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31561 PyObject *resultobj = 0;
31562 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31563 int arg2 ;
31564 int arg3 ;
31565 void *argp1 = 0 ;
31566 int res1 = 0 ;
31567 int val2 ;
31568 int ecode2 = 0 ;
31569 int val3 ;
31570 int ecode3 = 0 ;
31571 PyObject * obj0 = 0 ;
31572 PyObject * obj1 = 0 ;
31573 PyObject * obj2 = 0 ;
31574 char * kwnames[] = {
31575 (char *) "self",(char *) "x",(char *) "y", NULL
31576 };
31577
31578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31580 if (!SWIG_IsOK(res1)) {
31581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31582 }
31583 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31584 ecode2 = SWIG_AsVal_int(obj1, &val2);
31585 if (!SWIG_IsOK(ecode2)) {
31586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
31587 }
31588 arg2 = static_cast< int >(val2);
31589 ecode3 = SWIG_AsVal_int(obj2, &val3);
31590 if (!SWIG_IsOK(ecode3)) {
31591 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
31592 }
31593 arg3 = static_cast< int >(val3);
31594 {
31595 PyThreadState* __tstate = wxPyBeginAllowThreads();
31596 (arg1)->CrossHair(arg2,arg3);
31597 wxPyEndAllowThreads(__tstate);
31598 if (PyErr_Occurred()) SWIG_fail;
31599 }
31600 resultobj = SWIG_Py_Void();
31601 return resultobj;
31602fail:
31603 return NULL;
31604}
31605
31606
31607SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31608 PyObject *resultobj = 0;
31609 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31610 wxPoint *arg2 = 0 ;
31611 void *argp1 = 0 ;
31612 int res1 = 0 ;
31613 wxPoint temp2 ;
31614 PyObject * obj0 = 0 ;
31615 PyObject * obj1 = 0 ;
31616 char * kwnames[] = {
31617 (char *) "self",(char *) "pt", NULL
31618 };
31619
31620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
31621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31622 if (!SWIG_IsOK(res1)) {
31623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31624 }
31625 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31626 {
31627 arg2 = &temp2;
31628 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31629 }
31630 {
31631 PyThreadState* __tstate = wxPyBeginAllowThreads();
31632 (arg1)->CrossHair((wxPoint const &)*arg2);
31633 wxPyEndAllowThreads(__tstate);
31634 if (PyErr_Occurred()) SWIG_fail;
31635 }
31636 resultobj = SWIG_Py_Void();
31637 return resultobj;
31638fail:
31639 return NULL;
31640}
31641
31642
31643SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31644 PyObject *resultobj = 0;
31645 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31646 int arg2 ;
31647 int arg3 ;
31648 int arg4 ;
31649 int arg5 ;
31650 int arg6 ;
31651 int arg7 ;
31652 void *argp1 = 0 ;
31653 int res1 = 0 ;
31654 int val2 ;
31655 int ecode2 = 0 ;
31656 int val3 ;
31657 int ecode3 = 0 ;
31658 int val4 ;
31659 int ecode4 = 0 ;
31660 int val5 ;
31661 int ecode5 = 0 ;
31662 int val6 ;
31663 int ecode6 = 0 ;
31664 int val7 ;
31665 int ecode7 = 0 ;
31666 PyObject * obj0 = 0 ;
31667 PyObject * obj1 = 0 ;
31668 PyObject * obj2 = 0 ;
31669 PyObject * obj3 = 0 ;
31670 PyObject * obj4 = 0 ;
31671 PyObject * obj5 = 0 ;
31672 PyObject * obj6 = 0 ;
31673 char * kwnames[] = {
31674 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
31675 };
31676
31677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31679 if (!SWIG_IsOK(res1)) {
31680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31681 }
31682 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31683 ecode2 = SWIG_AsVal_int(obj1, &val2);
31684 if (!SWIG_IsOK(ecode2)) {
31685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
31686 }
31687 arg2 = static_cast< int >(val2);
31688 ecode3 = SWIG_AsVal_int(obj2, &val3);
31689 if (!SWIG_IsOK(ecode3)) {
31690 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
31691 }
31692 arg3 = static_cast< int >(val3);
31693 ecode4 = SWIG_AsVal_int(obj3, &val4);
31694 if (!SWIG_IsOK(ecode4)) {
31695 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
31696 }
31697 arg4 = static_cast< int >(val4);
31698 ecode5 = SWIG_AsVal_int(obj4, &val5);
31699 if (!SWIG_IsOK(ecode5)) {
31700 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
31701 }
31702 arg5 = static_cast< int >(val5);
31703 ecode6 = SWIG_AsVal_int(obj5, &val6);
31704 if (!SWIG_IsOK(ecode6)) {
31705 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
31706 }
31707 arg6 = static_cast< int >(val6);
31708 ecode7 = SWIG_AsVal_int(obj6, &val7);
31709 if (!SWIG_IsOK(ecode7)) {
31710 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
31711 }
31712 arg7 = static_cast< int >(val7);
31713 {
31714 PyThreadState* __tstate = wxPyBeginAllowThreads();
31715 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
31716 wxPyEndAllowThreads(__tstate);
31717 if (PyErr_Occurred()) SWIG_fail;
31718 }
31719 resultobj = SWIG_Py_Void();
31720 return resultobj;
31721fail:
31722 return NULL;
31723}
31724
31725
31726SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31727 PyObject *resultobj = 0;
31728 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31729 wxPoint *arg2 = 0 ;
31730 wxPoint *arg3 = 0 ;
31731 wxPoint *arg4 = 0 ;
31732 void *argp1 = 0 ;
31733 int res1 = 0 ;
31734 wxPoint temp2 ;
31735 wxPoint temp3 ;
31736 wxPoint temp4 ;
31737 PyObject * obj0 = 0 ;
31738 PyObject * obj1 = 0 ;
31739 PyObject * obj2 = 0 ;
31740 PyObject * obj3 = 0 ;
31741 char * kwnames[] = {
31742 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
31743 };
31744
31745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31747 if (!SWIG_IsOK(res1)) {
31748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31749 }
31750 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31751 {
31752 arg2 = &temp2;
31753 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31754 }
31755 {
31756 arg3 = &temp3;
31757 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31758 }
31759 {
31760 arg4 = &temp4;
31761 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
31762 }
31763 {
31764 PyThreadState* __tstate = wxPyBeginAllowThreads();
31765 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
31766 wxPyEndAllowThreads(__tstate);
31767 if (PyErr_Occurred()) SWIG_fail;
31768 }
31769 resultobj = SWIG_Py_Void();
31770 return resultobj;
31771fail:
31772 return NULL;
31773}
31774
31775
31776SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31777 PyObject *resultobj = 0;
31778 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31779 int arg2 ;
31780 int arg3 ;
31781 int arg4 ;
31782 int arg5 ;
31783 void *argp1 = 0 ;
31784 int res1 = 0 ;
31785 int val2 ;
31786 int ecode2 = 0 ;
31787 int val3 ;
31788 int ecode3 = 0 ;
31789 int val4 ;
31790 int ecode4 = 0 ;
31791 int val5 ;
31792 int ecode5 = 0 ;
31793 PyObject * obj0 = 0 ;
31794 PyObject * obj1 = 0 ;
31795 PyObject * obj2 = 0 ;
31796 PyObject * obj3 = 0 ;
31797 PyObject * obj4 = 0 ;
31798 char * kwnames[] = {
31799 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
31800 };
31801
31802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31804 if (!SWIG_IsOK(res1)) {
31805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31806 }
31807 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31808 ecode2 = SWIG_AsVal_int(obj1, &val2);
31809 if (!SWIG_IsOK(ecode2)) {
31810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
31811 }
31812 arg2 = static_cast< int >(val2);
31813 ecode3 = SWIG_AsVal_int(obj2, &val3);
31814 if (!SWIG_IsOK(ecode3)) {
31815 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
31816 }
31817 arg3 = static_cast< int >(val3);
31818 ecode4 = SWIG_AsVal_int(obj3, &val4);
31819 if (!SWIG_IsOK(ecode4)) {
31820 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
31821 }
31822 arg4 = static_cast< int >(val4);
31823 ecode5 = SWIG_AsVal_int(obj4, &val5);
31824 if (!SWIG_IsOK(ecode5)) {
31825 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
31826 }
31827 arg5 = static_cast< int >(val5);
31828 {
31829 PyThreadState* __tstate = wxPyBeginAllowThreads();
31830 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
31831 wxPyEndAllowThreads(__tstate);
31832 if (PyErr_Occurred()) SWIG_fail;
31833 }
31834 resultobj = SWIG_Py_Void();
31835 return resultobj;
31836fail:
31837 return NULL;
31838}
31839
31840
31841SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31842 PyObject *resultobj = 0;
31843 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31844 wxRect *arg2 = 0 ;
31845 void *argp1 = 0 ;
31846 int res1 = 0 ;
31847 wxRect temp2 ;
31848 PyObject * obj0 = 0 ;
31849 PyObject * obj1 = 0 ;
31850 char * kwnames[] = {
31851 (char *) "self",(char *) "rect", NULL
31852 };
31853
31854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
31855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31856 if (!SWIG_IsOK(res1)) {
31857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31858 }
31859 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31860 {
31861 arg2 = &temp2;
31862 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
31863 }
31864 {
31865 PyThreadState* __tstate = wxPyBeginAllowThreads();
31866 (arg1)->DrawCheckMark((wxRect const &)*arg2);
31867 wxPyEndAllowThreads(__tstate);
31868 if (PyErr_Occurred()) SWIG_fail;
31869 }
31870 resultobj = SWIG_Py_Void();
31871 return resultobj;
31872fail:
31873 return NULL;
31874}
31875
31876
31877SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31878 PyObject *resultobj = 0;
31879 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31880 int arg2 ;
31881 int arg3 ;
31882 int arg4 ;
31883 int arg5 ;
31884 double arg6 ;
31885 double arg7 ;
31886 void *argp1 = 0 ;
31887 int res1 = 0 ;
31888 int val2 ;
31889 int ecode2 = 0 ;
31890 int val3 ;
31891 int ecode3 = 0 ;
31892 int val4 ;
31893 int ecode4 = 0 ;
31894 int val5 ;
31895 int ecode5 = 0 ;
31896 double val6 ;
31897 int ecode6 = 0 ;
31898 double val7 ;
31899 int ecode7 = 0 ;
31900 PyObject * obj0 = 0 ;
31901 PyObject * obj1 = 0 ;
31902 PyObject * obj2 = 0 ;
31903 PyObject * obj3 = 0 ;
31904 PyObject * obj4 = 0 ;
31905 PyObject * obj5 = 0 ;
31906 PyObject * obj6 = 0 ;
31907 char * kwnames[] = {
31908 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
31909 };
31910
31911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31913 if (!SWIG_IsOK(res1)) {
31914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31915 }
31916 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31917 ecode2 = SWIG_AsVal_int(obj1, &val2);
31918 if (!SWIG_IsOK(ecode2)) {
31919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
31920 }
31921 arg2 = static_cast< int >(val2);
31922 ecode3 = SWIG_AsVal_int(obj2, &val3);
31923 if (!SWIG_IsOK(ecode3)) {
31924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
31925 }
31926 arg3 = static_cast< int >(val3);
31927 ecode4 = SWIG_AsVal_int(obj3, &val4);
31928 if (!SWIG_IsOK(ecode4)) {
31929 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
31930 }
31931 arg4 = static_cast< int >(val4);
31932 ecode5 = SWIG_AsVal_int(obj4, &val5);
31933 if (!SWIG_IsOK(ecode5)) {
31934 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
31935 }
31936 arg5 = static_cast< int >(val5);
31937 ecode6 = SWIG_AsVal_double(obj5, &val6);
31938 if (!SWIG_IsOK(ecode6)) {
31939 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
31940 }
31941 arg6 = static_cast< double >(val6);
31942 ecode7 = SWIG_AsVal_double(obj6, &val7);
31943 if (!SWIG_IsOK(ecode7)) {
31944 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
31945 }
31946 arg7 = static_cast< double >(val7);
31947 {
31948 PyThreadState* __tstate = wxPyBeginAllowThreads();
31949 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
31950 wxPyEndAllowThreads(__tstate);
31951 if (PyErr_Occurred()) SWIG_fail;
31952 }
31953 resultobj = SWIG_Py_Void();
31954 return resultobj;
31955fail:
31956 return NULL;
31957}
31958
31959
31960SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31961 PyObject *resultobj = 0;
31962 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31963 wxPoint *arg2 = 0 ;
31964 wxSize *arg3 = 0 ;
31965 double arg4 ;
31966 double arg5 ;
31967 void *argp1 = 0 ;
31968 int res1 = 0 ;
31969 wxPoint temp2 ;
31970 wxSize temp3 ;
31971 double val4 ;
31972 int ecode4 = 0 ;
31973 double val5 ;
31974 int ecode5 = 0 ;
31975 PyObject * obj0 = 0 ;
31976 PyObject * obj1 = 0 ;
31977 PyObject * obj2 = 0 ;
31978 PyObject * obj3 = 0 ;
31979 PyObject * obj4 = 0 ;
31980 char * kwnames[] = {
31981 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
31982 };
31983
31984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31986 if (!SWIG_IsOK(res1)) {
31987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31988 }
31989 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31990 {
31991 arg2 = &temp2;
31992 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31993 }
31994 {
31995 arg3 = &temp3;
31996 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
31997 }
31998 ecode4 = SWIG_AsVal_double(obj3, &val4);
31999 if (!SWIG_IsOK(ecode4)) {
32000 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
32001 }
32002 arg4 = static_cast< double >(val4);
32003 ecode5 = SWIG_AsVal_double(obj4, &val5);
32004 if (!SWIG_IsOK(ecode5)) {
32005 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
32006 }
32007 arg5 = static_cast< double >(val5);
32008 {
32009 PyThreadState* __tstate = wxPyBeginAllowThreads();
32010 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
32011 wxPyEndAllowThreads(__tstate);
32012 if (PyErr_Occurred()) SWIG_fail;
32013 }
32014 resultobj = SWIG_Py_Void();
32015 return resultobj;
32016fail:
32017 return NULL;
32018}
32019
32020
32021SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32022 PyObject *resultobj = 0;
32023 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32024 int arg2 ;
32025 int arg3 ;
32026 void *argp1 = 0 ;
32027 int res1 = 0 ;
32028 int val2 ;
32029 int ecode2 = 0 ;
32030 int val3 ;
32031 int ecode3 = 0 ;
32032 PyObject * obj0 = 0 ;
32033 PyObject * obj1 = 0 ;
32034 PyObject * obj2 = 0 ;
32035 char * kwnames[] = {
32036 (char *) "self",(char *) "x",(char *) "y", NULL
32037 };
32038
32039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32041 if (!SWIG_IsOK(res1)) {
32042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32043 }
32044 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32045 ecode2 = SWIG_AsVal_int(obj1, &val2);
32046 if (!SWIG_IsOK(ecode2)) {
32047 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
32048 }
32049 arg2 = static_cast< int >(val2);
32050 ecode3 = SWIG_AsVal_int(obj2, &val3);
32051 if (!SWIG_IsOK(ecode3)) {
32052 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
32053 }
32054 arg3 = static_cast< int >(val3);
32055 {
32056 PyThreadState* __tstate = wxPyBeginAllowThreads();
32057 (arg1)->DrawPoint(arg2,arg3);
32058 wxPyEndAllowThreads(__tstate);
32059 if (PyErr_Occurred()) SWIG_fail;
32060 }
32061 resultobj = SWIG_Py_Void();
32062 return resultobj;
32063fail:
32064 return NULL;
32065}
32066
32067
32068SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32069 PyObject *resultobj = 0;
32070 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32071 wxPoint *arg2 = 0 ;
32072 void *argp1 = 0 ;
32073 int res1 = 0 ;
32074 wxPoint temp2 ;
32075 PyObject * obj0 = 0 ;
32076 PyObject * obj1 = 0 ;
32077 char * kwnames[] = {
32078 (char *) "self",(char *) "pt", NULL
32079 };
32080
32081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32083 if (!SWIG_IsOK(res1)) {
32084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32085 }
32086 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32087 {
32088 arg2 = &temp2;
32089 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32090 }
32091 {
32092 PyThreadState* __tstate = wxPyBeginAllowThreads();
32093 (arg1)->DrawPoint((wxPoint const &)*arg2);
32094 wxPyEndAllowThreads(__tstate);
32095 if (PyErr_Occurred()) SWIG_fail;
32096 }
32097 resultobj = SWIG_Py_Void();
32098 return resultobj;
32099fail:
32100 return NULL;
32101}
32102
32103
32104SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32105 PyObject *resultobj = 0;
32106 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32107 int arg2 ;
32108 int arg3 ;
32109 int arg4 ;
32110 int arg5 ;
32111 void *argp1 = 0 ;
32112 int res1 = 0 ;
32113 int val2 ;
32114 int ecode2 = 0 ;
32115 int val3 ;
32116 int ecode3 = 0 ;
32117 int val4 ;
32118 int ecode4 = 0 ;
32119 int val5 ;
32120 int ecode5 = 0 ;
32121 PyObject * obj0 = 0 ;
32122 PyObject * obj1 = 0 ;
32123 PyObject * obj2 = 0 ;
32124 PyObject * obj3 = 0 ;
32125 PyObject * obj4 = 0 ;
32126 char * kwnames[] = {
32127 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32128 };
32129
32130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32132 if (!SWIG_IsOK(res1)) {
32133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32134 }
32135 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32136 ecode2 = SWIG_AsVal_int(obj1, &val2);
32137 if (!SWIG_IsOK(ecode2)) {
32138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
32139 }
32140 arg2 = static_cast< int >(val2);
32141 ecode3 = SWIG_AsVal_int(obj2, &val3);
32142 if (!SWIG_IsOK(ecode3)) {
32143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
32144 }
32145 arg3 = static_cast< int >(val3);
32146 ecode4 = SWIG_AsVal_int(obj3, &val4);
32147 if (!SWIG_IsOK(ecode4)) {
32148 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
32149 }
32150 arg4 = static_cast< int >(val4);
32151 ecode5 = SWIG_AsVal_int(obj4, &val5);
32152 if (!SWIG_IsOK(ecode5)) {
32153 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
32154 }
32155 arg5 = static_cast< int >(val5);
32156 {
32157 PyThreadState* __tstate = wxPyBeginAllowThreads();
32158 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
32159 wxPyEndAllowThreads(__tstate);
32160 if (PyErr_Occurred()) SWIG_fail;
32161 }
32162 resultobj = SWIG_Py_Void();
32163 return resultobj;
32164fail:
32165 return NULL;
32166}
32167
32168
32169SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32170 PyObject *resultobj = 0;
32171 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32172 wxRect *arg2 = 0 ;
32173 void *argp1 = 0 ;
32174 int res1 = 0 ;
32175 wxRect temp2 ;
32176 PyObject * obj0 = 0 ;
32177 PyObject * obj1 = 0 ;
32178 char * kwnames[] = {
32179 (char *) "self",(char *) "rect", NULL
32180 };
32181
32182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
32183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32184 if (!SWIG_IsOK(res1)) {
32185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32186 }
32187 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32188 {
32189 arg2 = &temp2;
32190 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32191 }
32192 {
32193 PyThreadState* __tstate = wxPyBeginAllowThreads();
32194 (arg1)->DrawRectangle((wxRect const &)*arg2);
32195 wxPyEndAllowThreads(__tstate);
32196 if (PyErr_Occurred()) SWIG_fail;
32197 }
32198 resultobj = SWIG_Py_Void();
32199 return resultobj;
32200fail:
32201 return NULL;
32202}
32203
32204
32205SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32206 PyObject *resultobj = 0;
32207 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32208 wxPoint *arg2 = 0 ;
32209 wxSize *arg3 = 0 ;
32210 void *argp1 = 0 ;
32211 int res1 = 0 ;
32212 wxPoint temp2 ;
32213 wxSize temp3 ;
32214 PyObject * obj0 = 0 ;
32215 PyObject * obj1 = 0 ;
32216 PyObject * obj2 = 0 ;
32217 char * kwnames[] = {
32218 (char *) "self",(char *) "pt",(char *) "sz", NULL
32219 };
32220
32221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32223 if (!SWIG_IsOK(res1)) {
32224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32225 }
32226 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32227 {
32228 arg2 = &temp2;
32229 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32230 }
32231 {
32232 arg3 = &temp3;
32233 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32234 }
32235 {
32236 PyThreadState* __tstate = wxPyBeginAllowThreads();
32237 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
32238 wxPyEndAllowThreads(__tstate);
32239 if (PyErr_Occurred()) SWIG_fail;
32240 }
32241 resultobj = SWIG_Py_Void();
32242 return resultobj;
32243fail:
32244 return NULL;
32245}
32246
32247
32248SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32249 PyObject *resultobj = 0;
32250 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32251 int arg2 ;
32252 int arg3 ;
32253 int arg4 ;
32254 int arg5 ;
32255 double arg6 ;
32256 void *argp1 = 0 ;
32257 int res1 = 0 ;
32258 int val2 ;
32259 int ecode2 = 0 ;
32260 int val3 ;
32261 int ecode3 = 0 ;
32262 int val4 ;
32263 int ecode4 = 0 ;
32264 int val5 ;
32265 int ecode5 = 0 ;
32266 double val6 ;
32267 int ecode6 = 0 ;
32268 PyObject * obj0 = 0 ;
32269 PyObject * obj1 = 0 ;
32270 PyObject * obj2 = 0 ;
32271 PyObject * obj3 = 0 ;
32272 PyObject * obj4 = 0 ;
32273 PyObject * obj5 = 0 ;
32274 char * kwnames[] = {
32275 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
32276 };
32277
32278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
32279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32280 if (!SWIG_IsOK(res1)) {
32281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32282 }
32283 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32284 ecode2 = SWIG_AsVal_int(obj1, &val2);
32285 if (!SWIG_IsOK(ecode2)) {
32286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
32287 }
32288 arg2 = static_cast< int >(val2);
32289 ecode3 = SWIG_AsVal_int(obj2, &val3);
32290 if (!SWIG_IsOK(ecode3)) {
32291 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
32292 }
32293 arg3 = static_cast< int >(val3);
32294 ecode4 = SWIG_AsVal_int(obj3, &val4);
32295 if (!SWIG_IsOK(ecode4)) {
32296 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
32297 }
32298 arg4 = static_cast< int >(val4);
32299 ecode5 = SWIG_AsVal_int(obj4, &val5);
32300 if (!SWIG_IsOK(ecode5)) {
32301 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
32302 }
32303 arg5 = static_cast< int >(val5);
32304 ecode6 = SWIG_AsVal_double(obj5, &val6);
32305 if (!SWIG_IsOK(ecode6)) {
32306 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
32307 }
32308 arg6 = static_cast< double >(val6);
32309 {
32310 PyThreadState* __tstate = wxPyBeginAllowThreads();
32311 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
32312 wxPyEndAllowThreads(__tstate);
32313 if (PyErr_Occurred()) SWIG_fail;
32314 }
32315 resultobj = SWIG_Py_Void();
32316 return resultobj;
32317fail:
32318 return NULL;
32319}
32320
32321
32322SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32323 PyObject *resultobj = 0;
32324 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32325 wxRect *arg2 = 0 ;
32326 double arg3 ;
32327 void *argp1 = 0 ;
32328 int res1 = 0 ;
32329 wxRect temp2 ;
32330 double val3 ;
32331 int ecode3 = 0 ;
32332 PyObject * obj0 = 0 ;
32333 PyObject * obj1 = 0 ;
32334 PyObject * obj2 = 0 ;
32335 char * kwnames[] = {
32336 (char *) "self",(char *) "r",(char *) "radius", NULL
32337 };
32338
32339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32341 if (!SWIG_IsOK(res1)) {
32342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32343 }
32344 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32345 {
32346 arg2 = &temp2;
32347 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32348 }
32349 ecode3 = SWIG_AsVal_double(obj2, &val3);
32350 if (!SWIG_IsOK(ecode3)) {
32351 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
32352 }
32353 arg3 = static_cast< double >(val3);
32354 {
32355 PyThreadState* __tstate = wxPyBeginAllowThreads();
32356 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
32357 wxPyEndAllowThreads(__tstate);
32358 if (PyErr_Occurred()) SWIG_fail;
32359 }
32360 resultobj = SWIG_Py_Void();
32361 return resultobj;
32362fail:
32363 return NULL;
32364}
32365
32366
32367SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32368 PyObject *resultobj = 0;
32369 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32370 wxPoint *arg2 = 0 ;
32371 wxSize *arg3 = 0 ;
32372 double arg4 ;
32373 void *argp1 = 0 ;
32374 int res1 = 0 ;
32375 wxPoint temp2 ;
32376 wxSize temp3 ;
32377 double val4 ;
32378 int ecode4 = 0 ;
32379 PyObject * obj0 = 0 ;
32380 PyObject * obj1 = 0 ;
32381 PyObject * obj2 = 0 ;
32382 PyObject * obj3 = 0 ;
32383 char * kwnames[] = {
32384 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
32385 };
32386
32387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32389 if (!SWIG_IsOK(res1)) {
32390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32391 }
32392 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32393 {
32394 arg2 = &temp2;
32395 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32396 }
32397 {
32398 arg3 = &temp3;
32399 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32400 }
32401 ecode4 = SWIG_AsVal_double(obj3, &val4);
32402 if (!SWIG_IsOK(ecode4)) {
32403 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
32404 }
32405 arg4 = static_cast< double >(val4);
32406 {
32407 PyThreadState* __tstate = wxPyBeginAllowThreads();
32408 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
32409 wxPyEndAllowThreads(__tstate);
32410 if (PyErr_Occurred()) SWIG_fail;
32411 }
32412 resultobj = SWIG_Py_Void();
32413 return resultobj;
32414fail:
32415 return NULL;
32416}
32417
32418
32419SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32420 PyObject *resultobj = 0;
32421 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32422 int arg2 ;
32423 int arg3 ;
32424 int arg4 ;
32425 void *argp1 = 0 ;
32426 int res1 = 0 ;
32427 int val2 ;
32428 int ecode2 = 0 ;
32429 int val3 ;
32430 int ecode3 = 0 ;
32431 int val4 ;
32432 int ecode4 = 0 ;
32433 PyObject * obj0 = 0 ;
32434 PyObject * obj1 = 0 ;
32435 PyObject * obj2 = 0 ;
32436 PyObject * obj3 = 0 ;
32437 char * kwnames[] = {
32438 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
32439 };
32440
32441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32443 if (!SWIG_IsOK(res1)) {
32444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32445 }
32446 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32447 ecode2 = SWIG_AsVal_int(obj1, &val2);
32448 if (!SWIG_IsOK(ecode2)) {
32449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
32450 }
32451 arg2 = static_cast< int >(val2);
32452 ecode3 = SWIG_AsVal_int(obj2, &val3);
32453 if (!SWIG_IsOK(ecode3)) {
32454 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
32455 }
32456 arg3 = static_cast< int >(val3);
32457 ecode4 = SWIG_AsVal_int(obj3, &val4);
32458 if (!SWIG_IsOK(ecode4)) {
32459 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
32460 }
32461 arg4 = static_cast< int >(val4);
32462 {
32463 PyThreadState* __tstate = wxPyBeginAllowThreads();
32464 (arg1)->DrawCircle(arg2,arg3,arg4);
32465 wxPyEndAllowThreads(__tstate);
32466 if (PyErr_Occurred()) SWIG_fail;
32467 }
32468 resultobj = SWIG_Py_Void();
32469 return resultobj;
32470fail:
32471 return NULL;
32472}
32473
32474
32475SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32476 PyObject *resultobj = 0;
32477 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32478 wxPoint *arg2 = 0 ;
32479 int arg3 ;
32480 void *argp1 = 0 ;
32481 int res1 = 0 ;
32482 wxPoint temp2 ;
32483 int val3 ;
32484 int ecode3 = 0 ;
32485 PyObject * obj0 = 0 ;
32486 PyObject * obj1 = 0 ;
32487 PyObject * obj2 = 0 ;
32488 char * kwnames[] = {
32489 (char *) "self",(char *) "pt",(char *) "radius", NULL
32490 };
32491
32492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32494 if (!SWIG_IsOK(res1)) {
32495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32496 }
32497 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32498 {
32499 arg2 = &temp2;
32500 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32501 }
32502 ecode3 = SWIG_AsVal_int(obj2, &val3);
32503 if (!SWIG_IsOK(ecode3)) {
32504 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
32505 }
32506 arg3 = static_cast< int >(val3);
32507 {
32508 PyThreadState* __tstate = wxPyBeginAllowThreads();
32509 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
32510 wxPyEndAllowThreads(__tstate);
32511 if (PyErr_Occurred()) SWIG_fail;
32512 }
32513 resultobj = SWIG_Py_Void();
32514 return resultobj;
32515fail:
32516 return NULL;
32517}
32518
32519
32520SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32521 PyObject *resultobj = 0;
32522 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32523 int arg2 ;
32524 int arg3 ;
32525 int arg4 ;
32526 int arg5 ;
32527 void *argp1 = 0 ;
32528 int res1 = 0 ;
32529 int val2 ;
32530 int ecode2 = 0 ;
32531 int val3 ;
32532 int ecode3 = 0 ;
32533 int val4 ;
32534 int ecode4 = 0 ;
32535 int val5 ;
32536 int ecode5 = 0 ;
32537 PyObject * obj0 = 0 ;
32538 PyObject * obj1 = 0 ;
32539 PyObject * obj2 = 0 ;
32540 PyObject * obj3 = 0 ;
32541 PyObject * obj4 = 0 ;
32542 char * kwnames[] = {
32543 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32544 };
32545
32546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32548 if (!SWIG_IsOK(res1)) {
32549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32550 }
32551 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32552 ecode2 = SWIG_AsVal_int(obj1, &val2);
32553 if (!SWIG_IsOK(ecode2)) {
32554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
32555 }
32556 arg2 = static_cast< int >(val2);
32557 ecode3 = SWIG_AsVal_int(obj2, &val3);
32558 if (!SWIG_IsOK(ecode3)) {
32559 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
32560 }
32561 arg3 = static_cast< int >(val3);
32562 ecode4 = SWIG_AsVal_int(obj3, &val4);
32563 if (!SWIG_IsOK(ecode4)) {
32564 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
32565 }
32566 arg4 = static_cast< int >(val4);
32567 ecode5 = SWIG_AsVal_int(obj4, &val5);
32568 if (!SWIG_IsOK(ecode5)) {
32569 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
32570 }
32571 arg5 = static_cast< int >(val5);
32572 {
32573 PyThreadState* __tstate = wxPyBeginAllowThreads();
32574 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
32575 wxPyEndAllowThreads(__tstate);
32576 if (PyErr_Occurred()) SWIG_fail;
32577 }
32578 resultobj = SWIG_Py_Void();
32579 return resultobj;
32580fail:
32581 return NULL;
32582}
32583
32584
32585SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32586 PyObject *resultobj = 0;
32587 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32588 wxRect *arg2 = 0 ;
32589 void *argp1 = 0 ;
32590 int res1 = 0 ;
32591 wxRect temp2 ;
32592 PyObject * obj0 = 0 ;
32593 PyObject * obj1 = 0 ;
32594 char * kwnames[] = {
32595 (char *) "self",(char *) "rect", NULL
32596 };
32597
32598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
32599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32600 if (!SWIG_IsOK(res1)) {
32601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32602 }
32603 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32604 {
32605 arg2 = &temp2;
32606 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32607 }
32608 {
32609 PyThreadState* __tstate = wxPyBeginAllowThreads();
32610 (arg1)->DrawEllipse((wxRect const &)*arg2);
32611 wxPyEndAllowThreads(__tstate);
32612 if (PyErr_Occurred()) SWIG_fail;
32613 }
32614 resultobj = SWIG_Py_Void();
32615 return resultobj;
32616fail:
32617 return NULL;
32618}
32619
32620
32621SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32622 PyObject *resultobj = 0;
32623 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32624 wxPoint *arg2 = 0 ;
32625 wxSize *arg3 = 0 ;
32626 void *argp1 = 0 ;
32627 int res1 = 0 ;
32628 wxPoint temp2 ;
32629 wxSize temp3 ;
32630 PyObject * obj0 = 0 ;
32631 PyObject * obj1 = 0 ;
32632 PyObject * obj2 = 0 ;
32633 char * kwnames[] = {
32634 (char *) "self",(char *) "pt",(char *) "sz", NULL
32635 };
32636
32637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32639 if (!SWIG_IsOK(res1)) {
32640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32641 }
32642 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32643 {
32644 arg2 = &temp2;
32645 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32646 }
32647 {
32648 arg3 = &temp3;
32649 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32650 }
32651 {
32652 PyThreadState* __tstate = wxPyBeginAllowThreads();
32653 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
32654 wxPyEndAllowThreads(__tstate);
32655 if (PyErr_Occurred()) SWIG_fail;
32656 }
32657 resultobj = SWIG_Py_Void();
32658 return resultobj;
32659fail:
32660 return NULL;
32661}
32662
32663
32664SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32665 PyObject *resultobj = 0;
32666 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32667 wxIcon *arg2 = 0 ;
32668 int arg3 ;
32669 int arg4 ;
32670 void *argp1 = 0 ;
32671 int res1 = 0 ;
32672 void *argp2 = 0 ;
32673 int res2 = 0 ;
32674 int val3 ;
32675 int ecode3 = 0 ;
32676 int val4 ;
32677 int ecode4 = 0 ;
32678 PyObject * obj0 = 0 ;
32679 PyObject * obj1 = 0 ;
32680 PyObject * obj2 = 0 ;
32681 PyObject * obj3 = 0 ;
32682 char * kwnames[] = {
32683 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
32684 };
32685
32686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32688 if (!SWIG_IsOK(res1)) {
32689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32690 }
32691 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32692 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
32693 if (!SWIG_IsOK(res2)) {
32694 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
32695 }
32696 if (!argp2) {
32697 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
32698 }
32699 arg2 = reinterpret_cast< wxIcon * >(argp2);
32700 ecode3 = SWIG_AsVal_int(obj2, &val3);
32701 if (!SWIG_IsOK(ecode3)) {
32702 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
32703 }
32704 arg3 = static_cast< int >(val3);
32705 ecode4 = SWIG_AsVal_int(obj3, &val4);
32706 if (!SWIG_IsOK(ecode4)) {
32707 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
32708 }
32709 arg4 = static_cast< int >(val4);
32710 {
32711 PyThreadState* __tstate = wxPyBeginAllowThreads();
32712 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
32713 wxPyEndAllowThreads(__tstate);
32714 if (PyErr_Occurred()) SWIG_fail;
32715 }
32716 resultobj = SWIG_Py_Void();
32717 return resultobj;
32718fail:
32719 return NULL;
32720}
32721
32722
32723SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32724 PyObject *resultobj = 0;
32725 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32726 wxIcon *arg2 = 0 ;
32727 wxPoint *arg3 = 0 ;
32728 void *argp1 = 0 ;
32729 int res1 = 0 ;
32730 void *argp2 = 0 ;
32731 int res2 = 0 ;
32732 wxPoint temp3 ;
32733 PyObject * obj0 = 0 ;
32734 PyObject * obj1 = 0 ;
32735 PyObject * obj2 = 0 ;
32736 char * kwnames[] = {
32737 (char *) "self",(char *) "icon",(char *) "pt", NULL
32738 };
32739
32740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32742 if (!SWIG_IsOK(res1)) {
32743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32744 }
32745 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32746 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
32747 if (!SWIG_IsOK(res2)) {
32748 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
32749 }
32750 if (!argp2) {
32751 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
32752 }
32753 arg2 = reinterpret_cast< wxIcon * >(argp2);
32754 {
32755 arg3 = &temp3;
32756 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32757 }
32758 {
32759 PyThreadState* __tstate = wxPyBeginAllowThreads();
32760 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
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_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32772 PyObject *resultobj = 0;
32773 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32774 wxBitmap *arg2 = 0 ;
32775 int arg3 ;
32776 int arg4 ;
32777 bool arg5 = (bool) false ;
32778 void *argp1 = 0 ;
32779 int res1 = 0 ;
32780 void *argp2 = 0 ;
32781 int res2 = 0 ;
32782 int val3 ;
32783 int ecode3 = 0 ;
32784 int val4 ;
32785 int ecode4 = 0 ;
32786 bool val5 ;
32787 int ecode5 = 0 ;
32788 PyObject * obj0 = 0 ;
32789 PyObject * obj1 = 0 ;
32790 PyObject * obj2 = 0 ;
32791 PyObject * obj3 = 0 ;
32792 PyObject * obj4 = 0 ;
32793 char * kwnames[] = {
32794 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
32795 };
32796
32797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32799 if (!SWIG_IsOK(res1)) {
32800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32801 }
32802 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32803 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
32804 if (!SWIG_IsOK(res2)) {
32805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32806 }
32807 if (!argp2) {
32808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32809 }
32810 arg2 = reinterpret_cast< wxBitmap * >(argp2);
32811 ecode3 = SWIG_AsVal_int(obj2, &val3);
32812 if (!SWIG_IsOK(ecode3)) {
32813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
32814 }
32815 arg3 = static_cast< int >(val3);
32816 ecode4 = SWIG_AsVal_int(obj3, &val4);
32817 if (!SWIG_IsOK(ecode4)) {
32818 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
32819 }
32820 arg4 = static_cast< int >(val4);
32821 if (obj4) {
32822 ecode5 = SWIG_AsVal_bool(obj4, &val5);
32823 if (!SWIG_IsOK(ecode5)) {
32824 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
32825 }
32826 arg5 = static_cast< bool >(val5);
32827 }
32828 {
32829 PyThreadState* __tstate = wxPyBeginAllowThreads();
32830 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
32831 wxPyEndAllowThreads(__tstate);
32832 if (PyErr_Occurred()) SWIG_fail;
32833 }
32834 resultobj = SWIG_Py_Void();
32835 return resultobj;
32836fail:
32837 return NULL;
32838}
32839
32840
32841SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32842 PyObject *resultobj = 0;
32843 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32844 wxBitmap *arg2 = 0 ;
32845 wxPoint *arg3 = 0 ;
32846 bool arg4 = (bool) false ;
32847 void *argp1 = 0 ;
32848 int res1 = 0 ;
32849 void *argp2 = 0 ;
32850 int res2 = 0 ;
32851 wxPoint temp3 ;
32852 bool val4 ;
32853 int ecode4 = 0 ;
32854 PyObject * obj0 = 0 ;
32855 PyObject * obj1 = 0 ;
32856 PyObject * obj2 = 0 ;
32857 PyObject * obj3 = 0 ;
32858 char * kwnames[] = {
32859 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
32860 };
32861
32862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32864 if (!SWIG_IsOK(res1)) {
32865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32866 }
32867 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32868 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
32869 if (!SWIG_IsOK(res2)) {
32870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32871 }
32872 if (!argp2) {
32873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32874 }
32875 arg2 = reinterpret_cast< wxBitmap * >(argp2);
32876 {
32877 arg3 = &temp3;
32878 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32879 }
32880 if (obj3) {
32881 ecode4 = SWIG_AsVal_bool(obj3, &val4);
32882 if (!SWIG_IsOK(ecode4)) {
32883 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
32884 }
32885 arg4 = static_cast< bool >(val4);
32886 }
32887 {
32888 PyThreadState* __tstate = wxPyBeginAllowThreads();
32889 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
32890 wxPyEndAllowThreads(__tstate);
32891 if (PyErr_Occurred()) SWIG_fail;
32892 }
32893 resultobj = SWIG_Py_Void();
32894 return resultobj;
32895fail:
32896 return NULL;
32897}
32898
32899
32900SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32901 PyObject *resultobj = 0;
32902 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32903 wxString *arg2 = 0 ;
32904 int arg3 ;
32905 int arg4 ;
32906 void *argp1 = 0 ;
32907 int res1 = 0 ;
32908 bool temp2 = false ;
32909 int val3 ;
32910 int ecode3 = 0 ;
32911 int val4 ;
32912 int ecode4 = 0 ;
32913 PyObject * obj0 = 0 ;
32914 PyObject * obj1 = 0 ;
32915 PyObject * obj2 = 0 ;
32916 PyObject * obj3 = 0 ;
32917 char * kwnames[] = {
32918 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
32919 };
32920
32921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32923 if (!SWIG_IsOK(res1)) {
32924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32925 }
32926 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32927 {
32928 arg2 = wxString_in_helper(obj1);
32929 if (arg2 == NULL) SWIG_fail;
32930 temp2 = true;
32931 }
32932 ecode3 = SWIG_AsVal_int(obj2, &val3);
32933 if (!SWIG_IsOK(ecode3)) {
32934 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
32935 }
32936 arg3 = static_cast< int >(val3);
32937 ecode4 = SWIG_AsVal_int(obj3, &val4);
32938 if (!SWIG_IsOK(ecode4)) {
32939 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
32940 }
32941 arg4 = static_cast< int >(val4);
32942 {
32943 PyThreadState* __tstate = wxPyBeginAllowThreads();
32944 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
32945 wxPyEndAllowThreads(__tstate);
32946 if (PyErr_Occurred()) SWIG_fail;
32947 }
32948 resultobj = SWIG_Py_Void();
32949 {
32950 if (temp2)
32951 delete arg2;
32952 }
32953 return resultobj;
32954fail:
32955 {
32956 if (temp2)
32957 delete arg2;
32958 }
32959 return NULL;
32960}
32961
32962
32963SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32964 PyObject *resultobj = 0;
32965 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32966 wxString *arg2 = 0 ;
32967 wxPoint *arg3 = 0 ;
32968 void *argp1 = 0 ;
32969 int res1 = 0 ;
32970 bool temp2 = false ;
32971 wxPoint temp3 ;
32972 PyObject * obj0 = 0 ;
32973 PyObject * obj1 = 0 ;
32974 PyObject * obj2 = 0 ;
32975 char * kwnames[] = {
32976 (char *) "self",(char *) "text",(char *) "pt", NULL
32977 };
32978
32979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32981 if (!SWIG_IsOK(res1)) {
32982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32983 }
32984 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32985 {
32986 arg2 = wxString_in_helper(obj1);
32987 if (arg2 == NULL) SWIG_fail;
32988 temp2 = true;
32989 }
32990 {
32991 arg3 = &temp3;
32992 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32993 }
32994 {
32995 PyThreadState* __tstate = wxPyBeginAllowThreads();
32996 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
32997 wxPyEndAllowThreads(__tstate);
32998 if (PyErr_Occurred()) SWIG_fail;
32999 }
33000 resultobj = SWIG_Py_Void();
33001 {
33002 if (temp2)
33003 delete arg2;
33004 }
33005 return resultobj;
33006fail:
33007 {
33008 if (temp2)
33009 delete arg2;
33010 }
33011 return NULL;
33012}
33013
33014
33015SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33016 PyObject *resultobj = 0;
33017 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33018 wxString *arg2 = 0 ;
33019 int arg3 ;
33020 int arg4 ;
33021 double arg5 ;
33022 void *argp1 = 0 ;
33023 int res1 = 0 ;
33024 bool temp2 = false ;
33025 int val3 ;
33026 int ecode3 = 0 ;
33027 int val4 ;
33028 int ecode4 = 0 ;
33029 double val5 ;
33030 int ecode5 = 0 ;
33031 PyObject * obj0 = 0 ;
33032 PyObject * obj1 = 0 ;
33033 PyObject * obj2 = 0 ;
33034 PyObject * obj3 = 0 ;
33035 PyObject * obj4 = 0 ;
33036 char * kwnames[] = {
33037 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
33038 };
33039
33040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33042 if (!SWIG_IsOK(res1)) {
33043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33044 }
33045 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33046 {
33047 arg2 = wxString_in_helper(obj1);
33048 if (arg2 == NULL) SWIG_fail;
33049 temp2 = true;
33050 }
33051 ecode3 = SWIG_AsVal_int(obj2, &val3);
33052 if (!SWIG_IsOK(ecode3)) {
33053 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
33054 }
33055 arg3 = static_cast< int >(val3);
33056 ecode4 = SWIG_AsVal_int(obj3, &val4);
33057 if (!SWIG_IsOK(ecode4)) {
33058 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
33059 }
33060 arg4 = static_cast< int >(val4);
33061 ecode5 = SWIG_AsVal_double(obj4, &val5);
33062 if (!SWIG_IsOK(ecode5)) {
33063 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
33064 }
33065 arg5 = static_cast< double >(val5);
33066 {
33067 PyThreadState* __tstate = wxPyBeginAllowThreads();
33068 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
33069 wxPyEndAllowThreads(__tstate);
33070 if (PyErr_Occurred()) SWIG_fail;
33071 }
33072 resultobj = SWIG_Py_Void();
33073 {
33074 if (temp2)
33075 delete arg2;
33076 }
33077 return resultobj;
33078fail:
33079 {
33080 if (temp2)
33081 delete arg2;
33082 }
33083 return NULL;
33084}
33085
33086
33087SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33088 PyObject *resultobj = 0;
33089 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33090 wxString *arg2 = 0 ;
33091 wxPoint *arg3 = 0 ;
33092 double arg4 ;
33093 void *argp1 = 0 ;
33094 int res1 = 0 ;
33095 bool temp2 = false ;
33096 wxPoint temp3 ;
33097 double val4 ;
33098 int ecode4 = 0 ;
33099 PyObject * obj0 = 0 ;
33100 PyObject * obj1 = 0 ;
33101 PyObject * obj2 = 0 ;
33102 PyObject * obj3 = 0 ;
33103 char * kwnames[] = {
33104 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
33105 };
33106
33107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33109 if (!SWIG_IsOK(res1)) {
33110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33111 }
33112 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33113 {
33114 arg2 = wxString_in_helper(obj1);
33115 if (arg2 == NULL) SWIG_fail;
33116 temp2 = true;
33117 }
33118 {
33119 arg3 = &temp3;
33120 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33121 }
33122 ecode4 = SWIG_AsVal_double(obj3, &val4);
33123 if (!SWIG_IsOK(ecode4)) {
33124 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
33125 }
33126 arg4 = static_cast< double >(val4);
33127 {
33128 PyThreadState* __tstate = wxPyBeginAllowThreads();
33129 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
33130 wxPyEndAllowThreads(__tstate);
33131 if (PyErr_Occurred()) SWIG_fail;
33132 }
33133 resultobj = SWIG_Py_Void();
33134 {
33135 if (temp2)
33136 delete arg2;
33137 }
33138 return resultobj;
33139fail:
33140 {
33141 if (temp2)
33142 delete arg2;
33143 }
33144 return NULL;
33145}
33146
33147
33148SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33149 PyObject *resultobj = 0;
33150 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33151 int arg2 ;
33152 wxPoint *arg3 = (wxPoint *) 0 ;
33153 int arg4 = (int) 0 ;
33154 int arg5 = (int) 0 ;
33155 void *argp1 = 0 ;
33156 int res1 = 0 ;
33157 int val4 ;
33158 int ecode4 = 0 ;
33159 int val5 ;
33160 int ecode5 = 0 ;
33161 PyObject * obj0 = 0 ;
33162 PyObject * obj1 = 0 ;
33163 PyObject * obj2 = 0 ;
33164 PyObject * obj3 = 0 ;
33165 char * kwnames[] = {
33166 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
33167 };
33168
33169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33171 if (!SWIG_IsOK(res1)) {
33172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33173 }
33174 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33175 {
33176 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33177 if (arg3 == NULL) SWIG_fail;
33178 }
33179 if (obj2) {
33180 ecode4 = SWIG_AsVal_int(obj2, &val4);
33181 if (!SWIG_IsOK(ecode4)) {
33182 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
33183 }
33184 arg4 = static_cast< int >(val4);
33185 }
33186 if (obj3) {
33187 ecode5 = SWIG_AsVal_int(obj3, &val5);
33188 if (!SWIG_IsOK(ecode5)) {
33189 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
33190 }
33191 arg5 = static_cast< int >(val5);
33192 }
33193 {
33194 PyThreadState* __tstate = wxPyBeginAllowThreads();
33195 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
33196 wxPyEndAllowThreads(__tstate);
33197 if (PyErr_Occurred()) SWIG_fail;
33198 }
33199 resultobj = SWIG_Py_Void();
33200 {
33201 if (arg3) delete [] arg3;
33202 }
33203 return resultobj;
33204fail:
33205 {
33206 if (arg3) delete [] arg3;
33207 }
33208 return NULL;
33209}
33210
33211
33212SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33213 PyObject *resultobj = 0;
33214 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33215 int arg2 ;
33216 wxPoint *arg3 = (wxPoint *) 0 ;
33217 int arg4 = (int) 0 ;
33218 int arg5 = (int) 0 ;
33219 int arg6 = (int) wxODDEVEN_RULE ;
33220 void *argp1 = 0 ;
33221 int res1 = 0 ;
33222 int val4 ;
33223 int ecode4 = 0 ;
33224 int val5 ;
33225 int ecode5 = 0 ;
33226 int val6 ;
33227 int ecode6 = 0 ;
33228 PyObject * obj0 = 0 ;
33229 PyObject * obj1 = 0 ;
33230 PyObject * obj2 = 0 ;
33231 PyObject * obj3 = 0 ;
33232 PyObject * obj4 = 0 ;
33233 char * kwnames[] = {
33234 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
33235 };
33236
33237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33239 if (!SWIG_IsOK(res1)) {
33240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33241 }
33242 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33243 {
33244 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33245 if (arg3 == NULL) SWIG_fail;
33246 }
33247 if (obj2) {
33248 ecode4 = SWIG_AsVal_int(obj2, &val4);
33249 if (!SWIG_IsOK(ecode4)) {
33250 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
33251 }
33252 arg4 = static_cast< int >(val4);
33253 }
33254 if (obj3) {
33255 ecode5 = SWIG_AsVal_int(obj3, &val5);
33256 if (!SWIG_IsOK(ecode5)) {
33257 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
33258 }
33259 arg5 = static_cast< int >(val5);
33260 }
33261 if (obj4) {
33262 ecode6 = SWIG_AsVal_int(obj4, &val6);
33263 if (!SWIG_IsOK(ecode6)) {
33264 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
33265 }
33266 arg6 = static_cast< int >(val6);
33267 }
33268 {
33269 PyThreadState* __tstate = wxPyBeginAllowThreads();
33270 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
33271 wxPyEndAllowThreads(__tstate);
33272 if (PyErr_Occurred()) SWIG_fail;
33273 }
33274 resultobj = SWIG_Py_Void();
33275 {
33276 if (arg3) delete [] arg3;
33277 }
33278 return resultobj;
33279fail:
33280 {
33281 if (arg3) delete [] arg3;
33282 }
33283 return NULL;
33284}
33285
33286
33287SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33288 PyObject *resultobj = 0;
33289 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33290 wxString *arg2 = 0 ;
33291 wxRect *arg3 = 0 ;
33292 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
33293 int arg5 = (int) -1 ;
33294 void *argp1 = 0 ;
33295 int res1 = 0 ;
33296 bool temp2 = false ;
33297 wxRect temp3 ;
33298 int val4 ;
33299 int ecode4 = 0 ;
33300 int val5 ;
33301 int ecode5 = 0 ;
33302 PyObject * obj0 = 0 ;
33303 PyObject * obj1 = 0 ;
33304 PyObject * obj2 = 0 ;
33305 PyObject * obj3 = 0 ;
33306 PyObject * obj4 = 0 ;
33307 char * kwnames[] = {
33308 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
33309 };
33310
33311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33313 if (!SWIG_IsOK(res1)) {
33314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33315 }
33316 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33317 {
33318 arg2 = wxString_in_helper(obj1);
33319 if (arg2 == NULL) SWIG_fail;
33320 temp2 = true;
33321 }
33322 {
33323 arg3 = &temp3;
33324 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33325 }
33326 if (obj3) {
33327 ecode4 = SWIG_AsVal_int(obj3, &val4);
33328 if (!SWIG_IsOK(ecode4)) {
33329 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
33330 }
33331 arg4 = static_cast< int >(val4);
33332 }
33333 if (obj4) {
33334 ecode5 = SWIG_AsVal_int(obj4, &val5);
33335 if (!SWIG_IsOK(ecode5)) {
33336 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
33337 }
33338 arg5 = static_cast< int >(val5);
33339 }
33340 {
33341 PyThreadState* __tstate = wxPyBeginAllowThreads();
33342 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
33343 wxPyEndAllowThreads(__tstate);
33344 if (PyErr_Occurred()) SWIG_fail;
33345 }
33346 resultobj = SWIG_Py_Void();
33347 {
33348 if (temp2)
33349 delete arg2;
33350 }
33351 return resultobj;
33352fail:
33353 {
33354 if (temp2)
33355 delete arg2;
33356 }
33357 return NULL;
33358}
33359
33360
33361SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33362 PyObject *resultobj = 0;
33363 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33364 wxString *arg2 = 0 ;
33365 wxBitmap *arg3 = 0 ;
33366 wxRect *arg4 = 0 ;
33367 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
33368 int arg6 = (int) -1 ;
33369 void *argp1 = 0 ;
33370 int res1 = 0 ;
33371 bool temp2 = false ;
33372 void *argp3 = 0 ;
33373 int res3 = 0 ;
33374 wxRect temp4 ;
33375 int val5 ;
33376 int ecode5 = 0 ;
33377 int val6 ;
33378 int ecode6 = 0 ;
33379 PyObject * obj0 = 0 ;
33380 PyObject * obj1 = 0 ;
33381 PyObject * obj2 = 0 ;
33382 PyObject * obj3 = 0 ;
33383 PyObject * obj4 = 0 ;
33384 PyObject * obj5 = 0 ;
33385 char * kwnames[] = {
33386 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
33387 };
33388
33389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33391 if (!SWIG_IsOK(res1)) {
33392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33393 }
33394 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33395 {
33396 arg2 = wxString_in_helper(obj1);
33397 if (arg2 == NULL) SWIG_fail;
33398 temp2 = true;
33399 }
33400 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
33401 if (!SWIG_IsOK(res3)) {
33402 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
33403 }
33404 if (!argp3) {
33405 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
33406 }
33407 arg3 = reinterpret_cast< wxBitmap * >(argp3);
33408 {
33409 arg4 = &temp4;
33410 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33411 }
33412 if (obj4) {
33413 ecode5 = SWIG_AsVal_int(obj4, &val5);
33414 if (!SWIG_IsOK(ecode5)) {
33415 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
33416 }
33417 arg5 = static_cast< int >(val5);
33418 }
33419 if (obj5) {
33420 ecode6 = SWIG_AsVal_int(obj5, &val6);
33421 if (!SWIG_IsOK(ecode6)) {
33422 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
33423 }
33424 arg6 = static_cast< int >(val6);
33425 }
33426 {
33427 PyThreadState* __tstate = wxPyBeginAllowThreads();
33428 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
33429 wxPyEndAllowThreads(__tstate);
33430 if (PyErr_Occurred()) SWIG_fail;
33431 }
33432 resultobj = SWIG_Py_Void();
33433 {
33434 if (temp2)
33435 delete arg2;
33436 }
33437 return resultobj;
33438fail:
33439 {
33440 if (temp2)
33441 delete arg2;
33442 }
33443 return NULL;
33444}
33445
33446
33447SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33448 PyObject *resultobj = 0;
33449 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33450 int arg2 ;
33451 wxPoint *arg3 = (wxPoint *) 0 ;
33452 void *argp1 = 0 ;
33453 int res1 = 0 ;
33454 PyObject * obj0 = 0 ;
33455 PyObject * obj1 = 0 ;
33456 char * kwnames[] = {
33457 (char *) "self",(char *) "points", NULL
33458 };
33459
33460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
33461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33462 if (!SWIG_IsOK(res1)) {
33463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33464 }
33465 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33466 {
33467 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33468 if (arg3 == NULL) SWIG_fail;
33469 }
33470 {
33471 PyThreadState* __tstate = wxPyBeginAllowThreads();
33472 (arg1)->DrawSpline(arg2,arg3);
33473 wxPyEndAllowThreads(__tstate);
33474 if (PyErr_Occurred()) SWIG_fail;
33475 }
33476 resultobj = SWIG_Py_Void();
33477 {
33478 if (arg3) delete [] arg3;
33479 }
33480 return resultobj;
33481fail:
33482 {
33483 if (arg3) delete [] arg3;
33484 }
33485 return NULL;
33486}
33487
33488
33489SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33490 PyObject *resultobj = 0;
33491 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33492 void *argp1 = 0 ;
33493 int res1 = 0 ;
33494 PyObject *swig_obj[1] ;
33495
33496 if (!args) SWIG_fail;
33497 swig_obj[0] = args;
33498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33499 if (!SWIG_IsOK(res1)) {
33500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33501 }
33502 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33503 {
33504 PyThreadState* __tstate = wxPyBeginAllowThreads();
33505 (arg1)->Clear();
33506 wxPyEndAllowThreads(__tstate);
33507 if (PyErr_Occurred()) SWIG_fail;
33508 }
33509 resultobj = SWIG_Py_Void();
33510 return resultobj;
33511fail:
33512 return NULL;
33513}
33514
33515
33516SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33517 PyObject *resultobj = 0;
33518 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33519 wxFont *arg2 = 0 ;
33520 void *argp1 = 0 ;
33521 int res1 = 0 ;
33522 void *argp2 = 0 ;
33523 int res2 = 0 ;
33524 PyObject * obj0 = 0 ;
33525 PyObject * obj1 = 0 ;
33526 char * kwnames[] = {
33527 (char *) "self",(char *) "font", NULL
33528 };
33529
33530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
33531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33532 if (!SWIG_IsOK(res1)) {
33533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33534 }
33535 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33536 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
33537 if (!SWIG_IsOK(res2)) {
33538 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
33539 }
33540 if (!argp2) {
33541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
33542 }
33543 arg2 = reinterpret_cast< wxFont * >(argp2);
33544 {
33545 PyThreadState* __tstate = wxPyBeginAllowThreads();
33546 (arg1)->SetFont((wxFont const &)*arg2);
33547 wxPyEndAllowThreads(__tstate);
33548 if (PyErr_Occurred()) SWIG_fail;
33549 }
33550 resultobj = SWIG_Py_Void();
33551 return resultobj;
33552fail:
33553 return NULL;
33554}
33555
33556
33557SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33558 PyObject *resultobj = 0;
33559 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33560 wxPen *arg2 = 0 ;
33561 void *argp1 = 0 ;
33562 int res1 = 0 ;
33563 void *argp2 = 0 ;
33564 int res2 = 0 ;
33565 PyObject * obj0 = 0 ;
33566 PyObject * obj1 = 0 ;
33567 char * kwnames[] = {
33568 (char *) "self",(char *) "pen", NULL
33569 };
33570
33571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
33572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33573 if (!SWIG_IsOK(res1)) {
33574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33575 }
33576 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33577 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
33578 if (!SWIG_IsOK(res2)) {
33579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
33580 }
33581 if (!argp2) {
33582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
33583 }
33584 arg2 = reinterpret_cast< wxPen * >(argp2);
33585 {
33586 PyThreadState* __tstate = wxPyBeginAllowThreads();
33587 (arg1)->SetPen((wxPen const &)*arg2);
33588 wxPyEndAllowThreads(__tstate);
33589 if (PyErr_Occurred()) SWIG_fail;
33590 }
33591 resultobj = SWIG_Py_Void();
33592 return resultobj;
33593fail:
33594 return NULL;
33595}
33596
33597
33598SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33599 PyObject *resultobj = 0;
33600 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33601 wxBrush *arg2 = 0 ;
33602 void *argp1 = 0 ;
33603 int res1 = 0 ;
33604 void *argp2 = 0 ;
33605 int res2 = 0 ;
33606 PyObject * obj0 = 0 ;
33607 PyObject * obj1 = 0 ;
33608 char * kwnames[] = {
33609 (char *) "self",(char *) "brush", NULL
33610 };
33611
33612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
33613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33614 if (!SWIG_IsOK(res1)) {
33615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33616 }
33617 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33618 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
33619 if (!SWIG_IsOK(res2)) {
33620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
33621 }
33622 if (!argp2) {
33623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
33624 }
33625 arg2 = reinterpret_cast< wxBrush * >(argp2);
33626 {
33627 PyThreadState* __tstate = wxPyBeginAllowThreads();
33628 (arg1)->SetBrush((wxBrush const &)*arg2);
33629 wxPyEndAllowThreads(__tstate);
33630 if (PyErr_Occurred()) SWIG_fail;
33631 }
33632 resultobj = SWIG_Py_Void();
33633 return resultobj;
33634fail:
33635 return NULL;
33636}
33637
33638
33639SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33640 PyObject *resultobj = 0;
33641 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33642 wxBrush *arg2 = 0 ;
33643 void *argp1 = 0 ;
33644 int res1 = 0 ;
33645 void *argp2 = 0 ;
33646 int res2 = 0 ;
33647 PyObject * obj0 = 0 ;
33648 PyObject * obj1 = 0 ;
33649 char * kwnames[] = {
33650 (char *) "self",(char *) "brush", NULL
33651 };
33652
33653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
33654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33655 if (!SWIG_IsOK(res1)) {
33656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33657 }
33658 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33659 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
33660 if (!SWIG_IsOK(res2)) {
33661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
33662 }
33663 if (!argp2) {
33664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
33665 }
33666 arg2 = reinterpret_cast< wxBrush * >(argp2);
33667 {
33668 PyThreadState* __tstate = wxPyBeginAllowThreads();
33669 (arg1)->SetBackground((wxBrush const &)*arg2);
33670 wxPyEndAllowThreads(__tstate);
33671 if (PyErr_Occurred()) SWIG_fail;
33672 }
33673 resultobj = SWIG_Py_Void();
33674 return resultobj;
33675fail:
33676 return NULL;
33677}
33678
33679
33680SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33681 PyObject *resultobj = 0;
33682 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33683 int arg2 ;
33684 void *argp1 = 0 ;
33685 int res1 = 0 ;
33686 int val2 ;
33687 int ecode2 = 0 ;
33688 PyObject * obj0 = 0 ;
33689 PyObject * obj1 = 0 ;
33690 char * kwnames[] = {
33691 (char *) "self",(char *) "mode", NULL
33692 };
33693
33694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
33695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33696 if (!SWIG_IsOK(res1)) {
33697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33698 }
33699 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33700 ecode2 = SWIG_AsVal_int(obj1, &val2);
33701 if (!SWIG_IsOK(ecode2)) {
33702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
33703 }
33704 arg2 = static_cast< int >(val2);
33705 {
33706 PyThreadState* __tstate = wxPyBeginAllowThreads();
33707 (arg1)->SetBackgroundMode(arg2);
33708 wxPyEndAllowThreads(__tstate);
33709 if (PyErr_Occurred()) SWIG_fail;
33710 }
33711 resultobj = SWIG_Py_Void();
33712 return resultobj;
33713fail:
33714 return NULL;
33715}
33716
33717
33718SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33719 PyObject *resultobj = 0;
33720 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33721 wxPalette *arg2 = 0 ;
33722 void *argp1 = 0 ;
33723 int res1 = 0 ;
33724 void *argp2 = 0 ;
33725 int res2 = 0 ;
33726 PyObject * obj0 = 0 ;
33727 PyObject * obj1 = 0 ;
33728 char * kwnames[] = {
33729 (char *) "self",(char *) "palette", NULL
33730 };
33731
33732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) 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_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33736 }
33737 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33738 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
33739 if (!SWIG_IsOK(res2)) {
33740 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
33741 }
33742 if (!argp2) {
33743 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
33744 }
33745 arg2 = reinterpret_cast< wxPalette * >(argp2);
33746 {
33747 PyThreadState* __tstate = wxPyBeginAllowThreads();
33748 (arg1)->SetPalette((wxPalette const &)*arg2);
33749 wxPyEndAllowThreads(__tstate);
33750 if (PyErr_Occurred()) SWIG_fail;
33751 }
33752 resultobj = SWIG_Py_Void();
33753 return resultobj;
33754fail:
33755 return NULL;
33756}
33757
33758
33759SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33760 PyObject *resultobj = 0;
33761 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33762 wxColour *arg2 = 0 ;
33763 void *argp1 = 0 ;
33764 int res1 = 0 ;
33765 wxColour temp2 ;
33766 PyObject * obj0 = 0 ;
33767 PyObject * obj1 = 0 ;
33768 char * kwnames[] = {
33769 (char *) "self",(char *) "colour", NULL
33770 };
33771
33772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
33773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33774 if (!SWIG_IsOK(res1)) {
33775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33776 }
33777 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33778 {
33779 arg2 = &temp2;
33780 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33781 }
33782 {
33783 PyThreadState* __tstate = wxPyBeginAllowThreads();
33784 (arg1)->SetTextForeground((wxColour const &)*arg2);
33785 wxPyEndAllowThreads(__tstate);
33786 if (PyErr_Occurred()) SWIG_fail;
33787 }
33788 resultobj = SWIG_Py_Void();
33789 return resultobj;
33790fail:
33791 return NULL;
33792}
33793
33794
33795SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33796 PyObject *resultobj = 0;
33797 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33798 wxColour *arg2 = 0 ;
33799 void *argp1 = 0 ;
33800 int res1 = 0 ;
33801 wxColour temp2 ;
33802 PyObject * obj0 = 0 ;
33803 PyObject * obj1 = 0 ;
33804 char * kwnames[] = {
33805 (char *) "self",(char *) "colour", NULL
33806 };
33807
33808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
33809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33810 if (!SWIG_IsOK(res1)) {
33811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33812 }
33813 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33814 {
33815 arg2 = &temp2;
33816 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33817 }
33818 {
33819 PyThreadState* __tstate = wxPyBeginAllowThreads();
33820 (arg1)->SetTextBackground((wxColour const &)*arg2);
33821 wxPyEndAllowThreads(__tstate);
33822 if (PyErr_Occurred()) SWIG_fail;
33823 }
33824 resultobj = SWIG_Py_Void();
33825 return resultobj;
33826fail:
33827 return NULL;
33828}
33829
33830
33831SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33832 PyObject *resultobj = 0;
33833 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33834 int arg2 ;
33835 void *argp1 = 0 ;
33836 int res1 = 0 ;
33837 int val2 ;
33838 int ecode2 = 0 ;
33839 PyObject * obj0 = 0 ;
33840 PyObject * obj1 = 0 ;
33841 char * kwnames[] = {
33842 (char *) "self",(char *) "function", NULL
33843 };
33844
33845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
33846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33847 if (!SWIG_IsOK(res1)) {
33848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33849 }
33850 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33851 ecode2 = SWIG_AsVal_int(obj1, &val2);
33852 if (!SWIG_IsOK(ecode2)) {
33853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
33854 }
33855 arg2 = static_cast< int >(val2);
33856 {
33857 PyThreadState* __tstate = wxPyBeginAllowThreads();
33858 (arg1)->SetLogicalFunction(arg2);
33859 wxPyEndAllowThreads(__tstate);
33860 if (PyErr_Occurred()) SWIG_fail;
33861 }
33862 resultobj = SWIG_Py_Void();
33863 return resultobj;
33864fail:
33865 return NULL;
33866}
33867
33868
33869SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33870 PyObject *obj;
33871 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33872 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
33873 return SWIG_Py_Void();
33874}
33875
33876SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33877 return SWIG_Python_InitShadowInstance(args);
33878}
33879
33880static PyMethodDef SwigMethods[] = {
33881 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
33882 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
33883 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
33884 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
33885 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
33886 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
33887 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
33888 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
33889 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
33890 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
33891 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
33892 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 33893 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
27e45892
RD
33894 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
33895 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
33896 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
33897 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
33898 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
33899 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
33900 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
33901 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 33902 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
33903 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
33904 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
33905 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
33906 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
33907 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
33908 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
33909 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
33910 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
33911 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
33912 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
33913 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
33914 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
33915 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
33916 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
33917 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
33918 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
33919 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
33920 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
33921 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
33922 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
33923 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
33924 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
33925 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
33926 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
33927 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
33928 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
33929 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
33930 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
33931 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
33932 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
33933 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
33934 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
33935 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
33936 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
33937 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
33938 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
33939 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
33940 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
33941 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
33942 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
33943 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
33944 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
33945 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
33946 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
33947 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
33948 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
33949 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
33950 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
33951 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
33952 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
33953 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
33954 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
33955 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
33956 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
33957 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
33958 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
33959 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
33960 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
33961 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
33962 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
33963 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
33964 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
33965 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
33966 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
33967 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
33968 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
33969 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
33970 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
33971 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
33972 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
33973 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
33974 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
33975 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
33976 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
33977 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
33978 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
33979 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
33980 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
33981 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
33982 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
33983 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
33984 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
33985 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
33986 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
33987 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
33988 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
33989 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
33990 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
33991 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
33992 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
33993 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
33994 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
33995 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
33996 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
33997 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
33998 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
33999 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34000 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34001 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34002 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34003 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
34004 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
34005 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
34006 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
34007 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
34008 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
34009 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
34010 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
34011 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
34012 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
34013 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
34014 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
34015 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34016 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
34017 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
34018 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34019 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34020 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34021 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34022 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34023 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
34024 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
34025 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
34026 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
34027 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
34028 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
34029 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
34030 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
34031 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
34032 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
34033 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34034 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34035 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34036 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
34037 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
34038 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
34039 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
34040 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
34041 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34042 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34043 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34044 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34045 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
34046 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
34047 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34048 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
34049 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
34050 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
34051 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
34052 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
34053 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
34054 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
34055 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
34056 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
34057 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34058 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34059 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
34060 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34061 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34062 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34063 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
34064 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
34065 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
34066 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
34067 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
34068 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
34069 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
34070 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
34071 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
34072 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
34073 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34074 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34075 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
34076 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
34077 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
34078 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34079 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
34080 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34081 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
34082 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
34083 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
34084 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
34085 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
34086 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34087 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 34088 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
34089 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
34090 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
34091 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34092 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
34093 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
34094 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34095 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
34096 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
34097 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34098 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
34099 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34100 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34101 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
34102 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
34103 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
34104 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
34105 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
34106 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
34107 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
34108 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
34109 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
34110 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
34111 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
34112 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
34113 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
34114 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
34115 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
34116 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
34117 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
34118 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
34119 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
34120 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
34121 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
34122 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
34123 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
34124 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
34125 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
34126 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
34127 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
34128 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
34129 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34130 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34131 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34132 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34133 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34134 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34135 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34136 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34137 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
34138 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
34139 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
34140 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
34141 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
34142 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
34143 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
34144 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
34145 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
34146 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
34147 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
34148 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
34149 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34150 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
34151 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
34152 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
34153 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34154 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34155 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
34156 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
34157 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
34158 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34159 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34160 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
34161 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34162 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
34163 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
34164 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34165 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
34166 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
34167 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34168 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
34169 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
34170 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
34171 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
34172 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
34173 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
34174 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
34175 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34176 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
34177 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
34178 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34179 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34180 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
34181 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
34182 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34183 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
34184 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
34185 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
34186 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
34187 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
34188 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
34189 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
34190 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
34191 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
34192 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
34193 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
34194 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
34195 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
34196 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34197 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34198 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34199 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34200 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34201 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34202 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34203 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34204 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34205 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
34206 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
34207 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
34208 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
34209 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
34210 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
34211 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
34212 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
34213 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34214 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
34215 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
34216 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
34217 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
34218 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34219 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
34220 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
34221 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
34222 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
34223 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
34224 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
34225 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
34226 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
34227 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
34228 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
34229 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
34230 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
34231 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
34232 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
34233 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
34234 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
34235 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
34236 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
34237 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
34238 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
34239 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
34240 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
34241 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
34242 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
34243 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
34244 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
34245 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
34246 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 34247 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
34248 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
34249 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34250 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
34251 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34252 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
34253 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
34254 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
34255 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
34256 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
34257 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
34258 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
34259 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34260 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
34261 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
34262 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
34263 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
0085ce49
RD
34264 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
34265 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
34266 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
34267 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
34268 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
34269 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
34270 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
34271 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
34272 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
34273 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
34274 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
34275 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
34276 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
34277 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34278 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
34279 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
34280 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34281 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34282 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
34283 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34284 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
34285 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34286 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
34287 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34288 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
34289 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
34290 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
34291 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34292 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34293 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34294 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34295 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34296 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34297 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34298 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34299 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34300 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34301 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34302 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
34303 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
34304 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34305 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34306 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34307 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34308 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34309 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
34310 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34311 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
34312 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34313 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
34314 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34315 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34316 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34317 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34318 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
34319 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
34320 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
34321 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34322 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34323 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
34324 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
34325 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
34326 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
34327 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
34328 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
34329 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34330 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34331 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34332 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34333 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
34334 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
34335 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
34336 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
34337 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
34338 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
34339 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
34340 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34341 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34342 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34343 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
34344 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
34345 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
34346 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
34347 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
34348 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
34349 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
34350 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
34351 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
34352 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
34353 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
34354 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
34355 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
34356 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
34357 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
34358 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
34359 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
34360 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
34361 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
34362 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
34363 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
34364 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
34365 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
34366 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
34367 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
34368 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
34369 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34370 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
34371 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
34372 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
34373 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
34374 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
34375 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
34376 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
34377 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
34378 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
34379 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34380 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
34381 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
34382 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
34383 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34384 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
34385 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
34386 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
34387 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
34388 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
34389 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34390 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
34391 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
34392 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
34393 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
34394 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
34395 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
34396 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
34397 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
34398 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
34399 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
34400 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
34401 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
34402 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
34403 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
34404 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
34405 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
34406 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
34407 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
34408 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
34409 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
34410 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
34411 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
34412 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
34413 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34414 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
34415 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
34416 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
34417 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
34418 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
34419 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
34420 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
34421 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
34422 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
34423 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
34424 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
0085ce49
RD
34425 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
34426 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
34427 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
34428 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34429 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
34430 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
0085ce49
RD
34431 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
34432 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
34433 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
34434 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
34435 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
34436 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
34437 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
34438 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
34439 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
34440 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
34441 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
34442 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
34443 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
34444 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
34445 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
34446 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
34447 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
34448 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
34449 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
34450 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
34451 { (char *)"GraphicsPath_MoveToPoint", (PyCFunction) _wrap_GraphicsPath_MoveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34452 { (char *)"GraphicsPath_AddLineToPoint", (PyCFunction) _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34453 { (char *)"GraphicsPath_AddCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34454 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
34455 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
34456 { (char *)"GraphicsPath_AddArc", (PyCFunction) _wrap_GraphicsPath_AddArc, METH_VARARGS | METH_KEYWORDS, NULL},
34457 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34458 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34459 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34460 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34461 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
34462 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
34463 { (char *)"GraphicsContext_Create", (PyCFunction) _wrap_GraphicsContext_Create, METH_VARARGS | METH_KEYWORDS, NULL},
34464 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
34465 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
34466 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
34467 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
34468 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
34469 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
34470 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
34471 { (char *)"GraphicsContext_SetPen", (PyCFunction) _wrap_GraphicsContext_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34472 { (char *)"GraphicsContext_SetBrush", (PyCFunction) _wrap_GraphicsContext_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34473 { (char *)"GraphicsContext_SetLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34474 { (char *)"GraphicsContext_SetRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34475 { (char *)"GraphicsContext_SetFont", (PyCFunction) _wrap_GraphicsContext_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34476 { (char *)"GraphicsContext_SetTextColor", (PyCFunction) _wrap_GraphicsContext_SetTextColor, METH_VARARGS | METH_KEYWORDS, NULL},
34477 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
34478 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
34479 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
34480 { (char *)"GraphicsContext_DrawText", _wrap_GraphicsContext_DrawText, METH_VARARGS, NULL},
34481 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34482 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
34483 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34484 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34485 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
34486 { (char *)"GraphicsContext_StrokeLines", _wrap_GraphicsContext_StrokeLines, METH_VARARGS, NULL},
34487 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
34488 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34489 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
34490 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34491 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
34492 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
34493 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
34494 { (char *)"GCDC_GetGraphicContext", (PyCFunction)_wrap_GCDC_GetGraphicContext, METH_O, NULL},
34495 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
34496 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
0085ce49
RD
34497 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
34498 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
34499 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
34500 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
34501 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34502 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34503 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34504 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
34505 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
34506 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
34507 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
34508 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
34509 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
34510 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
34511 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
50efceee
RD
34512 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
34513 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
34514 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
34515 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
34516 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34517 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34518 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
34519 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34520 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34521 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
34522 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
34523 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
34524 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
34525 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
34526 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
0085ce49 34527 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 34528 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 34529 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 34530 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
0085ce49 34531 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 34532 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 34533 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 34534 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
50efceee
RD
34535 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
34536 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
34537 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
34538 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
0085ce49
RD
34539 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
34540 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
34541 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
34542 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
34543 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
34544 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
34545 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
34546 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
50efceee
RD
34547 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
34548 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
34549 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
34550 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
0085ce49
RD
34551 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
34552 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
34553 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
34554 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
34555 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
34556 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
34557 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
34558 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
34559 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
34560 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
34561 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
34562 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34563 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
34564 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34565 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
34566 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
34567 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
34568 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
34569 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
34570 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
34571 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
34572 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
34573 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
34574 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
34575 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
34576 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
34577 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
34578 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
34579 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
34580 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
34581 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
34582 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
34583 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
34584 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
34585 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
34586 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
34587 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
34588 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
34589 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
34590 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
34591 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
0085ce49
RD
34592 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
34593 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
34594 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
34595 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
34596 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
34597 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
34598 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
34599 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
34600 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
34601 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
34602 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
34603 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
34604 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
34605 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
34606 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
01f6b6d3
RD
34607 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
34608 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
34609 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
34610 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
34611 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
34612 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
34613 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
34614 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34615 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
34616 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
34617 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
34618 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
34619 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
34620 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
34621 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
34622 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
34623 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
34624 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
34625 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
34626 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
34627 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
34628 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
34629 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
34630 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
34631 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
34632 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
34633 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
34634 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
34635 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
34636 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
34637 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
34638 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34639 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
34640 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34641 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
34642 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34643 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
34644 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34645 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
34646 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
34647 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
34648 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34649 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34650 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34651 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34652 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34653 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34654 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34655 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34656 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34657 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34658 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34659 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
34660 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
34661 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34662 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34663 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34664 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34665 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34666 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
34667 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34668 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
34669 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34670 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
34671 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
34672 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34673 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34674 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
34675 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
34676 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34677 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34678 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34679 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34680 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
34681 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
34682 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
34683 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34684 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
34685 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
34686 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
0085ce49
RD
34687 { NULL, NULL, 0, NULL }
34688};
34689
34690
34691/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
34692
72ef6efb
RD
34693static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
34694 return (void *)((wxClientDC *) ((wxPaintDC *) x));
34695}
0085ce49
RD
34696static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
34697 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
34698}
34699static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
34700 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
34701}
72ef6efb
RD
34702static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
34703 return (void *)((wxWindowDC *) ((wxClientDC *) x));
34704}
34705static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
34706 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
34707}
fc46b7f3
RD
34708static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
34709 return (void *)((wxLocale *) ((wxPyLocale *) x));
34710}
0085ce49
RD
34711static void *_p_wxIconTo_p_wxGDIObject(void *x) {
34712 return (void *)((wxGDIObject *) ((wxIcon *) x));
34713}
34714static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
34715 return (void *)((wxGDIObject *) ((wxPalette *) x));
34716}
34717static void *_p_wxPenTo_p_wxGDIObject(void *x) {
34718 return (void *)((wxGDIObject *) ((wxPen *) x));
34719}
34720static void *_p_wxFontTo_p_wxGDIObject(void *x) {
34721 return (void *)((wxGDIObject *) ((wxFont *) x));
34722}
34723static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
34724 return (void *)((wxGDIObject *) ((wxCursor *) x));
34725}
34726static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
34727 return (void *)((wxGDIObject *) ((wxBitmap *) x));
34728}
34729static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
34730 return (void *)((wxGDIObject *) ((wxRegion *) x));
34731}
34732static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
34733 return (void *)((wxGDIObject *) ((wxBrush *) x));
34734}
72ef6efb
RD
34735static void *_p_wxGCDCTo_p_wxDC(void *x) {
34736 return (void *)((wxDC *) ((wxGCDC *) x));
34737}
0085ce49
RD
34738static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
34739 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
34740}
34741static void *_p_wxScreenDCTo_p_wxDC(void *x) {
34742 return (void *)((wxDC *) ((wxScreenDC *) x));
34743}
34744static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
34745 return (void *)((wxDC *) ((wxMirrorDC *) x));
34746}
34747static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
34748 return (void *)((wxDC *) ((wxMemoryDC *) x));
34749}
34750static void *_p_wxWindowDCTo_p_wxDC(void *x) {
34751 return (void *)((wxDC *) ((wxWindowDC *) x));
34752}
34753static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
34754 return (void *)((wxDC *) ((wxMetaFileDC *) x));
34755}
34756static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
34757 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
34758}
34759static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 34760 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
0085ce49
RD
34761}
34762static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 34763 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
0085ce49
RD
34764}
34765static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
34766 return (void *)((wxDC *) ((wxPostScriptDC *) x));
34767}
34768static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
34769 return (void *)((wxDC *) ((wxPrinterDC *) x));
34770}
50efceee
RD
34771static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
34772 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
34773}
34774static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
34775 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
34776}
34777static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
34778 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
34779}
0085ce49
RD
34780static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
34781 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
34782}
34783static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
34784 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
34785}
34786static void *_p_wxPenTo_p_wxObject(void *x) {
34787 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
34788}
34789static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
34790 return (void *)((wxObject *) ((wxRegionIterator *) x));
34791}
0085ce49
RD
34792static void *_p_wxSizerItemTo_p_wxObject(void *x) {
34793 return (void *)((wxObject *) ((wxSizerItem *) x));
34794}
34e0a3bb
RD
34795static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
34796 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
34797}
0085ce49
RD
34798static void *_p_wxScrollEventTo_p_wxObject(void *x) {
34799 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
34800}
34801static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
34802 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
34803}
34804static void *_p_wxIconTo_p_wxObject(void *x) {
34805 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
34806}
34807static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
34808 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
34809}
34810static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
34811 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
34812}
34813static void *_p_wxSizerTo_p_wxObject(void *x) {
34814 return (void *)((wxObject *) ((wxSizer *) x));
34815}
34816static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
34817 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
34818}
34819static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
34820 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
34821}
0085ce49
RD
34822static void *_p_wxEventTo_p_wxObject(void *x) {
34823 return (void *)((wxObject *) ((wxEvent *) x));
34824}
34825static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
34826 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
34827}
34828static void *_p_wxGridSizerTo_p_wxObject(void *x) {
34829 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
34830}
34831static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
34832 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
34833}
27e45892
RD
34834static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
34835 return (void *)((wxObject *) ((wxPseudoDC *) x));
34836}
2131d850
RD
34837static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
34838 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
34839}
0085ce49
RD
34840static void *_p_wxPaintEventTo_p_wxObject(void *x) {
34841 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
34842}
34843static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
34844 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
34845}
34846static void *_p_wxDCTo_p_wxObject(void *x) {
34847 return (void *)((wxObject *) ((wxDC *) x));
34848}
34849static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
34850 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
34851}
34852static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
34853 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
34854}
34855static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
34856 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
34857}
34858static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
34859 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
34860}
34861static void *_p_wxControlTo_p_wxObject(void *x) {
34862 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
34863}
34864static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
34865 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
34866}
34867static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 34868 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
0085ce49
RD
34869}
34870static void *_p_wxFSFileTo_p_wxObject(void *x) {
34871 return (void *)((wxObject *) ((wxFSFile *) x));
34872}
34873static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
34874 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
34875}
34876static void *_p_wxRegionTo_p_wxObject(void *x) {
34877 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
34878}
34879static void *_p_wxPySizerTo_p_wxObject(void *x) {
34880 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
34881}
34882static void *_p_wxWindowDCTo_p_wxObject(void *x) {
34883 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
34884}
34885static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
34886 return (void *)((wxObject *) ((wxGDIObject *) x));
34887}
34888static void *_p_wxEffectsTo_p_wxObject(void *x) {
34889 return (void *)((wxObject *) ((wxEffects *) x));
34890}
34891static void *_p_wxPyEventTo_p_wxObject(void *x) {
34892 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
34893}
34894static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
34895 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
34896}
34897static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
34898 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
34899}
34900static void *_p_wxShowEventTo_p_wxObject(void *x) {
34901 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
34902}
34903static void *_p_wxMenuItemTo_p_wxObject(void *x) {
34904 return (void *)((wxObject *) ((wxMenuItem *) x));
34905}
34906static void *_p_wxDateEventTo_p_wxObject(void *x) {
34907 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
34908}
34909static void *_p_wxIdleEventTo_p_wxObject(void *x) {
34910 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
34911}
34912static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
34913 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
34914}
34915static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
34916 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
34917}
34918static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
34919 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
34920}
34921static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
34922 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
34923}
34924static void *_p_wxSizeEventTo_p_wxObject(void *x) {
34925 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
34926}
34927static void *_p_wxMoveEventTo_p_wxObject(void *x) {
34928 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
34929}
34930static void *_p_wxActivateEventTo_p_wxObject(void *x) {
34931 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
34932}
34933static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
34934 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
34935}
34936static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
34937 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
34938}
34939static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
34940 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
34941}
34942static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
34943 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
34944}
34945static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
34946 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
34947}
34948static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
34949 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
34950}
34951static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
34952 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
34953}
34954static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
34955 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
34956}
34957static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
34958 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
34959}
34960static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
34961 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
34962}
34963static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
34964 return (void *)((wxObject *) ((wxImageHandler *) x));
34965}
34966static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
34967 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
34968}
34969static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
34970 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
34971}
34972static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
34973 return (void *)((wxObject *) ((wxEvtHandler *) x));
34974}
34e0a3bb
RD
34975static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
34976 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
34977}
0085ce49
RD
34978static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
34979 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
34980}
34981static void *_p_wxPaintDCTo_p_wxObject(void *x) {
72ef6efb 34982 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
0085ce49
RD
34983}
34984static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
34985 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
34986}
34987static void *_p_wxScreenDCTo_p_wxObject(void *x) {
34988 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
34989}
34990static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
34991 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
34992}
34993static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
34994 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
34995}
34996static void *_p_wxImageTo_p_wxObject(void *x) {
34997 return (void *)((wxObject *) ((wxImage *) x));
34998}
34999static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
35000 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
35001}
35002static void *_p_wxPaletteTo_p_wxObject(void *x) {
35003 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
35004}
35005static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
35006 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
35007}
35008static void *_p_wxImageListTo_p_wxObject(void *x) {
35009 return (void *)((wxObject *) ((wxImageList *) x));
35010}
72ef6efb
RD
35011static void *_p_wxGCDCTo_p_wxObject(void *x) {
35012 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
35013}
0085ce49
RD
35014static void *_p_wxCursorTo_p_wxObject(void *x) {
35015 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
35016}
35017static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
35018 return (void *)((wxObject *) ((wxEncodingConverter *) x));
35019}
35020static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
35021 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
35022}
35023static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
35024 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
35025}
35026static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
35027 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
35028}
35029static void *_p_wxKeyEventTo_p_wxObject(void *x) {
35030 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
35031}
35032static void *_p_wxWindowTo_p_wxObject(void *x) {
35033 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
35034}
35035static void *_p_wxMenuTo_p_wxObject(void *x) {
35036 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
35037}
35038static void *_p_wxMenuBarTo_p_wxObject(void *x) {
35039 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
35040}
35041static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
35042 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
35043}
0085ce49
RD
35044static void *_p_wxFileSystemTo_p_wxObject(void *x) {
35045 return (void *)((wxObject *) ((wxFileSystem *) x));
35046}
35047static void *_p_wxBitmapTo_p_wxObject(void *x) {
35048 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
35049}
35050static void *_p_wxMaskTo_p_wxObject(void *x) {
35051 return (void *)((wxObject *) ((wxMask *) x));
35052}
35053static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
35054 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
35055}
35056static void *_p_wxMenuEventTo_p_wxObject(void *x) {
35057 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
35058}
35059static void *_p_wxPyAppTo_p_wxObject(void *x) {
35060 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
35061}
35062static void *_p_wxCloseEventTo_p_wxObject(void *x) {
35063 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
35064}
35065static void *_p_wxMouseEventTo_p_wxObject(void *x) {
35066 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
35067}
35068static void *_p_wxEraseEventTo_p_wxObject(void *x) {
35069 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
35070}
35071static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
35072 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
35073}
35074static void *_p_wxCommandEventTo_p_wxObject(void *x) {
35075 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
35076}
35077static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
35078 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
35079}
35080static void *_p_wxFocusEventTo_p_wxObject(void *x) {
35081 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
35082}
35083static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
35084 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
35085}
35086static void *_p_wxFontTo_p_wxObject(void *x) {
35087 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
35088}
35089static void *_p_wxBrushTo_p_wxObject(void *x) {
35090 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
35091}
35092static void *_p_wxMetaFileTo_p_wxObject(void *x) {
35093 return (void *)((wxObject *) ((wxMetaFile *) x));
35094}
35095static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
35096 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
35097}
35098static void *_p_wxColourTo_p_wxObject(void *x) {
35099 return (void *)((wxObject *) ((wxColour *) x));
35100}
0085ce49
RD
35101static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
35102 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
35103}
35104static void *_p_wxValidatorTo_p_wxObject(void *x) {
35105 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
35106}
35107static void *_p_wxControlTo_p_wxWindow(void *x) {
35108 return (void *)((wxWindow *) ((wxControl *) x));
35109}
35110static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
35111 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
35112}
35113static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
35114 return (void *)((wxWindow *) ((wxMenuBar *) x));
35115}
fc46b7f3
RD
35116static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
35117 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
35118}
35119static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
35120 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
35121}
35122static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
0085ce49 35123static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 35124static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
0085ce49
RD
35125static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
35126static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
35127static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
35128static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
35129static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
fc46b7f3
RD
35130static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
35131static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
72ef6efb 35132static swig_type_info _swigt__p_wxArrayDouble = {"_p_wxArrayDouble", "wxArrayDouble *", 0, 0, (void*)0, 0};
0085ce49
RD
35133static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
35134static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
35135static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
35136static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
35137static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 35138static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
0085ce49 35139static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
72ef6efb 35140static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
0085ce49
RD
35141static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
35142static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
35143static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
35144static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
35145static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
35146static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
35147static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
35148static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
35149static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
35150static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
35151static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 35152static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
50efceee 35153static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
0085ce49 35154static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
72ef6efb
RD
35155static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
35156static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
33d6fd3b 35157static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
0085ce49
RD
35158static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
35159static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
35160static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
35161static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
35162static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
35163static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
35164static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
35165static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
35166static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
35167static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
35168static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
35169static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
35170static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
35171static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
35172static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
35173static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
0085ce49
RD
35174static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
35175static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
0085ce49 35176static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 35177static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
0085ce49
RD
35178static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
35179static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
35180static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
35181static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
35182static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
35183static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
35184static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
35185static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
35186static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
35187static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
35188static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
35189static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 35190static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
0085ce49
RD
35191static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
35192static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
35193static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
35194static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
35195static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
35196static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
35197static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
35198static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
35199static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
35200static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
35201static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
35202static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
35203static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
35204static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
35205static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
35206static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
35207static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
35208static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
35209static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
35210static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
35211static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
35212static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
35213static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
0085ce49
RD
35214static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
35215static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
35216static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
35217static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
35218static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
35219static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
35220static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
35221static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
72ef6efb 35222static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 35223static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 35224static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
0085ce49
RD
35225static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
35226static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
35227static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 35228static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
0085ce49
RD
35229static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
35230static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
35231static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
35232static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
35233static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
35234static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
35235static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
35236static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
35237static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
35238static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
35239static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
35240static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
35241static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
35242static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
35243static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
35244static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
35245static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
35246static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
35247static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
35248static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
35249static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
35250static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
35251static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
35252static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
35253static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
35254static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
35255static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 35256static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
0085ce49 35257static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 35258static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
0085ce49
RD
35259static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
35260static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
35261static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 35262static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
0085ce49 35263static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 35264static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
0085ce49
RD
35265static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
35266static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
35267static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
35268static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
35269static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
35270static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
35271static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
35272static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
50efceee 35273static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
0085ce49
RD
35274static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
35275static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
35276static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
35277
35278static swig_type_info *swig_type_initial[] = {
fc46b7f3 35279 &_swigt__p_buffer,
0085ce49
RD
35280 &_swigt__p_char,
35281 &_swigt__p_double,
35282 &_swigt__p_form_ops_t,
35283 &_swigt__p_int,
35284 &_swigt__p_unsigned_char,
35285 &_swigt__p_unsigned_int,
35286 &_swigt__p_unsigned_long,
35287 &_swigt__p_wxANIHandler,
35288 &_swigt__p_wxAcceleratorTable,
35289 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
35290 &_swigt__p_wxAlphaPixelData,
35291 &_swigt__p_wxAlphaPixelData_Accessor,
72ef6efb 35292 &_swigt__p_wxArrayDouble,
0085ce49
RD
35293 &_swigt__p_wxBMPHandler,
35294 &_swigt__p_wxBitmap,
35295 &_swigt__p_wxBoxSizer,
35296 &_swigt__p_wxBrush,
35297 &_swigt__p_wxBrushList,
35298 &_swigt__p_wxBufferedDC,
35299 &_swigt__p_wxBufferedPaintDC,
35300 &_swigt__p_wxCURHandler,
fc46b7f3 35301 &_swigt__p_wxChar,
0085ce49
RD
35302 &_swigt__p_wxChildFocusEvent,
35303 &_swigt__p_wxClientDC,
2131d850 35304 &_swigt__p_wxClipboardTextEvent,
0085ce49 35305 &_swigt__p_wxCloseEvent,
72ef6efb 35306 &_swigt__p_wxColor,
0085ce49
RD
35307 &_swigt__p_wxColour,
35308 &_swigt__p_wxColourDatabase,
35309 &_swigt__p_wxCommandEvent,
35310 &_swigt__p_wxContextMenuEvent,
35311 &_swigt__p_wxControl,
35312 &_swigt__p_wxControlWithItems,
35313 &_swigt__p_wxCursor,
35314 &_swigt__p_wxDC,
35315 &_swigt__p_wxDash,
35316 &_swigt__p_wxDateEvent,
35317 &_swigt__p_wxDisplayChangedEvent,
35318 &_swigt__p_wxDropFilesEvent,
35319 &_swigt__p_wxDuplexMode,
35320 &_swigt__p_wxEffects,
35321 &_swigt__p_wxEncodingConverter,
35322 &_swigt__p_wxEraseEvent,
35323 &_swigt__p_wxEvent,
35324 &_swigt__p_wxEvtHandler,
35325 &_swigt__p_wxFSFile,
35326 &_swigt__p_wxFileSystem,
35327 &_swigt__p_wxFlexGridSizer,
35328 &_swigt__p_wxFocusEvent,
35329 &_swigt__p_wxFont,
35330 &_swigt__p_wxFontList,
35331 &_swigt__p_wxFontMapper,
35332 &_swigt__p_wxGBSizerItem,
72ef6efb 35333 &_swigt__p_wxGCDC,
50efceee 35334 &_swigt__p_wxGDIObjListBase,
0085ce49
RD
35335 &_swigt__p_wxGDIObject,
35336 &_swigt__p_wxGIFHandler,
72ef6efb
RD
35337 &_swigt__p_wxGraphicsContext,
35338 &_swigt__p_wxGraphicsPath,
0085ce49
RD
35339 &_swigt__p_wxGridBagSizer,
35340 &_swigt__p_wxGridSizer,
33d6fd3b 35341 &_swigt__p_wxHeaderButtonParams,
0085ce49
RD
35342 &_swigt__p_wxICOHandler,
35343 &_swigt__p_wxIcon,
35344 &_swigt__p_wxIconBundle,
35345 &_swigt__p_wxIconLocation,
35346 &_swigt__p_wxIconizeEvent,
35347 &_swigt__p_wxIdleEvent,
35348 &_swigt__p_wxImage,
35349 &_swigt__p_wxImageHandler,
35350 &_swigt__p_wxImageList,
35351 &_swigt__p_wxIndividualLayoutConstraint,
35352 &_swigt__p_wxInitDialogEvent,
35353 &_swigt__p_wxJPEGHandler,
35354 &_swigt__p_wxKeyEvent,
35355 &_swigt__p_wxLanguageInfo,
35356 &_swigt__p_wxLayoutConstraints,
35357 &_swigt__p_wxLocale,
35358 &_swigt__p_wxMask,
35359 &_swigt__p_wxMaximizeEvent,
35360 &_swigt__p_wxMemoryDC,
35361 &_swigt__p_wxMenu,
35362 &_swigt__p_wxMenuBar,
35363 &_swigt__p_wxMenuEvent,
35364 &_swigt__p_wxMenuItem,
35365 &_swigt__p_wxMetaFile,
35366 &_swigt__p_wxMetaFileDC,
35367 &_swigt__p_wxMirrorDC,
35368 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 35369 &_swigt__p_wxMouseCaptureLostEvent,
0085ce49
RD
35370 &_swigt__p_wxMouseEvent,
35371 &_swigt__p_wxMoveEvent,
35372 &_swigt__p_wxNativeEncodingInfo,
35373 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
35374 &_swigt__p_wxNativePixelData,
35375 &_swigt__p_wxNativePixelData_Accessor,
0085ce49
RD
35376 &_swigt__p_wxNavigationKeyEvent,
35377 &_swigt__p_wxNcPaintEvent,
35378 &_swigt__p_wxNotifyEvent,
35379 &_swigt__p_wxObject,
35380 &_swigt__p_wxPCXHandler,
35381 &_swigt__p_wxPNGHandler,
35382 &_swigt__p_wxPNMHandler,
35383 &_swigt__p_wxPaintDC,
35384 &_swigt__p_wxPaintEvent,
35385 &_swigt__p_wxPalette,
35386 &_swigt__p_wxPaletteChangedEvent,
35387 &_swigt__p_wxPaperSize,
35388 &_swigt__p_wxPen,
35389 &_swigt__p_wxPenList,
fc46b7f3 35390 &_swigt__p_wxPixelDataBase,
0085ce49 35391 &_swigt__p_wxPoint,
72ef6efb 35392 &_swigt__p_wxPoint2D,
0085ce49
RD
35393 &_swigt__p_wxPostScriptDC,
35394 &_swigt__p_wxPrintData,
35395 &_swigt__p_wxPrinterDC,
27e45892 35396 &_swigt__p_wxPseudoDC,
0085ce49
RD
35397 &_swigt__p_wxPyApp,
35398 &_swigt__p_wxPyCommandEvent,
35399 &_swigt__p_wxPyEvent,
35400 &_swigt__p_wxPyFontEnumerator,
35401 &_swigt__p_wxPyImageHandler,
fc46b7f3 35402 &_swigt__p_wxPyLocale,
0085ce49
RD
35403 &_swigt__p_wxPySizer,
35404 &_swigt__p_wxPyValidator,
35405 &_swigt__p_wxQueryNewPaletteEvent,
35406 &_swigt__p_wxRect,
35407 &_swigt__p_wxRegion,
35408 &_swigt__p_wxRegionIterator,
35409 &_swigt__p_wxRendererNative,
35410 &_swigt__p_wxRendererVersion,
35411 &_swigt__p_wxScreenDC,
35412 &_swigt__p_wxScrollEvent,
35413 &_swigt__p_wxScrollWinEvent,
35414 &_swigt__p_wxSetCursorEvent,
35415 &_swigt__p_wxShowEvent,
35416 &_swigt__p_wxSize,
35417 &_swigt__p_wxSizeEvent,
35418 &_swigt__p_wxSizer,
35419 &_swigt__p_wxSizerItem,
35420 &_swigt__p_wxSplitterRenderParams,
35421 &_swigt__p_wxStaticBoxSizer,
35422 &_swigt__p_wxStdDialogButtonSizer,
50efceee 35423 &_swigt__p_wxStockGDI,
0085ce49
RD
35424 &_swigt__p_wxString,
35425 &_swigt__p_wxSysColourChangedEvent,
35426 &_swigt__p_wxTIFFHandler,
35427 &_swigt__p_wxUpdateUIEvent,
35428 &_swigt__p_wxValidator,
35429 &_swigt__p_wxWindow,
35430 &_swigt__p_wxWindowCreateEvent,
35431 &_swigt__p_wxWindowDC,
35432 &_swigt__p_wxWindowDestroyEvent,
35433 &_swigt__p_wxXPMHandler,
35434};
35435
fc46b7f3 35436static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35437static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
35438static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
35439static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
35440static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
35441static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
35442static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
35443static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
35444static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
35445static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 35446static swig_cast_info _swigc__p_wxArrayDouble[] = { {&_swigt__p_wxArrayDouble, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35447static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
35448static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
35449static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
35450static 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}};
35451static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 35452static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
35453static 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}};
35454static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35455static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
35456static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
35457static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 35458static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35459static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
35460static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
35461static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
35462static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
35463static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
35464static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
35465static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 35466static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
50efceee 35467static 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}};
0085ce49 35468static 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
35469static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
35470static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 35471static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35472static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
35473static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
35474static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
35475static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
35476static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
35477static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 35478static 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}};
0085ce49
RD
35479static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
35480static 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}};
35481static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
35482static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
35483static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
35484static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
35485static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
35486static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
35487static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 35488static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 35489static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 35490static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35491static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
35492static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
35493static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
35494static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
35495static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
35496static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
35497static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
35498static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
35499static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
35500static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
35501static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
35502static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 35503static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35504static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
35505static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
35506static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
35507static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
35508static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
35509static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
35510static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
35511static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
35512static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
35513static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
35514static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
35515static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
35516static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
35517static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
35518static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
35519static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
35520static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
35521static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
35522static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
35523static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
35524static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
35525static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
35526static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35527static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
35528static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
35529static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
35530static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
35531static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
35532static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
35533static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
35534static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 35535static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 35536static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 35537static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35538static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
35539static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
35540static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 35541static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35542static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
35543static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
35544static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
35545static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
35546static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
35547static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
35548static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
35549static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
35550static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
35551static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
35552static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
35553static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
35554static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
35555static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
35556static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
35557static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
35558static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
35559static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
35560static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
35561static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
35562static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
35563static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 35564static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35565static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
35566static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
35567static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
35568static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
35569static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 35570static 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}};
0085ce49 35571static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 35572static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35573static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
35574static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
35575static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 35576static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 35577static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 35578static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35579static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
35580static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
35581static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
35582static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
35583static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
35584static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
35585static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
35586static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
50efceee 35587static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35588static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
35589static 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 35590static 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}};
0085ce49
RD
35591
35592static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 35593 _swigc__p_buffer,
0085ce49
RD
35594 _swigc__p_char,
35595 _swigc__p_double,
35596 _swigc__p_form_ops_t,
35597 _swigc__p_int,
35598 _swigc__p_unsigned_char,
35599 _swigc__p_unsigned_int,
35600 _swigc__p_unsigned_long,
35601 _swigc__p_wxANIHandler,
35602 _swigc__p_wxAcceleratorTable,
35603 _swigc__p_wxActivateEvent,
fc46b7f3
RD
35604 _swigc__p_wxAlphaPixelData,
35605 _swigc__p_wxAlphaPixelData_Accessor,
72ef6efb 35606 _swigc__p_wxArrayDouble,
0085ce49
RD
35607 _swigc__p_wxBMPHandler,
35608 _swigc__p_wxBitmap,
35609 _swigc__p_wxBoxSizer,
35610 _swigc__p_wxBrush,
35611 _swigc__p_wxBrushList,
35612 _swigc__p_wxBufferedDC,
35613 _swigc__p_wxBufferedPaintDC,
35614 _swigc__p_wxCURHandler,
fc46b7f3 35615 _swigc__p_wxChar,
0085ce49
RD
35616 _swigc__p_wxChildFocusEvent,
35617 _swigc__p_wxClientDC,
2131d850 35618 _swigc__p_wxClipboardTextEvent,
0085ce49 35619 _swigc__p_wxCloseEvent,
72ef6efb 35620 _swigc__p_wxColor,
0085ce49
RD
35621 _swigc__p_wxColour,
35622 _swigc__p_wxColourDatabase,
35623 _swigc__p_wxCommandEvent,
35624 _swigc__p_wxContextMenuEvent,
35625 _swigc__p_wxControl,
35626 _swigc__p_wxControlWithItems,
35627 _swigc__p_wxCursor,
35628 _swigc__p_wxDC,
35629 _swigc__p_wxDash,
35630 _swigc__p_wxDateEvent,
35631 _swigc__p_wxDisplayChangedEvent,
35632 _swigc__p_wxDropFilesEvent,
35633 _swigc__p_wxDuplexMode,
35634 _swigc__p_wxEffects,
35635 _swigc__p_wxEncodingConverter,
35636 _swigc__p_wxEraseEvent,
35637 _swigc__p_wxEvent,
35638 _swigc__p_wxEvtHandler,
35639 _swigc__p_wxFSFile,
35640 _swigc__p_wxFileSystem,
35641 _swigc__p_wxFlexGridSizer,
35642 _swigc__p_wxFocusEvent,
35643 _swigc__p_wxFont,
35644 _swigc__p_wxFontList,
35645 _swigc__p_wxFontMapper,
35646 _swigc__p_wxGBSizerItem,
72ef6efb 35647 _swigc__p_wxGCDC,
50efceee 35648 _swigc__p_wxGDIObjListBase,
0085ce49
RD
35649 _swigc__p_wxGDIObject,
35650 _swigc__p_wxGIFHandler,
72ef6efb
RD
35651 _swigc__p_wxGraphicsContext,
35652 _swigc__p_wxGraphicsPath,
0085ce49
RD
35653 _swigc__p_wxGridBagSizer,
35654 _swigc__p_wxGridSizer,
33d6fd3b 35655 _swigc__p_wxHeaderButtonParams,
0085ce49
RD
35656 _swigc__p_wxICOHandler,
35657 _swigc__p_wxIcon,
35658 _swigc__p_wxIconBundle,
35659 _swigc__p_wxIconLocation,
35660 _swigc__p_wxIconizeEvent,
35661 _swigc__p_wxIdleEvent,
35662 _swigc__p_wxImage,
35663 _swigc__p_wxImageHandler,
35664 _swigc__p_wxImageList,
35665 _swigc__p_wxIndividualLayoutConstraint,
35666 _swigc__p_wxInitDialogEvent,
35667 _swigc__p_wxJPEGHandler,
35668 _swigc__p_wxKeyEvent,
35669 _swigc__p_wxLanguageInfo,
35670 _swigc__p_wxLayoutConstraints,
35671 _swigc__p_wxLocale,
35672 _swigc__p_wxMask,
35673 _swigc__p_wxMaximizeEvent,
35674 _swigc__p_wxMemoryDC,
35675 _swigc__p_wxMenu,
35676 _swigc__p_wxMenuBar,
35677 _swigc__p_wxMenuEvent,
35678 _swigc__p_wxMenuItem,
35679 _swigc__p_wxMetaFile,
35680 _swigc__p_wxMetaFileDC,
35681 _swigc__p_wxMirrorDC,
35682 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 35683 _swigc__p_wxMouseCaptureLostEvent,
0085ce49
RD
35684 _swigc__p_wxMouseEvent,
35685 _swigc__p_wxMoveEvent,
35686 _swigc__p_wxNativeEncodingInfo,
35687 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
35688 _swigc__p_wxNativePixelData,
35689 _swigc__p_wxNativePixelData_Accessor,
0085ce49
RD
35690 _swigc__p_wxNavigationKeyEvent,
35691 _swigc__p_wxNcPaintEvent,
35692 _swigc__p_wxNotifyEvent,
35693 _swigc__p_wxObject,
35694 _swigc__p_wxPCXHandler,
35695 _swigc__p_wxPNGHandler,
35696 _swigc__p_wxPNMHandler,
35697 _swigc__p_wxPaintDC,
35698 _swigc__p_wxPaintEvent,
35699 _swigc__p_wxPalette,
35700 _swigc__p_wxPaletteChangedEvent,
35701 _swigc__p_wxPaperSize,
35702 _swigc__p_wxPen,
35703 _swigc__p_wxPenList,
fc46b7f3 35704 _swigc__p_wxPixelDataBase,
0085ce49 35705 _swigc__p_wxPoint,
72ef6efb 35706 _swigc__p_wxPoint2D,
0085ce49
RD
35707 _swigc__p_wxPostScriptDC,
35708 _swigc__p_wxPrintData,
35709 _swigc__p_wxPrinterDC,
27e45892 35710 _swigc__p_wxPseudoDC,
0085ce49
RD
35711 _swigc__p_wxPyApp,
35712 _swigc__p_wxPyCommandEvent,
35713 _swigc__p_wxPyEvent,
35714 _swigc__p_wxPyFontEnumerator,
35715 _swigc__p_wxPyImageHandler,
fc46b7f3 35716 _swigc__p_wxPyLocale,
0085ce49
RD
35717 _swigc__p_wxPySizer,
35718 _swigc__p_wxPyValidator,
35719 _swigc__p_wxQueryNewPaletteEvent,
35720 _swigc__p_wxRect,
35721 _swigc__p_wxRegion,
35722 _swigc__p_wxRegionIterator,
35723 _swigc__p_wxRendererNative,
35724 _swigc__p_wxRendererVersion,
35725 _swigc__p_wxScreenDC,
35726 _swigc__p_wxScrollEvent,
35727 _swigc__p_wxScrollWinEvent,
35728 _swigc__p_wxSetCursorEvent,
35729 _swigc__p_wxShowEvent,
35730 _swigc__p_wxSize,
35731 _swigc__p_wxSizeEvent,
35732 _swigc__p_wxSizer,
35733 _swigc__p_wxSizerItem,
35734 _swigc__p_wxSplitterRenderParams,
35735 _swigc__p_wxStaticBoxSizer,
35736 _swigc__p_wxStdDialogButtonSizer,
50efceee 35737 _swigc__p_wxStockGDI,
0085ce49
RD
35738 _swigc__p_wxString,
35739 _swigc__p_wxSysColourChangedEvent,
35740 _swigc__p_wxTIFFHandler,
35741 _swigc__p_wxUpdateUIEvent,
35742 _swigc__p_wxValidator,
35743 _swigc__p_wxWindow,
35744 _swigc__p_wxWindowCreateEvent,
35745 _swigc__p_wxWindowDC,
35746 _swigc__p_wxWindowDestroyEvent,
35747 _swigc__p_wxXPMHandler,
35748};
35749
35750
35751/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
35752
35753static swig_const_info swig_const_table[] = {
35754{0, 0, 0, 0.0, 0, 0}};
35755
35756#ifdef __cplusplus
35757}
35758#endif
35759/* -----------------------------------------------------------------------------
35760 * Type initialization:
35761 * This problem is tough by the requirement that no dynamic
35762 * memory is used. Also, since swig_type_info structures store pointers to
35763 * swig_cast_info structures and swig_cast_info structures store pointers back
35764 * to swig_type_info structures, we need some lookup code at initialization.
35765 * The idea is that swig generates all the structures that are needed.
35766 * The runtime then collects these partially filled structures.
35767 * The SWIG_InitializeModule function takes these initial arrays out of
35768 * swig_module, and does all the lookup, filling in the swig_module.types
35769 * array with the correct data and linking the correct swig_cast_info
35770 * structures together.
35771 *
35772 * The generated swig_type_info structures are assigned staticly to an initial
35773 * array. We just loop though that array, and handle each type individually.
35774 * First we lookup if this type has been already loaded, and if so, use the
35775 * loaded structure instead of the generated one. Then we have to fill in the
35776 * cast linked list. The cast data is initially stored in something like a
35777 * two-dimensional array. Each row corresponds to a type (there are the same
35778 * number of rows as there are in the swig_type_initial array). Each entry in
35779 * a column is one of the swig_cast_info structures for that type.
35780 * The cast_initial array is actually an array of arrays, because each row has
35781 * a variable number of columns. So to actually build the cast linked list,
35782 * we find the array of casts associated with the type, and loop through it
35783 * adding the casts to the list. The one last trick we need to do is making
35784 * sure the type pointer in the swig_cast_info struct is correct.
35785 *
35786 * First off, we lookup the cast->type name to see if it is already loaded.
35787 * There are three cases to handle:
35788 * 1) If the cast->type has already been loaded AND the type we are adding
35789 * casting info to has not been loaded (it is in this module), THEN we
35790 * replace the cast->type pointer with the type pointer that has already
35791 * been loaded.
35792 * 2) If BOTH types (the one we are adding casting info to, and the
35793 * cast->type) are loaded, THEN the cast info has already been loaded by
35794 * the previous module so we just ignore it.
35795 * 3) Finally, if cast->type has not already been loaded, then we add that
35796 * swig_cast_info to the linked list (because the cast->type) pointer will
35797 * be correct.
35798 * ----------------------------------------------------------------------------- */
35799
35800#ifdef __cplusplus
35801extern "C" {
35802#if 0
35803} /* c-mode */
35804#endif
35805#endif
35806
35807#if 0
35808#define SWIGRUNTIME_DEBUG
35809#endif
35810
35811SWIGRUNTIME void
35812SWIG_InitializeModule(void *clientdata) {
35813 size_t i;
35814 swig_module_info *module_head;
35815 static int init_run = 0;
35816
35817 clientdata = clientdata;
35818
35819 if (init_run) return;
35820 init_run = 1;
35821
35822 /* Initialize the swig_module */
35823 swig_module.type_initial = swig_type_initial;
35824 swig_module.cast_initial = swig_cast_initial;
35825
35826 /* Try and load any already created modules */
35827 module_head = SWIG_GetModule(clientdata);
35828 if (module_head) {
35829 swig_module.next = module_head->next;
35830 module_head->next = &swig_module;
35831 } else {
35832 /* This is the first module loaded */
35833 swig_module.next = &swig_module;
35834 SWIG_SetModule(clientdata, &swig_module);
35835 }
35836
35837 /* Now work on filling in swig_module.types */
35838#ifdef SWIGRUNTIME_DEBUG
35839 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
35840#endif
35841 for (i = 0; i < swig_module.size; ++i) {
35842 swig_type_info *type = 0;
35843 swig_type_info *ret;
35844 swig_cast_info *cast;
35845
35846#ifdef SWIGRUNTIME_DEBUG
35847 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
35848#endif
35849
35850 /* if there is another module already loaded */
35851 if (swig_module.next != &swig_module) {
35852 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
8d38bd1d 35853 }
0085ce49
RD
35854 if (type) {
35855 /* Overwrite clientdata field */
35856#ifdef SWIGRUNTIME_DEBUG
35857 printf("SWIG_InitializeModule: found type %s\n", type->name);
35858#endif
35859 if (swig_module.type_initial[i]->clientdata) {
35860 type->clientdata = swig_module.type_initial[i]->clientdata;
35861#ifdef SWIGRUNTIME_DEBUG
35862 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
35863#endif
35864 }
35865 } else {
35866 type = swig_module.type_initial[i];
8d38bd1d 35867 }
0085ce49
RD
35868
35869 /* Insert casting types */
35870 cast = swig_module.cast_initial[i];
35871 while (cast->type) {
35872 /* Don't need to add information already in the list */
35873 ret = 0;
35874#ifdef SWIGRUNTIME_DEBUG
35875 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
35876#endif
35877 if (swig_module.next != &swig_module) {
35878 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
35879#ifdef SWIGRUNTIME_DEBUG
35880 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
35881#endif
35882 }
35883 if (ret) {
35884 if (type == swig_module.type_initial[i]) {
35885#ifdef SWIGRUNTIME_DEBUG
35886 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
35887#endif
35888 cast->type = ret;
35889 ret = 0;
35890 } else {
35891 /* Check for casting already in the list */
35892 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
35893#ifdef SWIGRUNTIME_DEBUG
35894 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
35895#endif
35896 if (!ocast) ret = 0;
35897 }
35898 }
35899
35900 if (!ret) {
35901#ifdef SWIGRUNTIME_DEBUG
35902 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
35903#endif
35904 if (type->cast) {
35905 type->cast->prev = cast;
35906 cast->next = type->cast;
35907 }
35908 type->cast = cast;
35909 }
35910 cast++;
8d38bd1d 35911 }
0085ce49
RD
35912 /* Set entry in modules->types array equal to the type */
35913 swig_module.types[i] = type;
35914 }
35915 swig_module.types[i] = 0;
35916
35917#ifdef SWIGRUNTIME_DEBUG
35918 printf("**** SWIG_InitializeModule: Cast List ******\n");
35919 for (i = 0; i < swig_module.size; ++i) {
35920 int j = 0;
35921 swig_cast_info *cast = swig_module.cast_initial[i];
35922 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
35923 while (cast->type) {
35924 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
35925 cast++;
35926 ++j;
35927 }
35928 printf("---- Total casts: %d\n",j);
35929 }
35930 printf("**** SWIG_InitializeModule: Cast List ******\n");
35931#endif
35932}
35933
35934/* This function will propagate the clientdata field of type to
35935* any new swig_type_info structures that have been added into the list
35936* of equivalent types. It is like calling
35937* SWIG_TypeClientData(type, clientdata) a second time.
35938*/
35939SWIGRUNTIME void
35940SWIG_PropagateClientData(void) {
35941 size_t i;
35942 swig_cast_info *equiv;
35943 static int init_run = 0;
35944
35945 if (init_run) return;
35946 init_run = 1;
35947
35948 for (i = 0; i < swig_module.size; i++) {
35949 if (swig_module.types[i]->clientdata) {
35950 equiv = swig_module.types[i]->cast;
35951 while (equiv) {
35952 if (!equiv->converter) {
35953 if (equiv->type && !equiv->type->clientdata)
35954 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
35955 }
35956 equiv = equiv->next;
35957 }
8d38bd1d 35958 }
0085ce49
RD
35959 }
35960}
35961
35962#ifdef __cplusplus
35963#if 0
35964{
35965 /* c-mode */
35966#endif
35967}
35968#endif
35969
35970
35971
35972#ifdef __cplusplus
35973extern "C" {
35974#endif
35975
35976 /* Python-specific SWIG API */
35977#define SWIG_newvarlink() SWIG_Python_newvarlink()
35978#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
35979#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
35980
35981 /* -----------------------------------------------------------------------------
35982 * global variable support code.
35983 * ----------------------------------------------------------------------------- */
35984
35985 typedef struct swig_globalvar {
35986 char *name; /* Name of global variable */
35987 PyObject *(*get_attr)(void); /* Return the current value */
35988 int (*set_attr)(PyObject *); /* Set the value */
35989 struct swig_globalvar *next;
35990 } swig_globalvar;
35991
35992 typedef struct swig_varlinkobject {
35993 PyObject_HEAD
35994 swig_globalvar *vars;
35995 } swig_varlinkobject;
35996
35997 SWIGINTERN PyObject *
35998 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
35999 return PyString_FromString("<Swig global variables>");
36000 }
36001
36002 SWIGINTERN PyObject *
36003 swig_varlink_str(swig_varlinkobject *v) {
36004 PyObject *str = PyString_FromString("(");
36005 swig_globalvar *var;
36006 for (var = v->vars; var; var=var->next) {
36007 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
36008 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
36009 }
36010 PyString_ConcatAndDel(&str,PyString_FromString(")"));
36011 return str;
36012 }
36013
36014 SWIGINTERN int
36015 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
36016 PyObject *str = swig_varlink_str(v);
36017 fprintf(fp,"Swig global variables ");
36018 fprintf(fp,"%s\n", PyString_AsString(str));
36019 Py_DECREF(str);
36020 return 0;
36021 }
36022
36023 SWIGINTERN void
36024 swig_varlink_dealloc(swig_varlinkobject *v) {
36025 swig_globalvar *var = v->vars;
36026 while (var) {
36027 swig_globalvar *n = var->next;
36028 free(var->name);
36029 free(var);
36030 var = n;
8d38bd1d 36031 }
0085ce49
RD
36032 }
36033
36034 SWIGINTERN PyObject *
36035 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
36036 PyObject *res = NULL;
36037 swig_globalvar *var = v->vars;
36038 while (var) {
36039 if (strcmp(var->name,n) == 0) {
36040 res = (*var->get_attr)();
36041 break;
36042 }
36043 var = var->next;
8d38bd1d 36044 }
0085ce49
RD
36045 if (res == NULL && !PyErr_Occurred()) {
36046 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8d38bd1d 36047 }
0085ce49
RD
36048 return res;
36049 }
36050
36051 SWIGINTERN int
36052 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
36053 int res = 1;
36054 swig_globalvar *var = v->vars;
36055 while (var) {
36056 if (strcmp(var->name,n) == 0) {
36057 res = (*var->set_attr)(p);
36058 break;
36059 }
36060 var = var->next;
8d38bd1d 36061 }
0085ce49
RD
36062 if (res == 1 && !PyErr_Occurred()) {
36063 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8d38bd1d 36064 }
0085ce49
RD
36065 return res;
36066 }
36067
36068 SWIGINTERN PyTypeObject*
36069 swig_varlink_type(void) {
36070 static char varlink__doc__[] = "Swig var link object";
36071 static PyTypeObject varlink_type;
36072 static int type_init = 0;
36073 if (!type_init) {
36074 const PyTypeObject tmp
36075 = {
36076 PyObject_HEAD_INIT(NULL)
36077 0, /* Number of items in variable part (ob_size) */
36078 (char *)"swigvarlink", /* Type name (tp_name) */
36079 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
36080 0, /* Itemsize (tp_itemsize) */
36081 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
36082 (printfunc) swig_varlink_print, /* Print (tp_print) */
36083 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
36084 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
36085 0, /* tp_compare */
36086 (reprfunc) swig_varlink_repr, /* tp_repr */
36087 0, /* tp_as_number */
36088 0, /* tp_as_sequence */
36089 0, /* tp_as_mapping */
36090 0, /* tp_hash */
36091 0, /* tp_call */
36092 (reprfunc)swig_varlink_str, /* tp_str */
36093 0, /* tp_getattro */
36094 0, /* tp_setattro */
36095 0, /* tp_as_buffer */
36096 0, /* tp_flags */
36097 varlink__doc__, /* tp_doc */
36098 0, /* tp_traverse */
36099 0, /* tp_clear */
36100 0, /* tp_richcompare */
36101 0, /* tp_weaklistoffset */
36102#if PY_VERSION_HEX >= 0x02020000
36103 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
36104#endif
36105#if PY_VERSION_HEX >= 0x02030000
36106 0, /* tp_del */
36107#endif
36108#ifdef COUNT_ALLOCS
36109 0,0,0,0 /* tp_alloc -> tp_next */
36110#endif
36111 };
36112 varlink_type = tmp;
36113 varlink_type.ob_type = &PyType_Type;
36114 type_init = 1;
8d38bd1d 36115 }
0085ce49
RD
36116 return &varlink_type;
36117 }
36118
36119 /* Create a variable linking object for use later */
36120 SWIGINTERN PyObject *
36121 SWIG_Python_newvarlink(void) {
36122 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
36123 if (result) {
36124 result->vars = 0;
36125 }
36126 return ((PyObject*) result);
36127 }
36128
36129 SWIGINTERN void
36130 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
36131 swig_varlinkobject *v = (swig_varlinkobject *) p;
36132 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
36133 if (gv) {
36134 size_t size = strlen(name)+1;
36135 gv->name = (char *)malloc(size);
36136 if (gv->name) {
36137 strncpy(gv->name,name,size);
36138 gv->get_attr = get_attr;
36139 gv->set_attr = set_attr;
36140 gv->next = v->vars;
36141 }
8d38bd1d 36142 }
0085ce49
RD
36143 v->vars = gv;
36144 }
36145
36146 SWIGINTERN PyObject *
36147 SWIG_globals() {
36148 static PyObject *_SWIG_globals = 0;
36149 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
36150 return _SWIG_globals;
36151 }
36152
36153 /* -----------------------------------------------------------------------------
36154 * constants/methods manipulation
36155 * ----------------------------------------------------------------------------- */
36156
36157 /* Install Constants */
36158 SWIGINTERN void
36159 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
36160 PyObject *obj = 0;
36161 size_t i;
36162 for (i = 0; constants[i].type; ++i) {
36163 switch(constants[i].type) {
36164 case SWIG_PY_POINTER:
36165 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
36166 break;
36167 case SWIG_PY_BINARY:
36168 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
36169 break;
36170 default:
36171 obj = 0;
36172 break;
36173 }
36174 if (obj) {
36175 PyDict_SetItemString(d, constants[i].name, obj);
36176 Py_DECREF(obj);
36177 }
8d38bd1d 36178 }
0085ce49
RD
36179 }
36180
36181 /* -----------------------------------------------------------------------------*/
36182 /* Fix SwigMethods to carry the callback ptrs when needed */
36183 /* -----------------------------------------------------------------------------*/
36184
36185 SWIGINTERN void
36186 SWIG_Python_FixMethods(PyMethodDef *methods,
36187 swig_const_info *const_table,
36188 swig_type_info **types,
36189 swig_type_info **types_initial) {
36190 size_t i;
36191 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 36192 const char *c = methods[i].ml_doc;
0085ce49
RD
36193 if (c && (c = strstr(c, "swig_ptr: "))) {
36194 int j;
36195 swig_const_info *ci = 0;
453fb36b 36196 const char *name = c + 10;
0085ce49
RD
36197 for (j = 0; const_table[j].type; ++j) {
36198 if (strncmp(const_table[j].name, name,
36199 strlen(const_table[j].name)) == 0) {
36200 ci = &(const_table[j]);
36201 break;
36202 }
36203 }
36204 if (ci) {
36205 size_t shift = (ci->ptype) - types;
36206 swig_type_info *ty = types_initial[shift];
36207 size_t ldoc = (c - methods[i].ml_doc);
36208 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
36209 char *ndoc = (char*)malloc(ldoc + lptr + 10);
36210 if (ndoc) {
36211 char *buff = ndoc;
36212 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
36213 if (ptr) {
36214 strncpy(buff, methods[i].ml_doc, ldoc);
36215 buff += ldoc;
36216 strncpy(buff, "swig_ptr: ", 10);
36217 buff += 10;
36218 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
36219 methods[i].ml_doc = ndoc;
36220 }
36221 }
36222 }
36223 }
8d38bd1d 36224 }
0085ce49
RD
36225 }
36226
36227#ifdef __cplusplus
36228}
36229#endif
36230
36231/* -----------------------------------------------------------------------------*
36232 * Partial Init method
36233 * -----------------------------------------------------------------------------*/
36234
36235#ifdef __cplusplus
36236extern "C"
36237#endif
36238SWIGEXPORT void SWIG_init(void) {
36239 PyObject *m, *d;
36240
36241 /* Fix SwigMethods to carry the callback ptrs when needed */
36242 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
36243
36244 m = Py_InitModule((char *) SWIG_name, SwigMethods);
36245 d = PyModule_GetDict(m);
36246
36247 SWIG_InitializeModule(0);
36248 SWIG_InstallConstants(d,swig_const_table);
36249
36250
01f6b6d3
RD
36251 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
36252 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
36253 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
36254 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
36255 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
0085ce49
RD
36256 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
36257 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
36258 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
36259 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
36260 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
36261 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
36262 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
36263 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
36264 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
36265 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
36266 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
36267 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
36268 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
36269 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
36270 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
36271 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
36272 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
36273 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
36274 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
36275 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
36276 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
36277 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
36278 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
36279 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
36280 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
36281 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
36282 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
36283 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
36284 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
36285 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
36286 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
36287 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
36288 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
36289 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
36290 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
36291 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
36292 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
36293 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
36294 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
36295 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
36296 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
36297 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
36298 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
36299 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
36300 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
36301 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
36302 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
36303 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
36304 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
36305 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
36306 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
36307 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
36308 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
36309 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
36310 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
36311 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
36312 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
36313 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
36314 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
36315 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
36316 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
36317 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
36318 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
36319 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
36320 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
36321 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
36322 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
36323 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
36324 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
36325 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
36326 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
36327 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
36328 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
36329 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
36330 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
36331 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
36332 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
36333 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
36334 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
36335 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
36336 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
36337 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
36338 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
36339 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
36340 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
36341 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
36342 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
36343 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
36344 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
36345 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
36346 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
36347 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
36348 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
36349 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
36350 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
36351 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
36352 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
36353 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
36354 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
36355 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
36356 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
36357 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
36358 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
36359 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
36360 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
36361 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
36362 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
36363 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
36364 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
36365 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
36366 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
36367 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
36368 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
36369 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
36370 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
36371 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
36372 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
36373 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
36374 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
36375 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
36376 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
36377 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
36378 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
36379 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
36380 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
36381 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
36382 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
36383
36384 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
36385
36386 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
36387 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
36388 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
36389 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
36390 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
36391 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
36392 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
36393 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
36394 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
36395 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
36396 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
36397 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
36398 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
36399 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
36400 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
36401 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
36402 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
36403 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
36404 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
36405 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
36406 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
36407 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
36408 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
36409 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
36410 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
36411 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
36412 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
36413 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
36414 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
36415 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
36416 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
36417 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
36418 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
36419 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
36420 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
36421 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
36422 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
36423 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
36424 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
36425 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
36426 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
36427 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
36428 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
36429 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
36430 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
36431 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
36432 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
36433 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
36434 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
36435 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
36436 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
36437 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
36438 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
36439 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
36440 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
36441 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
36442 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
36443 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
36444 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
36445 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
36446 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
36447 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
36448 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
36449 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
36450 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
36451 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
36452 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
36453 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
36454 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
36455 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
36456 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
36457 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
36458 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
36459 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
36460 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
36461 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
36462 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
36463 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
36464 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
36465 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
36466 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
36467 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
36468 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
36469 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
36470 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
36471 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
36472 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
36473 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
36474 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
36475 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
36476 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
36477 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
36478 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
36479 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
36480 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
36481 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
36482 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
36483 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
36484 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
36485 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
36486 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
36487 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
36488 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
36489 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
36490 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
36491 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
36492 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
36493 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
36494 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
36495 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
36496 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
36497 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
36498 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
36499 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
36500 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
36501 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
36502 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
36503 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
36504 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
36505 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
36506 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
36507 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
36508 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
36509 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
36510 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
36511 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
36512 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
36513 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
36514 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
36515 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
36516 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
36517 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
36518 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
36519 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
36520 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
36521 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
36522 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
36523 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
36524 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
36525 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
36526 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
36527 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
36528 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
36529 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
36530 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
36531 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
36532 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
36533 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
36534 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
36535 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
36536 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
36537 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
36538 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
36539 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
36540 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
36541 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
36542 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
36543 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
36544 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
36545 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
36546 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
36547 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
36548 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
36549 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
36550 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
36551 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
36552 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
36553 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
36554 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
36555 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
36556 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
36557 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
36558 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
36559 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
36560 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
36561 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
36562 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
36563 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
36564 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
36565 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
36566 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
36567 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
36568 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
36569 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
36570 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
36571 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
36572 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
36573 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
36574 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
36575 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
36576 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
36577 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
36578 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
36579 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
36580 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
36581 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
36582 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
36583 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
36584 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
36585 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
36586 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
36587 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
36588 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
36589 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
36590 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
36591 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
36592 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
36593 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
36594 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
36595 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
36596 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
36597 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
36598 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
36599 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
36600 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
36601 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
36602 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
36603 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
36604 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
36605 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
36606 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
36607 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
36608 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
36609 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
36610 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
36611 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
36612 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
36613 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
36614 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
36615 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
36616 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
36617 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
36618 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
36619 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
36620 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
36621 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
36622 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
36623 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
36624 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
36625 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
36626 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
36627 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
36628 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
36629 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
36630 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
36631 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
36632 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
36633 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
36634 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
36635 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
36636 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
36637 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
36638 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
36639 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
36640 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
50efceee
RD
36641 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
36642 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
36643 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
36644 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
36645 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
36646 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
36647 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
36648 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
36649 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
36650 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
36651 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
36652 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
36653 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
36654 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
36655 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
36656 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
36657 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
36658 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
36659 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
36660 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
36661 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
36662 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
36663 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
36664 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
36665 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
36666 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
36667 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
36668 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
36669 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
36670 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
36671 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
36672 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
36673 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
36674 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
36675 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
0085ce49 36676 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
0085ce49
RD
36677 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
36678 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
36679 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
36680 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
36681 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
36682 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
36683 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
36684 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
0085ce49
RD
36685 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
36686 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
36687 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 36688 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
0085ce49
RD
36689 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
36690 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
36691 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 36692 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
0085ce49
RD
36693 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
36694 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
36695 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
36696 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
36697 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
36698 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
36699 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
36700 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
36701 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
36702 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
0085ce49
RD
36703 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
36704 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
36705
36706 // Work around a chicken/egg problem in drawlist.cpp
36707 wxPyDrawList_SetAPIPtr();
36708
d14a1e28
RD
36709}
36710