]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/_gdi_wrap.cpp
More bakfile changes needed for bmpcbox. Rebaked.
[wxWidgets.git] / wxPython / src / msw / _gdi_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
554f62e9 3 * Version 1.3.29
d55e5bfc
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
554f62e9 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d55e5bfc
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
093d3ff1 27};
d55e5bfc
RD
28#endif
29
554f62e9 30/* -----------------------------------------------------------------------------
7449af73
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
554f62e9 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
7449af73
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
554f62e9
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
d55e5bfc 47
7449af73
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
554f62e9
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__))
7449af73
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
554f62e9
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
7449af73
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
554f62e9
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
7449af73
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
554f62e9
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
7449af73
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
554f62e9
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
7449af73 126
d55e5bfc 127
554f62e9 128/* Python.h has to appear first */
093d3ff1 129#include <Python.h>
d55e5bfc 130
554f62e9 131/* -----------------------------------------------------------------------------
093d3ff1 132 * swigrun.swg
d55e5bfc 133 *
554f62e9
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 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 */
7449af73 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
093d3ff1
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
7449af73
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d55e5bfc 147#else
7449af73 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*/
7449af73 159
093d3ff1 160#ifndef SWIGRUNTIME
7449af73 161# define SWIGRUNTIME SWIGINTERN
093d3ff1 162#endif
7449af73 163
093d3ff1 164#ifndef SWIGRUNTIMEINLINE
7449af73 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
554f62e9
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
7449af73
RD
309#include <string.h>
310
d55e5bfc
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
7449af73 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
7449af73
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 */
554f62e9 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
7449af73
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;
554f62e9 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>|...
7449af73 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 }
7449af73 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
093d3ff1
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
7449af73
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*/
7449af73
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 }
7449af73
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
093d3ff1 400 }
7449af73 401 return equiv;
093d3ff1
RD
402}
403
7449af73
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*/
7449af73 430SWIGRUNTIME swig_cast_info *
093d3ff1 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
7449af73
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 *
7449af73 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. */
554f62e9 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
7449af73
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;
7449af73
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 }
7449af73
RD
508 }
509 cast = cast->next;
510 }
511}
554f62e9
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
7449af73
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 }
7449af73
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 }
7449af73
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) {
7449af73
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) {
7449af73 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;
7449af73 619 register const unsigned char *eu = u + sz;
093d3ff1 620 for (; u != eu; ++u) {
7449af73 621 register char d = *(c++);
554f62e9 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}
d55e5bfc 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}
d55e5bfc
RD
695
696#ifdef __cplusplus
697}
698#endif
699
554f62e9
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d55e5bfc 714
554f62e9
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
554f62e9
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/* -----------------------------------------------------------------------------
554f62e9 801 * error manipulation
093d3ff1 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
554f62e9
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d55e5bfc 846
554f62e9
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
d55e5bfc 936
554f62e9
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
093d3ff1 940
554f62e9
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
093d3ff1
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 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 {
554f62e9
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;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
554f62e9
RD
967#if 0
968{ /* cc-mode */
969#endif
093d3ff1
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
554f62e9
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 *
554f62e9
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 *
554f62e9 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
093d3ff1 986/* Common SWIG API */
d55e5bfc 987
96221a45
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
554f62e9
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
d55e5bfc 1000
554f62e9
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
d55e5bfc 1004
554f62e9
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d55e5bfc 1008
554f62e9
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
d55e5bfc 1012
554f62e9
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)
7449af73 1016
c32bde28 1017
554f62e9 1018/* Runtime API */
d55e5bfc 1019
554f62e9
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)
7449af73 1023
554f62e9
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
7449af73 1029
d55e5bfc 1030
554f62e9 1031/* Runtime API implementation */
c32bde28 1032
554f62e9 1033/* Error manipulation */
c32bde28 1034
554f62e9
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}
d55e5bfc 1042
554f62e9
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}
d55e5bfc 1049
554f62e9 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
7449af73 1051
554f62e9 1052/* Set a constant value */
c32bde28 1053
554f62e9
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
d55e5bfc
RD
1058}
1059
554f62e9 1060/* Append a value to the result obj */
d55e5bfc 1061
554f62e9
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 {
554f62e9
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);
d55e5bfc 1100 }
554f62e9
RD
1101 return result;
1102#endif
093d3ff1 1103}
d55e5bfc 1104
554f62e9 1105/* Unpack the argument tuple */
d55e5bfc 1106
554f62e9
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*/
7449af73 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 */
7449af73
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
554f62e9 1616 static PyTypeObject pyswigobject_type;
7449af73 1617 static int type_init = 0;
093d3ff1 1618 if (!type_init) {
554f62e9
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
554f62e9
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
554f62e9
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
554f62e9 1674 0, /* tp_del */
093d3ff1
RD
1675#endif
1676#ifdef COUNT_ALLOCS
554f62e9 1677 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1678#endif
554f62e9 1679 };
7449af73 1680 pyswigobject_type = tmp;
554f62e9 1681 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1 1682 type_init = 1;
c32bde28 1683 }
7449af73 1684 return &pyswigobject_type;
d55e5bfc
RD
1685}
1686
093d3ff1 1687SWIGRUNTIME PyObject *
554f62e9 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
093d3ff1 1689{
554f62e9
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;
7449af73 1696 }
554f62e9 1697 return (PyObject *)sobj;
093d3ff1 1698}
c32bde28 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;
554f62e9 1707 swig_type_info *ty;
093d3ff1
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
554f62e9 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
c32bde28 1713{
093d3ff1
RD
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
d55e5bfc 1719 }
554f62e9 1720 fputs(v->ty->name,fp);
093d3ff1
RD
1721 fputs(">", fp);
1722 return 0;
c32bde28 1723}
9d7dfdff 1724
093d3ff1
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
c32bde28 1727{
093d3ff1
RD
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
554f62e9 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1731 } else {
554f62e9 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
093d3ff1 1733 }
d55e5bfc
RD
1734}
1735
093d3ff1
RD
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
d55e5bfc 1738{
093d3ff1
RD
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
554f62e9 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1742 } else {
554f62e9 1743 return PyString_FromString(v->ty->name);
093d3ff1 1744 }
d55e5bfc
RD
1745}
1746
093d3ff1
RD
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
d55e5bfc 1749{
554f62e9
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
d55e5bfc
RD
1754}
1755
554f62e9 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
d55e5bfc 1757
093d3ff1 1758SWIGRUNTIME PyTypeObject*
7449af73 1759PySwigPacked_type(void) {
554f62e9
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
554f62e9 1837 0, /* tp_del */
093d3ff1
RD
1838#endif
1839#ifdef COUNT_ALLOCS
554f62e9 1840 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1841#endif
554f62e9 1842 };
7449af73 1843 pyswigpacked_type = tmp;
554f62e9 1844 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1
RD
1845 type_init = 1;
1846 }
7449af73 1847 return &pyswigpacked_type;
093d3ff1
RD
1848}
1849
1850SWIGRUNTIME PyObject *
554f62e9 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
093d3ff1 1852{
554f62e9
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
093d3ff1 1855 void *pack = malloc(size);
7449af73
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
554f62e9
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
7449af73 1864 }
7e63a440 1865 }
554f62e9 1866 return (PyObject *) sobj;
093d3ff1 1867}
d55e5bfc 1868
554f62e9 1869SWIGRUNTIME swig_type_info *
093d3ff1
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
554f62e9
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}
d55e5bfc 1881
093d3ff1 1882/* -----------------------------------------------------------------------------
554f62e9 1883 * pointers/data manipulation
093d3ff1 1884 * ----------------------------------------------------------------------------- */
d55e5bfc 1885
554f62e9
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
d55e5bfc 1891
554f62e9
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
d55e5bfc 1898
554f62e9 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
d55e5bfc 1900
554f62e9
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
093d3ff1 1903{
554f62e9
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 {
554f62e9
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
093d3ff1 1929 }
093d3ff1 1930 }
554f62e9
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;
093d3ff1
RD
1947 }
1948}
d55e5bfc 1949
554f62e9
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 }
d55e5bfc 1961 }
554f62e9 1962 return 0;
c32bde28
RD
1963}
1964
554f62e9
RD
1965/* Convert a pointer value */
1966
093d3ff1 1967SWIGRUNTIME int
554f62e9
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 {
554f62e9
RD
1993 if (ptr) *ptr = vptr;
1994 break;
093d3ff1 1995 }
093d3ff1 1996 }
554f62e9
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 2042 }
d55e5bfc
RD
2043}
2044
554f62e9
RD
2045/* Convert a function ptr value */
2046
093d3ff1 2047SWIGRUNTIME int
554f62e9
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 {
554f62e9
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
96221a45 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
554f62e9
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}
d55e5bfc 2071
554f62e9 2072/* Convert a packed value value */
d55e5bfc 2073
093d3ff1 2074SWIGRUNTIME int
554f62e9
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 }
093d3ff1 2084 }
554f62e9
RD
2085 return SWIG_OK;
2086}
d55e5bfc 2087
554f62e9
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
d55e5bfc 2091
554f62e9
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
d55e5bfc 2096
554f62e9
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 }
554f62e9
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
093d3ff1 2120 }
554f62e9
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 }
554f62e9
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 }
554f62e9
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 }
554f62e9
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}
d55e5bfc 2159
554f62e9
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
554f62e9
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
d55e5bfc 2180
554f62e9
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 {
554f62e9 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2193 }
554f62e9 2194 return SWIG_Py_Void();
093d3ff1 2195 }
554f62e9
RD
2196}
2197
2198/* Create a new pointer object */
093d3ff1 2199
093d3ff1 2200SWIGRUNTIME PyObject *
554f62e9 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2202 if (!ptr) {
554f62e9
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 }
554f62e9 2215 return robj;
093d3ff1 2216 }
093d3ff1
RD
2217}
2218
554f62e9
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
093d3ff1 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
554f62e9 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
093d3ff1 2224}
d55e5bfc 2225
093d3ff1
RD
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
d55e5bfc 2229
093d3ff1
RD
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
d55e5bfc 2233
7449af73
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);
d55e5bfc 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 }
d55e5bfc 2248#endif
7449af73
RD
2249 }
2250 return (swig_module_info *) type_pointer;
093d3ff1 2251}
d55e5bfc 2252
7449af73
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
554f62e9 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
7449af73
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");
554f62e9 2263 return SWIG_ERROR;
7449af73
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
554f62e9 2268 return SWIG_ERROR;
7449af73
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));
554f62e9 2276 return SWIG_ERROR;
7449af73
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
554f62e9 2279 return SWIG_ERROR;
7449af73 2280 Py_DECREF(o);
554f62e9 2281 return SWIG_OK;
093d3ff1 2282}
7449af73 2283#endif
d55e5bfc 2284
554f62e9
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
7449af73
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);
554f62e9 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
7449af73
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
554f62e9
RD
2310 } else {
2311 Py_XDECREF(pointer);
7449af73
RD
2312 }
2313}
d55e5bfc 2314
554f62e9
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}
5e483524 2321
554f62e9
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]
2479#define SWIGTYPE_p_wxBMPHandler swig_types[13]
2480#define SWIGTYPE_p_wxBitmap swig_types[14]
2481#define SWIGTYPE_p_wxBoxSizer swig_types[15]
2482#define SWIGTYPE_p_wxBrush swig_types[16]
2483#define SWIGTYPE_p_wxBrushList swig_types[17]
2484#define SWIGTYPE_p_wxBufferedDC swig_types[18]
2485#define SWIGTYPE_p_wxBufferedPaintDC swig_types[19]
2486#define SWIGTYPE_p_wxCURHandler swig_types[20]
2487#define SWIGTYPE_p_wxChar swig_types[21]
2488#define SWIGTYPE_p_wxChildFocusEvent swig_types[22]
2489#define SWIGTYPE_p_wxClientDC swig_types[23]
2490#define SWIGTYPE_p_wxClipboardTextEvent swig_types[24]
2491#define SWIGTYPE_p_wxCloseEvent swig_types[25]
2492#define SWIGTYPE_p_wxColour swig_types[26]
2493#define SWIGTYPE_p_wxColourDatabase swig_types[27]
2494#define SWIGTYPE_p_wxCommandEvent swig_types[28]
2495#define SWIGTYPE_p_wxContextMenuEvent swig_types[29]
2496#define SWIGTYPE_p_wxControl swig_types[30]
2497#define SWIGTYPE_p_wxControlWithItems swig_types[31]
2498#define SWIGTYPE_p_wxCursor swig_types[32]
2499#define SWIGTYPE_p_wxDC swig_types[33]
2500#define SWIGTYPE_p_wxDash swig_types[34]
2501#define SWIGTYPE_p_wxDateEvent swig_types[35]
2502#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[36]
2503#define SWIGTYPE_p_wxDropFilesEvent swig_types[37]
2504#define SWIGTYPE_p_wxDuplexMode swig_types[38]
2505#define SWIGTYPE_p_wxEffects swig_types[39]
2506#define SWIGTYPE_p_wxEncodingConverter swig_types[40]
2507#define SWIGTYPE_p_wxEraseEvent swig_types[41]
2508#define SWIGTYPE_p_wxEvent swig_types[42]
2509#define SWIGTYPE_p_wxEvtHandler swig_types[43]
2510#define SWIGTYPE_p_wxFSFile swig_types[44]
2511#define SWIGTYPE_p_wxFileSystem swig_types[45]
2512#define SWIGTYPE_p_wxFlexGridSizer swig_types[46]
2513#define SWIGTYPE_p_wxFocusEvent swig_types[47]
2514#define SWIGTYPE_p_wxFont swig_types[48]
2515#define SWIGTYPE_p_wxFontList swig_types[49]
2516#define SWIGTYPE_p_wxFontMapper swig_types[50]
2517#define SWIGTYPE_p_wxGBSizerItem swig_types[51]
2518#define SWIGTYPE_p_wxGDIObjListBase swig_types[52]
2519#define SWIGTYPE_p_wxGDIObject swig_types[53]
2520#define SWIGTYPE_p_wxGIFHandler swig_types[54]
2521#define SWIGTYPE_p_wxGridBagSizer swig_types[55]
2522#define SWIGTYPE_p_wxGridSizer swig_types[56]
33d6fd3b
RD
2523#define SWIGTYPE_p_wxHeaderButtonParams swig_types[57]
2524#define SWIGTYPE_p_wxICOHandler swig_types[58]
2525#define SWIGTYPE_p_wxIcon swig_types[59]
2526#define SWIGTYPE_p_wxIconBundle swig_types[60]
2527#define SWIGTYPE_p_wxIconLocation swig_types[61]
2528#define SWIGTYPE_p_wxIconizeEvent swig_types[62]
2529#define SWIGTYPE_p_wxIdleEvent swig_types[63]
2530#define SWIGTYPE_p_wxImage swig_types[64]
2531#define SWIGTYPE_p_wxImageHandler swig_types[65]
2532#define SWIGTYPE_p_wxImageList swig_types[66]
2533#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[67]
2534#define SWIGTYPE_p_wxInitDialogEvent swig_types[68]
2535#define SWIGTYPE_p_wxJPEGHandler swig_types[69]
2536#define SWIGTYPE_p_wxKeyEvent swig_types[70]
2537#define SWIGTYPE_p_wxLanguageInfo swig_types[71]
2538#define SWIGTYPE_p_wxLayoutConstraints swig_types[72]
2539#define SWIGTYPE_p_wxLocale swig_types[73]
2540#define SWIGTYPE_p_wxMask swig_types[74]
2541#define SWIGTYPE_p_wxMaximizeEvent swig_types[75]
2542#define SWIGTYPE_p_wxMemoryDC swig_types[76]
2543#define SWIGTYPE_p_wxMenu swig_types[77]
2544#define SWIGTYPE_p_wxMenuBar swig_types[78]
2545#define SWIGTYPE_p_wxMenuEvent swig_types[79]
2546#define SWIGTYPE_p_wxMenuItem swig_types[80]
2547#define SWIGTYPE_p_wxMetaFile swig_types[81]
2548#define SWIGTYPE_p_wxMetaFileDC swig_types[82]
2549#define SWIGTYPE_p_wxMirrorDC swig_types[83]
2550#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[84]
2551#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[85]
2552#define SWIGTYPE_p_wxMouseEvent swig_types[86]
2553#define SWIGTYPE_p_wxMoveEvent swig_types[87]
2554#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[88]
2555#define SWIGTYPE_p_wxNativeFontInfo swig_types[89]
2556#define SWIGTYPE_p_wxNativePixelData swig_types[90]
2557#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[91]
2558#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[92]
2559#define SWIGTYPE_p_wxNcPaintEvent swig_types[93]
2560#define SWIGTYPE_p_wxNotifyEvent swig_types[94]
2561#define SWIGTYPE_p_wxObject swig_types[95]
2562#define SWIGTYPE_p_wxPCXHandler swig_types[96]
2563#define SWIGTYPE_p_wxPNGHandler swig_types[97]
2564#define SWIGTYPE_p_wxPNMHandler swig_types[98]
2565#define SWIGTYPE_p_wxPaintDC swig_types[99]
2566#define SWIGTYPE_p_wxPaintEvent swig_types[100]
2567#define SWIGTYPE_p_wxPalette swig_types[101]
2568#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[102]
2569#define SWIGTYPE_p_wxPaperSize swig_types[103]
2570#define SWIGTYPE_p_wxPen swig_types[104]
2571#define SWIGTYPE_p_wxPenList swig_types[105]
2572#define SWIGTYPE_p_wxPixelDataBase swig_types[106]
2573#define SWIGTYPE_p_wxPoint swig_types[107]
2574#define SWIGTYPE_p_wxPostScriptDC swig_types[108]
2575#define SWIGTYPE_p_wxPrintData swig_types[109]
2576#define SWIGTYPE_p_wxPrinterDC swig_types[110]
2577#define SWIGTYPE_p_wxPseudoDC swig_types[111]
2578#define SWIGTYPE_p_wxPyApp swig_types[112]
2579#define SWIGTYPE_p_wxPyCommandEvent swig_types[113]
2580#define SWIGTYPE_p_wxPyEvent swig_types[114]
2581#define SWIGTYPE_p_wxPyFontEnumerator swig_types[115]
2582#define SWIGTYPE_p_wxPyImageHandler swig_types[116]
2583#define SWIGTYPE_p_wxPyLocale swig_types[117]
2584#define SWIGTYPE_p_wxPySizer swig_types[118]
2585#define SWIGTYPE_p_wxPyValidator swig_types[119]
2586#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[120]
2587#define SWIGTYPE_p_wxRect swig_types[121]
2588#define SWIGTYPE_p_wxRegion swig_types[122]
2589#define SWIGTYPE_p_wxRegionIterator swig_types[123]
2590#define SWIGTYPE_p_wxRendererNative swig_types[124]
2591#define SWIGTYPE_p_wxRendererVersion swig_types[125]
2592#define SWIGTYPE_p_wxScreenDC swig_types[126]
2593#define SWIGTYPE_p_wxScrollEvent swig_types[127]
2594#define SWIGTYPE_p_wxScrollWinEvent swig_types[128]
2595#define SWIGTYPE_p_wxSetCursorEvent swig_types[129]
2596#define SWIGTYPE_p_wxShowEvent swig_types[130]
2597#define SWIGTYPE_p_wxSize swig_types[131]
2598#define SWIGTYPE_p_wxSizeEvent swig_types[132]
2599#define SWIGTYPE_p_wxSizer swig_types[133]
2600#define SWIGTYPE_p_wxSizerItem swig_types[134]
2601#define SWIGTYPE_p_wxSplitterRenderParams swig_types[135]
2602#define SWIGTYPE_p_wxStaticBoxSizer swig_types[136]
2603#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[137]
2604#define SWIGTYPE_p_wxStockGDI swig_types[138]
2605#define SWIGTYPE_p_wxString swig_types[139]
2606#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[140]
2607#define SWIGTYPE_p_wxTIFFHandler swig_types[141]
2608#define SWIGTYPE_p_wxUpdateUIEvent swig_types[142]
2609#define SWIGTYPE_p_wxValidator swig_types[143]
2610#define SWIGTYPE_p_wxWindow swig_types[144]
2611#define SWIGTYPE_p_wxWindowCreateEvent swig_types[145]
2612#define SWIGTYPE_p_wxWindowDC swig_types[146]
2613#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[147]
2614#define SWIGTYPE_p_wxXPMHandler swig_types[148]
2615static swig_type_info *swig_types[150];
2616static swig_module_info swig_module = {swig_types, 149, 0, 0, 0, 0};
7449af73
RD
2617#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2618#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2619
093d3ff1 2620/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2621
554f62e9
RD
2622#if (PY_VERSION_HEX <= 0x02000000)
2623# if !defined(SWIG_PYTHON_CLASSIC)
2624# error "This python version requires to use swig with the '-classic' option"
2625# endif
2626#endif
2627#if (PY_VERSION_HEX <= 0x02020000)
2628# error "This python version requires to use swig with the '-nomodern' option"
2629#endif
2630#if (PY_VERSION_HEX <= 0x02020000)
2631# error "This python version requires to use swig with the '-nomodernargs' option"
2632#endif
2633#ifndef METH_O
2634# error "This python version requires to use swig with the '-nofastunpack' option"
2635#endif
d55e5bfc 2636
093d3ff1
RD
2637/*-----------------------------------------------
2638 @(target):= _gdi_.so
2639 ------------------------------------------------*/
2640#define SWIG_init init_gdi_
d55e5bfc 2641
093d3ff1 2642#define SWIG_name "_gdi_"
d55e5bfc 2643
554f62e9 2644#define SWIGVERSION 0x010329
d55e5bfc 2645
d55e5bfc 2646
554f62e9
RD
2647#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2648#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2649
2650
554f62e9
RD
2651#include <stdexcept>
2652
2653
2654namespace swig {
2655 class PyObject_ptr {
2656 protected:
2657 PyObject *_obj;
2658
2659 public:
2660 PyObject_ptr() :_obj(0)
2661 {
093d3ff1 2662 }
554f62e9
RD
2663
2664 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2665 {
2666 Py_XINCREF(_obj);
093d3ff1 2667 }
554f62e9
RD
2668
2669 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2670 {
2671 if (initial_ref) Py_XINCREF(_obj);
2672 }
2673
2674 PyObject_ptr & operator=(const PyObject_ptr& item)
2675 {
2676 Py_XINCREF(item._obj);
2677 Py_XDECREF(_obj);
2678 _obj = item._obj;
2679 return *this;
2680 }
2681
2682 ~PyObject_ptr()
2683 {
2684 Py_XDECREF(_obj);
2685 }
2686
2687 operator PyObject *() const
2688 {
2689 return _obj;
2690 }
2691
2692 PyObject *operator->() const
2693 {
2694 return _obj;
2695 }
2696 };
093d3ff1 2697}
d55e5bfc 2698
d55e5bfc 2699
554f62e9
RD
2700namespace swig {
2701 struct PyObject_var : PyObject_ptr {
2702 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2703
2704 PyObject_var & operator = (PyObject* obj)
2705 {
2706 Py_XDECREF(_obj);
2707 _obj = obj;
2708 return *this;
d55e5bfc 2709 }
554f62e9 2710 };
d55e5bfc
RD
2711}
2712
2713
554f62e9
RD
2714#include "wx/wxPython/wxPython.h"
2715#include "wx/wxPython/pyclasses.h"
2716
2717
2718 static const wxString wxPyEmptyString(wxEmptyString);
2719
f460c29d
RD
2720 #define SWIG_From_long PyInt_FromLong
2721
2722
2723SWIGINTERNINLINE PyObject *
2724SWIG_From_int (int value)
2725{
2726 return SWIG_From_long (value);
2727}
2728
2729
554f62e9
RD
2730#include <limits.h>
2731#ifndef LLONG_MIN
2732# define LLONG_MIN LONG_LONG_MIN
2733#endif
2734#ifndef LLONG_MAX
2735# define LLONG_MAX LONG_LONG_MAX
2736#endif
2737#ifndef ULLONG_MAX
2738# define ULLONG_MAX ULONG_LONG_MAX
2739#endif
d55e5bfc 2740
c32bde28 2741
50efceee
RD
2742SWIGINTERN int
2743SWIG_AsVal_long (PyObject* obj, long* val)
2744{
2745 if (PyNumber_Check(obj)) {
2746 if (val) *val = PyInt_AsLong(obj);
2747 return SWIG_OK;
2748 }
2749 return SWIG_TypeError;
2750}
2751
2752
093d3ff1 2753SWIGINTERN int
554f62e9 2754SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
093d3ff1
RD
2755{
2756 long v = 0;
2757 if (SWIG_AsVal_long(obj, &v) && v < 0) {
554f62e9 2758 return SWIG_TypeError;
093d3ff1
RD
2759 }
2760 else if (val)
2761 *val = (unsigned long)v;
554f62e9 2762 return SWIG_OK;
093d3ff1 2763}
c32bde28 2764
d55e5bfc 2765
093d3ff1 2766SWIGINTERN int
554f62e9
RD
2767SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2768{
093d3ff1 2769 unsigned long v;
554f62e9
RD
2770 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2771 if (SWIG_IsOK(res)) {
2772 if ((v > UCHAR_MAX)) {
2773 return SWIG_OverflowError;
093d3ff1 2774 } else {
554f62e9 2775 if (val) *val = static_cast< unsigned char >(v);
093d3ff1 2776 }
554f62e9
RD
2777 }
2778 return res;
093d3ff1 2779}
d55e5bfc
RD
2780
2781
554f62e9
RD
2782SWIGINTERNINLINE PyObject*
2783SWIG_From_unsigned_SS_long (unsigned long value)
093d3ff1 2784{
554f62e9
RD
2785 return (value > LONG_MAX) ?
2786 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
093d3ff1 2787}
d55e5bfc
RD
2788
2789
554f62e9
RD
2790SWIGINTERNINLINE PyObject *
2791SWIG_From_unsigned_SS_char (unsigned char value)
2792{
2793 return SWIG_From_unsigned_SS_long (value);
2794}
d55e5bfc 2795
e9d6f3a4
RD
2796SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2797 wxColour temp, *obj = &temp;
2798 if ( other == Py_None ) return false;
2799 if ( ! wxColour_helper(other, &obj) ) {
2800 PyErr_Clear();
2801 return false;
2802 }
2803 return self->operator==(*obj);
2804 }
2805SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2806 wxColour temp, *obj = &temp;
2807 if ( other == Py_None ) return true;
2808 if ( ! wxColour_helper(other, &obj)) {
2809 PyErr_Clear();
2810 return true;
2811 }
2812 return self->operator!=(*obj);
2813 }
fc46b7f3
RD
2814
2815SWIGINTERN int
2816SWIG_AsVal_bool (PyObject *obj, bool *val)
2817{
2818 if (obj == Py_True) {
2819 if (val) *val = true;
2820 return SWIG_OK;
2821 } else if (obj == Py_False) {
2822 if (val) *val = false;
2823 return SWIG_OK;
2824 } else {
2825 long v = 0;
2826 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2827 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2828 return res;
2829 }
2830}
2831
2832SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2833 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
093d3ff1
RD
2834 int red = -1;
2835 int green = -1;
2836 int blue = -1;
fc46b7f3 2837 int alpha = wxALPHA_OPAQUE;
093d3ff1
RD
2838 if (self->Ok()) {
2839 red = self->Red();
2840 green = self->Green();
2841 blue = self->Blue();
fc46b7f3 2842 alpha = self->Alpha();
093d3ff1
RD
2843 }
2844 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2845 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2846 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2847 if (includeAlpha)
2848 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
093d3ff1
RD
2849 return rv;
2850 }
554f62e9 2851SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
093d3ff1
RD
2852 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2853 }
2854
554f62e9
RD
2855SWIGINTERN int
2856SWIG_AsVal_int (PyObject * obj, int *val)
093d3ff1 2857{
554f62e9
RD
2858 long v;
2859 int res = SWIG_AsVal_long (obj, &v);
2860 if (SWIG_IsOK(res)) {
2861 if ((v < INT_MIN || v > INT_MAX)) {
2862 return SWIG_OverflowError;
2863 } else {
2864 if (val) *val = static_cast< int >(v);
2865 }
2866 }
2867 return res;
d55e5bfc
RD
2868}
2869
554f62e9 2870SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
093d3ff1
RD
2871 wxDash* dashes;
2872 int count = self->GetDashes(&dashes);
5a446332 2873 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2874 PyObject* retval = PyList_New(0);
2875 for (int x=0; x<count; x++) {
2876 PyObject* pyint = PyInt_FromLong(dashes[x]);
2877 PyList_Append(retval, pyint);
2878 Py_DECREF(pyint);
2879 }
2880 wxPyEndBlockThreads(blocked);
2881 return retval;
2882 }
554f62e9 2883SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2884 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2885 int size = PyList_Size(pyDashes);
2886 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2887
093d3ff1
RD
2888 // black magic warning! The array of wxDashes needs to exist as
2889 // long as the pen does because wxPen does not copy the array. So
2890 // stick a copy in a Python string object and attach it to _self,
2891 // and then call SetDashes with a pointer to that array. Then
2892 // when the Python pen object is destroyed the array will be
2893 // cleaned up too.
2894 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2895 PyObject_SetAttrString(_self, "_dashes", strDashes);
2896
2897 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2898 delete [] dashes;
2899 Py_DECREF(strDashes);
2900 wxPyEndBlockThreads(blocked);
2901 }
554f62e9
RD
2902SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2903SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2904
fc46b7f3
RD
2905#include <wx/rawbmp.h>
2906
2907
093d3ff1 2908#include <wx/image.h>
d55e5bfc 2909
093d3ff1
RD
2910 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2911 char** cArray = NULL;
2912 int count;
d55e5bfc 2913
093d3ff1
RD
2914 if (!PyList_Check(listOfStrings)) {
2915 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2916 return NULL;
2917 }
2918 count = PyList_Size(listOfStrings);
2919 cArray = new char*[count];
d55e5bfc 2920
093d3ff1
RD
2921 for(int x=0; x<count; x++) {
2922 // TODO: Need some validation and error checking here
2923 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2924 }
2925 return cArray;
d55e5bfc 2926 }
d55e5bfc
RD
2927
2928
554f62e9 2929SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2930 char** cArray = NULL;
2931 wxBitmap* bmp;
2932
2933 cArray = ConvertListOfStrings(listOfStrings);
2934 if (! cArray)
2935 return NULL;
2936 bmp = new wxBitmap(cArray);
2937 delete [] cArray;
2938 return bmp;
2939 }
554f62e9 2940SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2941 char* buf;
2942 Py_ssize_t length;
2943 PyString_AsStringAndSize(bits, &buf, &length);
2944 return new wxBitmap(buf, width, height, depth);
2945 }
554f62e9
RD
2946SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2947SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
093d3ff1
RD
2948 wxSize size(self->GetWidth(), self->GetHeight());
2949 return size;
2950 }
554f62e9 2951SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
093d3ff1
RD
2952 wxMask *mask = new wxMask(*self, colour);
2953 self->SetMask(mask);
2954 }
554f62e9 2955SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
093d3ff1
RD
2956 self->SetWidth(size.x);
2957 self->SetHeight(size.y);
2958 }
554f62e9
RD
2959SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2960SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
fc46b7f3
RD
2961
2962// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2963// appears to me that the other platforms are already doing it, so I'll just
2964// automatically do it for wxMSW here.
2965#ifdef __WXMSW__
195a89b4
RD
2966#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2967#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
fc46b7f3
RD
2968#else
2969#define wxPy_premultiply(p, a) (p)
2970#define wxPy_unpremultiply(p, a) (p)
2971#endif
2972
2973
2974 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2975 buffer data, int DATASIZE,
2976 buffer alpha, int ALPHASIZE)
2977 {
2978 if (DATASIZE != width*height*3) {
2979 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2980 return NULL;
2981 }
2982
2983 if (ALPHASIZE != width*height) {
2984 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
2985 return NULL;
2986 }
2987
2988 wxBitmap* bmp = new wxBitmap(width, height, 32);
2989 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
2990 if (! pixData) {
2991 // raise an exception...
2992 wxPyErr_SetString(PyExc_RuntimeError,
2993 "Failed to gain raw access to bitmap data.");
2994 return NULL;
2995 }
2996
2997 pixData.UseAlpha();
2998 wxAlphaPixelData::Iterator p(pixData);
2999 for (int y=0; y<height; y++) {
3000 wxAlphaPixelData::Iterator rowStart = p;
3001 for (int x=0; x<width; x++) {
3002 byte a = *(alpha++);
3003 p.Red() = wxPy_premultiply(*(data++), a);
3004 p.Green() = wxPy_premultiply(*(data++), a);
3005 p.Blue() = wxPy_premultiply(*(data++), a);
3006 p.Alpha() = a;
3007 ++p;
3008 }
3009 p = rowStart;
3010 p.OffsetY(pixData, 1);
3011 }
3012 return bmp;
3013 }
3014
3015 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3016 {
3017 if (DATASIZE != width*height*3) {
3018 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3019 return NULL;
3020 }
3021
3022 wxBitmap* bmp = new wxBitmap(width, height, 24);
3023 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3024 if (! pixData) {
3025 // raise an exception...
3026 wxPyErr_SetString(PyExc_RuntimeError,
3027 "Failed to gain raw access to bitmap data.");
3028 return NULL;
3029 }
3030
3031 wxNativePixelData::Iterator p(pixData);
3032 for (int y=0; y<height; y++) {
3033 wxNativePixelData::Iterator rowStart = p;
3034 for (int x=0; x<width; x++) {
3035 p.Red() = *(data++);
3036 p.Green() = *(data++);
3037 p.Blue() = *(data++);
3038 ++p;
3039 }
3040 p = rowStart;
3041 p.OffsetY(pixData, 1);
3042 }
3043 return bmp;
3044 }
3045
3046
3047 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3048 {
3049 if (DATASIZE != width*height*4) {
3050 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3051 return NULL;
3052 }
3053
3054 wxBitmap* bmp = new wxBitmap(width, height, 32);
3055 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3056 if (! pixData) {
3057 // raise an exception...
3058 wxPyErr_SetString(PyExc_RuntimeError,
3059 "Failed to gain raw access to bitmap data.");
3060 return NULL;
3061 }
3062
3063 pixData.UseAlpha();
3064 wxAlphaPixelData::Iterator p(pixData);
3065 for (int y=0; y<height; y++) {
3066 wxAlphaPixelData::Iterator rowStart = p;
3067 for (int x=0; x<width; x++) {
3068 byte a = data[3];
3069 p.Red() = wxPy_premultiply(*(data++), a);
3070 p.Green() = wxPy_premultiply(*(data++), a);
3071 p.Blue() = wxPy_premultiply(*(data++), a);
3072 p.Alpha() = a; data++;
3073 ++p;
3074 }
3075 p = rowStart;
3076 p.OffsetY(pixData, 1);
3077 }
3078 return bmp;
3079 }
3080
3081
3082 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3083
3084SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3085SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3086SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3087 self->Red() = red;
3088 self->Green() = green;
3089 self->Blue() = blue;
3090 }
3091SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3092 PyObject* rv = PyTuple_New(3);
3093 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3094 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3095 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3096 return rv;
3097 }
3098
3099 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3100
3101SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3102SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3103SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3104 self->Red() = wxPy_premultiply(red, alpha);
3105 self->Green() = wxPy_premultiply(green, alpha);
3106 self->Blue() = wxPy_premultiply(blue, alpha);
3107 self->Alpha() = alpha;
3108 }
3109SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3110 PyObject* rv = PyTuple_New(4);
3111 int red = self->Red();
3112 int green = self->Green();
3113 int blue = self->Blue();
3114 int alpha = self->Alpha();
3115
3116 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3117 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3118 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3119 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3120 return rv;
3121 }
554f62e9 3122SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
093d3ff1
RD
3123 if ( !colour.Ok() )
3124 return new wxMask(bitmap, *wxBLACK);
3125 else
3126 return new wxMask(bitmap, colour);
3127 }
d55e5bfc 3128
093d3ff1 3129#include <wx/iconbndl.h>
d55e5bfc 3130
554f62e9 3131SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
093d3ff1
RD
3132 wxIcon* icon = new wxIcon();
3133 icon->CopyFromBitmap(bmp);
3134 return icon;
3135 }
554f62e9 3136SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
093d3ff1
RD
3137 char** cArray = NULL;
3138 wxIcon* icon;
d55e5bfc 3139
093d3ff1
RD
3140 cArray = ConvertListOfStrings(listOfStrings);
3141 if (! cArray)
3142 return NULL;
3143 icon = new wxIcon(cArray);
3144 delete [] cArray;
3145 return icon;
3146 }
554f62e9
RD
3147SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3148SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc 3149
093d3ff1 3150 return new wxIconLocation(*filename, num);
d55e5bfc
RD
3151
3152
d55e5bfc 3153
093d3ff1 3154 }
554f62e9 3155SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc 3156
093d3ff1 3157 self->SetIndex(num);
d55e5bfc
RD
3158
3159
d55e5bfc 3160
093d3ff1 3161 }
554f62e9 3162SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
d55e5bfc 3163
093d3ff1 3164 return self->GetIndex();
d55e5bfc
RD
3165
3166
d55e5bfc 3167
093d3ff1 3168 }
554f62e9 3169SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
093d3ff1 3170#ifdef __WXGTK__
fef4c27a
RD
3171 wxImage img(cursorName, type);
3172 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3173 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3174 return new wxCursor(img);
093d3ff1 3175#else
fef4c27a 3176 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
093d3ff1
RD
3177#endif
3178 }
554f62e9 3179SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
d55e5bfc 3180
093d3ff1 3181
554f62e9 3182SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
093d3ff1
RD
3183 (*self) ++;
3184 }
554f62e9 3185SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
093d3ff1
RD
3186 return self->operator bool();
3187 }
3188
3189#include <wx/fontutil.h>
3190#include <wx/fontmap.h>
3191#include <wx/fontenum.h>
3192
554f62e9 3193SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
093d3ff1
RD
3194 return self->ToString();
3195 }
3196
3197 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3198 { wxPyRaiseNotImplemented(); return NULL; }
3199
3200 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3201 { wxPyRaiseNotImplemented(); return false; }
3202
554f62e9
RD
3203
3204SWIGINTERNINLINE PyObject *
3205SWIG_From_size_t (size_t value)
3206{
3207 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3208}
3209
3210
3211SWIGINTERNINLINE int
3212SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3213{
3214 unsigned long v;
3215 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3216 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3217 return res;
3218}
3219
3220SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
093d3ff1
RD
3221 wxFontEncoding alt_enc;
3222 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3223 return PyInt_FromLong(alt_enc);
3224 else {
3225 Py_INCREF(Py_None);
3226 return Py_None;
3227 }
3228 }
554f62e9 3229SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3230 wxNativeFontInfo nfi;
3231 nfi.FromString(info);
3232 return new wxFont(nfi);
3233 }
554f62e9 3234SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3235 return wxFont::New(pointSize, family, flags, face, encoding);
3236 }
554f62e9 3237SWIGINTERN 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
3238 return wxFontBase::New(pixelSize, family,
3239 style, weight, underlined,
3240 face, encoding);
3241 }
554f62e9 3242SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3243 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3244 }
554f62e9
RD
3245SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3246SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
093d3ff1
RD
3247
3248class wxPyFontEnumerator : public wxFontEnumerator {
3249public:
3250 wxPyFontEnumerator() {}
3251 ~wxPyFontEnumerator() {}
3252
3253 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3254 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3255
3256 PYPRIVATE;
3257};
3258
3259IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3260IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3261
3262
704eda0c 3263SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3264 PyObject* ret;
704eda0c 3265 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3266 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3267 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3268 wxPyEndBlockThreads(blocked);
3269 return ret;
093d3ff1 3270 }
704eda0c 3271SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3272 PyObject* ret;
704eda0c 3273 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3274 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3275 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3276 wxPyEndBlockThreads(blocked);
3277 return ret;
093d3ff1
RD
3278 }
3279
3280#include <locale.h>
3281
554f62e9 3282SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3283 wxLocale* loc;
3284 if (language == -1)
3285 loc = new wxLocale();
3286 else
3287 loc = new wxLocale(language, flags);
3288 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3289 // for the floating point conversions and such to work right.
3290#if PY_VERSION_HEX < 0x02040000
3291 setlocale(LC_NUMERIC, "C");
3292#endif
3293 return loc;
3294 }
554f62e9 3295SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
093d3ff1
RD
3296 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3297 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3298 // for the floating point conversions and such to work right.
3299#if PY_VERSION_HEX < 0x02040000
3300 setlocale(LC_NUMERIC, "C");
3301#endif
3302 return rc;
3303 }
554f62e9 3304SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3305 bool rc = self->Init(language, flags);
3306 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3307 // for the floating point conversions and such to work right.
3308#if PY_VERSION_HEX < 0x02040000
3309 setlocale(LC_NUMERIC, "C");
3310#endif
3311 return rc;
3312 }
3313
fc46b7f3
RD
3314class wxPyLocale : public wxLocale
3315{
3316public:
3317 wxPyLocale();
3318
3319 wxPyLocale(const wxChar *szName, // name (for messages)
3320 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3321 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3322 bool bLoadDefault = true, // preload wxstd.mo?
3323 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3324
3325 wxPyLocale(int language, // wxLanguage id or custom language
3326 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3327
3328 ~wxPyLocale();
3329
3330 virtual const wxChar *GetString(const wxChar *szOrigString,
3331 const wxChar *szDomain = NULL) const;
3332 virtual const wxChar *GetString(const wxChar *szOrigString,
3333 const wxChar *szOrigString2, size_t n,
3334 const wxChar *szDomain = NULL) const;
3335
3336 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3337 const wxChar *szDomain = NULL) const;
3338 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3339 const wxChar *szOrigString2, size_t n,
3340 const wxChar *szDomain = NULL) const;
3341
3342 PYPRIVATE;
3343private:
3344 DECLARE_NO_COPY_CLASS(wxPyLocale)
3345};
3346
3347wxPyLocale::wxPyLocale() : wxLocale()
3348{
3349}
3350
3351wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3352 const wxChar *szShort, // dir prefix (for msg files)
3353 const wxChar *szLocale, // locale (for setlocale)
3354 bool bLoadDefault, // preload wxstd.mo?
3355 bool bConvertEncoding) // convert Win<->Unix if necessary?
3356 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3357{
3358}
3359
3360wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3361 int flags) : wxLocale(language, flags)
3362{
3363}
3364
3365wxPyLocale::~wxPyLocale()
3366{
3367}
3368
3369const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3370 const wxChar *szDomain) const
3371{
3372 wxChar *str = GetSingularString(szOrigString, szDomain);
3373 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3374}
3375
3376const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3377 const wxChar *szOrigString2, size_t n,
3378 const wxChar *szDomain) const
3379{
3380 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3381 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3382}
3383
3384wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3385 const wxChar *szDomain) const
3386{
3387 bool found;
3388 static wxString str;
3389 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.
3390 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3391 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3392 PyObject* param1 = wx2PyString(szOrigString);
3393 PyObject* param2 = wx2PyString(szDomain);
3394 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3395 Py_DECREF(param1);
3396 Py_DECREF(param2);
3397 if (ret) {
3398 str = Py2wxString(ret);
3399 Py_DECREF(ret);
3400 }
3401 }
3402 wxPyEndBlockThreads(blocked);
3403 return (found ? (wxChar*)str.c_str() : NULL);
3404}
3405
3406wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3407 const wxChar *szOrigString2, size_t n,
3408 const wxChar *szDomain) const
3409{
3410 bool found;
3411 static wxString str;
3412 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.
3413 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3414 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3415 PyObject* param1 = wx2PyString(szOrigString);
3416 PyObject* param2 = wx2PyString(szOrigString2);
3417 PyObject* param4 = wx2PyString(szDomain);
3418 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3419 Py_DECREF(param1);
3420 Py_DECREF(param2);
3421 Py_DECREF(param4);
3422 if( ret) {
3423 str = Py2wxString(ret);
3424 Py_DECREF(ret);
3425 }
3426 }
3427 wxPyEndBlockThreads(blocked);
3428 return (found ? (wxChar*)str.c_str() : NULL);
3429}
3430
3431SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3432 wxPyLocale* loc;
3433 if (language == -1)
3434 loc = new wxPyLocale();
3435 else
3436 loc = new wxPyLocale(language, flags);
3437 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3438 // for the floating point conversions and such to work right.
3439#if PY_VERSION_HEX < 0x02040000
3440 setlocale(LC_NUMERIC, "C");
3441#endif
3442 return loc;
3443 }
3444
093d3ff1
RD
3445#include "wx/wxPython/pydrawxxx.h"
3446
554f62e9 3447SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
093d3ff1
RD
3448 wxColour col;
3449 self->GetPixel(x, y, &col);
3450 return col;
3451 }
554f62e9 3452SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
093d3ff1
RD
3453 wxColour col;
3454 self->GetPixel(pt, &col);
3455 return col;
3456 }
3457
3458SWIGINTERN int
554f62e9 3459SWIG_AsVal_double (PyObject *obj, double* val)
093d3ff1
RD
3460{
3461 if (PyNumber_Check(obj)) {
3462 if (val) *val = PyFloat_AsDouble(obj);
554f62e9 3463 return SWIG_OK;
093d3ff1 3464 }
554f62e9 3465 return SWIG_TypeError;
093d3ff1
RD
3466}
3467
554f62e9 3468SWIGINTERN 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
3469 wxRect rv;
3470 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3471 return rv;
3472 }
554f62e9 3473SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
093d3ff1
RD
3474 wxRect rect;
3475 self->GetClippingBox(rect);
3476 return rect;
3477 }
554f62e9 3478SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
093d3ff1
RD
3479 wxArrayInt widths;
3480 self->GetPartialTextExtents(text, widths);
3481 return widths;
3482 }
3483
554f62e9 3484 #define SWIG_From_double PyFloat_FromDouble
093d3ff1 3485
554f62e9 3486SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3487 self->SetLogicalOrigin(point.x, point.y);
3488 }
554f62e9 3489SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3490 self->SetDeviceOrigin(point.x, point.y);
3491 }
554f62e9 3492SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3493 self->CalcBoundingBox(point.x, point.y);
3494 }
554f62e9 3495SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3496 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3497 }
554f62e9 3498SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3499 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3500 }
554f62e9 3501SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3502 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3503 }
554f62e9 3504SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3505 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3506 }
554f62e9 3507SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3508 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3509 }
554f62e9 3510SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
093d3ff1
RD
3511 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3512 }
3513
3514static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3515 *x1 = dc->MinX();
3516 *y1 = dc->MinY();
3517 *x2 = dc->MaxX();
3518 *y2 = dc->MaxY();
3519}
3520
3521
3522#include <wx/dcbuffer.h>
3523
3524
3525#include <wx/dcps.h>
3526
3527
3528#include <wx/metafile.h>
3529
3530
3531
554f62e9 3532SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
093d3ff1
RD
3533 self->AddColour(name, wxColour(red, green, blue));
3534 }
3535
50efceee
RD
3536 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3537 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3538 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3539 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3540
3541
093d3ff1
RD
3542#include <wx/effects.h>
3543
be9b1dca
RD
3544
3545#include "wx/renderer.h"
3546
3547
7449af73 3548SWIGINTERNINLINE PyObject*
554f62e9 3549 SWIG_From_bool (bool value)
be9b1dca 3550{
554f62e9 3551 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
3552}
3553
27e45892
RD
3554
3555#include "wx/wxPython/pseudodc.h"
3556
3557SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3558 wxRect rect;
3559 self->GetIdBounds(id, rect);
3560 return rect;
3561 }
093d3ff1
RD
3562#ifdef __cplusplus
3563extern "C" {
3564#endif
554f62e9
RD
3565SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3566 PyObject *resultobj = 0;
3567 wxGDIObject *result = 0 ;
3568
3569 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3570 {
3571 if (!wxPyCheckForApp()) SWIG_fail;
3572 PyThreadState* __tstate = wxPyBeginAllowThreads();
3573 result = (wxGDIObject *)new wxGDIObject();
3574 wxPyEndAllowThreads(__tstate);
3575 if (PyErr_Occurred()) SWIG_fail;
3576 }
3577 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3578 return resultobj;
3579fail:
3580 return NULL;
d55e5bfc
RD
3581}
3582
3583
554f62e9
RD
3584SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3585 PyObject *resultobj = 0;
3586 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3587 void *argp1 = 0 ;
3588 int res1 = 0 ;
3589 PyObject *swig_obj[1] ;
3590
3591 if (!args) SWIG_fail;
3592 swig_obj[0] = args;
3593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3594 if (!SWIG_IsOK(res1)) {
3595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3596 }
3597 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3598 {
3599 PyThreadState* __tstate = wxPyBeginAllowThreads();
3600 delete arg1;
d55e5bfc 3601
554f62e9
RD
3602 wxPyEndAllowThreads(__tstate);
3603 if (PyErr_Occurred()) SWIG_fail;
3604 }
3605 resultobj = SWIG_Py_Void();
3606 return resultobj;
3607fail:
3608 return NULL;
d55e5bfc
RD
3609}
3610
3611
554f62e9
RD
3612SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3613 PyObject *resultobj = 0;
3614 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3615 bool result;
3616 void *argp1 = 0 ;
3617 int res1 = 0 ;
3618 PyObject *swig_obj[1] ;
3619
3620 if (!args) SWIG_fail;
3621 swig_obj[0] = args;
3622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3623 if (!SWIG_IsOK(res1)) {
3624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3625 }
3626 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3627 {
3628 PyThreadState* __tstate = wxPyBeginAllowThreads();
3629 result = (bool)(arg1)->IsNull();
3630 wxPyEndAllowThreads(__tstate);
3631 if (PyErr_Occurred()) SWIG_fail;
3632 }
3633 {
3634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3635 }
3636 return resultobj;
3637fail:
3638 return NULL;
3639}
3640
3641
3642SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3643 PyObject *obj;
3644 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3645 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3646 return SWIG_Py_Void();
3647}
3648
3649SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3650 return SWIG_Python_InitShadowInstance(args);
3651}
3652
3653SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3654 PyObject *resultobj = 0;
3655 byte arg1 = (byte) 0 ;
3656 byte arg2 = (byte) 0 ;
3657 byte arg3 = (byte) 0 ;
fc46b7f3 3658 byte arg4 = (byte) wxALPHA_OPAQUE ;
554f62e9
RD
3659 wxColour *result = 0 ;
3660 unsigned char val1 ;
3661 int ecode1 = 0 ;
3662 unsigned char val2 ;
3663 int ecode2 = 0 ;
3664 unsigned char val3 ;
3665 int ecode3 = 0 ;
fc46b7f3
RD
3666 unsigned char val4 ;
3667 int ecode4 = 0 ;
554f62e9
RD
3668 PyObject * obj0 = 0 ;
3669 PyObject * obj1 = 0 ;
3670 PyObject * obj2 = 0 ;
fc46b7f3 3671 PyObject * obj3 = 0 ;
554f62e9 3672 char * kwnames[] = {
fc46b7f3 3673 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
554f62e9
RD
3674 };
3675
fc46b7f3 3676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
554f62e9
RD
3677 if (obj0) {
3678 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3679 if (!SWIG_IsOK(ecode1)) {
3680 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3681 }
3682 arg1 = static_cast< byte >(val1);
3683 }
3684 if (obj1) {
3685 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3686 if (!SWIG_IsOK(ecode2)) {
3687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3688 }
3689 arg2 = static_cast< byte >(val2);
3690 }
3691 if (obj2) {
3692 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3693 if (!SWIG_IsOK(ecode3)) {
3694 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3695 }
3696 arg3 = static_cast< byte >(val3);
3697 }
fc46b7f3
RD
3698 if (obj3) {
3699 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3700 if (!SWIG_IsOK(ecode4)) {
3701 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3702 }
3703 arg4 = static_cast< byte >(val4);
3704 }
554f62e9
RD
3705 {
3706 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 3707 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
554f62e9
RD
3708 wxPyEndAllowThreads(__tstate);
3709 if (PyErr_Occurred()) SWIG_fail;
3710 }
3711 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3712 return resultobj;
3713fail:
3714 return NULL;
d55e5bfc
RD
3715}
3716
3717
554f62e9
RD
3718SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3719 PyObject *resultobj = 0;
3720 wxString *arg1 = 0 ;
3721 wxColour *result = 0 ;
3722 bool temp1 = false ;
3723 PyObject * obj0 = 0 ;
3724 char * kwnames[] = {
3725 (char *) "colorName", NULL
3726 };
3727
3728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3729 {
3730 arg1 = wxString_in_helper(obj0);
3731 if (arg1 == NULL) SWIG_fail;
3732 temp1 = true;
3733 }
3734 {
3735 if (!wxPyCheckForApp()) SWIG_fail;
3736 PyThreadState* __tstate = wxPyBeginAllowThreads();
3737 result = (wxColour *)new wxColour((wxString const &)*arg1);
3738 wxPyEndAllowThreads(__tstate);
3739 if (PyErr_Occurred()) SWIG_fail;
3740 }
3741 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3742 {
3743 if (temp1)
3744 delete arg1;
3745 }
3746 return resultobj;
3747fail:
3748 {
3749 if (temp1)
3750 delete arg1;
3751 }
3752 return NULL;
b519803b
RD
3753}
3754
3755
554f62e9
RD
3756SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3757 PyObject *resultobj = 0;
3758 unsigned long arg1 ;
3759 wxColour *result = 0 ;
3760 unsigned long val1 ;
3761 int ecode1 = 0 ;
3762 PyObject * obj0 = 0 ;
3763 char * kwnames[] = {
3764 (char *) "colRGB", NULL
3765 };
3766
3767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3768 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3769 if (!SWIG_IsOK(ecode1)) {
3770 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3771 }
3772 arg1 = static_cast< unsigned long >(val1);
3773 {
3774 PyThreadState* __tstate = wxPyBeginAllowThreads();
3775 result = (wxColour *)new wxColour(arg1);
3776 wxPyEndAllowThreads(__tstate);
3777 if (PyErr_Occurred()) SWIG_fail;
3778 }
3779 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3780 return resultobj;
3781fail:
3782 return NULL;
d55e5bfc
RD
3783}
3784
3785
554f62e9
RD
3786SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3787 PyObject *resultobj = 0;
3788 wxColour *arg1 = (wxColour *) 0 ;
3789 void *argp1 = 0 ;
3790 int res1 = 0 ;
3791 PyObject *swig_obj[1] ;
3792
3793 if (!args) SWIG_fail;
3794 swig_obj[0] = args;
3795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3796 if (!SWIG_IsOK(res1)) {
3797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3798 }
3799 arg1 = reinterpret_cast< wxColour * >(argp1);
3800 {
3801 PyThreadState* __tstate = wxPyBeginAllowThreads();
3802 delete arg1;
d55e5bfc 3803
554f62e9
RD
3804 wxPyEndAllowThreads(__tstate);
3805 if (PyErr_Occurred()) SWIG_fail;
3806 }
3807 resultobj = SWIG_Py_Void();
3808 return resultobj;
3809fail:
3810 return NULL;
d55e5bfc
RD
3811}
3812
3813
554f62e9
RD
3814SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3815 PyObject *resultobj = 0;
3816 wxColour *arg1 = (wxColour *) 0 ;
3817 byte result;
3818 void *argp1 = 0 ;
3819 int res1 = 0 ;
3820 PyObject *swig_obj[1] ;
3821
3822 if (!args) SWIG_fail;
3823 swig_obj[0] = args;
3824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3825 if (!SWIG_IsOK(res1)) {
3826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3827 }
3828 arg1 = reinterpret_cast< wxColour * >(argp1);
3829 {
3830 PyThreadState* __tstate = wxPyBeginAllowThreads();
3831 result = (byte)(arg1)->Red();
3832 wxPyEndAllowThreads(__tstate);
3833 if (PyErr_Occurred()) SWIG_fail;
3834 }
3835 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3836 return resultobj;
3837fail:
3838 return NULL;
d55e5bfc
RD
3839}
3840
3841
554f62e9
RD
3842SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3843 PyObject *resultobj = 0;
3844 wxColour *arg1 = (wxColour *) 0 ;
3845 byte result;
3846 void *argp1 = 0 ;
3847 int res1 = 0 ;
3848 PyObject *swig_obj[1] ;
3849
3850 if (!args) SWIG_fail;
3851 swig_obj[0] = args;
3852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3853 if (!SWIG_IsOK(res1)) {
3854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3855 }
3856 arg1 = reinterpret_cast< wxColour * >(argp1);
3857 {
3858 PyThreadState* __tstate = wxPyBeginAllowThreads();
3859 result = (byte)(arg1)->Green();
3860 wxPyEndAllowThreads(__tstate);
3861 if (PyErr_Occurred()) SWIG_fail;
3862 }
3863 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3864 return resultobj;
3865fail:
3866 return NULL;
d55e5bfc
RD
3867}
3868
3869
554f62e9
RD
3870SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3871 PyObject *resultobj = 0;
3872 wxColour *arg1 = (wxColour *) 0 ;
3873 byte result;
3874 void *argp1 = 0 ;
3875 int res1 = 0 ;
3876 PyObject *swig_obj[1] ;
3877
3878 if (!args) SWIG_fail;
3879 swig_obj[0] = args;
3880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3881 if (!SWIG_IsOK(res1)) {
3882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3883 }
3884 arg1 = reinterpret_cast< wxColour * >(argp1);
3885 {
3886 PyThreadState* __tstate = wxPyBeginAllowThreads();
3887 result = (byte)(arg1)->Blue();
3888 wxPyEndAllowThreads(__tstate);
3889 if (PyErr_Occurred()) SWIG_fail;
3890 }
3891 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3892 return resultobj;
3893fail:
3894 return NULL;
d55e5bfc
RD
3895}
3896
3897
fc46b7f3
RD
3898SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3899 PyObject *resultobj = 0;
3900 wxColour *arg1 = (wxColour *) 0 ;
3901 byte result;
3902 void *argp1 = 0 ;
3903 int res1 = 0 ;
3904 PyObject *swig_obj[1] ;
3905
3906 if (!args) SWIG_fail;
3907 swig_obj[0] = args;
3908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3909 if (!SWIG_IsOK(res1)) {
3910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
3911 }
3912 arg1 = reinterpret_cast< wxColour * >(argp1);
3913 {
3914 PyThreadState* __tstate = wxPyBeginAllowThreads();
3915 result = (byte)(arg1)->Alpha();
3916 wxPyEndAllowThreads(__tstate);
3917 if (PyErr_Occurred()) SWIG_fail;
3918 }
3919 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3920 return resultobj;
3921fail:
3922 return NULL;
3923}
3924
3925
554f62e9
RD
3926SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3927 PyObject *resultobj = 0;
3928 wxColour *arg1 = (wxColour *) 0 ;
3929 bool result;
3930 void *argp1 = 0 ;
3931 int res1 = 0 ;
3932 PyObject *swig_obj[1] ;
3933
3934 if (!args) SWIG_fail;
3935 swig_obj[0] = args;
3936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3937 if (!SWIG_IsOK(res1)) {
3938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3939 }
3940 arg1 = reinterpret_cast< wxColour * >(argp1);
3941 {
3942 PyThreadState* __tstate = wxPyBeginAllowThreads();
3943 result = (bool)(arg1)->Ok();
3944 wxPyEndAllowThreads(__tstate);
3945 if (PyErr_Occurred()) SWIG_fail;
3946 }
3947 {
3948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3949 }
3950 return resultobj;
3951fail:
3952 return NULL;
3953}
3954
3955
3956SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3957 PyObject *resultobj = 0;
3958 wxColour *arg1 = (wxColour *) 0 ;
3959 byte arg2 ;
3960 byte arg3 ;
3961 byte arg4 ;
fc46b7f3 3962 byte arg5 = (byte) wxALPHA_OPAQUE ;
554f62e9
RD
3963 void *argp1 = 0 ;
3964 int res1 = 0 ;
3965 unsigned char val2 ;
3966 int ecode2 = 0 ;
3967 unsigned char val3 ;
3968 int ecode3 = 0 ;
3969 unsigned char val4 ;
3970 int ecode4 = 0 ;
fc46b7f3
RD
3971 unsigned char val5 ;
3972 int ecode5 = 0 ;
554f62e9
RD
3973 PyObject * obj0 = 0 ;
3974 PyObject * obj1 = 0 ;
3975 PyObject * obj2 = 0 ;
3976 PyObject * obj3 = 0 ;
fc46b7f3 3977 PyObject * obj4 = 0 ;
554f62e9 3978 char * kwnames[] = {
fc46b7f3 3979 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
554f62e9
RD
3980 };
3981
fc46b7f3 3982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
554f62e9
RD
3983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3984 if (!SWIG_IsOK(res1)) {
3985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
3986 }
3987 arg1 = reinterpret_cast< wxColour * >(argp1);
3988 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3989 if (!SWIG_IsOK(ecode2)) {
3990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
3991 }
3992 arg2 = static_cast< byte >(val2);
3993 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3994 if (!SWIG_IsOK(ecode3)) {
3995 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
3996 }
3997 arg3 = static_cast< byte >(val3);
3998 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3999 if (!SWIG_IsOK(ecode4)) {
4000 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4001 }
4002 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4003 if (obj4) {
4004 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4005 if (!SWIG_IsOK(ecode5)) {
4006 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4007 }
4008 arg5 = static_cast< byte >(val5);
4009 }
554f62e9
RD
4010 {
4011 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4012 (arg1)->Set(arg2,arg3,arg4,arg5);
554f62e9
RD
4013 wxPyEndAllowThreads(__tstate);
4014 if (PyErr_Occurred()) SWIG_fail;
4015 }
4016 resultobj = SWIG_Py_Void();
4017 return resultobj;
4018fail:
4019 return NULL;
4020}
4021
4022
4023SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4024 PyObject *resultobj = 0;
4025 wxColour *arg1 = (wxColour *) 0 ;
4026 unsigned long arg2 ;
4027 void *argp1 = 0 ;
4028 int res1 = 0 ;
4029 unsigned long val2 ;
4030 int ecode2 = 0 ;
4031 PyObject * obj0 = 0 ;
4032 PyObject * obj1 = 0 ;
4033 char * kwnames[] = {
4034 (char *) "self",(char *) "colRGB", NULL
4035 };
4036
4037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4039 if (!SWIG_IsOK(res1)) {
4040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4041 }
4042 arg1 = reinterpret_cast< wxColour * >(argp1);
4043 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4044 if (!SWIG_IsOK(ecode2)) {
4045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4046 }
4047 arg2 = static_cast< unsigned long >(val2);
4048 {
4049 PyThreadState* __tstate = wxPyBeginAllowThreads();
4050 (arg1)->Set(arg2);
4051 wxPyEndAllowThreads(__tstate);
4052 if (PyErr_Occurred()) SWIG_fail;
4053 }
4054 resultobj = SWIG_Py_Void();
4055 return resultobj;
4056fail:
4057 return NULL;
4058}
4059
4060
4061SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4062 PyObject *resultobj = 0;
4063 wxColour *arg1 = (wxColour *) 0 ;
4064 wxString *arg2 = 0 ;
4065 void *argp1 = 0 ;
4066 int res1 = 0 ;
4067 bool temp2 = false ;
4068 PyObject * obj0 = 0 ;
4069 PyObject * obj1 = 0 ;
4070 char * kwnames[] = {
4071 (char *) "self",(char *) "colourName", NULL
4072 };
4073
4074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4076 if (!SWIG_IsOK(res1)) {
4077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4078 }
4079 arg1 = reinterpret_cast< wxColour * >(argp1);
4080 {
4081 arg2 = wxString_in_helper(obj1);
4082 if (arg2 == NULL) SWIG_fail;
4083 temp2 = true;
4084 }
4085 {
4086 PyThreadState* __tstate = wxPyBeginAllowThreads();
4087 (arg1)->InitFromName((wxString const &)*arg2);
4088 wxPyEndAllowThreads(__tstate);
4089 if (PyErr_Occurred()) SWIG_fail;
4090 }
4091 resultobj = SWIG_Py_Void();
4092 {
4093 if (temp2)
4094 delete arg2;
4095 }
4096 return resultobj;
4097fail:
4098 {
4099 if (temp2)
4100 delete arg2;
4101 }
4102 return NULL;
d55e5bfc
RD
4103}
4104
4105
f460c29d
RD
4106SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4107 PyObject *resultobj = 0;
4108 wxColour *arg1 = (wxColour *) 0 ;
4109 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4110 wxString result;
4111 void *argp1 = 0 ;
4112 int res1 = 0 ;
4113 long val2 ;
4114 int ecode2 = 0 ;
4115 PyObject * obj0 = 0 ;
4116 PyObject * obj1 = 0 ;
4117 char * kwnames[] = {
4118 (char *) "self",(char *) "flags", NULL
4119 };
4120
4121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4123 if (!SWIG_IsOK(res1)) {
4124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4125 }
4126 arg1 = reinterpret_cast< wxColour * >(argp1);
4127 if (obj1) {
4128 ecode2 = SWIG_AsVal_long(obj1, &val2);
4129 if (!SWIG_IsOK(ecode2)) {
4130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4131 }
4132 arg2 = static_cast< long >(val2);
4133 }
4134 {
4135 PyThreadState* __tstate = wxPyBeginAllowThreads();
4136 result = ((wxColour const *)arg1)->GetAsString(arg2);
4137 wxPyEndAllowThreads(__tstate);
4138 if (PyErr_Occurred()) SWIG_fail;
4139 }
4140 {
4141#if wxUSE_UNICODE
4142 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4143#else
4144 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4145#endif
4146 }
4147 return resultobj;
4148fail:
4149 return NULL;
4150}
4151
4152
554f62e9
RD
4153SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4154 PyObject *resultobj = 0;
4155 wxColour *arg1 = (wxColour *) 0 ;
4156 long result;
4157 void *argp1 = 0 ;
4158 int res1 = 0 ;
4159 PyObject *swig_obj[1] ;
4160
4161 if (!args) SWIG_fail;
4162 swig_obj[0] = args;
4163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4164 if (!SWIG_IsOK(res1)) {
4165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4166 }
4167 arg1 = reinterpret_cast< wxColour * >(argp1);
4168 {
4169 PyThreadState* __tstate = wxPyBeginAllowThreads();
4170 result = (long)((wxColour const *)arg1)->GetPixel();
4171 wxPyEndAllowThreads(__tstate);
4172 if (PyErr_Occurred()) SWIG_fail;
4173 }
4174 resultobj = SWIG_From_long(static_cast< long >(result));
4175 return resultobj;
4176fail:
4177 return NULL;
4178}
4179
4180
4181SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4182 PyObject *resultobj = 0;
4183 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4184 PyObject *arg2 = (PyObject *) 0 ;
554f62e9
RD
4185 bool result;
4186 void *argp1 = 0 ;
4187 int res1 = 0 ;
554f62e9
RD
4188 PyObject * obj0 = 0 ;
4189 PyObject * obj1 = 0 ;
4190 char * kwnames[] = {
e9d6f3a4 4191 (char *) "self",(char *) "other", NULL
554f62e9
RD
4192 };
4193
4194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4196 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
4198 }
4199 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4200 arg2 = obj1;
554f62e9 4201 {
e9d6f3a4 4202 result = (bool)wxColour___eq__(arg1,arg2);
554f62e9
RD
4203 if (PyErr_Occurred()) SWIG_fail;
4204 }
4205 {
4206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4207 }
4208 return resultobj;
4209fail:
4210 return NULL;
4211}
4212
4213
4214SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4215 PyObject *resultobj = 0;
4216 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4217 PyObject *arg2 = (PyObject *) 0 ;
554f62e9
RD
4218 bool result;
4219 void *argp1 = 0 ;
4220 int res1 = 0 ;
554f62e9
RD
4221 PyObject * obj0 = 0 ;
4222 PyObject * obj1 = 0 ;
4223 char * kwnames[] = {
e9d6f3a4 4224 (char *) "self",(char *) "other", NULL
554f62e9
RD
4225 };
4226
4227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4229 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
4231 }
4232 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4233 arg2 = obj1;
554f62e9 4234 {
e9d6f3a4 4235 result = (bool)wxColour___ne__(arg1,arg2);
554f62e9
RD
4236 if (PyErr_Occurred()) SWIG_fail;
4237 }
4238 {
4239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4240 }
4241 return resultobj;
4242fail:
4243 return NULL;
d55e5bfc
RD
4244}
4245
4246
fc46b7f3 4247SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
4248 PyObject *resultobj = 0;
4249 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4250 bool arg2 = (bool) false ;
554f62e9
RD
4251 PyObject *result = 0 ;
4252 void *argp1 = 0 ;
4253 int res1 = 0 ;
fc46b7f3
RD
4254 bool val2 ;
4255 int ecode2 = 0 ;
4256 PyObject * obj0 = 0 ;
4257 PyObject * obj1 = 0 ;
4258 char * kwnames[] = {
4259 (char *) "self",(char *) "includeAlpha", NULL
4260 };
554f62e9 4261
fc46b7f3
RD
4262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
554f62e9
RD
4264 if (!SWIG_IsOK(res1)) {
4265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4266 }
4267 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4268 if (obj1) {
4269 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4270 if (!SWIG_IsOK(ecode2)) {
4271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4272 }
4273 arg2 = static_cast< bool >(val2);
4274 }
554f62e9 4275 {
fc46b7f3 4276 result = (PyObject *)wxColour_Get(arg1,arg2);
554f62e9
RD
4277 if (PyErr_Occurred()) SWIG_fail;
4278 }
4279 resultobj = result;
4280 return resultobj;
4281fail:
4282 return NULL;
d55e5bfc
RD
4283}
4284
4285
554f62e9
RD
4286SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4287 PyObject *resultobj = 0;
4288 wxColour *arg1 = (wxColour *) 0 ;
4289 unsigned long result;
4290 void *argp1 = 0 ;
4291 int res1 = 0 ;
4292 PyObject *swig_obj[1] ;
4293
4294 if (!args) SWIG_fail;
4295 swig_obj[0] = args;
4296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4297 if (!SWIG_IsOK(res1)) {
4298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4299 }
4300 arg1 = reinterpret_cast< wxColour * >(argp1);
4301 {
554f62e9 4302 result = (unsigned long)wxColour_GetRGB(arg1);
554f62e9
RD
4303 if (PyErr_Occurred()) SWIG_fail;
4304 }
4305 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4306 return resultobj;
4307fail:
4308 return NULL;
4309}
4310
4311
4312SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4313 PyObject *obj;
4314 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4315 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4316 return SWIG_Py_Void();
4317}
4318
4319SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4320 return SWIG_Python_InitShadowInstance(args);
4321}
4322
4323SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4324 PyObject *resultobj = 0;
4325 int arg1 ;
4326 unsigned char *arg2 = (unsigned char *) 0 ;
4327 unsigned char *arg3 = (unsigned char *) 0 ;
4328 unsigned char *arg4 = (unsigned char *) 0 ;
4329 wxPalette *result = 0 ;
4330 int val1 ;
4331 int ecode1 = 0 ;
4332 void *argp2 = 0 ;
4333 int res2 = 0 ;
4334 void *argp3 = 0 ;
4335 int res3 = 0 ;
4336 void *argp4 = 0 ;
4337 int res4 = 0 ;
4338 PyObject * obj0 = 0 ;
4339 PyObject * obj1 = 0 ;
4340 PyObject * obj2 = 0 ;
4341 PyObject * obj3 = 0 ;
4342 char * kwnames[] = {
4343 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4344 };
4345
4346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4347 ecode1 = SWIG_AsVal_int(obj0, &val1);
4348 if (!SWIG_IsOK(ecode1)) {
4349 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4350 }
4351 arg1 = static_cast< int >(val1);
4352 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4353 if (!SWIG_IsOK(res2)) {
4354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4355 }
4356 arg2 = reinterpret_cast< unsigned char * >(argp2);
4357 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4358 if (!SWIG_IsOK(res3)) {
4359 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4360 }
4361 arg3 = reinterpret_cast< unsigned char * >(argp3);
4362 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4363 if (!SWIG_IsOK(res4)) {
4364 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4365 }
4366 arg4 = reinterpret_cast< unsigned char * >(argp4);
4367 {
4368 if (!wxPyCheckForApp()) SWIG_fail;
4369 PyThreadState* __tstate = wxPyBeginAllowThreads();
4370 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4371 wxPyEndAllowThreads(__tstate);
4372 if (PyErr_Occurred()) SWIG_fail;
4373 }
4374 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4375 return resultobj;
4376fail:
4377 return NULL;
093d3ff1
RD
4378}
4379
4380
554f62e9
RD
4381SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4382 PyObject *resultobj = 0;
4383 wxPalette *arg1 = (wxPalette *) 0 ;
4384 void *argp1 = 0 ;
4385 int res1 = 0 ;
4386 PyObject *swig_obj[1] ;
4387
4388 if (!args) SWIG_fail;
4389 swig_obj[0] = args;
4390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4391 if (!SWIG_IsOK(res1)) {
4392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4393 }
4394 arg1 = reinterpret_cast< wxPalette * >(argp1);
4395 {
4396 PyThreadState* __tstate = wxPyBeginAllowThreads();
4397 delete arg1;
093d3ff1 4398
554f62e9
RD
4399 wxPyEndAllowThreads(__tstate);
4400 if (PyErr_Occurred()) SWIG_fail;
4401 }
4402 resultobj = SWIG_Py_Void();
4403 return resultobj;
4404fail:
4405 return NULL;
4406}
4407
4408
4409SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4410 PyObject *resultobj = 0;
4411 wxPalette *arg1 = (wxPalette *) 0 ;
4412 byte arg2 ;
4413 byte arg3 ;
4414 byte arg4 ;
4415 int result;
4416 void *argp1 = 0 ;
4417 int res1 = 0 ;
4418 unsigned char val2 ;
4419 int ecode2 = 0 ;
4420 unsigned char val3 ;
4421 int ecode3 = 0 ;
4422 unsigned char val4 ;
4423 int ecode4 = 0 ;
4424 PyObject * obj0 = 0 ;
4425 PyObject * obj1 = 0 ;
4426 PyObject * obj2 = 0 ;
4427 PyObject * obj3 = 0 ;
4428 char * kwnames[] = {
4429 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4430 };
4431
4432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4434 if (!SWIG_IsOK(res1)) {
4435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4436 }
4437 arg1 = reinterpret_cast< wxPalette * >(argp1);
4438 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4439 if (!SWIG_IsOK(ecode2)) {
4440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4441 }
4442 arg2 = static_cast< byte >(val2);
4443 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4444 if (!SWIG_IsOK(ecode3)) {
4445 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4446 }
4447 arg3 = static_cast< byte >(val3);
4448 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4449 if (!SWIG_IsOK(ecode4)) {
4450 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4451 }
4452 arg4 = static_cast< byte >(val4);
4453 {
4454 PyThreadState* __tstate = wxPyBeginAllowThreads();
4455 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4456 wxPyEndAllowThreads(__tstate);
4457 if (PyErr_Occurred()) SWIG_fail;
4458 }
4459 resultobj = SWIG_From_int(static_cast< int >(result));
4460 return resultobj;
4461fail:
4462 return NULL;
4463}
4464
4465
4466SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4467 PyObject *resultobj = 0;
4468 wxPalette *arg1 = (wxPalette *) 0 ;
4469 int arg2 ;
4470 byte *arg3 = (byte *) 0 ;
4471 byte *arg4 = (byte *) 0 ;
4472 byte *arg5 = (byte *) 0 ;
4473 bool result;
4474 void *argp1 = 0 ;
4475 int res1 = 0 ;
4476 int val2 ;
4477 int ecode2 = 0 ;
4478 byte temp3 ;
4479 int res3 = SWIG_TMPOBJ ;
4480 byte temp4 ;
4481 int res4 = SWIG_TMPOBJ ;
4482 byte temp5 ;
4483 int res5 = SWIG_TMPOBJ ;
4484 PyObject * obj0 = 0 ;
4485 PyObject * obj1 = 0 ;
4486 char * kwnames[] = {
4487 (char *) "self",(char *) "pixel", NULL
4488 };
4489
4490 arg3 = &temp3;
4491 arg4 = &temp4;
4492 arg5 = &temp5;
4493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4495 if (!SWIG_IsOK(res1)) {
4496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4497 }
4498 arg1 = reinterpret_cast< wxPalette * >(argp1);
4499 ecode2 = SWIG_AsVal_int(obj1, &val2);
4500 if (!SWIG_IsOK(ecode2)) {
4501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4502 }
4503 arg2 = static_cast< int >(val2);
4504 {
4505 PyThreadState* __tstate = wxPyBeginAllowThreads();
4506 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4507 wxPyEndAllowThreads(__tstate);
4508 if (PyErr_Occurred()) SWIG_fail;
4509 }
4510 {
4511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4512 }
4513 if (SWIG_IsTmpObj(res3)) {
4514 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4515 } else {
4516 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4517 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4518 }
4519 if (SWIG_IsTmpObj(res4)) {
4520 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4521 } else {
4522 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4523 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4524 }
4525 if (SWIG_IsTmpObj(res5)) {
4526 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4527 } else {
4528 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4529 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4530 }
4531 return resultobj;
4532fail:
4533 return NULL;
d55e5bfc
RD
4534}
4535
4536
554f62e9
RD
4537SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4538 PyObject *resultobj = 0;
4539 wxPalette *arg1 = (wxPalette *) 0 ;
4540 int result;
4541 void *argp1 = 0 ;
4542 int res1 = 0 ;
4543 PyObject *swig_obj[1] ;
4544
4545 if (!args) SWIG_fail;
4546 swig_obj[0] = args;
4547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4548 if (!SWIG_IsOK(res1)) {
4549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4550 }
4551 arg1 = reinterpret_cast< wxPalette * >(argp1);
4552 {
4553 PyThreadState* __tstate = wxPyBeginAllowThreads();
4554 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4555 wxPyEndAllowThreads(__tstate);
4556 if (PyErr_Occurred()) SWIG_fail;
4557 }
4558 resultobj = SWIG_From_int(static_cast< int >(result));
4559 return resultobj;
4560fail:
4561 return NULL;
d55e5bfc
RD
4562}
4563
4564
554f62e9
RD
4565SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4566 PyObject *resultobj = 0;
4567 wxPalette *arg1 = (wxPalette *) 0 ;
4568 bool result;
4569 void *argp1 = 0 ;
4570 int res1 = 0 ;
4571 PyObject *swig_obj[1] ;
4572
4573 if (!args) SWIG_fail;
4574 swig_obj[0] = args;
4575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4576 if (!SWIG_IsOK(res1)) {
4577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4578 }
4579 arg1 = reinterpret_cast< wxPalette * >(argp1);
4580 {
4581 PyThreadState* __tstate = wxPyBeginAllowThreads();
4582 result = (bool)(arg1)->Ok();
4583 wxPyEndAllowThreads(__tstate);
4584 if (PyErr_Occurred()) SWIG_fail;
4585 }
4586 {
4587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4588 }
4589 return resultobj;
4590fail:
4591 return NULL;
4592}
4593
4594
4595SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4596 PyObject *obj;
4597 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4598 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4599 return SWIG_Py_Void();
4600}
4601
4602SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4603 return SWIG_Python_InitShadowInstance(args);
4604}
4605
4606SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4607 PyObject *resultobj = 0;
4608 wxColour *arg1 = 0 ;
4609 int arg2 = (int) 1 ;
4610 int arg3 = (int) wxSOLID ;
4611 wxPen *result = 0 ;
4612 wxColour temp1 ;
4613 int val2 ;
4614 int ecode2 = 0 ;
4615 int val3 ;
4616 int ecode3 = 0 ;
4617 PyObject * obj0 = 0 ;
4618 PyObject * obj1 = 0 ;
4619 PyObject * obj2 = 0 ;
4620 char * kwnames[] = {
4621 (char *) "colour",(char *) "width",(char *) "style", NULL
4622 };
4623
4624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4625 {
4626 arg1 = &temp1;
4627 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4628 }
4629 if (obj1) {
4630 ecode2 = SWIG_AsVal_int(obj1, &val2);
4631 if (!SWIG_IsOK(ecode2)) {
4632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4633 }
4634 arg2 = static_cast< int >(val2);
4635 }
4636 if (obj2) {
4637 ecode3 = SWIG_AsVal_int(obj2, &val3);
4638 if (!SWIG_IsOK(ecode3)) {
4639 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4640 }
4641 arg3 = static_cast< int >(val3);
4642 }
4643 {
4644 if (!wxPyCheckForApp()) SWIG_fail;
4645 PyThreadState* __tstate = wxPyBeginAllowThreads();
4646 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4647 wxPyEndAllowThreads(__tstate);
4648 if (PyErr_Occurred()) SWIG_fail;
4649 }
4650 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4651 return resultobj;
4652fail:
4653 return NULL;
d55e5bfc
RD
4654}
4655
4656
554f62e9
RD
4657SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4658 PyObject *resultobj = 0;
4659 wxPen *arg1 = (wxPen *) 0 ;
4660 void *argp1 = 0 ;
4661 int res1 = 0 ;
4662 PyObject *swig_obj[1] ;
4663
4664 if (!args) SWIG_fail;
4665 swig_obj[0] = args;
4666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4667 if (!SWIG_IsOK(res1)) {
4668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4669 }
4670 arg1 = reinterpret_cast< wxPen * >(argp1);
4671 {
4672 PyThreadState* __tstate = wxPyBeginAllowThreads();
4673 delete arg1;
d55e5bfc 4674
554f62e9
RD
4675 wxPyEndAllowThreads(__tstate);
4676 if (PyErr_Occurred()) SWIG_fail;
4677 }
4678 resultobj = SWIG_Py_Void();
4679 return resultobj;
4680fail:
4681 return NULL;
d55e5bfc
RD
4682}
4683
4684
554f62e9
RD
4685SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4686 PyObject *resultobj = 0;
4687 wxPen *arg1 = (wxPen *) 0 ;
4688 int result;
4689 void *argp1 = 0 ;
4690 int res1 = 0 ;
4691 PyObject *swig_obj[1] ;
4692
4693 if (!args) SWIG_fail;
4694 swig_obj[0] = args;
4695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4696 if (!SWIG_IsOK(res1)) {
4697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4698 }
4699 arg1 = reinterpret_cast< wxPen * >(argp1);
4700 {
4701 PyThreadState* __tstate = wxPyBeginAllowThreads();
4702 result = (int)(arg1)->GetCap();
4703 wxPyEndAllowThreads(__tstate);
4704 if (PyErr_Occurred()) SWIG_fail;
4705 }
4706 resultobj = SWIG_From_int(static_cast< int >(result));
4707 return resultobj;
4708fail:
4709 return NULL;
d55e5bfc
RD
4710}
4711
4712
554f62e9
RD
4713SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4714 PyObject *resultobj = 0;
4715 wxPen *arg1 = (wxPen *) 0 ;
4716 wxColour result;
4717 void *argp1 = 0 ;
4718 int res1 = 0 ;
4719 PyObject *swig_obj[1] ;
4720
4721 if (!args) SWIG_fail;
4722 swig_obj[0] = args;
4723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4724 if (!SWIG_IsOK(res1)) {
4725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4726 }
4727 arg1 = reinterpret_cast< wxPen * >(argp1);
4728 {
4729 PyThreadState* __tstate = wxPyBeginAllowThreads();
4730 result = (arg1)->GetColour();
4731 wxPyEndAllowThreads(__tstate);
4732 if (PyErr_Occurred()) SWIG_fail;
4733 }
4734 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4735 return resultobj;
4736fail:
4737 return NULL;
d55e5bfc
RD
4738}
4739
4740
554f62e9
RD
4741SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4742 PyObject *resultobj = 0;
4743 wxPen *arg1 = (wxPen *) 0 ;
4744 int result;
4745 void *argp1 = 0 ;
4746 int res1 = 0 ;
4747 PyObject *swig_obj[1] ;
4748
4749 if (!args) SWIG_fail;
4750 swig_obj[0] = args;
4751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4752 if (!SWIG_IsOK(res1)) {
4753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4754 }
4755 arg1 = reinterpret_cast< wxPen * >(argp1);
4756 {
4757 PyThreadState* __tstate = wxPyBeginAllowThreads();
4758 result = (int)(arg1)->GetJoin();
4759 wxPyEndAllowThreads(__tstate);
4760 if (PyErr_Occurred()) SWIG_fail;
4761 }
4762 resultobj = SWIG_From_int(static_cast< int >(result));
4763 return resultobj;
4764fail:
4765 return NULL;
d55e5bfc
RD
4766}
4767
4768
554f62e9
RD
4769SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4770 PyObject *resultobj = 0;
4771 wxPen *arg1 = (wxPen *) 0 ;
4772 int result;
4773 void *argp1 = 0 ;
4774 int res1 = 0 ;
4775 PyObject *swig_obj[1] ;
4776
4777 if (!args) SWIG_fail;
4778 swig_obj[0] = args;
4779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4780 if (!SWIG_IsOK(res1)) {
4781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4782 }
4783 arg1 = reinterpret_cast< wxPen * >(argp1);
4784 {
4785 PyThreadState* __tstate = wxPyBeginAllowThreads();
4786 result = (int)(arg1)->GetStyle();
4787 wxPyEndAllowThreads(__tstate);
4788 if (PyErr_Occurred()) SWIG_fail;
4789 }
4790 resultobj = SWIG_From_int(static_cast< int >(result));
4791 return resultobj;
4792fail:
4793 return NULL;
d55e5bfc
RD
4794}
4795
4796
554f62e9
RD
4797SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4798 PyObject *resultobj = 0;
4799 wxPen *arg1 = (wxPen *) 0 ;
4800 int result;
4801 void *argp1 = 0 ;
4802 int res1 = 0 ;
4803 PyObject *swig_obj[1] ;
4804
4805 if (!args) SWIG_fail;
4806 swig_obj[0] = args;
4807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4808 if (!SWIG_IsOK(res1)) {
4809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4810 }
4811 arg1 = reinterpret_cast< wxPen * >(argp1);
4812 {
4813 PyThreadState* __tstate = wxPyBeginAllowThreads();
4814 result = (int)(arg1)->GetWidth();
4815 wxPyEndAllowThreads(__tstate);
4816 if (PyErr_Occurred()) SWIG_fail;
4817 }
4818 resultobj = SWIG_From_int(static_cast< int >(result));
4819 return resultobj;
4820fail:
4821 return NULL;
d55e5bfc
RD
4822}
4823
4824
554f62e9
RD
4825SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4826 PyObject *resultobj = 0;
4827 wxPen *arg1 = (wxPen *) 0 ;
4828 bool 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_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4838 }
4839 arg1 = reinterpret_cast< wxPen * >(argp1);
4840 {
4841 PyThreadState* __tstate = wxPyBeginAllowThreads();
4842 result = (bool)(arg1)->Ok();
4843 wxPyEndAllowThreads(__tstate);
4844 if (PyErr_Occurred()) SWIG_fail;
4845 }
4846 {
4847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4848 }
4849 return resultobj;
4850fail:
4851 return NULL;
4852}
4853
4854
4855SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4856 PyObject *resultobj = 0;
4857 wxPen *arg1 = (wxPen *) 0 ;
4858 int arg2 ;
4859 void *argp1 = 0 ;
4860 int res1 = 0 ;
4861 int val2 ;
4862 int ecode2 = 0 ;
4863 PyObject * obj0 = 0 ;
4864 PyObject * obj1 = 0 ;
4865 char * kwnames[] = {
4866 (char *) "self",(char *) "cap_style", NULL
4867 };
4868
4869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4871 if (!SWIG_IsOK(res1)) {
4872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4873 }
4874 arg1 = reinterpret_cast< wxPen * >(argp1);
4875 ecode2 = SWIG_AsVal_int(obj1, &val2);
4876 if (!SWIG_IsOK(ecode2)) {
4877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4878 }
4879 arg2 = static_cast< int >(val2);
4880 {
4881 PyThreadState* __tstate = wxPyBeginAllowThreads();
4882 (arg1)->SetCap(arg2);
4883 wxPyEndAllowThreads(__tstate);
4884 if (PyErr_Occurred()) SWIG_fail;
4885 }
4886 resultobj = SWIG_Py_Void();
4887 return resultobj;
4888fail:
4889 return NULL;
4890}
4891
4892
4893SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4894 PyObject *resultobj = 0;
4895 wxPen *arg1 = (wxPen *) 0 ;
4896 wxColour *arg2 = 0 ;
4897 void *argp1 = 0 ;
4898 int res1 = 0 ;
4899 wxColour temp2 ;
4900 PyObject * obj0 = 0 ;
4901 PyObject * obj1 = 0 ;
4902 char * kwnames[] = {
4903 (char *) "self",(char *) "colour", NULL
4904 };
4905
4906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4908 if (!SWIG_IsOK(res1)) {
4909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4910 }
4911 arg1 = reinterpret_cast< wxPen * >(argp1);
4912 {
4913 arg2 = &temp2;
4914 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4915 }
4916 {
4917 PyThreadState* __tstate = wxPyBeginAllowThreads();
4918 (arg1)->SetColour(*arg2);
4919 wxPyEndAllowThreads(__tstate);
4920 if (PyErr_Occurred()) SWIG_fail;
4921 }
4922 resultobj = SWIG_Py_Void();
4923 return resultobj;
4924fail:
4925 return NULL;
4926}
4927
4928
4929SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4930 PyObject *resultobj = 0;
4931 wxPen *arg1 = (wxPen *) 0 ;
4932 int arg2 ;
4933 void *argp1 = 0 ;
4934 int res1 = 0 ;
4935 int val2 ;
4936 int ecode2 = 0 ;
4937 PyObject * obj0 = 0 ;
4938 PyObject * obj1 = 0 ;
4939 char * kwnames[] = {
4940 (char *) "self",(char *) "join_style", NULL
4941 };
4942
4943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4945 if (!SWIG_IsOK(res1)) {
4946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4947 }
4948 arg1 = reinterpret_cast< wxPen * >(argp1);
4949 ecode2 = SWIG_AsVal_int(obj1, &val2);
4950 if (!SWIG_IsOK(ecode2)) {
4951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4952 }
4953 arg2 = static_cast< int >(val2);
4954 {
4955 PyThreadState* __tstate = wxPyBeginAllowThreads();
4956 (arg1)->SetJoin(arg2);
4957 wxPyEndAllowThreads(__tstate);
4958 if (PyErr_Occurred()) SWIG_fail;
4959 }
4960 resultobj = SWIG_Py_Void();
4961 return resultobj;
4962fail:
4963 return NULL;
4964}
4965
4966
4967SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4968 PyObject *resultobj = 0;
4969 wxPen *arg1 = (wxPen *) 0 ;
4970 int arg2 ;
4971 void *argp1 = 0 ;
4972 int res1 = 0 ;
4973 int val2 ;
4974 int ecode2 = 0 ;
4975 PyObject * obj0 = 0 ;
4976 PyObject * obj1 = 0 ;
4977 char * kwnames[] = {
4978 (char *) "self",(char *) "style", NULL
4979 };
4980
4981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4983 if (!SWIG_IsOK(res1)) {
4984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4985 }
4986 arg1 = reinterpret_cast< wxPen * >(argp1);
4987 ecode2 = SWIG_AsVal_int(obj1, &val2);
4988 if (!SWIG_IsOK(ecode2)) {
4989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
4990 }
4991 arg2 = static_cast< int >(val2);
4992 {
4993 PyThreadState* __tstate = wxPyBeginAllowThreads();
4994 (arg1)->SetStyle(arg2);
4995 wxPyEndAllowThreads(__tstate);
4996 if (PyErr_Occurred()) SWIG_fail;
4997 }
4998 resultobj = SWIG_Py_Void();
4999 return resultobj;
5000fail:
5001 return NULL;
5002}
5003
5004
5005SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5006 PyObject *resultobj = 0;
5007 wxPen *arg1 = (wxPen *) 0 ;
5008 int arg2 ;
5009 void *argp1 = 0 ;
5010 int res1 = 0 ;
5011 int val2 ;
5012 int ecode2 = 0 ;
5013 PyObject * obj0 = 0 ;
5014 PyObject * obj1 = 0 ;
5015 char * kwnames[] = {
5016 (char *) "self",(char *) "width", NULL
5017 };
5018
5019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5021 if (!SWIG_IsOK(res1)) {
5022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5023 }
5024 arg1 = reinterpret_cast< wxPen * >(argp1);
5025 ecode2 = SWIG_AsVal_int(obj1, &val2);
5026 if (!SWIG_IsOK(ecode2)) {
5027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5028 }
5029 arg2 = static_cast< int >(val2);
5030 {
5031 PyThreadState* __tstate = wxPyBeginAllowThreads();
5032 (arg1)->SetWidth(arg2);
5033 wxPyEndAllowThreads(__tstate);
5034 if (PyErr_Occurred()) SWIG_fail;
5035 }
5036 resultobj = SWIG_Py_Void();
5037 return resultobj;
5038fail:
5039 return NULL;
5040}
5041
5042
5043SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5044 PyObject *resultobj = 0;
5045 wxPen *arg1 = (wxPen *) 0 ;
5046 int arg2 ;
5047 wxDash *arg3 = (wxDash *) 0 ;
5048 void *argp1 = 0 ;
5049 int res1 = 0 ;
5050 PyObject * obj0 = 0 ;
5051 PyObject * obj1 = 0 ;
5052 char * kwnames[] = {
5053 (char *) "self",(char *) "dashes", NULL
5054 };
5055
5056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5058 if (!SWIG_IsOK(res1)) {
5059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5060 }
5061 arg1 = reinterpret_cast< wxPen * >(argp1);
5062 {
5063 arg2 = PyList_Size(obj1);
5064 arg3 = (wxDash*)byte_LIST_helper(obj1);
5065 if (arg3 == NULL) SWIG_fail;
5066 }
5067 {
5068 PyThreadState* __tstate = wxPyBeginAllowThreads();
5069 (arg1)->SetDashes(arg2,arg3);
5070 wxPyEndAllowThreads(__tstate);
5071 if (PyErr_Occurred()) SWIG_fail;
5072 }
5073 resultobj = SWIG_Py_Void();
5074 {
5075 if (arg3) delete [] arg3;
5076 }
5077 return resultobj;
5078fail:
5079 {
5080 if (arg3) delete [] arg3;
5081 }
5082 return NULL;
d55e5bfc
RD
5083}
5084
5085
554f62e9
RD
5086SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5087 PyObject *resultobj = 0;
5088 wxPen *arg1 = (wxPen *) 0 ;
5089 PyObject *result = 0 ;
5090 void *argp1 = 0 ;
5091 int res1 = 0 ;
5092 PyObject *swig_obj[1] ;
5093
5094 if (!args) SWIG_fail;
5095 swig_obj[0] = args;
5096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5097 if (!SWIG_IsOK(res1)) {
5098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5099 }
5100 arg1 = reinterpret_cast< wxPen * >(argp1);
5101 {
5102 PyThreadState* __tstate = wxPyBeginAllowThreads();
5103 result = (PyObject *)wxPen_GetDashes(arg1);
5104 wxPyEndAllowThreads(__tstate);
5105 if (PyErr_Occurred()) SWIG_fail;
5106 }
5107 resultobj = result;
5108 return resultobj;
5109fail:
5110 return NULL;
5111}
5112
5113
5114SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5115 PyObject *resultobj = 0;
5116 wxPen *arg1 = (wxPen *) 0 ;
5117 PyObject *arg2 = (PyObject *) 0 ;
5118 PyObject *arg3 = (PyObject *) 0 ;
5119 void *argp1 = 0 ;
5120 int res1 = 0 ;
5121 PyObject * obj0 = 0 ;
5122 PyObject * obj1 = 0 ;
5123 PyObject * obj2 = 0 ;
5124 char * kwnames[] = {
5125 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5126 };
5127
5128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5130 if (!SWIG_IsOK(res1)) {
5131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5132 }
5133 arg1 = reinterpret_cast< wxPen * >(argp1);
5134 arg2 = obj1;
5135 arg3 = obj2;
5136 {
5137 PyThreadState* __tstate = wxPyBeginAllowThreads();
5138 wxPen__SetDashes(arg1,arg2,arg3);
5139 wxPyEndAllowThreads(__tstate);
5140 if (PyErr_Occurred()) SWIG_fail;
5141 }
5142 resultobj = SWIG_Py_Void();
5143 return resultobj;
5144fail:
5145 return NULL;
d55e5bfc
RD
5146}
5147
5148
554f62e9
RD
5149SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5150 PyObject *resultobj = 0;
5151 wxPen *arg1 = (wxPen *) 0 ;
5152 int result;
5153 void *argp1 = 0 ;
5154 int res1 = 0 ;
5155 PyObject *swig_obj[1] ;
5156
5157 if (!args) SWIG_fail;
5158 swig_obj[0] = args;
5159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5160 if (!SWIG_IsOK(res1)) {
5161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5162 }
5163 arg1 = reinterpret_cast< wxPen * >(argp1);
5164 {
5165 PyThreadState* __tstate = wxPyBeginAllowThreads();
5166 result = (int)((wxPen const *)arg1)->GetDashCount();
5167 wxPyEndAllowThreads(__tstate);
5168 if (PyErr_Occurred()) SWIG_fail;
5169 }
5170 resultobj = SWIG_From_int(static_cast< int >(result));
5171 return resultobj;
5172fail:
5173 return NULL;
d55e5bfc
RD
5174}
5175
5176
554f62e9
RD
5177SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5178 PyObject *resultobj = 0;
5179 wxPen *arg1 = (wxPen *) 0 ;
5180 wxBitmap *result = 0 ;
5181 void *argp1 = 0 ;
5182 int res1 = 0 ;
5183 PyObject *swig_obj[1] ;
5184
5185 if (!args) SWIG_fail;
5186 swig_obj[0] = args;
5187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5188 if (!SWIG_IsOK(res1)) {
5189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5190 }
5191 arg1 = reinterpret_cast< wxPen * >(argp1);
5192 {
5193 PyThreadState* __tstate = wxPyBeginAllowThreads();
5194 result = (wxBitmap *)(arg1)->GetStipple();
5195 wxPyEndAllowThreads(__tstate);
5196 if (PyErr_Occurred()) SWIG_fail;
5197 }
5198 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5199 return resultobj;
5200fail:
5201 return NULL;
5202}
5203
5204
5205SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5206 PyObject *resultobj = 0;
5207 wxPen *arg1 = (wxPen *) 0 ;
5208 wxBitmap *arg2 = 0 ;
5209 void *argp1 = 0 ;
5210 int res1 = 0 ;
5211 void *argp2 = 0 ;
5212 int res2 = 0 ;
5213 PyObject * obj0 = 0 ;
5214 PyObject * obj1 = 0 ;
5215 char * kwnames[] = {
5216 (char *) "self",(char *) "stipple", NULL
5217 };
5218
5219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5221 if (!SWIG_IsOK(res1)) {
5222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5223 }
5224 arg1 = reinterpret_cast< wxPen * >(argp1);
5225 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5226 if (!SWIG_IsOK(res2)) {
5227 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5228 }
5229 if (!argp2) {
5230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5231 }
5232 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5233 {
5234 PyThreadState* __tstate = wxPyBeginAllowThreads();
5235 (arg1)->SetStipple(*arg2);
5236 wxPyEndAllowThreads(__tstate);
5237 if (PyErr_Occurred()) SWIG_fail;
5238 }
5239 resultobj = SWIG_Py_Void();
5240 return resultobj;
5241fail:
5242 return NULL;
5243}
5244
5245
5246SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5247 PyObject *resultobj = 0;
5248 wxPen *arg1 = (wxPen *) 0 ;
5249 wxPen *arg2 = (wxPen *) 0 ;
5250 bool result;
5251 void *argp1 = 0 ;
5252 int res1 = 0 ;
5253 void *argp2 = 0 ;
5254 int res2 = 0 ;
5255 PyObject * obj0 = 0 ;
5256 PyObject * obj1 = 0 ;
5257 char * kwnames[] = {
5258 (char *) "self",(char *) "other", NULL
5259 };
5260
5261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5263 if (!SWIG_IsOK(res1)) {
5264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5265 }
5266 arg1 = reinterpret_cast< wxPen * >(argp1);
5267 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5268 if (!SWIG_IsOK(res2)) {
5269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5270 }
5271 arg2 = reinterpret_cast< wxPen * >(argp2);
5272 {
5273 PyThreadState* __tstate = wxPyBeginAllowThreads();
5274 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5275 wxPyEndAllowThreads(__tstate);
5276 if (PyErr_Occurred()) SWIG_fail;
5277 }
5278 {
5279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5280 }
5281 return resultobj;
5282fail:
5283 return NULL;
5284}
5285
5286
5287SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5288 PyObject *resultobj = 0;
5289 wxPen *arg1 = (wxPen *) 0 ;
5290 wxPen *arg2 = (wxPen *) 0 ;
5291 bool result;
5292 void *argp1 = 0 ;
5293 int res1 = 0 ;
5294 void *argp2 = 0 ;
5295 int res2 = 0 ;
5296 PyObject * obj0 = 0 ;
5297 PyObject * obj1 = 0 ;
5298 char * kwnames[] = {
5299 (char *) "self",(char *) "other", NULL
5300 };
5301
5302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5304 if (!SWIG_IsOK(res1)) {
5305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5306 }
5307 arg1 = reinterpret_cast< wxPen * >(argp1);
5308 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5309 if (!SWIG_IsOK(res2)) {
5310 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5311 }
5312 arg2 = reinterpret_cast< wxPen * >(argp2);
5313 {
5314 PyThreadState* __tstate = wxPyBeginAllowThreads();
5315 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5316 wxPyEndAllowThreads(__tstate);
5317 if (PyErr_Occurred()) SWIG_fail;
5318 }
5319 {
5320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5321 }
5322 return resultobj;
5323fail:
5324 return NULL;
d55e5bfc
RD
5325}
5326
5327
554f62e9
RD
5328SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5329 PyObject *obj;
5330 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5331 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5332 return SWIG_Py_Void();
d55e5bfc
RD
5333}
5334
554f62e9
RD
5335SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5336 return SWIG_Python_InitShadowInstance(args);
5337}
d55e5bfc 5338
554f62e9
RD
5339SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5340 PyObject *resultobj = 0;
5341 wxColour *arg1 = 0 ;
5342 int arg2 = (int) wxSOLID ;
5343 wxBrush *result = 0 ;
5344 wxColour temp1 ;
5345 int val2 ;
5346 int ecode2 = 0 ;
5347 PyObject * obj0 = 0 ;
5348 PyObject * obj1 = 0 ;
5349 char * kwnames[] = {
5350 (char *) "colour",(char *) "style", NULL
5351 };
5352
5353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5354 {
5355 arg1 = &temp1;
5356 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5357 }
5358 if (obj1) {
5359 ecode2 = SWIG_AsVal_int(obj1, &val2);
5360 if (!SWIG_IsOK(ecode2)) {
5361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5362 }
5363 arg2 = static_cast< int >(val2);
5364 }
5365 {
5366 if (!wxPyCheckForApp()) SWIG_fail;
5367 PyThreadState* __tstate = wxPyBeginAllowThreads();
5368 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5369 wxPyEndAllowThreads(__tstate);
5370 if (PyErr_Occurred()) SWIG_fail;
5371 }
5372 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5373 return resultobj;
5374fail:
5375 return NULL;
5376}
5377
5378
5379SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5380 PyObject *resultobj = 0;
5381 wxBitmap *arg1 = 0 ;
5382 wxBrush *result = 0 ;
5383 void *argp1 = 0 ;
5384 int res1 = 0 ;
5385 PyObject * obj0 = 0 ;
5386 char * kwnames[] = {
5387 (char *) "stippleBitmap", NULL
5388 };
5389
5390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5391 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5392 if (!SWIG_IsOK(res1)) {
5393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5394 }
5395 if (!argp1) {
5396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5397 }
5398 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5399 {
5400 if (!wxPyCheckForApp()) SWIG_fail;
5401 PyThreadState* __tstate = wxPyBeginAllowThreads();
5402 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5403 wxPyEndAllowThreads(__tstate);
5404 if (PyErr_Occurred()) SWIG_fail;
5405 }
5406 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5407 return resultobj;
5408fail:
5409 return NULL;
d55e5bfc
RD
5410}
5411
5412
554f62e9
RD
5413SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5414 PyObject *resultobj = 0;
5415 wxBrush *arg1 = (wxBrush *) 0 ;
5416 void *argp1 = 0 ;
5417 int res1 = 0 ;
5418 PyObject *swig_obj[1] ;
5419
5420 if (!args) SWIG_fail;
5421 swig_obj[0] = args;
5422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5423 if (!SWIG_IsOK(res1)) {
5424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5425 }
5426 arg1 = reinterpret_cast< wxBrush * >(argp1);
5427 {
5428 PyThreadState* __tstate = wxPyBeginAllowThreads();
5429 delete arg1;
d55e5bfc 5430
554f62e9
RD
5431 wxPyEndAllowThreads(__tstate);
5432 if (PyErr_Occurred()) SWIG_fail;
5433 }
5434 resultobj = SWIG_Py_Void();
5435 return resultobj;
5436fail:
5437 return NULL;
5438}
5439
5440
5441SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5442 PyObject *resultobj = 0;
5443 wxBrush *arg1 = (wxBrush *) 0 ;
5444 wxColour *arg2 = 0 ;
5445 void *argp1 = 0 ;
5446 int res1 = 0 ;
5447 wxColour temp2 ;
5448 PyObject * obj0 = 0 ;
5449 PyObject * obj1 = 0 ;
5450 char * kwnames[] = {
5451 (char *) "self",(char *) "col", NULL
5452 };
5453
5454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5456 if (!SWIG_IsOK(res1)) {
5457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5458 }
5459 arg1 = reinterpret_cast< wxBrush * >(argp1);
5460 {
5461 arg2 = &temp2;
5462 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5463 }
5464 {
5465 PyThreadState* __tstate = wxPyBeginAllowThreads();
5466 (arg1)->SetColour((wxColour const &)*arg2);
5467 wxPyEndAllowThreads(__tstate);
5468 if (PyErr_Occurred()) SWIG_fail;
5469 }
5470 resultobj = SWIG_Py_Void();
5471 return resultobj;
5472fail:
5473 return NULL;
5474}
5475
5476
5477SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5478 PyObject *resultobj = 0;
5479 wxBrush *arg1 = (wxBrush *) 0 ;
5480 int arg2 ;
5481 void *argp1 = 0 ;
5482 int res1 = 0 ;
5483 int val2 ;
5484 int ecode2 = 0 ;
5485 PyObject * obj0 = 0 ;
5486 PyObject * obj1 = 0 ;
5487 char * kwnames[] = {
5488 (char *) "self",(char *) "style", NULL
5489 };
5490
5491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5493 if (!SWIG_IsOK(res1)) {
5494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5495 }
5496 arg1 = reinterpret_cast< wxBrush * >(argp1);
5497 ecode2 = SWIG_AsVal_int(obj1, &val2);
5498 if (!SWIG_IsOK(ecode2)) {
5499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5500 }
5501 arg2 = static_cast< int >(val2);
5502 {
5503 PyThreadState* __tstate = wxPyBeginAllowThreads();
5504 (arg1)->SetStyle(arg2);
5505 wxPyEndAllowThreads(__tstate);
5506 if (PyErr_Occurred()) SWIG_fail;
5507 }
5508 resultobj = SWIG_Py_Void();
5509 return resultobj;
5510fail:
5511 return NULL;
5512}
5513
5514
5515SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5516 PyObject *resultobj = 0;
5517 wxBrush *arg1 = (wxBrush *) 0 ;
5518 wxBitmap *arg2 = 0 ;
5519 void *argp1 = 0 ;
5520 int res1 = 0 ;
5521 void *argp2 = 0 ;
5522 int res2 = 0 ;
5523 PyObject * obj0 = 0 ;
5524 PyObject * obj1 = 0 ;
5525 char * kwnames[] = {
5526 (char *) "self",(char *) "stipple", NULL
5527 };
5528
5529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5531 if (!SWIG_IsOK(res1)) {
5532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5533 }
5534 arg1 = reinterpret_cast< wxBrush * >(argp1);
5535 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5536 if (!SWIG_IsOK(res2)) {
5537 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5538 }
5539 if (!argp2) {
5540 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5541 }
5542 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5543 {
5544 PyThreadState* __tstate = wxPyBeginAllowThreads();
5545 (arg1)->SetStipple((wxBitmap const &)*arg2);
5546 wxPyEndAllowThreads(__tstate);
5547 if (PyErr_Occurred()) SWIG_fail;
5548 }
5549 resultobj = SWIG_Py_Void();
5550 return resultobj;
5551fail:
5552 return NULL;
d55e5bfc
RD
5553}
5554
5555
554f62e9
RD
5556SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5557 PyObject *resultobj = 0;
5558 wxBrush *arg1 = (wxBrush *) 0 ;
5559 wxColour result;
5560 void *argp1 = 0 ;
5561 int res1 = 0 ;
5562 PyObject *swig_obj[1] ;
5563
5564 if (!args) SWIG_fail;
5565 swig_obj[0] = args;
5566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5567 if (!SWIG_IsOK(res1)) {
5568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5569 }
5570 arg1 = reinterpret_cast< wxBrush * >(argp1);
5571 {
5572 PyThreadState* __tstate = wxPyBeginAllowThreads();
5573 result = ((wxBrush const *)arg1)->GetColour();
5574 wxPyEndAllowThreads(__tstate);
5575 if (PyErr_Occurred()) SWIG_fail;
5576 }
5577 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5578 return resultobj;
5579fail:
5580 return NULL;
d55e5bfc
RD
5581}
5582
5583
554f62e9
RD
5584SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5585 PyObject *resultobj = 0;
5586 wxBrush *arg1 = (wxBrush *) 0 ;
5587 int result;
5588 void *argp1 = 0 ;
5589 int res1 = 0 ;
5590 PyObject *swig_obj[1] ;
5591
5592 if (!args) SWIG_fail;
5593 swig_obj[0] = args;
5594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5595 if (!SWIG_IsOK(res1)) {
5596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5597 }
5598 arg1 = reinterpret_cast< wxBrush * >(argp1);
5599 {
5600 PyThreadState* __tstate = wxPyBeginAllowThreads();
5601 result = (int)((wxBrush const *)arg1)->GetStyle();
5602 wxPyEndAllowThreads(__tstate);
5603 if (PyErr_Occurred()) SWIG_fail;
5604 }
5605 resultobj = SWIG_From_int(static_cast< int >(result));
5606 return resultobj;
5607fail:
5608 return NULL;
d55e5bfc
RD
5609}
5610
5611
554f62e9
RD
5612SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5613 PyObject *resultobj = 0;
5614 wxBrush *arg1 = (wxBrush *) 0 ;
5615 wxBitmap *result = 0 ;
5616 void *argp1 = 0 ;
5617 int res1 = 0 ;
5618 PyObject *swig_obj[1] ;
5619
5620 if (!args) SWIG_fail;
5621 swig_obj[0] = args;
5622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5623 if (!SWIG_IsOK(res1)) {
5624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5625 }
5626 arg1 = reinterpret_cast< wxBrush * >(argp1);
5627 {
5628 PyThreadState* __tstate = wxPyBeginAllowThreads();
5629 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5630 wxPyEndAllowThreads(__tstate);
5631 if (PyErr_Occurred()) SWIG_fail;
5632 }
5633 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5634 return resultobj;
5635fail:
5636 return NULL;
d55e5bfc
RD
5637}
5638
5639
554f62e9
RD
5640SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5641 PyObject *resultobj = 0;
5642 wxBrush *arg1 = (wxBrush *) 0 ;
5643 bool result;
5644 void *argp1 = 0 ;
5645 int res1 = 0 ;
5646 PyObject *swig_obj[1] ;
5647
5648 if (!args) SWIG_fail;
5649 swig_obj[0] = args;
5650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5651 if (!SWIG_IsOK(res1)) {
5652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5653 }
5654 arg1 = reinterpret_cast< wxBrush * >(argp1);
5655 {
5656 PyThreadState* __tstate = wxPyBeginAllowThreads();
5657 result = (bool)((wxBrush const *)arg1)->IsHatch();
5658 wxPyEndAllowThreads(__tstate);
5659 if (PyErr_Occurred()) SWIG_fail;
5660 }
5661 {
5662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5663 }
5664 return resultobj;
5665fail:
5666 return NULL;
f78cc896
RD
5667}
5668
5669
554f62e9
RD
5670SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5671 PyObject *resultobj = 0;
5672 wxBrush *arg1 = (wxBrush *) 0 ;
5673 bool result;
5674 void *argp1 = 0 ;
5675 int res1 = 0 ;
5676 PyObject *swig_obj[1] ;
5677
5678 if (!args) SWIG_fail;
5679 swig_obj[0] = args;
5680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5681 if (!SWIG_IsOK(res1)) {
5682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5683 }
5684 arg1 = reinterpret_cast< wxBrush * >(argp1);
5685 {
5686 PyThreadState* __tstate = wxPyBeginAllowThreads();
5687 result = (bool)(arg1)->Ok();
5688 wxPyEndAllowThreads(__tstate);
5689 if (PyErr_Occurred()) SWIG_fail;
5690 }
5691 {
5692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5693 }
5694 return resultobj;
5695fail:
5696 return NULL;
d55e5bfc
RD
5697}
5698
5699
554f62e9
RD
5700SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5701 PyObject *obj;
5702 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5703 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5704 return SWIG_Py_Void();
d55e5bfc
RD
5705}
5706
554f62e9
RD
5707SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5708 return SWIG_Python_InitShadowInstance(args);
5709}
d55e5bfc 5710
554f62e9
RD
5711SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5712 PyObject *resultobj = 0;
5713 wxString *arg1 = 0 ;
5714 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5715 wxBitmap *result = 0 ;
5716 bool temp1 = false ;
5717 int val2 ;
5718 int ecode2 = 0 ;
5719 PyObject * obj0 = 0 ;
5720 PyObject * obj1 = 0 ;
5721 char * kwnames[] = {
5722 (char *) "name",(char *) "type", NULL
5723 };
5724
5725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5726 {
5727 arg1 = wxString_in_helper(obj0);
5728 if (arg1 == NULL) SWIG_fail;
5729 temp1 = true;
5730 }
5731 if (obj1) {
5732 ecode2 = SWIG_AsVal_int(obj1, &val2);
5733 if (!SWIG_IsOK(ecode2)) {
5734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5735 }
5736 arg2 = static_cast< wxBitmapType >(val2);
5737 }
5738 {
5739 if (!wxPyCheckForApp()) SWIG_fail;
5740 PyThreadState* __tstate = wxPyBeginAllowThreads();
5741 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5742 wxPyEndAllowThreads(__tstate);
5743 if (PyErr_Occurred()) SWIG_fail;
5744 }
5745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5746 {
5747 if (temp1)
5748 delete arg1;
5749 }
5750 return resultobj;
5751fail:
5752 {
5753 if (temp1)
5754 delete arg1;
5755 }
5756 return NULL;
d55e5bfc
RD
5757}
5758
5759
554f62e9
RD
5760SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5761 PyObject *resultobj = 0;
5762 wxBitmap *arg1 = (wxBitmap *) 0 ;
5763 void *argp1 = 0 ;
5764 int res1 = 0 ;
5765 PyObject *swig_obj[1] ;
5766
5767 if (!args) SWIG_fail;
5768 swig_obj[0] = args;
5769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5770 if (!SWIG_IsOK(res1)) {
5771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5772 }
5773 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5774 {
554f62e9 5775 delete arg1;
c24da6d6 5776
554f62e9
RD
5777 if (PyErr_Occurred()) SWIG_fail;
5778 }
5779 resultobj = SWIG_Py_Void();
5780 return resultobj;
5781fail:
5782 return NULL;
5783}
5784
5785
5786SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5787 PyObject *resultobj = 0;
5788 int arg1 ;
5789 int arg2 ;
5790 int arg3 = (int) -1 ;
5791 wxBitmap *result = 0 ;
5792 int val1 ;
5793 int ecode1 = 0 ;
5794 int val2 ;
5795 int ecode2 = 0 ;
5796 int val3 ;
5797 int ecode3 = 0 ;
5798 PyObject * obj0 = 0 ;
5799 PyObject * obj1 = 0 ;
5800 PyObject * obj2 = 0 ;
5801 char * kwnames[] = {
5802 (char *) "width",(char *) "height",(char *) "depth", NULL
5803 };
5804
5805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5806 ecode1 = SWIG_AsVal_int(obj0, &val1);
5807 if (!SWIG_IsOK(ecode1)) {
5808 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5809 }
5810 arg1 = static_cast< int >(val1);
5811 ecode2 = SWIG_AsVal_int(obj1, &val2);
5812 if (!SWIG_IsOK(ecode2)) {
5813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5814 }
5815 arg2 = static_cast< int >(val2);
5816 if (obj2) {
5817 ecode3 = SWIG_AsVal_int(obj2, &val3);
5818 if (!SWIG_IsOK(ecode3)) {
5819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5820 }
5821 arg3 = static_cast< int >(val3);
5822 }
5823 {
5824 if (!wxPyCheckForApp()) SWIG_fail;
5825 PyThreadState* __tstate = wxPyBeginAllowThreads();
5826 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5827 wxPyEndAllowThreads(__tstate);
5828 if (PyErr_Occurred()) SWIG_fail;
5829 }
5830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5831 return resultobj;
5832fail:
5833 return NULL;
5834}
5835
5836
5837SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5838 PyObject *resultobj = 0;
5839 wxIcon *arg1 = 0 ;
5840 wxBitmap *result = 0 ;
5841 void *argp1 = 0 ;
5842 int res1 = 0 ;
5843 PyObject * obj0 = 0 ;
5844 char * kwnames[] = {
5845 (char *) "icon", NULL
5846 };
5847
5848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5849 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5850 if (!SWIG_IsOK(res1)) {
5851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5852 }
5853 if (!argp1) {
5854 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5855 }
5856 arg1 = reinterpret_cast< wxIcon * >(argp1);
5857 {
5858 if (!wxPyCheckForApp()) SWIG_fail;
5859 PyThreadState* __tstate = wxPyBeginAllowThreads();
5860 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5861 wxPyEndAllowThreads(__tstate);
5862 if (PyErr_Occurred()) SWIG_fail;
5863 }
5864 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5865 return resultobj;
5866fail:
5867 return NULL;
5868}
5869
5870
5871SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5872 PyObject *resultobj = 0;
5873 wxImage *arg1 = 0 ;
5874 int arg2 = (int) -1 ;
5875 wxBitmap *result = 0 ;
5876 void *argp1 = 0 ;
5877 int res1 = 0 ;
5878 int val2 ;
5879 int ecode2 = 0 ;
5880 PyObject * obj0 = 0 ;
5881 PyObject * obj1 = 0 ;
5882 char * kwnames[] = {
5883 (char *) "image",(char *) "depth", NULL
5884 };
5885
5886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5887 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5888 if (!SWIG_IsOK(res1)) {
5889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5890 }
5891 if (!argp1) {
5892 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5893 }
5894 arg1 = reinterpret_cast< wxImage * >(argp1);
5895 if (obj1) {
5896 ecode2 = SWIG_AsVal_int(obj1, &val2);
5897 if (!SWIG_IsOK(ecode2)) {
5898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5899 }
5900 arg2 = static_cast< int >(val2);
5901 }
5902 {
5903 if (!wxPyCheckForApp()) SWIG_fail;
5904 PyThreadState* __tstate = wxPyBeginAllowThreads();
5905 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5906 wxPyEndAllowThreads(__tstate);
5907 if (PyErr_Occurred()) SWIG_fail;
5908 }
5909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5910 return resultobj;
5911fail:
5912 return NULL;
c24da6d6
RD
5913}
5914
5915
554f62e9
RD
5916SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5917 PyObject *resultobj = 0;
5918 PyObject *arg1 = (PyObject *) 0 ;
5919 wxBitmap *result = 0 ;
5920 PyObject * obj0 = 0 ;
5921 char * kwnames[] = {
5922 (char *) "listOfStrings", NULL
5923 };
5924
5925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5926 arg1 = obj0;
5927 {
5928 if (!wxPyCheckForApp()) SWIG_fail;
5929 PyThreadState* __tstate = wxPyBeginAllowThreads();
5930 result = (wxBitmap *)new_wxBitmap(arg1);
5931 wxPyEndAllowThreads(__tstate);
5932 if (PyErr_Occurred()) SWIG_fail;
5933 }
5934 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5935 return resultobj;
5936fail:
5937 return NULL;
5938}
5939
5940
5941SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5942 PyObject *resultobj = 0;
5943 PyObject *arg1 = (PyObject *) 0 ;
5944 int arg2 ;
5945 int arg3 ;
5946 int arg4 = (int) 1 ;
5947 wxBitmap *result = 0 ;
5948 int val2 ;
5949 int ecode2 = 0 ;
5950 int val3 ;
5951 int ecode3 = 0 ;
5952 int val4 ;
5953 int ecode4 = 0 ;
5954 PyObject * obj0 = 0 ;
5955 PyObject * obj1 = 0 ;
5956 PyObject * obj2 = 0 ;
5957 PyObject * obj3 = 0 ;
5958 char * kwnames[] = {
5959 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5960 };
5961
5962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5963 arg1 = obj0;
5964 ecode2 = SWIG_AsVal_int(obj1, &val2);
5965 if (!SWIG_IsOK(ecode2)) {
5966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5967 }
5968 arg2 = static_cast< int >(val2);
5969 ecode3 = SWIG_AsVal_int(obj2, &val3);
5970 if (!SWIG_IsOK(ecode3)) {
5971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5972 }
5973 arg3 = static_cast< int >(val3);
5974 if (obj3) {
5975 ecode4 = SWIG_AsVal_int(obj3, &val4);
5976 if (!SWIG_IsOK(ecode4)) {
5977 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5978 }
5979 arg4 = static_cast< int >(val4);
5980 }
5981 {
5982 if (!wxPyCheckForApp()) SWIG_fail;
5983 PyThreadState* __tstate = wxPyBeginAllowThreads();
5984 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5985 wxPyEndAllowThreads(__tstate);
5986 if (PyErr_Occurred()) SWIG_fail;
5987 }
5988 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5989 return resultobj;
5990fail:
5991 return NULL;
d55e5bfc
RD
5992}
5993
5994
554f62e9
RD
5995SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5996 PyObject *resultobj = 0;
5997 wxBitmap *arg1 = (wxBitmap *) 0 ;
5998 long result;
5999 void *argp1 = 0 ;
6000 int res1 = 0 ;
6001 PyObject *swig_obj[1] ;
6002
6003 if (!args) SWIG_fail;
6004 swig_obj[0] = args;
6005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6006 if (!SWIG_IsOK(res1)) {
6007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6008 }
6009 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6010 {
554f62e9 6011 result = (long)(arg1)->GetHandle();
554f62e9
RD
6012 if (PyErr_Occurred()) SWIG_fail;
6013 }
6014 resultobj = SWIG_From_long(static_cast< long >(result));
6015 return resultobj;
6016fail:
6017 return NULL;
6018}
6019
6020
6021SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6022 PyObject *resultobj = 0;
6023 wxBitmap *arg1 = (wxBitmap *) 0 ;
6024 long arg2 ;
6025 void *argp1 = 0 ;
6026 int res1 = 0 ;
6027 long val2 ;
6028 int ecode2 = 0 ;
6029 PyObject * obj0 = 0 ;
6030 PyObject * obj1 = 0 ;
6031 char * kwnames[] = {
6032 (char *) "self",(char *) "handle", NULL
6033 };
6034
6035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6037 if (!SWIG_IsOK(res1)) {
6038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6039 }
6040 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6041 ecode2 = SWIG_AsVal_long(obj1, &val2);
6042 if (!SWIG_IsOK(ecode2)) {
6043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6044 }
6045 arg2 = static_cast< long >(val2);
6046 {
554f62e9 6047 wxBitmap_SetHandle(arg1,arg2);
554f62e9
RD
6048 if (PyErr_Occurred()) SWIG_fail;
6049 }
6050 resultobj = SWIG_Py_Void();
6051 return resultobj;
6052fail:
6053 return NULL;
d55e5bfc
RD
6054}
6055
6056
554f62e9
RD
6057SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6058 PyObject *resultobj = 0;
6059 wxBitmap *arg1 = (wxBitmap *) 0 ;
6060 bool result;
6061 void *argp1 = 0 ;
6062 int res1 = 0 ;
6063 PyObject *swig_obj[1] ;
6064
6065 if (!args) SWIG_fail;
6066 swig_obj[0] = args;
6067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6068 if (!SWIG_IsOK(res1)) {
6069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
6070 }
6071 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6072 {
554f62e9 6073 result = (bool)(arg1)->Ok();
554f62e9
RD
6074 if (PyErr_Occurred()) SWIG_fail;
6075 }
6076 {
6077 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6078 }
6079 return resultobj;
6080fail:
6081 return NULL;
d55e5bfc
RD
6082}
6083
6084
554f62e9
RD
6085SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6086 PyObject *resultobj = 0;
6087 wxBitmap *arg1 = (wxBitmap *) 0 ;
6088 int result;
6089 void *argp1 = 0 ;
6090 int res1 = 0 ;
6091 PyObject *swig_obj[1] ;
6092
6093 if (!args) SWIG_fail;
6094 swig_obj[0] = args;
6095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6096 if (!SWIG_IsOK(res1)) {
6097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6098 }
6099 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6100 {
554f62e9 6101 result = (int)(arg1)->GetWidth();
554f62e9
RD
6102 if (PyErr_Occurred()) SWIG_fail;
6103 }
6104 resultobj = SWIG_From_int(static_cast< int >(result));
6105 return resultobj;
6106fail:
6107 return NULL;
d55e5bfc
RD
6108}
6109
6110
554f62e9
RD
6111SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6112 PyObject *resultobj = 0;
6113 wxBitmap *arg1 = (wxBitmap *) 0 ;
6114 int result;
6115 void *argp1 = 0 ;
6116 int res1 = 0 ;
6117 PyObject *swig_obj[1] ;
6118
6119 if (!args) SWIG_fail;
6120 swig_obj[0] = args;
6121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6122 if (!SWIG_IsOK(res1)) {
6123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6124 }
6125 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6126 {
554f62e9 6127 result = (int)(arg1)->GetHeight();
554f62e9
RD
6128 if (PyErr_Occurred()) SWIG_fail;
6129 }
6130 resultobj = SWIG_From_int(static_cast< int >(result));
6131 return resultobj;
6132fail:
6133 return NULL;
c24da6d6
RD
6134}
6135
6136
554f62e9
RD
6137SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6138 PyObject *resultobj = 0;
6139 wxBitmap *arg1 = (wxBitmap *) 0 ;
6140 int result;
6141 void *argp1 = 0 ;
6142 int res1 = 0 ;
6143 PyObject *swig_obj[1] ;
6144
6145 if (!args) SWIG_fail;
6146 swig_obj[0] = args;
6147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6148 if (!SWIG_IsOK(res1)) {
6149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6150 }
6151 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6152 {
554f62e9 6153 result = (int)(arg1)->GetDepth();
554f62e9
RD
6154 if (PyErr_Occurred()) SWIG_fail;
6155 }
6156 resultobj = SWIG_From_int(static_cast< int >(result));
6157 return resultobj;
6158fail:
6159 return NULL;
d55e5bfc
RD
6160}
6161
6162
554f62e9
RD
6163SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6164 PyObject *resultobj = 0;
6165 wxBitmap *arg1 = (wxBitmap *) 0 ;
6166 wxSize result;
6167 void *argp1 = 0 ;
6168 int res1 = 0 ;
6169 PyObject *swig_obj[1] ;
6170
6171 if (!args) SWIG_fail;
6172 swig_obj[0] = args;
6173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6174 if (!SWIG_IsOK(res1)) {
6175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6176 }
6177 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6178 {
554f62e9 6179 result = wxBitmap_GetSize(arg1);
554f62e9
RD
6180 if (PyErr_Occurred()) SWIG_fail;
6181 }
6182 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6183 return resultobj;
6184fail:
6185 return NULL;
d55e5bfc
RD
6186}
6187
6188
554f62e9
RD
6189SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6190 PyObject *resultobj = 0;
6191 wxBitmap *arg1 = (wxBitmap *) 0 ;
6192 SwigValueWrapper<wxImage > result;
6193 void *argp1 = 0 ;
6194 int res1 = 0 ;
6195 PyObject *swig_obj[1] ;
6196
6197 if (!args) SWIG_fail;
6198 swig_obj[0] = args;
6199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6200 if (!SWIG_IsOK(res1)) {
6201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6202 }
6203 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6204 {
554f62e9 6205 result = ((wxBitmap const *)arg1)->ConvertToImage();
554f62e9
RD
6206 if (PyErr_Occurred()) SWIG_fail;
6207 }
6208 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6209 return resultobj;
6210fail:
6211 return NULL;
d55e5bfc
RD
6212}
6213
6214
554f62e9
RD
6215SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6216 PyObject *resultobj = 0;
6217 wxBitmap *arg1 = (wxBitmap *) 0 ;
6218 wxMask *result = 0 ;
6219 void *argp1 = 0 ;
6220 int res1 = 0 ;
6221 PyObject *swig_obj[1] ;
6222
6223 if (!args) SWIG_fail;
6224 swig_obj[0] = args;
6225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6226 if (!SWIG_IsOK(res1)) {
6227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6228 }
6229 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6230 {
554f62e9 6231 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
554f62e9
RD
6232 if (PyErr_Occurred()) SWIG_fail;
6233 }
6234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6235 return resultobj;
6236fail:
6237 return NULL;
6238}
6239
6240
6241SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6242 PyObject *resultobj = 0;
6243 wxBitmap *arg1 = (wxBitmap *) 0 ;
6244 wxMask *arg2 = (wxMask *) 0 ;
6245 void *argp1 = 0 ;
6246 int res1 = 0 ;
6247 int res2 = 0 ;
6248 PyObject * obj0 = 0 ;
6249 PyObject * obj1 = 0 ;
6250 char * kwnames[] = {
6251 (char *) "self",(char *) "mask", NULL
6252 };
6253
6254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6256 if (!SWIG_IsOK(res1)) {
6257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6258 }
6259 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6260 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6261 if (!SWIG_IsOK(res2)) {
6262 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6263 }
6264 {
554f62e9 6265 (arg1)->SetMask(arg2);
554f62e9
RD
6266 if (PyErr_Occurred()) SWIG_fail;
6267 }
6268 resultobj = SWIG_Py_Void();
6269 return resultobj;
6270fail:
6271 return NULL;
6272}
6273
6274
6275SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6276 PyObject *resultobj = 0;
6277 wxBitmap *arg1 = (wxBitmap *) 0 ;
6278 wxColour *arg2 = 0 ;
6279 void *argp1 = 0 ;
6280 int res1 = 0 ;
6281 wxColour temp2 ;
6282 PyObject * obj0 = 0 ;
6283 PyObject * obj1 = 0 ;
6284 char * kwnames[] = {
6285 (char *) "self",(char *) "colour", NULL
6286 };
6287
6288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6290 if (!SWIG_IsOK(res1)) {
6291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6292 }
6293 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6294 {
6295 arg2 = &temp2;
6296 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6297 }
6298 {
554f62e9 6299 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
554f62e9
RD
6300 if (PyErr_Occurred()) SWIG_fail;
6301 }
6302 resultobj = SWIG_Py_Void();
6303 return resultobj;
6304fail:
6305 return NULL;
6306}
6307
6308
6309SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6310 PyObject *resultobj = 0;
6311 wxBitmap *arg1 = (wxBitmap *) 0 ;
6312 wxRect *arg2 = 0 ;
6313 SwigValueWrapper<wxBitmap > result;
6314 void *argp1 = 0 ;
6315 int res1 = 0 ;
6316 wxRect temp2 ;
6317 PyObject * obj0 = 0 ;
6318 PyObject * obj1 = 0 ;
6319 char * kwnames[] = {
6320 (char *) "self",(char *) "rect", NULL
6321 };
6322
6323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6325 if (!SWIG_IsOK(res1)) {
6326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6327 }
6328 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6329 {
6330 arg2 = &temp2;
6331 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6332 }
6333 {
554f62e9 6334 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
554f62e9
RD
6335 if (PyErr_Occurred()) SWIG_fail;
6336 }
6337 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6338 return resultobj;
6339fail:
6340 return NULL;
6341}
6342
6343
6344SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6345 PyObject *resultobj = 0;
6346 wxBitmap *arg1 = (wxBitmap *) 0 ;
6347 wxString *arg2 = 0 ;
6348 wxBitmapType arg3 ;
6349 wxPalette *arg4 = (wxPalette *) NULL ;
6350 bool result;
6351 void *argp1 = 0 ;
6352 int res1 = 0 ;
6353 bool temp2 = false ;
6354 int val3 ;
6355 int ecode3 = 0 ;
6356 void *argp4 = 0 ;
6357 int res4 = 0 ;
6358 PyObject * obj0 = 0 ;
6359 PyObject * obj1 = 0 ;
6360 PyObject * obj2 = 0 ;
6361 PyObject * obj3 = 0 ;
6362 char * kwnames[] = {
6363 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6364 };
6365
6366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6368 if (!SWIG_IsOK(res1)) {
6369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6370 }
6371 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6372 {
6373 arg2 = wxString_in_helper(obj1);
6374 if (arg2 == NULL) SWIG_fail;
6375 temp2 = true;
6376 }
6377 ecode3 = SWIG_AsVal_int(obj2, &val3);
6378 if (!SWIG_IsOK(ecode3)) {
6379 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6380 }
6381 arg3 = static_cast< wxBitmapType >(val3);
6382 if (obj3) {
6383 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6384 if (!SWIG_IsOK(res4)) {
6385 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6386 }
554f62e9
RD
6387 arg4 = reinterpret_cast< wxPalette * >(argp4);
6388 }
6389 {
554f62e9 6390 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
554f62e9
RD
6391 if (PyErr_Occurred()) SWIG_fail;
6392 }
6393 {
6394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6395 }
6396 {
6397 if (temp2)
6398 delete arg2;
6399 }
6400 return resultobj;
6401fail:
6402 {
6403 if (temp2)
6404 delete arg2;
6405 }
6406 return NULL;
6407}
6408
6409
6410SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6411 PyObject *resultobj = 0;
6412 wxBitmap *arg1 = (wxBitmap *) 0 ;
6413 wxString *arg2 = 0 ;
6414 wxBitmapType arg3 ;
6415 bool result;
6416 void *argp1 = 0 ;
6417 int res1 = 0 ;
6418 bool temp2 = false ;
6419 int val3 ;
6420 int ecode3 = 0 ;
6421 PyObject * obj0 = 0 ;
6422 PyObject * obj1 = 0 ;
6423 PyObject * obj2 = 0 ;
6424 char * kwnames[] = {
6425 (char *) "self",(char *) "name",(char *) "type", NULL
6426 };
6427
6428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6430 if (!SWIG_IsOK(res1)) {
6431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6432 }
6433 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6434 {
6435 arg2 = wxString_in_helper(obj1);
6436 if (arg2 == NULL) SWIG_fail;
6437 temp2 = true;
6438 }
6439 ecode3 = SWIG_AsVal_int(obj2, &val3);
6440 if (!SWIG_IsOK(ecode3)) {
6441 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6442 }
6443 arg3 = static_cast< wxBitmapType >(val3);
6444 {
554f62e9 6445 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
554f62e9
RD
6446 if (PyErr_Occurred()) SWIG_fail;
6447 }
6448 {
6449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6450 }
6451 {
6452 if (temp2)
6453 delete arg2;
6454 }
6455 return resultobj;
6456fail:
6457 {
6458 if (temp2)
6459 delete arg2;
6460 }
6461 return NULL;
d04418a7
RD
6462}
6463
6464
554f62e9
RD
6465SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6466 PyObject *resultobj = 0;
6467 wxBitmap *arg1 = (wxBitmap *) 0 ;
6468 wxPalette *result = 0 ;
6469 void *argp1 = 0 ;
6470 int res1 = 0 ;
6471 PyObject *swig_obj[1] ;
6472
6473 if (!args) SWIG_fail;
6474 swig_obj[0] = args;
6475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6476 if (!SWIG_IsOK(res1)) {
6477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6478 }
6479 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6480 {
554f62e9 6481 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
554f62e9
RD
6482 if (PyErr_Occurred()) SWIG_fail;
6483 }
6484 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6485 return resultobj;
6486fail:
6487 return NULL;
6488}
6489
6490
6491SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6492 PyObject *resultobj = 0;
6493 wxBitmap *arg1 = (wxBitmap *) 0 ;
6494 wxPalette *arg2 = 0 ;
6495 void *argp1 = 0 ;
6496 int res1 = 0 ;
6497 void *argp2 = 0 ;
6498 int res2 = 0 ;
6499 PyObject * obj0 = 0 ;
6500 PyObject * obj1 = 0 ;
6501 char * kwnames[] = {
6502 (char *) "self",(char *) "palette", NULL
6503 };
6504
6505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6507 if (!SWIG_IsOK(res1)) {
6508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6509 }
6510 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6511 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6512 if (!SWIG_IsOK(res2)) {
6513 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6514 }
6515 if (!argp2) {
6516 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6517 }
6518 arg2 = reinterpret_cast< wxPalette * >(argp2);
6519 {
554f62e9 6520 (arg1)->SetPalette((wxPalette const &)*arg2);
554f62e9
RD
6521 if (PyErr_Occurred()) SWIG_fail;
6522 }
6523 resultobj = SWIG_Py_Void();
6524 return resultobj;
6525fail:
6526 return NULL;
6527}
6528
6529
6530SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6531 PyObject *resultobj = 0;
6532 wxBitmap *arg1 = (wxBitmap *) 0 ;
6533 wxIcon *arg2 = 0 ;
6534 bool result;
6535 void *argp1 = 0 ;
6536 int res1 = 0 ;
6537 void *argp2 = 0 ;
6538 int res2 = 0 ;
6539 PyObject * obj0 = 0 ;
6540 PyObject * obj1 = 0 ;
6541 char * kwnames[] = {
6542 (char *) "self",(char *) "icon", NULL
6543 };
6544
6545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6547 if (!SWIG_IsOK(res1)) {
6548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6549 }
6550 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6551 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6552 if (!SWIG_IsOK(res2)) {
6553 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6554 }
6555 if (!argp2) {
6556 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6557 }
6558 arg2 = reinterpret_cast< wxIcon * >(argp2);
6559 {
554f62e9 6560 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
554f62e9
RD
6561 if (PyErr_Occurred()) SWIG_fail;
6562 }
6563 {
6564 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6565 }
6566 return resultobj;
6567fail:
6568 return NULL;
6569}
6570
6571
6572SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6573 PyObject *resultobj = 0;
6574 wxBitmap *arg1 = (wxBitmap *) 0 ;
6575 int arg2 ;
6576 void *argp1 = 0 ;
6577 int res1 = 0 ;
6578 int val2 ;
6579 int ecode2 = 0 ;
6580 PyObject * obj0 = 0 ;
6581 PyObject * obj1 = 0 ;
6582 char * kwnames[] = {
6583 (char *) "self",(char *) "height", NULL
6584 };
6585
6586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6588 if (!SWIG_IsOK(res1)) {
6589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6590 }
6591 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6592 ecode2 = SWIG_AsVal_int(obj1, &val2);
6593 if (!SWIG_IsOK(ecode2)) {
6594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6595 }
6596 arg2 = static_cast< int >(val2);
6597 {
554f62e9 6598 (arg1)->SetHeight(arg2);
554f62e9
RD
6599 if (PyErr_Occurred()) SWIG_fail;
6600 }
6601 resultobj = SWIG_Py_Void();
6602 return resultobj;
6603fail:
6604 return NULL;
6605}
6606
6607
6608SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6609 PyObject *resultobj = 0;
6610 wxBitmap *arg1 = (wxBitmap *) 0 ;
6611 int arg2 ;
6612 void *argp1 = 0 ;
6613 int res1 = 0 ;
6614 int val2 ;
6615 int ecode2 = 0 ;
6616 PyObject * obj0 = 0 ;
6617 PyObject * obj1 = 0 ;
6618 char * kwnames[] = {
6619 (char *) "self",(char *) "width", NULL
6620 };
6621
6622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6624 if (!SWIG_IsOK(res1)) {
6625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6626 }
6627 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6628 ecode2 = SWIG_AsVal_int(obj1, &val2);
6629 if (!SWIG_IsOK(ecode2)) {
6630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6631 }
6632 arg2 = static_cast< int >(val2);
6633 {
554f62e9 6634 (arg1)->SetWidth(arg2);
554f62e9
RD
6635 if (PyErr_Occurred()) SWIG_fail;
6636 }
6637 resultobj = SWIG_Py_Void();
6638 return resultobj;
6639fail:
6640 return NULL;
6641}
6642
6643
6644SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6645 PyObject *resultobj = 0;
6646 wxBitmap *arg1 = (wxBitmap *) 0 ;
6647 int arg2 ;
6648 void *argp1 = 0 ;
6649 int res1 = 0 ;
6650 int val2 ;
6651 int ecode2 = 0 ;
6652 PyObject * obj0 = 0 ;
6653 PyObject * obj1 = 0 ;
6654 char * kwnames[] = {
6655 (char *) "self",(char *) "depth", NULL
6656 };
6657
6658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6660 if (!SWIG_IsOK(res1)) {
6661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6662 }
6663 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6664 ecode2 = SWIG_AsVal_int(obj1, &val2);
6665 if (!SWIG_IsOK(ecode2)) {
6666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6667 }
6668 arg2 = static_cast< int >(val2);
6669 {
554f62e9 6670 (arg1)->SetDepth(arg2);
554f62e9
RD
6671 if (PyErr_Occurred()) SWIG_fail;
6672 }
6673 resultobj = SWIG_Py_Void();
6674 return resultobj;
6675fail:
6676 return NULL;
6677}
6678
6679
6680SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6681 PyObject *resultobj = 0;
6682 wxBitmap *arg1 = (wxBitmap *) 0 ;
6683 wxSize *arg2 = 0 ;
6684 void *argp1 = 0 ;
6685 int res1 = 0 ;
6686 wxSize temp2 ;
6687 PyObject * obj0 = 0 ;
6688 PyObject * obj1 = 0 ;
6689 char * kwnames[] = {
6690 (char *) "self",(char *) "size", NULL
6691 };
6692
6693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6695 if (!SWIG_IsOK(res1)) {
6696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6697 }
6698 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6699 {
6700 arg2 = &temp2;
6701 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6702 }
6703 {
554f62e9 6704 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
554f62e9
RD
6705 if (PyErr_Occurred()) SWIG_fail;
6706 }
6707 resultobj = SWIG_Py_Void();
6708 return resultobj;
6709fail:
6710 return NULL;
6711}
6712
6713
6714SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6715 PyObject *resultobj = 0;
6716 wxBitmap *arg1 = (wxBitmap *) 0 ;
6717 wxCursor *arg2 = 0 ;
6718 bool result;
6719 void *argp1 = 0 ;
6720 int res1 = 0 ;
6721 void *argp2 = 0 ;
6722 int res2 = 0 ;
6723 PyObject * obj0 = 0 ;
6724 PyObject * obj1 = 0 ;
6725 char * kwnames[] = {
6726 (char *) "self",(char *) "cursor", NULL
6727 };
6728
6729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
6730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6731 if (!SWIG_IsOK(res1)) {
6732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
6733 }
6734 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6735 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
6736 if (!SWIG_IsOK(res2)) {
6737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6738 }
6739 if (!argp2) {
6740 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6741 }
6742 arg2 = reinterpret_cast< wxCursor * >(argp2);
6743 {
554f62e9 6744 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
554f62e9
RD
6745 if (PyErr_Occurred()) SWIG_fail;
6746 }
6747 {
6748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6749 }
6750 return resultobj;
6751fail:
6752 return NULL;
6753}
6754
6755
6756SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6757 PyObject *resultobj = 0;
6758 wxBitmap *arg1 = (wxBitmap *) 0 ;
6759 wxBitmap *arg2 = (wxBitmap *) 0 ;
6760 bool result;
6761 void *argp1 = 0 ;
6762 int res1 = 0 ;
6763 void *argp2 = 0 ;
6764 int res2 = 0 ;
6765 PyObject * obj0 = 0 ;
6766 PyObject * obj1 = 0 ;
6767 char * kwnames[] = {
6768 (char *) "self",(char *) "other", NULL
6769 };
6770
6771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6773 if (!SWIG_IsOK(res1)) {
6774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6775 }
6776 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6777 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6778 if (!SWIG_IsOK(res2)) {
6779 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6780 }
6781 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6782 {
554f62e9 6783 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
554f62e9
RD
6784 if (PyErr_Occurred()) SWIG_fail;
6785 }
6786 {
fc46b7f3
RD
6787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6788 }
6789 return resultobj;
6790fail:
6791 return NULL;
6792}
6793
6794
6795SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6796 PyObject *resultobj = 0;
6797 wxBitmap *arg1 = (wxBitmap *) 0 ;
6798 wxBitmap *arg2 = (wxBitmap *) 0 ;
6799 bool result;
6800 void *argp1 = 0 ;
6801 int res1 = 0 ;
6802 void *argp2 = 0 ;
6803 int res2 = 0 ;
6804 PyObject * obj0 = 0 ;
6805 PyObject * obj1 = 0 ;
6806 char * kwnames[] = {
6807 (char *) "self",(char *) "other", NULL
6808 };
6809
6810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6812 if (!SWIG_IsOK(res1)) {
6813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6814 }
6815 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6816 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6817 if (!SWIG_IsOK(res2)) {
6818 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6819 }
6820 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6821 {
6822 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6823 if (PyErr_Occurred()) SWIG_fail;
6824 }
6825 {
6826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6827 }
6828 return resultobj;
6829fail:
6830 return NULL;
6831}
6832
6833
6834SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6835 PyObject *obj;
6836 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6837 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6838 return SWIG_Py_Void();
6839}
6840
6841SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6842 return SWIG_Python_InitShadowInstance(args);
6843}
6844
6845SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6846 PyObject *resultobj = 0;
6847 int arg1 ;
6848 int arg2 ;
6849 buffer arg3 ;
6850 int arg4 ;
6851 buffer arg5 ;
6852 int arg6 ;
6853 wxBitmap *result = 0 ;
6854 int val1 ;
6855 int ecode1 = 0 ;
6856 int val2 ;
6857 int ecode2 = 0 ;
e46e7e0d
RD
6858 Py_ssize_t temp3 ;
6859 Py_ssize_t temp5 ;
fc46b7f3
RD
6860 PyObject * obj0 = 0 ;
6861 PyObject * obj1 = 0 ;
6862 PyObject * obj2 = 0 ;
6863 PyObject * obj3 = 0 ;
6864 char * kwnames[] = {
6865 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6866 };
6867
6868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6869 ecode1 = SWIG_AsVal_int(obj0, &val1);
6870 if (!SWIG_IsOK(ecode1)) {
6871 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6872 }
6873 arg1 = static_cast< int >(val1);
6874 ecode2 = SWIG_AsVal_int(obj1, &val2);
6875 if (!SWIG_IsOK(ecode2)) {
6876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6877 }
6878 arg2 = static_cast< int >(val2);
6879 {
e46e7e0d
RD
6880 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6881 arg4 = (int)temp3;
fc46b7f3
RD
6882 }
6883 {
6884 if (obj3 != Py_None) {
e46e7e0d
RD
6885 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
6886 arg6 = (int)temp5;
fc46b7f3
RD
6887 }
6888 }
6889 {
6890 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6891 if (PyErr_Occurred()) SWIG_fail;
6892 }
6893 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6894 return resultobj;
6895fail:
6896 return NULL;
6897}
6898
6899
6900SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6901 PyObject *resultobj = 0;
6902 int arg1 ;
6903 int arg2 ;
6904 buffer arg3 ;
6905 int arg4 ;
6906 wxBitmap *result = 0 ;
6907 int val1 ;
6908 int ecode1 = 0 ;
6909 int val2 ;
6910 int ecode2 = 0 ;
e46e7e0d 6911 Py_ssize_t temp3 ;
fc46b7f3
RD
6912 PyObject * obj0 = 0 ;
6913 PyObject * obj1 = 0 ;
6914 PyObject * obj2 = 0 ;
6915 char * kwnames[] = {
6916 (char *) "width",(char *) "height",(char *) "data", NULL
6917 };
6918
6919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6920 ecode1 = SWIG_AsVal_int(obj0, &val1);
6921 if (!SWIG_IsOK(ecode1)) {
6922 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6923 }
6924 arg1 = static_cast< int >(val1);
6925 ecode2 = SWIG_AsVal_int(obj1, &val2);
6926 if (!SWIG_IsOK(ecode2)) {
6927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6928 }
6929 arg2 = static_cast< int >(val2);
6930 {
e46e7e0d
RD
6931 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6932 arg4 = (int)temp3;
fc46b7f3
RD
6933 }
6934 {
6935 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6936 if (PyErr_Occurred()) SWIG_fail;
6937 }
6938 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6939 return resultobj;
6940fail:
6941 return NULL;
6942}
6943
6944
6945SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6946 PyObject *resultobj = 0;
6947 int arg1 ;
6948 int arg2 ;
6949 buffer arg3 ;
6950 int arg4 ;
6951 wxBitmap *result = 0 ;
6952 int val1 ;
6953 int ecode1 = 0 ;
6954 int val2 ;
6955 int ecode2 = 0 ;
e46e7e0d 6956 Py_ssize_t temp3 ;
fc46b7f3
RD
6957 PyObject * obj0 = 0 ;
6958 PyObject * obj1 = 0 ;
6959 PyObject * obj2 = 0 ;
6960 char * kwnames[] = {
6961 (char *) "width",(char *) "height",(char *) "data", NULL
6962 };
6963
6964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6965 ecode1 = SWIG_AsVal_int(obj0, &val1);
6966 if (!SWIG_IsOK(ecode1)) {
6967 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6968 }
6969 arg1 = static_cast< int >(val1);
6970 ecode2 = SWIG_AsVal_int(obj1, &val2);
6971 if (!SWIG_IsOK(ecode2)) {
6972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6973 }
6974 arg2 = static_cast< int >(val2);
6975 {
e46e7e0d
RD
6976 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6977 arg4 = (int)temp3;
fc46b7f3
RD
6978 }
6979 {
6980 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
6981 if (PyErr_Occurred()) SWIG_fail;
6982 }
6983 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6984 return resultobj;
6985fail:
6986 return NULL;
6987}
6988
6989
6990SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6991 PyObject *resultobj = 0;
6992 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6993 wxPoint result;
6994 void *argp1 = 0 ;
6995 int res1 = 0 ;
6996 PyObject *swig_obj[1] ;
6997
6998 if (!args) SWIG_fail;
6999 swig_obj[0] = args;
7000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7001 if (!SWIG_IsOK(res1)) {
7002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7003 }
7004 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7005 {
7006 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7007 if (PyErr_Occurred()) SWIG_fail;
7008 }
7009 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7010 return resultobj;
7011fail:
7012 return NULL;
7013}
7014
7015
7016SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7017 PyObject *resultobj = 0;
7018 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7019 int result;
7020 void *argp1 = 0 ;
7021 int res1 = 0 ;
7022 PyObject *swig_obj[1] ;
7023
7024 if (!args) SWIG_fail;
7025 swig_obj[0] = args;
7026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7027 if (!SWIG_IsOK(res1)) {
7028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7029 }
7030 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7031 {
7032 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7033 if (PyErr_Occurred()) SWIG_fail;
7034 }
7035 resultobj = SWIG_From_int(static_cast< int >(result));
7036 return resultobj;
7037fail:
7038 return NULL;
7039}
7040
7041
7042SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7043 PyObject *resultobj = 0;
7044 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7045 int result;
7046 void *argp1 = 0 ;
7047 int res1 = 0 ;
7048 PyObject *swig_obj[1] ;
7049
7050 if (!args) SWIG_fail;
7051 swig_obj[0] = args;
7052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7053 if (!SWIG_IsOK(res1)) {
7054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7055 }
7056 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7057 {
7058 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7059 if (PyErr_Occurred()) SWIG_fail;
7060 }
7061 resultobj = SWIG_From_int(static_cast< int >(result));
7062 return resultobj;
7063fail:
7064 return NULL;
7065}
7066
7067
7068SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7069 PyObject *resultobj = 0;
7070 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7071 wxSize result;
7072 void *argp1 = 0 ;
7073 int res1 = 0 ;
7074 PyObject *swig_obj[1] ;
7075
7076 if (!args) SWIG_fail;
7077 swig_obj[0] = args;
7078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7079 if (!SWIG_IsOK(res1)) {
7080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7081 }
7082 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7083 {
7084 result = ((wxPixelDataBase const *)arg1)->GetSize();
7085 if (PyErr_Occurred()) SWIG_fail;
7086 }
7087 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7088 return resultobj;
7089fail:
7090 return NULL;
7091}
7092
7093
7094SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7095 PyObject *resultobj = 0;
7096 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7097 int result;
7098 void *argp1 = 0 ;
7099 int res1 = 0 ;
7100 PyObject *swig_obj[1] ;
7101
7102 if (!args) SWIG_fail;
7103 swig_obj[0] = args;
7104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7105 if (!SWIG_IsOK(res1)) {
7106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7107 }
7108 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7109 {
7110 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7111 if (PyErr_Occurred()) SWIG_fail;
7112 }
7113 resultobj = SWIG_From_int(static_cast< int >(result));
7114 return resultobj;
7115fail:
7116 return NULL;
7117}
7118
7119
7120SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7121 PyObject *obj;
7122 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7123 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7124 return SWIG_Py_Void();
7125}
7126
7127SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7128 PyObject *resultobj = 0;
7129 wxBitmap *arg1 = 0 ;
7130 wxNativePixelData *result = 0 ;
7131 void *argp1 = 0 ;
7132 int res1 = 0 ;
7133
7134 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7136 if (!SWIG_IsOK(res1)) {
7137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7138 }
7139 if (!argp1) {
7140 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7141 }
7142 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7143 {
7144 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
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__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7155 PyObject *resultobj = 0;
7156 wxBitmap *arg1 = 0 ;
7157 wxRect *arg2 = 0 ;
7158 wxNativePixelData *result = 0 ;
7159 void *argp1 = 0 ;
7160 int res1 = 0 ;
7161 wxRect temp2 ;
7162
7163 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7165 if (!SWIG_IsOK(res1)) {
7166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7167 }
7168 if (!argp1) {
7169 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7170 }
7171 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7172 {
7173 arg2 = &temp2;
7174 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7175 }
7176 {
7177 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7178 if (PyErr_Occurred()) SWIG_fail;
7179 }
7180 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7181 return resultobj;
7182fail:
7183 return NULL;
7184}
7185
7186
7187SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7188 PyObject *resultobj = 0;
7189 wxBitmap *arg1 = 0 ;
7190 wxPoint *arg2 = 0 ;
7191 wxSize *arg3 = 0 ;
7192 wxNativePixelData *result = 0 ;
7193 void *argp1 = 0 ;
7194 int res1 = 0 ;
7195 wxPoint temp2 ;
7196 wxSize temp3 ;
7197
7198 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7200 if (!SWIG_IsOK(res1)) {
7201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7202 }
7203 if (!argp1) {
7204 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7205 }
7206 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7207 {
7208 arg2 = &temp2;
7209 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7210 }
7211 {
7212 arg3 = &temp3;
7213 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7214 }
7215 {
7216 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7217 if (PyErr_Occurred()) SWIG_fail;
7218 }
7219 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7220 return resultobj;
7221fail:
7222 return NULL;
7223}
7224
7225
7226SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7227 int argc;
7228 PyObject *argv[4];
7229
7230 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7231 --argc;
7232 if (argc == 1) {
7233 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7234 }
7235 if (argc == 2) {
7236 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7237 }
7238 if (argc == 3) {
7239 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7240 }
7241
7242fail:
7243 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7244 return NULL;
7245}
7246
7247
7248SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7249 PyObject *resultobj = 0;
7250 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7251 void *argp1 = 0 ;
7252 int res1 = 0 ;
7253 PyObject *swig_obj[1] ;
7254
7255 if (!args) SWIG_fail;
7256 swig_obj[0] = args;
7257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7258 if (!SWIG_IsOK(res1)) {
7259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7260 }
7261 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7262 {
7263 delete arg1;
7264
7265 if (PyErr_Occurred()) SWIG_fail;
7266 }
7267 resultobj = SWIG_Py_Void();
7268 return resultobj;
7269fail:
7270 return NULL;
7271}
7272
7273
7274SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7275 PyObject *resultobj = 0;
7276 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7277 wxNativePixelData_Accessor result;
7278 void *argp1 = 0 ;
7279 int res1 = 0 ;
7280 PyObject *swig_obj[1] ;
7281
7282 if (!args) SWIG_fail;
7283 swig_obj[0] = args;
7284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7285 if (!SWIG_IsOK(res1)) {
7286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7287 }
7288 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7289 {
7290 result = ((wxNativePixelData const *)arg1)->GetPixels();
7291 if (PyErr_Occurred()) SWIG_fail;
7292 }
7293 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7294 return resultobj;
7295fail:
7296 return NULL;
7297}
7298
7299
7300SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7301 PyObject *resultobj = 0;
7302 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7303 void *argp1 = 0 ;
7304 int res1 = 0 ;
7305 PyObject *swig_obj[1] ;
7306
7307 if (!args) SWIG_fail;
7308 swig_obj[0] = args;
7309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7310 if (!SWIG_IsOK(res1)) {
7311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7312 }
7313 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7314 {
7315 (arg1)->UseAlpha();
7316 if (PyErr_Occurred()) SWIG_fail;
7317 }
7318 resultobj = SWIG_Py_Void();
7319 return resultobj;
7320fail:
7321 return NULL;
7322}
7323
7324
7325SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7326 PyObject *resultobj = 0;
7327 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7328 bool result;
7329 void *argp1 = 0 ;
7330 int res1 = 0 ;
7331 PyObject *swig_obj[1] ;
7332
7333 if (!args) SWIG_fail;
7334 swig_obj[0] = args;
7335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7336 if (!SWIG_IsOK(res1)) {
7337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7338 }
7339 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7340 {
7341 result = (bool)wxNativePixelData___nonzero__(arg1);
7342 if (PyErr_Occurred()) SWIG_fail;
7343 }
7344 {
7345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7346 }
7347 return resultobj;
7348fail:
7349 return NULL;
7350}
7351
7352
7353SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7354 PyObject *obj;
7355 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7356 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7357 return SWIG_Py_Void();
7358}
7359
7360SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7361 return SWIG_Python_InitShadowInstance(args);
7362}
7363
7364SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7365 PyObject *resultobj = 0;
7366 wxNativePixelData *arg1 = 0 ;
7367 wxNativePixelData_Accessor *result = 0 ;
7368 void *argp1 = 0 ;
7369 int res1 = 0 ;
7370
7371 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7373 if (!SWIG_IsOK(res1)) {
7374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7375 }
7376 if (!argp1) {
7377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7378 }
7379 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7380 {
7381 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7382 if (PyErr_Occurred()) SWIG_fail;
7383 }
7384 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7385 return resultobj;
7386fail:
7387 return NULL;
7388}
7389
7390
7391SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7392 PyObject *resultobj = 0;
7393 wxBitmap *arg1 = 0 ;
7394 wxNativePixelData *arg2 = 0 ;
7395 wxNativePixelData_Accessor *result = 0 ;
7396 void *argp1 = 0 ;
7397 int res1 = 0 ;
7398 void *argp2 = 0 ;
7399 int res2 = 0 ;
7400
7401 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7403 if (!SWIG_IsOK(res1)) {
7404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7405 }
7406 if (!argp1) {
7407 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7408 }
7409 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7410 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7411 if (!SWIG_IsOK(res2)) {
7412 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7413 }
7414 if (!argp2) {
7415 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7416 }
7417 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7418 {
7419 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7420 if (PyErr_Occurred()) SWIG_fail;
7421 }
7422 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7423 return resultobj;
7424fail:
7425 return NULL;
7426}
7427
7428
7429SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7430 PyObject *resultobj = 0;
7431 wxNativePixelData_Accessor *result = 0 ;
7432
7433 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7434 {
7435 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7436 if (PyErr_Occurred()) SWIG_fail;
7437 }
7438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7439 return resultobj;
7440fail:
7441 return NULL;
7442}
7443
7444
7445SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7446 int argc;
7447 PyObject *argv[3];
7448
7449 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7450 --argc;
7451 if (argc == 0) {
7452 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7453 }
7454 if (argc == 1) {
7455 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7456 }
7457 if (argc == 2) {
7458 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7459 }
7460
7461fail:
7462 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7463 return NULL;
7464}
7465
7466
7467SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7468 PyObject *resultobj = 0;
7469 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7470 void *argp1 = 0 ;
7471 int res1 = 0 ;
7472 PyObject *swig_obj[1] ;
7473
7474 if (!args) SWIG_fail;
7475 swig_obj[0] = args;
7476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7477 if (!SWIG_IsOK(res1)) {
7478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7479 }
7480 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7481 {
7482 delete arg1;
7483
7484 if (PyErr_Occurred()) SWIG_fail;
7485 }
7486 resultobj = SWIG_Py_Void();
7487 return resultobj;
7488fail:
7489 return NULL;
7490}
7491
7492
7493SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7494 PyObject *resultobj = 0;
7495 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7496 wxNativePixelData *arg2 = 0 ;
7497 void *argp1 = 0 ;
7498 int res1 = 0 ;
7499 void *argp2 = 0 ;
7500 int res2 = 0 ;
7501 PyObject * obj0 = 0 ;
7502 PyObject * obj1 = 0 ;
7503 char * kwnames[] = {
7504 (char *) "self",(char *) "data", NULL
7505 };
7506
7507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7509 if (!SWIG_IsOK(res1)) {
7510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7511 }
7512 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7513 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7514 if (!SWIG_IsOK(res2)) {
7515 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7516 }
7517 if (!argp2) {
7518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7519 }
7520 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7521 {
7522 (arg1)->Reset((wxNativePixelData const &)*arg2);
7523 if (PyErr_Occurred()) SWIG_fail;
7524 }
7525 resultobj = SWIG_Py_Void();
7526 return resultobj;
7527fail:
7528 return NULL;
7529}
7530
7531
7532SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7533 PyObject *resultobj = 0;
7534 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7535 bool result;
7536 void *argp1 = 0 ;
7537 int res1 = 0 ;
7538 PyObject *swig_obj[1] ;
7539
7540 if (!args) SWIG_fail;
7541 swig_obj[0] = args;
7542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7543 if (!SWIG_IsOK(res1)) {
7544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7545 }
7546 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7547 {
7548 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7549 if (PyErr_Occurred()) SWIG_fail;
7550 }
7551 {
7552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7553 }
7554 return resultobj;
7555fail:
7556 return NULL;
7557}
7558
7559
7560SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7561 PyObject *resultobj = 0;
7562 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7563 void *argp1 = 0 ;
7564 int res1 = 0 ;
7565 PyObject *swig_obj[1] ;
7566
7567 if (!args) SWIG_fail;
7568 swig_obj[0] = args;
7569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7570 if (!SWIG_IsOK(res1)) {
7571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7572 }
7573 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7574 {
7575 wxNativePixelData_Accessor_nextPixel(arg1);
7576 if (PyErr_Occurred()) SWIG_fail;
7577 }
7578 resultobj = SWIG_Py_Void();
7579 return resultobj;
7580fail:
7581 return NULL;
7582}
7583
7584
7585SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7586 PyObject *resultobj = 0;
7587 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7588 wxNativePixelData *arg2 = 0 ;
7589 int arg3 ;
7590 int arg4 ;
7591 void *argp1 = 0 ;
7592 int res1 = 0 ;
7593 void *argp2 = 0 ;
7594 int res2 = 0 ;
7595 int val3 ;
7596 int ecode3 = 0 ;
7597 int val4 ;
7598 int ecode4 = 0 ;
7599 PyObject * obj0 = 0 ;
7600 PyObject * obj1 = 0 ;
7601 PyObject * obj2 = 0 ;
7602 PyObject * obj3 = 0 ;
7603 char * kwnames[] = {
7604 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7605 };
7606
7607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7609 if (!SWIG_IsOK(res1)) {
7610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7611 }
7612 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7613 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7614 if (!SWIG_IsOK(res2)) {
7615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7616 }
7617 if (!argp2) {
7618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7619 }
7620 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7621 ecode3 = SWIG_AsVal_int(obj2, &val3);
7622 if (!SWIG_IsOK(ecode3)) {
7623 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7624 }
7625 arg3 = static_cast< int >(val3);
7626 ecode4 = SWIG_AsVal_int(obj3, &val4);
7627 if (!SWIG_IsOK(ecode4)) {
7628 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7629 }
7630 arg4 = static_cast< int >(val4);
7631 {
7632 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7633 if (PyErr_Occurred()) SWIG_fail;
7634 }
7635 resultobj = SWIG_Py_Void();
7636 return resultobj;
7637fail:
7638 return NULL;
7639}
7640
7641
7642SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7643 PyObject *resultobj = 0;
7644 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7645 wxNativePixelData *arg2 = 0 ;
7646 int arg3 ;
7647 void *argp1 = 0 ;
7648 int res1 = 0 ;
7649 void *argp2 = 0 ;
7650 int res2 = 0 ;
7651 int val3 ;
7652 int ecode3 = 0 ;
7653 PyObject * obj0 = 0 ;
7654 PyObject * obj1 = 0 ;
7655 PyObject * obj2 = 0 ;
7656 char * kwnames[] = {
7657 (char *) "self",(char *) "data",(char *) "x", NULL
7658 };
7659
7660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7662 if (!SWIG_IsOK(res1)) {
7663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7664 }
7665 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7666 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7667 if (!SWIG_IsOK(res2)) {
7668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7669 }
7670 if (!argp2) {
7671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7672 }
7673 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7674 ecode3 = SWIG_AsVal_int(obj2, &val3);
7675 if (!SWIG_IsOK(ecode3)) {
7676 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7677 }
7678 arg3 = static_cast< int >(val3);
7679 {
7680 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7681 if (PyErr_Occurred()) SWIG_fail;
7682 }
7683 resultobj = SWIG_Py_Void();
7684 return resultobj;
7685fail:
7686 return NULL;
7687}
7688
7689
7690SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7691 PyObject *resultobj = 0;
7692 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7693 wxNativePixelData *arg2 = 0 ;
7694 int arg3 ;
7695 void *argp1 = 0 ;
7696 int res1 = 0 ;
7697 void *argp2 = 0 ;
7698 int res2 = 0 ;
7699 int val3 ;
7700 int ecode3 = 0 ;
7701 PyObject * obj0 = 0 ;
7702 PyObject * obj1 = 0 ;
7703 PyObject * obj2 = 0 ;
7704 char * kwnames[] = {
7705 (char *) "self",(char *) "data",(char *) "y", NULL
7706 };
7707
7708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7710 if (!SWIG_IsOK(res1)) {
7711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7712 }
7713 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7714 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7715 if (!SWIG_IsOK(res2)) {
7716 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7717 }
7718 if (!argp2) {
7719 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7720 }
7721 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7722 ecode3 = SWIG_AsVal_int(obj2, &val3);
7723 if (!SWIG_IsOK(ecode3)) {
7724 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7725 }
7726 arg3 = static_cast< int >(val3);
7727 {
7728 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7729 if (PyErr_Occurred()) SWIG_fail;
7730 }
7731 resultobj = SWIG_Py_Void();
7732 return resultobj;
7733fail:
7734 return NULL;
7735}
7736
7737
7738SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7739 PyObject *resultobj = 0;
7740 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7741 wxNativePixelData *arg2 = 0 ;
7742 int arg3 ;
7743 int arg4 ;
7744 void *argp1 = 0 ;
7745 int res1 = 0 ;
7746 void *argp2 = 0 ;
7747 int res2 = 0 ;
7748 int val3 ;
7749 int ecode3 = 0 ;
7750 int val4 ;
7751 int ecode4 = 0 ;
7752 PyObject * obj0 = 0 ;
7753 PyObject * obj1 = 0 ;
7754 PyObject * obj2 = 0 ;
7755 PyObject * obj3 = 0 ;
7756 char * kwnames[] = {
7757 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7758 };
7759
7760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7762 if (!SWIG_IsOK(res1)) {
7763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7764 }
7765 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7766 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7767 if (!SWIG_IsOK(res2)) {
7768 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7769 }
7770 if (!argp2) {
7771 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7772 }
7773 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7774 ecode3 = SWIG_AsVal_int(obj2, &val3);
7775 if (!SWIG_IsOK(ecode3)) {
7776 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7777 }
7778 arg3 = static_cast< int >(val3);
7779 ecode4 = SWIG_AsVal_int(obj3, &val4);
7780 if (!SWIG_IsOK(ecode4)) {
7781 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7782 }
7783 arg4 = static_cast< int >(val4);
7784 {
7785 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7786 if (PyErr_Occurred()) SWIG_fail;
7787 }
7788 resultobj = SWIG_Py_Void();
7789 return resultobj;
7790fail:
7791 return NULL;
7792}
7793
7794
7795SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7796 PyObject *resultobj = 0;
7797 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7798 byte arg2 ;
7799 byte arg3 ;
7800 byte arg4 ;
7801 void *argp1 = 0 ;
7802 int res1 = 0 ;
7803 unsigned char val2 ;
7804 int ecode2 = 0 ;
7805 unsigned char val3 ;
7806 int ecode3 = 0 ;
7807 unsigned char val4 ;
7808 int ecode4 = 0 ;
7809 PyObject * obj0 = 0 ;
7810 PyObject * obj1 = 0 ;
7811 PyObject * obj2 = 0 ;
7812 PyObject * obj3 = 0 ;
7813 char * kwnames[] = {
7814 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7815 };
7816
7817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7819 if (!SWIG_IsOK(res1)) {
7820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7821 }
7822 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7823 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7824 if (!SWIG_IsOK(ecode2)) {
7825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7826 }
7827 arg2 = static_cast< byte >(val2);
7828 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7829 if (!SWIG_IsOK(ecode3)) {
7830 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7831 }
7832 arg3 = static_cast< byte >(val3);
7833 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7834 if (!SWIG_IsOK(ecode4)) {
7835 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7836 }
7837 arg4 = static_cast< byte >(val4);
7838 {
7839 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7840 if (PyErr_Occurred()) SWIG_fail;
7841 }
7842 resultobj = SWIG_Py_Void();
7843 return resultobj;
7844fail:
7845 return NULL;
7846}
7847
7848
7849SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7850 PyObject *resultobj = 0;
7851 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7852 PyObject *result = 0 ;
7853 void *argp1 = 0 ;
7854 int res1 = 0 ;
7855 PyObject *swig_obj[1] ;
7856
7857 if (!args) SWIG_fail;
7858 swig_obj[0] = args;
7859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7860 if (!SWIG_IsOK(res1)) {
7861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7862 }
7863 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7864 {
7865 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7866 if (PyErr_Occurred()) SWIG_fail;
7867 }
7868 resultobj = result;
7869 return resultobj;
7870fail:
7871 return NULL;
7872}
7873
7874
7875SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7876 PyObject *obj;
7877 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7878 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7879 return SWIG_Py_Void();
7880}
7881
7882SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7883 return SWIG_Python_InitShadowInstance(args);
7884}
7885
7886SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7887 PyObject *resultobj = 0;
7888 wxBitmap *arg1 = 0 ;
7889 wxAlphaPixelData *result = 0 ;
7890 void *argp1 = 0 ;
7891 int res1 = 0 ;
7892
7893 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7895 if (!SWIG_IsOK(res1)) {
7896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7897 }
7898 if (!argp1) {
7899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7900 }
7901 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7902 {
7903 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
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__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7914 PyObject *resultobj = 0;
7915 wxBitmap *arg1 = 0 ;
7916 wxRect *arg2 = 0 ;
7917 wxAlphaPixelData *result = 0 ;
7918 void *argp1 = 0 ;
7919 int res1 = 0 ;
7920 wxRect temp2 ;
7921
7922 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7924 if (!SWIG_IsOK(res1)) {
7925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7926 }
7927 if (!argp1) {
7928 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7929 }
7930 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7931 {
7932 arg2 = &temp2;
7933 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7934 }
7935 {
7936 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7937 if (PyErr_Occurred()) SWIG_fail;
7938 }
7939 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7940 return resultobj;
7941fail:
7942 return NULL;
7943}
7944
7945
7946SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7947 PyObject *resultobj = 0;
7948 wxBitmap *arg1 = 0 ;
7949 wxPoint *arg2 = 0 ;
7950 wxSize *arg3 = 0 ;
7951 wxAlphaPixelData *result = 0 ;
7952 void *argp1 = 0 ;
7953 int res1 = 0 ;
7954 wxPoint temp2 ;
7955 wxSize temp3 ;
7956
7957 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7959 if (!SWIG_IsOK(res1)) {
7960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7961 }
7962 if (!argp1) {
7963 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7964 }
7965 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7966 {
7967 arg2 = &temp2;
7968 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7969 }
7970 {
7971 arg3 = &temp3;
7972 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7973 }
7974 {
7975 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7976 if (PyErr_Occurred()) SWIG_fail;
7977 }
7978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7979 return resultobj;
7980fail:
7981 return NULL;
7982}
7983
7984
7985SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
7986 int argc;
7987 PyObject *argv[4];
7988
7989 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
7990 --argc;
7991 if (argc == 1) {
7992 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
7993 }
7994 if (argc == 2) {
7995 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
7996 }
7997 if (argc == 3) {
7998 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
7999 }
8000
8001fail:
8002 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8003 return NULL;
8004}
8005
8006
8007SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8008 PyObject *resultobj = 0;
8009 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8010 void *argp1 = 0 ;
8011 int res1 = 0 ;
8012 PyObject *swig_obj[1] ;
8013
8014 if (!args) SWIG_fail;
8015 swig_obj[0] = args;
8016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8017 if (!SWIG_IsOK(res1)) {
8018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8019 }
8020 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8021 {
8022 delete arg1;
8023
8024 if (PyErr_Occurred()) SWIG_fail;
8025 }
8026 resultobj = SWIG_Py_Void();
8027 return resultobj;
8028fail:
8029 return NULL;
8030}
8031
8032
8033SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8034 PyObject *resultobj = 0;
8035 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8036 wxAlphaPixelData_Accessor result;
8037 void *argp1 = 0 ;
8038 int res1 = 0 ;
8039 PyObject *swig_obj[1] ;
8040
8041 if (!args) SWIG_fail;
8042 swig_obj[0] = args;
8043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8044 if (!SWIG_IsOK(res1)) {
8045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8046 }
8047 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8048 {
8049 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8050 if (PyErr_Occurred()) SWIG_fail;
8051 }
8052 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8053 return resultobj;
8054fail:
8055 return NULL;
8056}
8057
8058
8059SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8060 PyObject *resultobj = 0;
8061 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8062 void *argp1 = 0 ;
8063 int res1 = 0 ;
8064 PyObject *swig_obj[1] ;
8065
8066 if (!args) SWIG_fail;
8067 swig_obj[0] = args;
8068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8069 if (!SWIG_IsOK(res1)) {
8070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8071 }
8072 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8073 {
8074 (arg1)->UseAlpha();
8075 if (PyErr_Occurred()) SWIG_fail;
8076 }
8077 resultobj = SWIG_Py_Void();
8078 return resultobj;
8079fail:
8080 return NULL;
8081}
8082
8083
8084SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8085 PyObject *resultobj = 0;
8086 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8087 bool result;
8088 void *argp1 = 0 ;
8089 int res1 = 0 ;
8090 PyObject *swig_obj[1] ;
8091
8092 if (!args) SWIG_fail;
8093 swig_obj[0] = args;
8094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8095 if (!SWIG_IsOK(res1)) {
8096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8097 }
8098 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8099 {
8100 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8101 if (PyErr_Occurred()) SWIG_fail;
8102 }
8103 {
8104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8105 }
8106 return resultobj;
8107fail:
8108 return NULL;
8109}
8110
8111
8112SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8113 PyObject *obj;
8114 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8115 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8116 return SWIG_Py_Void();
8117}
8118
8119SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8120 return SWIG_Python_InitShadowInstance(args);
8121}
8122
8123SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8124 PyObject *resultobj = 0;
8125 wxAlphaPixelData *arg1 = 0 ;
8126 wxAlphaPixelData_Accessor *result = 0 ;
8127 void *argp1 = 0 ;
8128 int res1 = 0 ;
8129
8130 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8132 if (!SWIG_IsOK(res1)) {
8133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8134 }
8135 if (!argp1) {
8136 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8137 }
8138 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8139 {
8140 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8141 if (PyErr_Occurred()) SWIG_fail;
8142 }
8143 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8144 return resultobj;
8145fail:
8146 return NULL;
8147}
8148
8149
8150SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8151 PyObject *resultobj = 0;
8152 wxBitmap *arg1 = 0 ;
8153 wxAlphaPixelData *arg2 = 0 ;
8154 wxAlphaPixelData_Accessor *result = 0 ;
8155 void *argp1 = 0 ;
8156 int res1 = 0 ;
8157 void *argp2 = 0 ;
8158 int res2 = 0 ;
8159
8160 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8162 if (!SWIG_IsOK(res1)) {
8163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8164 }
8165 if (!argp1) {
8166 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8167 }
8168 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8169 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8170 if (!SWIG_IsOK(res2)) {
8171 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8172 }
8173 if (!argp2) {
8174 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8175 }
8176 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8177 {
8178 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8179 if (PyErr_Occurred()) SWIG_fail;
8180 }
8181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8182 return resultobj;
8183fail:
8184 return NULL;
8185}
8186
8187
8188SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8189 PyObject *resultobj = 0;
8190 wxAlphaPixelData_Accessor *result = 0 ;
8191
8192 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8193 {
8194 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8195 if (PyErr_Occurred()) SWIG_fail;
8196 }
8197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8198 return resultobj;
8199fail:
8200 return NULL;
8201}
8202
8203
8204SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8205 int argc;
8206 PyObject *argv[3];
8207
8208 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8209 --argc;
8210 if (argc == 0) {
8211 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8212 }
8213 if (argc == 1) {
8214 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8215 }
8216 if (argc == 2) {
8217 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8218 }
8219
8220fail:
8221 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8222 return NULL;
8223}
8224
8225
8226SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8227 PyObject *resultobj = 0;
8228 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8229 void *argp1 = 0 ;
8230 int res1 = 0 ;
8231 PyObject *swig_obj[1] ;
8232
8233 if (!args) SWIG_fail;
8234 swig_obj[0] = args;
8235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8236 if (!SWIG_IsOK(res1)) {
8237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8238 }
8239 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8240 {
8241 delete arg1;
8242
8243 if (PyErr_Occurred()) SWIG_fail;
8244 }
8245 resultobj = SWIG_Py_Void();
8246 return resultobj;
8247fail:
8248 return NULL;
8249}
8250
8251
8252SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8253 PyObject *resultobj = 0;
8254 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8255 wxAlphaPixelData *arg2 = 0 ;
8256 void *argp1 = 0 ;
8257 int res1 = 0 ;
8258 void *argp2 = 0 ;
8259 int res2 = 0 ;
8260 PyObject * obj0 = 0 ;
8261 PyObject * obj1 = 0 ;
8262 char * kwnames[] = {
8263 (char *) "self",(char *) "data", NULL
8264 };
8265
8266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8268 if (!SWIG_IsOK(res1)) {
8269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8270 }
8271 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8272 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8273 if (!SWIG_IsOK(res2)) {
8274 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8275 }
8276 if (!argp2) {
8277 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8278 }
8279 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8280 {
8281 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8282 if (PyErr_Occurred()) SWIG_fail;
8283 }
8284 resultobj = SWIG_Py_Void();
8285 return resultobj;
8286fail:
8287 return NULL;
8288}
8289
8290
8291SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8292 PyObject *resultobj = 0;
8293 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8294 bool result;
8295 void *argp1 = 0 ;
8296 int res1 = 0 ;
8297 PyObject *swig_obj[1] ;
8298
8299 if (!args) SWIG_fail;
8300 swig_obj[0] = args;
8301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8302 if (!SWIG_IsOK(res1)) {
8303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8304 }
8305 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8306 {
8307 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8308 if (PyErr_Occurred()) SWIG_fail;
8309 }
8310 {
8311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8312 }
8313 return resultobj;
8314fail:
8315 return NULL;
8316}
8317
8318
8319SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8320 PyObject *resultobj = 0;
8321 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8322 void *argp1 = 0 ;
8323 int res1 = 0 ;
8324 PyObject *swig_obj[1] ;
8325
8326 if (!args) SWIG_fail;
8327 swig_obj[0] = args;
8328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8329 if (!SWIG_IsOK(res1)) {
8330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8331 }
8332 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8333 {
8334 wxAlphaPixelData_Accessor_nextPixel(arg1);
8335 if (PyErr_Occurred()) SWIG_fail;
8336 }
8337 resultobj = SWIG_Py_Void();
8338 return resultobj;
8339fail:
8340 return NULL;
8341}
8342
8343
8344SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8345 PyObject *resultobj = 0;
8346 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8347 wxAlphaPixelData *arg2 = 0 ;
8348 int arg3 ;
8349 int arg4 ;
8350 void *argp1 = 0 ;
8351 int res1 = 0 ;
8352 void *argp2 = 0 ;
8353 int res2 = 0 ;
8354 int val3 ;
8355 int ecode3 = 0 ;
8356 int val4 ;
8357 int ecode4 = 0 ;
8358 PyObject * obj0 = 0 ;
8359 PyObject * obj1 = 0 ;
8360 PyObject * obj2 = 0 ;
8361 PyObject * obj3 = 0 ;
8362 char * kwnames[] = {
8363 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8364 };
8365
8366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8368 if (!SWIG_IsOK(res1)) {
8369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8370 }
8371 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8372 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8373 if (!SWIG_IsOK(res2)) {
8374 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8375 }
8376 if (!argp2) {
8377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8378 }
8379 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8380 ecode3 = SWIG_AsVal_int(obj2, &val3);
8381 if (!SWIG_IsOK(ecode3)) {
8382 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8383 }
8384 arg3 = static_cast< int >(val3);
8385 ecode4 = SWIG_AsVal_int(obj3, &val4);
8386 if (!SWIG_IsOK(ecode4)) {
8387 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8388 }
8389 arg4 = static_cast< int >(val4);
8390 {
8391 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8392 if (PyErr_Occurred()) SWIG_fail;
8393 }
8394 resultobj = SWIG_Py_Void();
8395 return resultobj;
8396fail:
8397 return NULL;
8398}
8399
8400
8401SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8402 PyObject *resultobj = 0;
8403 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8404 wxAlphaPixelData *arg2 = 0 ;
8405 int arg3 ;
8406 void *argp1 = 0 ;
8407 int res1 = 0 ;
8408 void *argp2 = 0 ;
8409 int res2 = 0 ;
8410 int val3 ;
8411 int ecode3 = 0 ;
8412 PyObject * obj0 = 0 ;
8413 PyObject * obj1 = 0 ;
8414 PyObject * obj2 = 0 ;
8415 char * kwnames[] = {
8416 (char *) "self",(char *) "data",(char *) "x", NULL
8417 };
8418
8419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8421 if (!SWIG_IsOK(res1)) {
8422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8423 }
8424 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8425 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8426 if (!SWIG_IsOK(res2)) {
8427 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8428 }
8429 if (!argp2) {
8430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8431 }
8432 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8433 ecode3 = SWIG_AsVal_int(obj2, &val3);
8434 if (!SWIG_IsOK(ecode3)) {
8435 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8436 }
8437 arg3 = static_cast< int >(val3);
8438 {
8439 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8440 if (PyErr_Occurred()) SWIG_fail;
8441 }
8442 resultobj = SWIG_Py_Void();
8443 return resultobj;
8444fail:
8445 return NULL;
8446}
8447
8448
8449SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8450 PyObject *resultobj = 0;
8451 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8452 wxAlphaPixelData *arg2 = 0 ;
8453 int arg3 ;
8454 void *argp1 = 0 ;
8455 int res1 = 0 ;
8456 void *argp2 = 0 ;
8457 int res2 = 0 ;
8458 int val3 ;
8459 int ecode3 = 0 ;
8460 PyObject * obj0 = 0 ;
8461 PyObject * obj1 = 0 ;
8462 PyObject * obj2 = 0 ;
8463 char * kwnames[] = {
8464 (char *) "self",(char *) "data",(char *) "y", NULL
8465 };
8466
8467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8469 if (!SWIG_IsOK(res1)) {
8470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8471 }
8472 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8473 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8474 if (!SWIG_IsOK(res2)) {
8475 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8476 }
8477 if (!argp2) {
8478 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8479 }
8480 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8481 ecode3 = SWIG_AsVal_int(obj2, &val3);
8482 if (!SWIG_IsOK(ecode3)) {
8483 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8484 }
8485 arg3 = static_cast< int >(val3);
8486 {
8487 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8488 if (PyErr_Occurred()) SWIG_fail;
8489 }
8490 resultobj = SWIG_Py_Void();
8491 return resultobj;
8492fail:
8493 return NULL;
8494}
8495
8496
8497SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8498 PyObject *resultobj = 0;
8499 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8500 wxAlphaPixelData *arg2 = 0 ;
8501 int arg3 ;
8502 int arg4 ;
8503 void *argp1 = 0 ;
8504 int res1 = 0 ;
8505 void *argp2 = 0 ;
8506 int res2 = 0 ;
8507 int val3 ;
8508 int ecode3 = 0 ;
8509 int val4 ;
8510 int ecode4 = 0 ;
8511 PyObject * obj0 = 0 ;
8512 PyObject * obj1 = 0 ;
8513 PyObject * obj2 = 0 ;
8514 PyObject * obj3 = 0 ;
8515 char * kwnames[] = {
8516 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8517 };
8518
8519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8521 if (!SWIG_IsOK(res1)) {
8522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8523 }
8524 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8525 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8526 if (!SWIG_IsOK(res2)) {
8527 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8528 }
8529 if (!argp2) {
8530 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8531 }
8532 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8533 ecode3 = SWIG_AsVal_int(obj2, &val3);
8534 if (!SWIG_IsOK(ecode3)) {
8535 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8536 }
8537 arg3 = static_cast< int >(val3);
8538 ecode4 = SWIG_AsVal_int(obj3, &val4);
8539 if (!SWIG_IsOK(ecode4)) {
8540 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8541 }
8542 arg4 = static_cast< int >(val4);
8543 {
8544 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8545 if (PyErr_Occurred()) SWIG_fail;
8546 }
8547 resultobj = SWIG_Py_Void();
8548 return resultobj;
8549fail:
8550 return NULL;
8551}
8552
8553
8554SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8555 PyObject *resultobj = 0;
8556 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8557 byte arg2 ;
8558 byte arg3 ;
8559 byte arg4 ;
8560 byte arg5 ;
8561 void *argp1 = 0 ;
8562 int res1 = 0 ;
8563 unsigned char val2 ;
8564 int ecode2 = 0 ;
8565 unsigned char val3 ;
8566 int ecode3 = 0 ;
8567 unsigned char val4 ;
8568 int ecode4 = 0 ;
8569 unsigned char val5 ;
8570 int ecode5 = 0 ;
8571 PyObject * obj0 = 0 ;
8572 PyObject * obj1 = 0 ;
8573 PyObject * obj2 = 0 ;
8574 PyObject * obj3 = 0 ;
8575 PyObject * obj4 = 0 ;
8576 char * kwnames[] = {
8577 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8578 };
8579
8580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8582 if (!SWIG_IsOK(res1)) {
8583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8584 }
8585 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8586 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8587 if (!SWIG_IsOK(ecode2)) {
8588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8589 }
8590 arg2 = static_cast< byte >(val2);
8591 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8592 if (!SWIG_IsOK(ecode3)) {
8593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8594 }
8595 arg3 = static_cast< byte >(val3);
8596 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8597 if (!SWIG_IsOK(ecode4)) {
8598 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8599 }
8600 arg4 = static_cast< byte >(val4);
8601 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8602 if (!SWIG_IsOK(ecode5)) {
8603 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8604 }
8605 arg5 = static_cast< byte >(val5);
8606 {
8607 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8608 if (PyErr_Occurred()) SWIG_fail;
554f62e9 8609 }
fc46b7f3 8610 resultobj = SWIG_Py_Void();
554f62e9
RD
8611 return resultobj;
8612fail:
8613 return NULL;
8614}
8615
8616
fc46b7f3 8617SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 8618 PyObject *resultobj = 0;
fc46b7f3
RD
8619 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8620 PyObject *result = 0 ;
554f62e9
RD
8621 void *argp1 = 0 ;
8622 int res1 = 0 ;
fc46b7f3 8623 PyObject *swig_obj[1] ;
554f62e9 8624
fc46b7f3
RD
8625 if (!args) SWIG_fail;
8626 swig_obj[0] = args;
8627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
554f62e9 8628 if (!SWIG_IsOK(res1)) {
fc46b7f3 8629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
554f62e9 8630 }
fc46b7f3 8631 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
554f62e9 8632 {
fc46b7f3 8633 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
554f62e9
RD
8634 if (PyErr_Occurred()) SWIG_fail;
8635 }
fc46b7f3 8636 resultobj = result;
554f62e9
RD
8637 return resultobj;
8638fail:
8639 return NULL;
d55e5bfc
RD
8640}
8641
8642
fc46b7f3 8643SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
8644 PyObject *obj;
8645 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8646 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
554f62e9 8647 return SWIG_Py_Void();
d55e5bfc
RD
8648}
8649
fc46b7f3 8650SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 8651 return SWIG_Python_InitShadowInstance(args);
093d3ff1
RD
8652}
8653
554f62e9
RD
8654SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8655 PyObject *resultobj = 0;
8656 wxBitmap *arg1 = 0 ;
8657 wxColour const &arg2_defvalue = wxNullColour ;
8658 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8659 wxMask *result = 0 ;
8660 void *argp1 = 0 ;
8661 int res1 = 0 ;
8662 wxColour temp2 ;
8663 PyObject * obj0 = 0 ;
8664 PyObject * obj1 = 0 ;
8665 char * kwnames[] = {
8666 (char *) "bitmap",(char *) "colour", NULL
8667 };
8668
8669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8670 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8671 if (!SWIG_IsOK(res1)) {
8672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8673 }
8674 if (!argp1) {
8675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8676 }
8677 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8678 if (obj1) {
d55e5bfc 8679 {
554f62e9
RD
8680 arg2 = &temp2;
8681 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 8682 }
554f62e9
RD
8683 }
8684 {
8685 if (!wxPyCheckForApp()) SWIG_fail;
8686 PyThreadState* __tstate = wxPyBeginAllowThreads();
8687 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8688 wxPyEndAllowThreads(__tstate);
8689 if (PyErr_Occurred()) SWIG_fail;
8690 }
8691 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8692 return resultobj;
8693fail:
8694 return NULL;
d55e5bfc
RD
8695}
8696
8697
554f62e9
RD
8698SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8699 PyObject *resultobj = 0;
8700 wxMask *arg1 = (wxMask *) 0 ;
8701 void *argp1 = 0 ;
8702 int res1 = 0 ;
8703 PyObject *swig_obj[1] ;
8704
8705 if (!args) SWIG_fail;
8706 swig_obj[0] = args;
8707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8708 if (!SWIG_IsOK(res1)) {
8709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8710 }
8711 arg1 = reinterpret_cast< wxMask * >(argp1);
8712 {
554f62e9 8713 delete arg1;
d55e5bfc 8714
554f62e9
RD
8715 if (PyErr_Occurred()) SWIG_fail;
8716 }
8717 resultobj = SWIG_Py_Void();
8718 return resultobj;
8719fail:
8720 return NULL;
8721}
8722
8723
8724SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8725 PyObject *obj;
8726 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8727 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8728 return SWIG_Py_Void();
8729}
8730
8731SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8732 return SWIG_Python_InitShadowInstance(args);
8733}
8734
8735SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8736 PyObject *resultobj = 0;
8737 wxString *arg1 = 0 ;
8738 wxBitmapType arg2 ;
8739 int arg3 = (int) -1 ;
8740 int arg4 = (int) -1 ;
8741 wxIcon *result = 0 ;
8742 bool temp1 = false ;
8743 int val2 ;
8744 int ecode2 = 0 ;
8745 int val3 ;
8746 int ecode3 = 0 ;
8747 int val4 ;
8748 int ecode4 = 0 ;
8749 PyObject * obj0 = 0 ;
8750 PyObject * obj1 = 0 ;
8751 PyObject * obj2 = 0 ;
8752 PyObject * obj3 = 0 ;
8753 char * kwnames[] = {
8754 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8755 };
8756
8757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8758 {
8759 arg1 = wxString_in_helper(obj0);
8760 if (arg1 == NULL) SWIG_fail;
8761 temp1 = true;
8762 }
8763 ecode2 = SWIG_AsVal_int(obj1, &val2);
8764 if (!SWIG_IsOK(ecode2)) {
8765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8766 }
8767 arg2 = static_cast< wxBitmapType >(val2);
8768 if (obj2) {
8769 ecode3 = SWIG_AsVal_int(obj2, &val3);
8770 if (!SWIG_IsOK(ecode3)) {
8771 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8772 }
8773 arg3 = static_cast< int >(val3);
8774 }
8775 if (obj3) {
8776 ecode4 = SWIG_AsVal_int(obj3, &val4);
8777 if (!SWIG_IsOK(ecode4)) {
8778 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8779 }
8780 arg4 = static_cast< int >(val4);
8781 }
8782 {
8783 if (!wxPyCheckForApp()) SWIG_fail;
8784 PyThreadState* __tstate = wxPyBeginAllowThreads();
8785 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8786 wxPyEndAllowThreads(__tstate);
8787 if (PyErr_Occurred()) SWIG_fail;
8788 }
8789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8790 {
8791 if (temp1)
8792 delete arg1;
8793 }
8794 return resultobj;
8795fail:
8796 {
8797 if (temp1)
8798 delete arg1;
8799 }
8800 return NULL;
d55e5bfc
RD
8801}
8802
8803
554f62e9
RD
8804SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8805 PyObject *resultobj = 0;
8806 wxIcon *arg1 = (wxIcon *) 0 ;
8807 void *argp1 = 0 ;
8808 int res1 = 0 ;
8809 PyObject *swig_obj[1] ;
8810
8811 if (!args) SWIG_fail;
8812 swig_obj[0] = args;
8813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8814 if (!SWIG_IsOK(res1)) {
8815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8816 }
8817 arg1 = reinterpret_cast< wxIcon * >(argp1);
8818 {
8819 PyThreadState* __tstate = wxPyBeginAllowThreads();
8820 delete arg1;
d55e5bfc 8821
554f62e9
RD
8822 wxPyEndAllowThreads(__tstate);
8823 if (PyErr_Occurred()) SWIG_fail;
8824 }
8825 resultobj = SWIG_Py_Void();
8826 return resultobj;
8827fail:
8828 return NULL;
d55e5bfc
RD
8829}
8830
8831
554f62e9
RD
8832SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8833 PyObject *resultobj = 0;
8834 wxIcon *result = 0 ;
8835
8836 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8837 {
8838 if (!wxPyCheckForApp()) SWIG_fail;
8839 PyThreadState* __tstate = wxPyBeginAllowThreads();
8840 result = (wxIcon *)new wxIcon();
8841 wxPyEndAllowThreads(__tstate);
8842 if (PyErr_Occurred()) SWIG_fail;
8843 }
8844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8845 return resultobj;
8846fail:
8847 return NULL;
8848}
8849
8850
8851SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8852 PyObject *resultobj = 0;
8853 wxIconLocation *arg1 = 0 ;
8854 wxIcon *result = 0 ;
8855 void *argp1 = 0 ;
8856 int res1 = 0 ;
8857 PyObject * obj0 = 0 ;
8858 char * kwnames[] = {
8859 (char *) "loc", NULL
8860 };
8861
8862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8863 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8864 if (!SWIG_IsOK(res1)) {
8865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8866 }
8867 if (!argp1) {
8868 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8869 }
8870 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8871 {
8872 if (!wxPyCheckForApp()) SWIG_fail;
8873 PyThreadState* __tstate = wxPyBeginAllowThreads();
8874 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8875 wxPyEndAllowThreads(__tstate);
8876 if (PyErr_Occurred()) SWIG_fail;
8877 }
8878 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8879 return resultobj;
8880fail:
8881 return NULL;
8882}
8883
8884
8885SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8886 PyObject *resultobj = 0;
8887 wxBitmap *arg1 = 0 ;
8888 wxIcon *result = 0 ;
8889 void *argp1 = 0 ;
8890 int res1 = 0 ;
8891 PyObject * obj0 = 0 ;
8892 char * kwnames[] = {
8893 (char *) "bmp", NULL
8894 };
8895
8896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8897 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8898 if (!SWIG_IsOK(res1)) {
8899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8900 }
8901 if (!argp1) {
8902 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8903 }
8904 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8905 {
8906 if (!wxPyCheckForApp()) SWIG_fail;
8907 PyThreadState* __tstate = wxPyBeginAllowThreads();
8908 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8909 wxPyEndAllowThreads(__tstate);
8910 if (PyErr_Occurred()) SWIG_fail;
8911 }
8912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8913 return resultobj;
8914fail:
8915 return NULL;
d55e5bfc
RD
8916}
8917
8918
554f62e9
RD
8919SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8920 PyObject *resultobj = 0;
8921 PyObject *arg1 = (PyObject *) 0 ;
8922 wxIcon *result = 0 ;
8923 PyObject * obj0 = 0 ;
8924 char * kwnames[] = {
8925 (char *) "listOfStrings", NULL
8926 };
8927
8928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8929 arg1 = obj0;
8930 {
8931 if (!wxPyCheckForApp()) SWIG_fail;
8932 PyThreadState* __tstate = wxPyBeginAllowThreads();
8933 result = (wxIcon *)new_wxIcon(arg1);
8934 wxPyEndAllowThreads(__tstate);
8935 if (PyErr_Occurred()) SWIG_fail;
8936 }
8937 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8938 return resultobj;
8939fail:
8940 return NULL;
8941}
8942
8943
8944SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8945 PyObject *resultobj = 0;
8946 wxIcon *arg1 = (wxIcon *) 0 ;
8947 wxString *arg2 = 0 ;
8948 wxBitmapType arg3 ;
8949 bool result;
8950 void *argp1 = 0 ;
8951 int res1 = 0 ;
8952 bool temp2 = false ;
8953 int val3 ;
8954 int ecode3 = 0 ;
8955 PyObject * obj0 = 0 ;
8956 PyObject * obj1 = 0 ;
8957 PyObject * obj2 = 0 ;
8958 char * kwnames[] = {
8959 (char *) "self",(char *) "name",(char *) "type", NULL
8960 };
8961
8962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8964 if (!SWIG_IsOK(res1)) {
8965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
8966 }
8967 arg1 = reinterpret_cast< wxIcon * >(argp1);
8968 {
8969 arg2 = wxString_in_helper(obj1);
8970 if (arg2 == NULL) SWIG_fail;
8971 temp2 = true;
8972 }
8973 ecode3 = SWIG_AsVal_int(obj2, &val3);
8974 if (!SWIG_IsOK(ecode3)) {
8975 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
8976 }
8977 arg3 = static_cast< wxBitmapType >(val3);
8978 {
8979 PyThreadState* __tstate = wxPyBeginAllowThreads();
8980 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
8981 wxPyEndAllowThreads(__tstate);
8982 if (PyErr_Occurred()) SWIG_fail;
8983 }
8984 {
8985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8986 }
8987 {
8988 if (temp2)
8989 delete arg2;
8990 }
8991 return resultobj;
8992fail:
8993 {
8994 if (temp2)
8995 delete arg2;
8996 }
8997 return NULL;
d55e5bfc
RD
8998}
8999
9000
554f62e9
RD
9001SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9002 PyObject *resultobj = 0;
9003 wxIcon *arg1 = (wxIcon *) 0 ;
9004 long result;
9005 void *argp1 = 0 ;
9006 int res1 = 0 ;
9007 PyObject *swig_obj[1] ;
9008
9009 if (!args) SWIG_fail;
9010 swig_obj[0] = args;
9011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9012 if (!SWIG_IsOK(res1)) {
9013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9014 }
9015 arg1 = reinterpret_cast< wxIcon * >(argp1);
9016 {
9017 PyThreadState* __tstate = wxPyBeginAllowThreads();
9018 result = (long)(arg1)->GetHandle();
9019 wxPyEndAllowThreads(__tstate);
9020 if (PyErr_Occurred()) SWIG_fail;
9021 }
9022 resultobj = SWIG_From_long(static_cast< long >(result));
9023 return resultobj;
9024fail:
9025 return NULL;
9026}
9027
9028
9029SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9030 PyObject *resultobj = 0;
9031 wxIcon *arg1 = (wxIcon *) 0 ;
9032 long arg2 ;
9033 void *argp1 = 0 ;
9034 int res1 = 0 ;
9035 long val2 ;
9036 int ecode2 = 0 ;
9037 PyObject * obj0 = 0 ;
9038 PyObject * obj1 = 0 ;
9039 char * kwnames[] = {
9040 (char *) "self",(char *) "handle", NULL
9041 };
9042
9043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9045 if (!SWIG_IsOK(res1)) {
9046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9047 }
9048 arg1 = reinterpret_cast< wxIcon * >(argp1);
9049 ecode2 = SWIG_AsVal_long(obj1, &val2);
9050 if (!SWIG_IsOK(ecode2)) {
9051 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9052 }
9053 arg2 = static_cast< long >(val2);
9054 {
9055 PyThreadState* __tstate = wxPyBeginAllowThreads();
9056 wxIcon_SetHandle(arg1,arg2);
9057 wxPyEndAllowThreads(__tstate);
9058 if (PyErr_Occurred()) SWIG_fail;
9059 }
9060 resultobj = SWIG_Py_Void();
9061 return resultobj;
9062fail:
9063 return NULL;
d55e5bfc
RD
9064}
9065
9066
554f62e9
RD
9067SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9068 PyObject *resultobj = 0;
9069 wxIcon *arg1 = (wxIcon *) 0 ;
9070 bool result;
9071 void *argp1 = 0 ;
9072 int res1 = 0 ;
9073 PyObject *swig_obj[1] ;
9074
9075 if (!args) SWIG_fail;
9076 swig_obj[0] = args;
9077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9078 if (!SWIG_IsOK(res1)) {
9079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
9080 }
9081 arg1 = reinterpret_cast< wxIcon * >(argp1);
9082 {
9083 PyThreadState* __tstate = wxPyBeginAllowThreads();
9084 result = (bool)(arg1)->Ok();
9085 wxPyEndAllowThreads(__tstate);
9086 if (PyErr_Occurred()) SWIG_fail;
9087 }
9088 {
9089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9090 }
9091 return resultobj;
9092fail:
9093 return NULL;
d55e5bfc
RD
9094}
9095
9096
554f62e9
RD
9097SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9098 PyObject *resultobj = 0;
9099 wxIcon *arg1 = (wxIcon *) 0 ;
9100 int result;
9101 void *argp1 = 0 ;
9102 int res1 = 0 ;
9103 PyObject *swig_obj[1] ;
9104
9105 if (!args) SWIG_fail;
9106 swig_obj[0] = args;
9107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9108 if (!SWIG_IsOK(res1)) {
9109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9110 }
9111 arg1 = reinterpret_cast< wxIcon * >(argp1);
9112 {
9113 PyThreadState* __tstate = wxPyBeginAllowThreads();
9114 result = (int)(arg1)->GetWidth();
9115 wxPyEndAllowThreads(__tstate);
9116 if (PyErr_Occurred()) SWIG_fail;
9117 }
9118 resultobj = SWIG_From_int(static_cast< int >(result));
9119 return resultobj;
9120fail:
9121 return NULL;
c1cb24a4
RD
9122}
9123
9124
554f62e9
RD
9125SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9126 PyObject *resultobj = 0;
9127 wxIcon *arg1 = (wxIcon *) 0 ;
9128 int result;
9129 void *argp1 = 0 ;
9130 int res1 = 0 ;
9131 PyObject *swig_obj[1] ;
9132
9133 if (!args) SWIG_fail;
9134 swig_obj[0] = args;
9135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9136 if (!SWIG_IsOK(res1)) {
9137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9138 }
9139 arg1 = reinterpret_cast< wxIcon * >(argp1);
9140 {
9141 PyThreadState* __tstate = wxPyBeginAllowThreads();
9142 result = (int)(arg1)->GetHeight();
9143 wxPyEndAllowThreads(__tstate);
9144 if (PyErr_Occurred()) SWIG_fail;
9145 }
9146 resultobj = SWIG_From_int(static_cast< int >(result));
9147 return resultobj;
9148fail:
9149 return NULL;
c1cb24a4
RD
9150}
9151
9152
554f62e9
RD
9153SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9154 PyObject *resultobj = 0;
9155 wxIcon *arg1 = (wxIcon *) 0 ;
9156 int result;
9157 void *argp1 = 0 ;
9158 int res1 = 0 ;
9159 PyObject *swig_obj[1] ;
9160
9161 if (!args) SWIG_fail;
9162 swig_obj[0] = args;
9163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9164 if (!SWIG_IsOK(res1)) {
9165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9166 }
9167 arg1 = reinterpret_cast< wxIcon * >(argp1);
9168 {
9169 PyThreadState* __tstate = wxPyBeginAllowThreads();
9170 result = (int)(arg1)->GetDepth();
9171 wxPyEndAllowThreads(__tstate);
9172 if (PyErr_Occurred()) SWIG_fail;
9173 }
9174 resultobj = SWIG_From_int(static_cast< int >(result));
9175 return resultobj;
9176fail:
9177 return NULL;
9178}
9179
9180
9181SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9182 PyObject *resultobj = 0;
9183 wxIcon *arg1 = (wxIcon *) 0 ;
9184 int arg2 ;
9185 void *argp1 = 0 ;
9186 int res1 = 0 ;
9187 int val2 ;
9188 int ecode2 = 0 ;
9189 PyObject * obj0 = 0 ;
9190 PyObject * obj1 = 0 ;
9191 char * kwnames[] = {
9192 (char *) "self",(char *) "w", NULL
9193 };
9194
9195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9197 if (!SWIG_IsOK(res1)) {
9198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9199 }
9200 arg1 = reinterpret_cast< wxIcon * >(argp1);
9201 ecode2 = SWIG_AsVal_int(obj1, &val2);
9202 if (!SWIG_IsOK(ecode2)) {
9203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9204 }
9205 arg2 = static_cast< int >(val2);
9206 {
9207 PyThreadState* __tstate = wxPyBeginAllowThreads();
9208 (arg1)->SetWidth(arg2);
9209 wxPyEndAllowThreads(__tstate);
9210 if (PyErr_Occurred()) SWIG_fail;
9211 }
9212 resultobj = SWIG_Py_Void();
9213 return resultobj;
9214fail:
9215 return NULL;
9216}
9217
9218
9219SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9220 PyObject *resultobj = 0;
9221 wxIcon *arg1 = (wxIcon *) 0 ;
9222 int arg2 ;
9223 void *argp1 = 0 ;
9224 int res1 = 0 ;
9225 int val2 ;
9226 int ecode2 = 0 ;
9227 PyObject * obj0 = 0 ;
9228 PyObject * obj1 = 0 ;
9229 char * kwnames[] = {
9230 (char *) "self",(char *) "h", NULL
9231 };
9232
9233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9235 if (!SWIG_IsOK(res1)) {
9236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9237 }
9238 arg1 = reinterpret_cast< wxIcon * >(argp1);
9239 ecode2 = SWIG_AsVal_int(obj1, &val2);
9240 if (!SWIG_IsOK(ecode2)) {
9241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9242 }
9243 arg2 = static_cast< int >(val2);
9244 {
9245 PyThreadState* __tstate = wxPyBeginAllowThreads();
9246 (arg1)->SetHeight(arg2);
9247 wxPyEndAllowThreads(__tstate);
9248 if (PyErr_Occurred()) SWIG_fail;
9249 }
9250 resultobj = SWIG_Py_Void();
9251 return resultobj;
9252fail:
9253 return NULL;
9254}
9255
9256
9257SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9258 PyObject *resultobj = 0;
9259 wxIcon *arg1 = (wxIcon *) 0 ;
9260 int arg2 ;
9261 void *argp1 = 0 ;
9262 int res1 = 0 ;
9263 int val2 ;
9264 int ecode2 = 0 ;
9265 PyObject * obj0 = 0 ;
9266 PyObject * obj1 = 0 ;
9267 char * kwnames[] = {
9268 (char *) "self",(char *) "d", NULL
9269 };
9270
9271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9273 if (!SWIG_IsOK(res1)) {
9274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9275 }
9276 arg1 = reinterpret_cast< wxIcon * >(argp1);
9277 ecode2 = SWIG_AsVal_int(obj1, &val2);
9278 if (!SWIG_IsOK(ecode2)) {
9279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9280 }
9281 arg2 = static_cast< int >(val2);
9282 {
9283 PyThreadState* __tstate = wxPyBeginAllowThreads();
9284 (arg1)->SetDepth(arg2);
9285 wxPyEndAllowThreads(__tstate);
9286 if (PyErr_Occurred()) SWIG_fail;
9287 }
9288 resultobj = SWIG_Py_Void();
9289 return resultobj;
9290fail:
9291 return NULL;
9292}
9293
9294
9295SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9296 PyObject *resultobj = 0;
9297 wxIcon *arg1 = (wxIcon *) 0 ;
9298 wxSize *arg2 = 0 ;
9299 void *argp1 = 0 ;
9300 int res1 = 0 ;
9301 wxSize temp2 ;
9302 PyObject * obj0 = 0 ;
9303 PyObject * obj1 = 0 ;
9304 char * kwnames[] = {
9305 (char *) "self",(char *) "size", NULL
9306 };
9307
9308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9310 if (!SWIG_IsOK(res1)) {
9311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9312 }
9313 arg1 = reinterpret_cast< wxIcon * >(argp1);
9314 {
9315 arg2 = &temp2;
9316 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9317 }
9318 {
9319 PyThreadState* __tstate = wxPyBeginAllowThreads();
9320 (arg1)->SetSize((wxSize const &)*arg2);
9321 wxPyEndAllowThreads(__tstate);
9322 if (PyErr_Occurred()) SWIG_fail;
9323 }
9324 resultobj = SWIG_Py_Void();
9325 return resultobj;
9326fail:
9327 return NULL;
9328}
9329
9330
9331SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9332 PyObject *resultobj = 0;
9333 wxIcon *arg1 = (wxIcon *) 0 ;
9334 wxBitmap *arg2 = 0 ;
9335 void *argp1 = 0 ;
9336 int res1 = 0 ;
9337 void *argp2 = 0 ;
9338 int res2 = 0 ;
9339 PyObject * obj0 = 0 ;
9340 PyObject * obj1 = 0 ;
9341 char * kwnames[] = {
9342 (char *) "self",(char *) "bmp", NULL
9343 };
9344
9345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9347 if (!SWIG_IsOK(res1)) {
9348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9349 }
9350 arg1 = reinterpret_cast< wxIcon * >(argp1);
9351 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9352 if (!SWIG_IsOK(res2)) {
9353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9354 }
9355 if (!argp2) {
9356 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9357 }
9358 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9359 {
9360 PyThreadState* __tstate = wxPyBeginAllowThreads();
9361 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9362 wxPyEndAllowThreads(__tstate);
9363 if (PyErr_Occurred()) SWIG_fail;
9364 }
9365 resultobj = SWIG_Py_Void();
9366 return resultobj;
9367fail:
9368 return NULL;
d55e5bfc
RD
9369}
9370
9371
554f62e9
RD
9372SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9373 PyObject *obj;
9374 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9375 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9376 return SWIG_Py_Void();
d55e5bfc
RD
9377}
9378
554f62e9
RD
9379SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9380 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9381}
9382
554f62e9
RD
9383SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9384 PyObject *resultobj = 0;
9385 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9386 int arg2 = (int) 0 ;
9387 wxIconLocation *result = 0 ;
9388 bool temp1 = false ;
9389 int val2 ;
9390 int ecode2 = 0 ;
9391 PyObject * obj0 = 0 ;
9392 PyObject * obj1 = 0 ;
9393 char * kwnames[] = {
9394 (char *) "filename",(char *) "num", NULL
9395 };
9396
9397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9398 if (obj0) {
d55e5bfc 9399 {
554f62e9
RD
9400 arg1 = wxString_in_helper(obj0);
9401 if (arg1 == NULL) SWIG_fail;
9402 temp1 = true;
d55e5bfc 9403 }
554f62e9
RD
9404 }
9405 if (obj1) {
9406 ecode2 = SWIG_AsVal_int(obj1, &val2);
9407 if (!SWIG_IsOK(ecode2)) {
9408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9409 }
9410 arg2 = static_cast< int >(val2);
9411 }
9412 {
9413 PyThreadState* __tstate = wxPyBeginAllowThreads();
9414 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9415 wxPyEndAllowThreads(__tstate);
9416 if (PyErr_Occurred()) SWIG_fail;
9417 }
9418 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9419 {
9420 if (temp1)
9421 delete arg1;
9422 }
9423 return resultobj;
9424fail:
9425 {
9426 if (temp1)
9427 delete arg1;
9428 }
9429 return NULL;
d55e5bfc
RD
9430}
9431
9432
554f62e9
RD
9433SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9434 PyObject *resultobj = 0;
9435 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9436 void *argp1 = 0 ;
9437 int res1 = 0 ;
9438 PyObject *swig_obj[1] ;
9439
9440 if (!args) SWIG_fail;
9441 swig_obj[0] = args;
9442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9443 if (!SWIG_IsOK(res1)) {
9444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9445 }
9446 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9447 {
9448 PyThreadState* __tstate = wxPyBeginAllowThreads();
9449 delete arg1;
d55e5bfc 9450
554f62e9
RD
9451 wxPyEndAllowThreads(__tstate);
9452 if (PyErr_Occurred()) SWIG_fail;
9453 }
9454 resultobj = SWIG_Py_Void();
9455 return resultobj;
9456fail:
9457 return NULL;
d55e5bfc
RD
9458}
9459
9460
554f62e9
RD
9461SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9462 PyObject *resultobj = 0;
9463 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9464 bool result;
9465 void *argp1 = 0 ;
9466 int res1 = 0 ;
9467 PyObject *swig_obj[1] ;
9468
9469 if (!args) SWIG_fail;
9470 swig_obj[0] = args;
9471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9472 if (!SWIG_IsOK(res1)) {
9473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9474 }
9475 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9476 {
9477 PyThreadState* __tstate = wxPyBeginAllowThreads();
9478 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9479 wxPyEndAllowThreads(__tstate);
9480 if (PyErr_Occurred()) SWIG_fail;
9481 }
9482 {
9483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9484 }
9485 return resultobj;
9486fail:
9487 return NULL;
9488}
9489
9490
9491SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9492 PyObject *resultobj = 0;
9493 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9494 wxString *arg2 = 0 ;
9495 void *argp1 = 0 ;
9496 int res1 = 0 ;
9497 bool temp2 = false ;
9498 PyObject * obj0 = 0 ;
9499 PyObject * obj1 = 0 ;
9500 char * kwnames[] = {
9501 (char *) "self",(char *) "filename", NULL
9502 };
9503
9504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9506 if (!SWIG_IsOK(res1)) {
9507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9508 }
9509 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9510 {
9511 arg2 = wxString_in_helper(obj1);
9512 if (arg2 == NULL) SWIG_fail;
9513 temp2 = true;
9514 }
9515 {
9516 PyThreadState* __tstate = wxPyBeginAllowThreads();
9517 (arg1)->SetFileName((wxString const &)*arg2);
9518 wxPyEndAllowThreads(__tstate);
9519 if (PyErr_Occurred()) SWIG_fail;
9520 }
9521 resultobj = SWIG_Py_Void();
9522 {
9523 if (temp2)
9524 delete arg2;
9525 }
9526 return resultobj;
9527fail:
9528 {
9529 if (temp2)
9530 delete arg2;
9531 }
9532 return NULL;
d55e5bfc
RD
9533}
9534
9535
554f62e9
RD
9536SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9537 PyObject *resultobj = 0;
9538 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9539 wxString *result = 0 ;
9540 void *argp1 = 0 ;
9541 int res1 = 0 ;
9542 PyObject *swig_obj[1] ;
9543
9544 if (!args) SWIG_fail;
9545 swig_obj[0] = args;
9546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9547 if (!SWIG_IsOK(res1)) {
9548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9549 }
9550 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9551 {
9552 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9553 {
554f62e9
RD
9554 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9555 result = (wxString *) &_result_ref;
093d3ff1 9556 }
554f62e9
RD
9557 wxPyEndAllowThreads(__tstate);
9558 if (PyErr_Occurred()) SWIG_fail;
9559 }
9560 {
9561#if wxUSE_UNICODE
9562 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9563#else
9564 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9565#endif
9566 }
9567 return resultobj;
9568fail:
9569 return NULL;
9570}
9571
9572
9573SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9574 PyObject *resultobj = 0;
9575 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9576 int arg2 ;
9577 void *argp1 = 0 ;
9578 int res1 = 0 ;
9579 int val2 ;
9580 int ecode2 = 0 ;
9581 PyObject * obj0 = 0 ;
9582 PyObject * obj1 = 0 ;
9583 char * kwnames[] = {
9584 (char *) "self",(char *) "num", NULL
9585 };
9586
9587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9589 if (!SWIG_IsOK(res1)) {
9590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9591 }
9592 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9593 ecode2 = SWIG_AsVal_int(obj1, &val2);
9594 if (!SWIG_IsOK(ecode2)) {
9595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9596 }
9597 arg2 = static_cast< int >(val2);
9598 {
9599 PyThreadState* __tstate = wxPyBeginAllowThreads();
9600 wxIconLocation_SetIndex(arg1,arg2);
9601 wxPyEndAllowThreads(__tstate);
9602 if (PyErr_Occurred()) SWIG_fail;
9603 }
9604 resultobj = SWIG_Py_Void();
9605 return resultobj;
9606fail:
9607 return NULL;
d55e5bfc
RD
9608}
9609
9610
554f62e9
RD
9611SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9612 PyObject *resultobj = 0;
9613 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9614 int result;
9615 void *argp1 = 0 ;
9616 int res1 = 0 ;
9617 PyObject *swig_obj[1] ;
9618
9619 if (!args) SWIG_fail;
9620 swig_obj[0] = args;
9621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9622 if (!SWIG_IsOK(res1)) {
9623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9624 }
9625 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9626 {
9627 PyThreadState* __tstate = wxPyBeginAllowThreads();
9628 result = (int)wxIconLocation_GetIndex(arg1);
9629 wxPyEndAllowThreads(__tstate);
9630 if (PyErr_Occurred()) SWIG_fail;
9631 }
9632 resultobj = SWIG_From_int(static_cast< int >(result));
9633 return resultobj;
9634fail:
9635 return NULL;
d55e5bfc
RD
9636}
9637
9638
554f62e9
RD
9639SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9640 PyObject *obj;
9641 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9642 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9643 return SWIG_Py_Void();
d55e5bfc
RD
9644}
9645
554f62e9
RD
9646SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9647 return SWIG_Python_InitShadowInstance(args);
9648}
d55e5bfc 9649
554f62e9
RD
9650SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9651 PyObject *resultobj = 0;
9652 wxIconBundle *result = 0 ;
9653
9654 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9655 {
9656 PyThreadState* __tstate = wxPyBeginAllowThreads();
9657 result = (wxIconBundle *)new wxIconBundle();
9658 wxPyEndAllowThreads(__tstate);
9659 if (PyErr_Occurred()) SWIG_fail;
9660 }
9661 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9662 return resultobj;
9663fail:
9664 return NULL;
9665}
9666
9667
9668SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9669 PyObject *resultobj = 0;
9670 wxString *arg1 = 0 ;
9671 long arg2 ;
9672 wxIconBundle *result = 0 ;
9673 bool temp1 = false ;
9674 long val2 ;
9675 int ecode2 = 0 ;
9676 PyObject * obj0 = 0 ;
9677 PyObject * obj1 = 0 ;
9678 char * kwnames[] = {
9679 (char *) "file",(char *) "type", NULL
9680 };
9681
9682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9683 {
9684 arg1 = wxString_in_helper(obj0);
9685 if (arg1 == NULL) SWIG_fail;
9686 temp1 = true;
9687 }
9688 ecode2 = SWIG_AsVal_long(obj1, &val2);
9689 if (!SWIG_IsOK(ecode2)) {
9690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9691 }
9692 arg2 = static_cast< long >(val2);
9693 {
9694 PyThreadState* __tstate = wxPyBeginAllowThreads();
9695 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9696 wxPyEndAllowThreads(__tstate);
9697 if (PyErr_Occurred()) SWIG_fail;
9698 }
9699 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9700 {
9701 if (temp1)
9702 delete arg1;
9703 }
9704 return resultobj;
9705fail:
9706 {
9707 if (temp1)
9708 delete arg1;
9709 }
9710 return NULL;
d55e5bfc
RD
9711}
9712
9713
554f62e9
RD
9714SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9715 PyObject *resultobj = 0;
9716 wxIcon *arg1 = 0 ;
9717 wxIconBundle *result = 0 ;
9718 void *argp1 = 0 ;
9719 int res1 = 0 ;
9720 PyObject * obj0 = 0 ;
9721 char * kwnames[] = {
9722 (char *) "icon", NULL
9723 };
9724
9725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9726 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9727 if (!SWIG_IsOK(res1)) {
9728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9729 }
9730 if (!argp1) {
9731 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9732 }
9733 arg1 = reinterpret_cast< wxIcon * >(argp1);
9734 {
9735 PyThreadState* __tstate = wxPyBeginAllowThreads();
9736 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9737 wxPyEndAllowThreads(__tstate);
9738 if (PyErr_Occurred()) SWIG_fail;
9739 }
9740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9741 return resultobj;
9742fail:
9743 return NULL;
d55e5bfc
RD
9744}
9745
9746
554f62e9
RD
9747SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9748 PyObject *resultobj = 0;
9749 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9750 void *argp1 = 0 ;
9751 int res1 = 0 ;
9752 PyObject *swig_obj[1] ;
9753
9754 if (!args) SWIG_fail;
9755 swig_obj[0] = args;
9756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9757 if (!SWIG_IsOK(res1)) {
9758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9759 }
9760 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9761 {
9762 PyThreadState* __tstate = wxPyBeginAllowThreads();
9763 delete arg1;
d55e5bfc 9764
554f62e9
RD
9765 wxPyEndAllowThreads(__tstate);
9766 if (PyErr_Occurred()) SWIG_fail;
9767 }
9768 resultobj = SWIG_Py_Void();
9769 return resultobj;
9770fail:
9771 return NULL;
9772}
9773
9774
9775SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9776 PyObject *resultobj = 0;
9777 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9778 wxIcon *arg2 = 0 ;
9779 void *argp1 = 0 ;
9780 int res1 = 0 ;
9781 void *argp2 = 0 ;
9782 int res2 = 0 ;
9783 PyObject * obj0 = 0 ;
9784 PyObject * obj1 = 0 ;
9785 char * kwnames[] = {
9786 (char *) "self",(char *) "icon", NULL
9787 };
9788
9789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9791 if (!SWIG_IsOK(res1)) {
9792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9793 }
9794 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9795 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9796 if (!SWIG_IsOK(res2)) {
9797 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9798 }
9799 if (!argp2) {
9800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9801 }
9802 arg2 = reinterpret_cast< wxIcon * >(argp2);
9803 {
9804 PyThreadState* __tstate = wxPyBeginAllowThreads();
9805 (arg1)->AddIcon((wxIcon const &)*arg2);
9806 wxPyEndAllowThreads(__tstate);
9807 if (PyErr_Occurred()) SWIG_fail;
9808 }
9809 resultobj = SWIG_Py_Void();
9810 return resultobj;
9811fail:
9812 return NULL;
9813}
9814
9815
9816SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9817 PyObject *resultobj = 0;
9818 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9819 wxString *arg2 = 0 ;
9820 long arg3 ;
9821 void *argp1 = 0 ;
9822 int res1 = 0 ;
9823 bool temp2 = false ;
9824 long val3 ;
9825 int ecode3 = 0 ;
9826 PyObject * obj0 = 0 ;
9827 PyObject * obj1 = 0 ;
9828 PyObject * obj2 = 0 ;
9829 char * kwnames[] = {
9830 (char *) "self",(char *) "file",(char *) "type", NULL
9831 };
9832
9833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9835 if (!SWIG_IsOK(res1)) {
9836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9837 }
9838 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9839 {
9840 arg2 = wxString_in_helper(obj1);
9841 if (arg2 == NULL) SWIG_fail;
9842 temp2 = true;
9843 }
9844 ecode3 = SWIG_AsVal_long(obj2, &val3);
9845 if (!SWIG_IsOK(ecode3)) {
9846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9847 }
9848 arg3 = static_cast< long >(val3);
9849 {
9850 PyThreadState* __tstate = wxPyBeginAllowThreads();
9851 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9852 wxPyEndAllowThreads(__tstate);
9853 if (PyErr_Occurred()) SWIG_fail;
9854 }
9855 resultobj = SWIG_Py_Void();
9856 {
9857 if (temp2)
9858 delete arg2;
9859 }
9860 return resultobj;
9861fail:
9862 {
9863 if (temp2)
9864 delete arg2;
9865 }
9866 return NULL;
9867}
9868
9869
9870SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9871 PyObject *resultobj = 0;
9872 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9873 wxSize *arg2 = 0 ;
9874 wxIcon *result = 0 ;
9875 void *argp1 = 0 ;
9876 int res1 = 0 ;
9877 wxSize temp2 ;
9878 PyObject * obj0 = 0 ;
9879 PyObject * obj1 = 0 ;
9880 char * kwnames[] = {
9881 (char *) "self",(char *) "size", NULL
9882 };
9883
9884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9886 if (!SWIG_IsOK(res1)) {
9887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9888 }
9889 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9890 {
9891 arg2 = &temp2;
9892 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9893 }
9894 {
9895 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 9896 {
554f62e9
RD
9897 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9898 result = (wxIcon *) &_result_ref;
d55e5bfc 9899 }
554f62e9
RD
9900 wxPyEndAllowThreads(__tstate);
9901 if (PyErr_Occurred()) SWIG_fail;
9902 }
9903 {
9904 wxIcon* resultptr = new wxIcon(*result);
9905 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9906 }
9907 return resultobj;
9908fail:
9909 return NULL;
9910}
9911
9912
9913SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9914 PyObject *obj;
9915 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9916 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9917 return SWIG_Py_Void();
9918}
9919
9920SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9921 return SWIG_Python_InitShadowInstance(args);
9922}
9923
9924SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9925 PyObject *resultobj = 0;
9926 wxString *arg1 = 0 ;
9927 long arg2 ;
9928 int arg3 = (int) 0 ;
9929 int arg4 = (int) 0 ;
9930 wxCursor *result = 0 ;
9931 bool temp1 = false ;
9932 long val2 ;
9933 int ecode2 = 0 ;
9934 int val3 ;
9935 int ecode3 = 0 ;
9936 int val4 ;
9937 int ecode4 = 0 ;
9938 PyObject * obj0 = 0 ;
9939 PyObject * obj1 = 0 ;
9940 PyObject * obj2 = 0 ;
9941 PyObject * obj3 = 0 ;
9942 char * kwnames[] = {
9943 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9944 };
9945
9946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9947 {
9948 arg1 = wxString_in_helper(obj0);
9949 if (arg1 == NULL) SWIG_fail;
9950 temp1 = true;
9951 }
9952 ecode2 = SWIG_AsVal_long(obj1, &val2);
9953 if (!SWIG_IsOK(ecode2)) {
9954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9955 }
9956 arg2 = static_cast< long >(val2);
9957 if (obj2) {
9958 ecode3 = SWIG_AsVal_int(obj2, &val3);
9959 if (!SWIG_IsOK(ecode3)) {
9960 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9961 }
9962 arg3 = static_cast< int >(val3);
9963 }
9964 if (obj3) {
9965 ecode4 = SWIG_AsVal_int(obj3, &val4);
9966 if (!SWIG_IsOK(ecode4)) {
9967 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9968 }
9969 arg4 = static_cast< int >(val4);
9970 }
9971 {
9972 if (!wxPyCheckForApp()) SWIG_fail;
9973 PyThreadState* __tstate = wxPyBeginAllowThreads();
9974 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9975 wxPyEndAllowThreads(__tstate);
9976 if (PyErr_Occurred()) SWIG_fail;
9977 }
9978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9979 {
9980 if (temp1)
9981 delete arg1;
9982 }
9983 return resultobj;
9984fail:
9985 {
9986 if (temp1)
9987 delete arg1;
9988 }
9989 return NULL;
d55e5bfc
RD
9990}
9991
9992
554f62e9
RD
9993SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9994 PyObject *resultobj = 0;
9995 wxCursor *arg1 = (wxCursor *) 0 ;
9996 void *argp1 = 0 ;
9997 int res1 = 0 ;
9998 PyObject *swig_obj[1] ;
9999
10000 if (!args) SWIG_fail;
10001 swig_obj[0] = args;
10002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10003 if (!SWIG_IsOK(res1)) {
10004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10005 }
10006 arg1 = reinterpret_cast< wxCursor * >(argp1);
10007 {
10008 PyThreadState* __tstate = wxPyBeginAllowThreads();
10009 delete arg1;
d55e5bfc 10010
554f62e9
RD
10011 wxPyEndAllowThreads(__tstate);
10012 if (PyErr_Occurred()) SWIG_fail;
10013 }
10014 resultobj = SWIG_Py_Void();
10015 return resultobj;
10016fail:
10017 return NULL;
10018}
10019
10020
10021SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10022 PyObject *resultobj = 0;
10023 int arg1 ;
10024 wxCursor *result = 0 ;
10025 int val1 ;
10026 int ecode1 = 0 ;
10027 PyObject * obj0 = 0 ;
10028 char * kwnames[] = {
10029 (char *) "id", NULL
10030 };
10031
10032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10033 ecode1 = SWIG_AsVal_int(obj0, &val1);
10034 if (!SWIG_IsOK(ecode1)) {
10035 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10036 }
10037 arg1 = static_cast< int >(val1);
10038 {
10039 if (!wxPyCheckForApp()) SWIG_fail;
10040 PyThreadState* __tstate = wxPyBeginAllowThreads();
10041 result = (wxCursor *)new wxCursor(arg1);
10042 wxPyEndAllowThreads(__tstate);
10043 if (PyErr_Occurred()) SWIG_fail;
10044 }
10045 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10046 return resultobj;
10047fail:
10048 return NULL;
10049}
10050
10051
10052SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10053 PyObject *resultobj = 0;
10054 wxImage *arg1 = 0 ;
10055 wxCursor *result = 0 ;
10056 void *argp1 = 0 ;
10057 int res1 = 0 ;
10058 PyObject * obj0 = 0 ;
10059 char * kwnames[] = {
10060 (char *) "image", NULL
10061 };
10062
10063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10064 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10065 if (!SWIG_IsOK(res1)) {
10066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10067 }
10068 if (!argp1) {
10069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10070 }
10071 arg1 = reinterpret_cast< wxImage * >(argp1);
10072 {
10073 if (!wxPyCheckForApp()) SWIG_fail;
10074 PyThreadState* __tstate = wxPyBeginAllowThreads();
10075 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10076 wxPyEndAllowThreads(__tstate);
10077 if (PyErr_Occurred()) SWIG_fail;
10078 }
10079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10080 return resultobj;
10081fail:
10082 return NULL;
d55e5bfc
RD
10083}
10084
10085
554f62e9
RD
10086SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10087 PyObject *resultobj = 0;
10088 wxCursor *arg1 = (wxCursor *) 0 ;
10089 long result;
10090 void *argp1 = 0 ;
10091 int res1 = 0 ;
10092 PyObject *swig_obj[1] ;
10093
10094 if (!args) SWIG_fail;
10095 swig_obj[0] = args;
10096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10097 if (!SWIG_IsOK(res1)) {
10098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10099 }
10100 arg1 = reinterpret_cast< wxCursor * >(argp1);
10101 {
10102 PyThreadState* __tstate = wxPyBeginAllowThreads();
10103 result = (long)(arg1)->GetHandle();
10104 wxPyEndAllowThreads(__tstate);
10105 if (PyErr_Occurred()) SWIG_fail;
10106 }
10107 resultobj = SWIG_From_long(static_cast< long >(result));
10108 return resultobj;
10109fail:
10110 return NULL;
10111}
10112
10113
10114SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10115 PyObject *resultobj = 0;
10116 wxCursor *arg1 = (wxCursor *) 0 ;
10117 long arg2 ;
10118 void *argp1 = 0 ;
10119 int res1 = 0 ;
10120 long val2 ;
10121 int ecode2 = 0 ;
10122 PyObject * obj0 = 0 ;
10123 PyObject * obj1 = 0 ;
10124 char * kwnames[] = {
10125 (char *) "self",(char *) "handle", NULL
10126 };
10127
10128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10130 if (!SWIG_IsOK(res1)) {
10131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10132 }
10133 arg1 = reinterpret_cast< wxCursor * >(argp1);
10134 ecode2 = SWIG_AsVal_long(obj1, &val2);
10135 if (!SWIG_IsOK(ecode2)) {
10136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10137 }
10138 arg2 = static_cast< long >(val2);
10139 {
10140 PyThreadState* __tstate = wxPyBeginAllowThreads();
10141 wxCursor_SetHandle(arg1,arg2);
10142 wxPyEndAllowThreads(__tstate);
10143 if (PyErr_Occurred()) SWIG_fail;
10144 }
10145 resultobj = SWIG_Py_Void();
10146 return resultobj;
10147fail:
10148 return NULL;
d55e5bfc
RD
10149}
10150
10151
554f62e9
RD
10152SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10153 PyObject *resultobj = 0;
10154 wxCursor *arg1 = (wxCursor *) 0 ;
10155 bool result;
10156 void *argp1 = 0 ;
10157 int res1 = 0 ;
10158 PyObject *swig_obj[1] ;
10159
10160 if (!args) SWIG_fail;
10161 swig_obj[0] = args;
10162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10163 if (!SWIG_IsOK(res1)) {
10164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
10165 }
10166 arg1 = reinterpret_cast< wxCursor * >(argp1);
10167 {
10168 PyThreadState* __tstate = wxPyBeginAllowThreads();
10169 result = (bool)(arg1)->Ok();
10170 wxPyEndAllowThreads(__tstate);
10171 if (PyErr_Occurred()) SWIG_fail;
10172 }
10173 {
10174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10175 }
10176 return resultobj;
10177fail:
10178 return NULL;
d55e5bfc
RD
10179}
10180
10181
554f62e9
RD
10182SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10183 PyObject *resultobj = 0;
10184 wxCursor *arg1 = (wxCursor *) 0 ;
10185 int result;
10186 void *argp1 = 0 ;
10187 int res1 = 0 ;
10188 PyObject *swig_obj[1] ;
10189
10190 if (!args) SWIG_fail;
10191 swig_obj[0] = args;
10192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10193 if (!SWIG_IsOK(res1)) {
10194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10195 }
10196 arg1 = reinterpret_cast< wxCursor * >(argp1);
10197 {
10198 PyThreadState* __tstate = wxPyBeginAllowThreads();
10199 result = (int)(arg1)->GetWidth();
10200 wxPyEndAllowThreads(__tstate);
10201 if (PyErr_Occurred()) SWIG_fail;
10202 }
10203 resultobj = SWIG_From_int(static_cast< int >(result));
10204 return resultobj;
10205fail:
10206 return NULL;
d55e5bfc
RD
10207}
10208
10209
554f62e9
RD
10210SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10211 PyObject *resultobj = 0;
10212 wxCursor *arg1 = (wxCursor *) 0 ;
10213 int result;
10214 void *argp1 = 0 ;
10215 int res1 = 0 ;
10216 PyObject *swig_obj[1] ;
10217
10218 if (!args) SWIG_fail;
10219 swig_obj[0] = args;
10220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10221 if (!SWIG_IsOK(res1)) {
10222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10223 }
10224 arg1 = reinterpret_cast< wxCursor * >(argp1);
10225 {
10226 PyThreadState* __tstate = wxPyBeginAllowThreads();
10227 result = (int)(arg1)->GetHeight();
10228 wxPyEndAllowThreads(__tstate);
10229 if (PyErr_Occurred()) SWIG_fail;
10230 }
10231 resultobj = SWIG_From_int(static_cast< int >(result));
10232 return resultobj;
10233fail:
10234 return NULL;
d55e5bfc
RD
10235}
10236
10237
554f62e9
RD
10238SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10239 PyObject *resultobj = 0;
10240 wxCursor *arg1 = (wxCursor *) 0 ;
10241 int result;
10242 void *argp1 = 0 ;
10243 int res1 = 0 ;
10244 PyObject *swig_obj[1] ;
10245
10246 if (!args) SWIG_fail;
10247 swig_obj[0] = args;
10248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10249 if (!SWIG_IsOK(res1)) {
10250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10251 }
10252 arg1 = reinterpret_cast< wxCursor * >(argp1);
10253 {
10254 PyThreadState* __tstate = wxPyBeginAllowThreads();
10255 result = (int)(arg1)->GetDepth();
10256 wxPyEndAllowThreads(__tstate);
10257 if (PyErr_Occurred()) SWIG_fail;
10258 }
10259 resultobj = SWIG_From_int(static_cast< int >(result));
10260 return resultobj;
10261fail:
10262 return NULL;
10263}
10264
10265
10266SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10267 PyObject *resultobj = 0;
10268 wxCursor *arg1 = (wxCursor *) 0 ;
10269 int arg2 ;
10270 void *argp1 = 0 ;
10271 int res1 = 0 ;
10272 int val2 ;
10273 int ecode2 = 0 ;
10274 PyObject * obj0 = 0 ;
10275 PyObject * obj1 = 0 ;
10276 char * kwnames[] = {
10277 (char *) "self",(char *) "w", NULL
10278 };
10279
10280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10282 if (!SWIG_IsOK(res1)) {
10283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10284 }
10285 arg1 = reinterpret_cast< wxCursor * >(argp1);
10286 ecode2 = SWIG_AsVal_int(obj1, &val2);
10287 if (!SWIG_IsOK(ecode2)) {
10288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10289 }
10290 arg2 = static_cast< int >(val2);
10291 {
10292 PyThreadState* __tstate = wxPyBeginAllowThreads();
10293 (arg1)->SetWidth(arg2);
10294 wxPyEndAllowThreads(__tstate);
10295 if (PyErr_Occurred()) SWIG_fail;
10296 }
10297 resultobj = SWIG_Py_Void();
10298 return resultobj;
10299fail:
10300 return NULL;
10301}
10302
10303
10304SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10305 PyObject *resultobj = 0;
10306 wxCursor *arg1 = (wxCursor *) 0 ;
10307 int arg2 ;
10308 void *argp1 = 0 ;
10309 int res1 = 0 ;
10310 int val2 ;
10311 int ecode2 = 0 ;
10312 PyObject * obj0 = 0 ;
10313 PyObject * obj1 = 0 ;
10314 char * kwnames[] = {
10315 (char *) "self",(char *) "h", NULL
10316 };
10317
10318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10320 if (!SWIG_IsOK(res1)) {
10321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10322 }
10323 arg1 = reinterpret_cast< wxCursor * >(argp1);
10324 ecode2 = SWIG_AsVal_int(obj1, &val2);
10325 if (!SWIG_IsOK(ecode2)) {
10326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10327 }
10328 arg2 = static_cast< int >(val2);
10329 {
10330 PyThreadState* __tstate = wxPyBeginAllowThreads();
10331 (arg1)->SetHeight(arg2);
10332 wxPyEndAllowThreads(__tstate);
10333 if (PyErr_Occurred()) SWIG_fail;
10334 }
10335 resultobj = SWIG_Py_Void();
10336 return resultobj;
10337fail:
10338 return NULL;
10339}
10340
10341
10342SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10343 PyObject *resultobj = 0;
10344 wxCursor *arg1 = (wxCursor *) 0 ;
10345 int arg2 ;
10346 void *argp1 = 0 ;
10347 int res1 = 0 ;
10348 int val2 ;
10349 int ecode2 = 0 ;
10350 PyObject * obj0 = 0 ;
10351 PyObject * obj1 = 0 ;
10352 char * kwnames[] = {
10353 (char *) "self",(char *) "d", NULL
10354 };
10355
10356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
10357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10358 if (!SWIG_IsOK(res1)) {
10359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10360 }
10361 arg1 = reinterpret_cast< wxCursor * >(argp1);
10362 ecode2 = SWIG_AsVal_int(obj1, &val2);
10363 if (!SWIG_IsOK(ecode2)) {
10364 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
10365 }
10366 arg2 = static_cast< int >(val2);
10367 {
10368 PyThreadState* __tstate = wxPyBeginAllowThreads();
10369 (arg1)->SetDepth(arg2);
10370 wxPyEndAllowThreads(__tstate);
10371 if (PyErr_Occurred()) SWIG_fail;
10372 }
10373 resultobj = SWIG_Py_Void();
10374 return resultobj;
10375fail:
10376 return NULL;
10377}
10378
10379
10380SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10381 PyObject *resultobj = 0;
10382 wxCursor *arg1 = (wxCursor *) 0 ;
10383 wxSize *arg2 = 0 ;
10384 void *argp1 = 0 ;
10385 int res1 = 0 ;
10386 wxSize temp2 ;
10387 PyObject * obj0 = 0 ;
10388 PyObject * obj1 = 0 ;
10389 char * kwnames[] = {
10390 (char *) "self",(char *) "size", NULL
10391 };
10392
10393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
10394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10395 if (!SWIG_IsOK(res1)) {
10396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
10397 }
10398 arg1 = reinterpret_cast< wxCursor * >(argp1);
10399 {
10400 arg2 = &temp2;
10401 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10402 }
10403 {
10404 PyThreadState* __tstate = wxPyBeginAllowThreads();
10405 (arg1)->SetSize((wxSize const &)*arg2);
10406 wxPyEndAllowThreads(__tstate);
10407 if (PyErr_Occurred()) SWIG_fail;
10408 }
10409 resultobj = SWIG_Py_Void();
10410 return resultobj;
10411fail:
10412 return NULL;
10413}
10414
10415
10416SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10417 PyObject *obj;
10418 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10419 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10420 return SWIG_Py_Void();
10421}
10422
10423SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10424 return SWIG_Python_InitShadowInstance(args);
10425}
10426
10427SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10428 PyObject *resultobj = 0;
10429 int arg1 = (int) 0 ;
10430 int arg2 = (int) 0 ;
10431 int arg3 = (int) 0 ;
10432 int arg4 = (int) 0 ;
10433 wxRegion *result = 0 ;
10434 int val1 ;
10435 int ecode1 = 0 ;
10436 int val2 ;
10437 int ecode2 = 0 ;
10438 int val3 ;
10439 int ecode3 = 0 ;
10440 int val4 ;
10441 int ecode4 = 0 ;
10442 PyObject * obj0 = 0 ;
10443 PyObject * obj1 = 0 ;
10444 PyObject * obj2 = 0 ;
10445 PyObject * obj3 = 0 ;
10446 char * kwnames[] = {
10447 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10448 };
10449
10450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10451 if (obj0) {
10452 ecode1 = SWIG_AsVal_int(obj0, &val1);
10453 if (!SWIG_IsOK(ecode1)) {
10454 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10455 }
10456 arg1 = static_cast< int >(val1);
10457 }
10458 if (obj1) {
10459 ecode2 = SWIG_AsVal_int(obj1, &val2);
10460 if (!SWIG_IsOK(ecode2)) {
10461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10462 }
10463 arg2 = static_cast< int >(val2);
10464 }
10465 if (obj2) {
10466 ecode3 = SWIG_AsVal_int(obj2, &val3);
10467 if (!SWIG_IsOK(ecode3)) {
10468 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10469 }
10470 arg3 = static_cast< int >(val3);
10471 }
10472 if (obj3) {
10473 ecode4 = SWIG_AsVal_int(obj3, &val4);
10474 if (!SWIG_IsOK(ecode4)) {
10475 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10476 }
10477 arg4 = static_cast< int >(val4);
10478 }
10479 {
10480 if (!wxPyCheckForApp()) SWIG_fail;
10481 PyThreadState* __tstate = wxPyBeginAllowThreads();
10482 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10483 wxPyEndAllowThreads(__tstate);
10484 if (PyErr_Occurred()) SWIG_fail;
10485 }
10486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10487 return resultobj;
10488fail:
10489 return NULL;
10490}
10491
10492
10493SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10494 PyObject *resultobj = 0;
10495 wxBitmap *arg1 = 0 ;
10496 wxRegion *result = 0 ;
10497 void *argp1 = 0 ;
10498 int res1 = 0 ;
10499 PyObject * obj0 = 0 ;
10500 char * kwnames[] = {
10501 (char *) "bmp", NULL
10502 };
10503
10504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10505 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10506 if (!SWIG_IsOK(res1)) {
10507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10508 }
10509 if (!argp1) {
10510 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10511 }
10512 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10513 {
10514 if (!wxPyCheckForApp()) SWIG_fail;
10515 PyThreadState* __tstate = wxPyBeginAllowThreads();
10516 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10517 wxPyEndAllowThreads(__tstate);
10518 if (PyErr_Occurred()) SWIG_fail;
10519 }
10520 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10521 return resultobj;
10522fail:
10523 return NULL;
10524}
10525
10526
10527SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10528 PyObject *resultobj = 0;
10529 wxBitmap *arg1 = 0 ;
10530 wxColour *arg2 = 0 ;
10531 int arg3 = (int) 0 ;
10532 wxRegion *result = 0 ;
10533 void *argp1 = 0 ;
10534 int res1 = 0 ;
10535 wxColour temp2 ;
10536 int val3 ;
10537 int ecode3 = 0 ;
10538 PyObject * obj0 = 0 ;
10539 PyObject * obj1 = 0 ;
10540 PyObject * obj2 = 0 ;
10541 char * kwnames[] = {
10542 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10543 };
10544
10545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10546 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10547 if (!SWIG_IsOK(res1)) {
10548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10549 }
10550 if (!argp1) {
10551 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10552 }
10553 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10554 {
10555 arg2 = &temp2;
10556 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10557 }
10558 if (obj2) {
10559 ecode3 = SWIG_AsVal_int(obj2, &val3);
10560 if (!SWIG_IsOK(ecode3)) {
10561 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10562 }
10563 arg3 = static_cast< int >(val3);
10564 }
10565 {
10566 if (!wxPyCheckForApp()) SWIG_fail;
10567 PyThreadState* __tstate = wxPyBeginAllowThreads();
10568 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10569 wxPyEndAllowThreads(__tstate);
10570 if (PyErr_Occurred()) SWIG_fail;
10571 }
10572 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10573 return resultobj;
10574fail:
10575 return NULL;
10576}
10577
10578
10579SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10580 PyObject *resultobj = 0;
10581 int arg1 ;
10582 wxPoint *arg2 = (wxPoint *) 0 ;
10583 int arg3 = (int) wxWINDING_RULE ;
10584 wxRegion *result = 0 ;
10585 int val3 ;
10586 int ecode3 = 0 ;
10587 PyObject * obj0 = 0 ;
10588 PyObject * obj1 = 0 ;
10589 char * kwnames[] = {
10590 (char *) "points",(char *) "fillStyle", NULL
10591 };
10592
10593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10594 {
10595 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10596 if (arg2 == NULL) SWIG_fail;
10597 }
10598 if (obj1) {
10599 ecode3 = SWIG_AsVal_int(obj1, &val3);
10600 if (!SWIG_IsOK(ecode3)) {
10601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10602 }
10603 arg3 = static_cast< int >(val3);
10604 }
10605 {
10606 if (!wxPyCheckForApp()) SWIG_fail;
10607 PyThreadState* __tstate = wxPyBeginAllowThreads();
10608 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10609 wxPyEndAllowThreads(__tstate);
10610 if (PyErr_Occurred()) SWIG_fail;
10611 }
10612 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10613 {
10614 if (arg2) delete [] arg2;
10615 }
10616 return resultobj;
10617fail:
10618 {
10619 if (arg2) delete [] arg2;
10620 }
10621 return NULL;
d55e5bfc
RD
10622}
10623
10624
554f62e9
RD
10625SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10626 PyObject *resultobj = 0;
10627 wxRegion *arg1 = (wxRegion *) 0 ;
10628 void *argp1 = 0 ;
10629 int res1 = 0 ;
10630 PyObject *swig_obj[1] ;
10631
10632 if (!args) SWIG_fail;
10633 swig_obj[0] = args;
10634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10635 if (!SWIG_IsOK(res1)) {
10636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10637 }
10638 arg1 = reinterpret_cast< wxRegion * >(argp1);
10639 {
10640 PyThreadState* __tstate = wxPyBeginAllowThreads();
10641 delete arg1;
d55e5bfc 10642
554f62e9
RD
10643 wxPyEndAllowThreads(__tstate);
10644 if (PyErr_Occurred()) SWIG_fail;
10645 }
10646 resultobj = SWIG_Py_Void();
10647 return resultobj;
10648fail:
10649 return NULL;
d55e5bfc
RD
10650}
10651
10652
554f62e9
RD
10653SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10654 PyObject *resultobj = 0;
10655 wxRegion *arg1 = (wxRegion *) 0 ;
10656 void *argp1 = 0 ;
10657 int res1 = 0 ;
10658 PyObject *swig_obj[1] ;
10659
10660 if (!args) SWIG_fail;
10661 swig_obj[0] = args;
10662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10663 if (!SWIG_IsOK(res1)) {
10664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10665 }
10666 arg1 = reinterpret_cast< wxRegion * >(argp1);
10667 {
10668 PyThreadState* __tstate = wxPyBeginAllowThreads();
10669 (arg1)->Clear();
10670 wxPyEndAllowThreads(__tstate);
10671 if (PyErr_Occurred()) SWIG_fail;
10672 }
10673 resultobj = SWIG_Py_Void();
10674 return resultobj;
10675fail:
10676 return NULL;
10677}
10678
10679
10680SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10681 PyObject *resultobj = 0;
10682 wxRegion *arg1 = (wxRegion *) 0 ;
10683 int arg2 ;
10684 int arg3 ;
10685 bool result;
10686 void *argp1 = 0 ;
10687 int res1 = 0 ;
10688 int val2 ;
10689 int ecode2 = 0 ;
10690 int val3 ;
10691 int ecode3 = 0 ;
10692 PyObject * obj0 = 0 ;
10693 PyObject * obj1 = 0 ;
10694 PyObject * obj2 = 0 ;
10695 char * kwnames[] = {
10696 (char *) "self",(char *) "x",(char *) "y", NULL
10697 };
10698
10699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10701 if (!SWIG_IsOK(res1)) {
10702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10703 }
10704 arg1 = reinterpret_cast< wxRegion * >(argp1);
10705 ecode2 = SWIG_AsVal_int(obj1, &val2);
10706 if (!SWIG_IsOK(ecode2)) {
10707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10708 }
10709 arg2 = static_cast< int >(val2);
10710 ecode3 = SWIG_AsVal_int(obj2, &val3);
10711 if (!SWIG_IsOK(ecode3)) {
10712 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10713 }
10714 arg3 = static_cast< int >(val3);
10715 {
10716 PyThreadState* __tstate = wxPyBeginAllowThreads();
10717 result = (bool)(arg1)->Offset(arg2,arg3);
10718 wxPyEndAllowThreads(__tstate);
10719 if (PyErr_Occurred()) SWIG_fail;
10720 }
10721 {
10722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10723 }
10724 return resultobj;
10725fail:
10726 return NULL;
10727}
10728
10729
10730SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10731 PyObject *resultobj = 0;
10732 wxRegion *arg1 = (wxRegion *) 0 ;
10733 int arg2 ;
10734 int arg3 ;
10735 wxRegionContain result;
10736 void *argp1 = 0 ;
10737 int res1 = 0 ;
10738 int val2 ;
10739 int ecode2 = 0 ;
10740 int val3 ;
10741 int ecode3 = 0 ;
10742 PyObject * obj0 = 0 ;
10743 PyObject * obj1 = 0 ;
10744 PyObject * obj2 = 0 ;
10745 char * kwnames[] = {
10746 (char *) "self",(char *) "x",(char *) "y", NULL
10747 };
10748
10749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10751 if (!SWIG_IsOK(res1)) {
10752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10753 }
10754 arg1 = reinterpret_cast< wxRegion * >(argp1);
10755 ecode2 = SWIG_AsVal_int(obj1, &val2);
10756 if (!SWIG_IsOK(ecode2)) {
10757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10758 }
10759 arg2 = static_cast< int >(val2);
10760 ecode3 = SWIG_AsVal_int(obj2, &val3);
10761 if (!SWIG_IsOK(ecode3)) {
10762 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10763 }
10764 arg3 = static_cast< int >(val3);
10765 {
10766 PyThreadState* __tstate = wxPyBeginAllowThreads();
10767 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10768 wxPyEndAllowThreads(__tstate);
10769 if (PyErr_Occurred()) SWIG_fail;
10770 }
10771 resultobj = SWIG_From_int(static_cast< int >(result));
10772 return resultobj;
10773fail:
10774 return NULL;
10775}
10776
10777
10778SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10779 PyObject *resultobj = 0;
10780 wxRegion *arg1 = (wxRegion *) 0 ;
10781 wxPoint *arg2 = 0 ;
10782 wxRegionContain result;
10783 void *argp1 = 0 ;
10784 int res1 = 0 ;
10785 wxPoint temp2 ;
10786 PyObject * obj0 = 0 ;
10787 PyObject * obj1 = 0 ;
10788 char * kwnames[] = {
10789 (char *) "self",(char *) "pt", NULL
10790 };
10791
10792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10794 if (!SWIG_IsOK(res1)) {
10795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10796 }
10797 arg1 = reinterpret_cast< wxRegion * >(argp1);
10798 {
10799 arg2 = &temp2;
10800 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10801 }
10802 {
10803 PyThreadState* __tstate = wxPyBeginAllowThreads();
10804 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10805 wxPyEndAllowThreads(__tstate);
10806 if (PyErr_Occurred()) SWIG_fail;
10807 }
10808 resultobj = SWIG_From_int(static_cast< int >(result));
10809 return resultobj;
10810fail:
10811 return NULL;
10812}
10813
10814
10815SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10816 PyObject *resultobj = 0;
10817 wxRegion *arg1 = (wxRegion *) 0 ;
10818 wxRect *arg2 = 0 ;
10819 wxRegionContain result;
10820 void *argp1 = 0 ;
10821 int res1 = 0 ;
10822 wxRect temp2 ;
10823 PyObject * obj0 = 0 ;
10824 PyObject * obj1 = 0 ;
10825 char * kwnames[] = {
10826 (char *) "self",(char *) "rect", NULL
10827 };
10828
10829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10831 if (!SWIG_IsOK(res1)) {
10832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10833 }
10834 arg1 = reinterpret_cast< wxRegion * >(argp1);
10835 {
10836 arg2 = &temp2;
10837 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10838 }
10839 {
10840 PyThreadState* __tstate = wxPyBeginAllowThreads();
10841 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10842 wxPyEndAllowThreads(__tstate);
10843 if (PyErr_Occurred()) SWIG_fail;
10844 }
10845 resultobj = SWIG_From_int(static_cast< int >(result));
10846 return resultobj;
10847fail:
10848 return NULL;
10849}
10850
10851
10852SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10853 PyObject *resultobj = 0;
10854 wxRegion *arg1 = (wxRegion *) 0 ;
10855 int arg2 ;
10856 int arg3 ;
10857 int arg4 ;
10858 int arg5 ;
10859 wxRegionContain result;
10860 void *argp1 = 0 ;
10861 int res1 = 0 ;
10862 int val2 ;
10863 int ecode2 = 0 ;
10864 int val3 ;
10865 int ecode3 = 0 ;
10866 int val4 ;
10867 int ecode4 = 0 ;
10868 int val5 ;
10869 int ecode5 = 0 ;
10870 PyObject * obj0 = 0 ;
10871 PyObject * obj1 = 0 ;
10872 PyObject * obj2 = 0 ;
10873 PyObject * obj3 = 0 ;
10874 PyObject * obj4 = 0 ;
10875 char * kwnames[] = {
10876 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10877 };
10878
10879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10881 if (!SWIG_IsOK(res1)) {
10882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10883 }
10884 arg1 = reinterpret_cast< wxRegion * >(argp1);
10885 ecode2 = SWIG_AsVal_int(obj1, &val2);
10886 if (!SWIG_IsOK(ecode2)) {
10887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10888 }
10889 arg2 = static_cast< int >(val2);
10890 ecode3 = SWIG_AsVal_int(obj2, &val3);
10891 if (!SWIG_IsOK(ecode3)) {
10892 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10893 }
10894 arg3 = static_cast< int >(val3);
10895 ecode4 = SWIG_AsVal_int(obj3, &val4);
10896 if (!SWIG_IsOK(ecode4)) {
10897 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10898 }
10899 arg4 = static_cast< int >(val4);
10900 ecode5 = SWIG_AsVal_int(obj4, &val5);
10901 if (!SWIG_IsOK(ecode5)) {
10902 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10903 }
10904 arg5 = static_cast< int >(val5);
10905 {
10906 PyThreadState* __tstate = wxPyBeginAllowThreads();
10907 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10908 wxPyEndAllowThreads(__tstate);
10909 if (PyErr_Occurred()) SWIG_fail;
10910 }
10911 resultobj = SWIG_From_int(static_cast< int >(result));
10912 return resultobj;
10913fail:
10914 return NULL;
d55e5bfc
RD
10915}
10916
10917
554f62e9
RD
10918SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10919 PyObject *resultobj = 0;
10920 wxRegion *arg1 = (wxRegion *) 0 ;
10921 wxRect result;
10922 void *argp1 = 0 ;
10923 int res1 = 0 ;
10924 PyObject *swig_obj[1] ;
10925
10926 if (!args) SWIG_fail;
10927 swig_obj[0] = args;
10928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10929 if (!SWIG_IsOK(res1)) {
10930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10931 }
10932 arg1 = reinterpret_cast< wxRegion * >(argp1);
10933 {
10934 PyThreadState* __tstate = wxPyBeginAllowThreads();
10935 result = (arg1)->GetBox();
10936 wxPyEndAllowThreads(__tstate);
10937 if (PyErr_Occurred()) SWIG_fail;
10938 }
10939 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10940 return resultobj;
10941fail:
10942 return NULL;
10943}
10944
10945
10946SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10947 PyObject *resultobj = 0;
10948 wxRegion *arg1 = (wxRegion *) 0 ;
10949 int arg2 ;
10950 int arg3 ;
10951 int arg4 ;
10952 int arg5 ;
10953 bool result;
10954 void *argp1 = 0 ;
10955 int res1 = 0 ;
10956 int val2 ;
10957 int ecode2 = 0 ;
10958 int val3 ;
10959 int ecode3 = 0 ;
10960 int val4 ;
10961 int ecode4 = 0 ;
10962 int val5 ;
10963 int ecode5 = 0 ;
10964 PyObject * obj0 = 0 ;
10965 PyObject * obj1 = 0 ;
10966 PyObject * obj2 = 0 ;
10967 PyObject * obj3 = 0 ;
10968 PyObject * obj4 = 0 ;
10969 char * kwnames[] = {
10970 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10971 };
10972
10973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10975 if (!SWIG_IsOK(res1)) {
10976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10977 }
10978 arg1 = reinterpret_cast< wxRegion * >(argp1);
10979 ecode2 = SWIG_AsVal_int(obj1, &val2);
10980 if (!SWIG_IsOK(ecode2)) {
10981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10982 }
10983 arg2 = static_cast< int >(val2);
10984 ecode3 = SWIG_AsVal_int(obj2, &val3);
10985 if (!SWIG_IsOK(ecode3)) {
10986 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10987 }
10988 arg3 = static_cast< int >(val3);
10989 ecode4 = SWIG_AsVal_int(obj3, &val4);
10990 if (!SWIG_IsOK(ecode4)) {
10991 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10992 }
10993 arg4 = static_cast< int >(val4);
10994 ecode5 = SWIG_AsVal_int(obj4, &val5);
10995 if (!SWIG_IsOK(ecode5)) {
10996 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10997 }
10998 arg5 = static_cast< int >(val5);
10999 {
11000 PyThreadState* __tstate = wxPyBeginAllowThreads();
11001 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11002 wxPyEndAllowThreads(__tstate);
11003 if (PyErr_Occurred()) SWIG_fail;
11004 }
11005 {
11006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11007 }
11008 return resultobj;
11009fail:
11010 return NULL;
11011}
11012
11013
11014SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11015 PyObject *resultobj = 0;
11016 wxRegion *arg1 = (wxRegion *) 0 ;
11017 wxRect *arg2 = 0 ;
11018 bool result;
11019 void *argp1 = 0 ;
11020 int res1 = 0 ;
11021 wxRect temp2 ;
11022 PyObject * obj0 = 0 ;
11023 PyObject * obj1 = 0 ;
11024 char * kwnames[] = {
11025 (char *) "self",(char *) "rect", NULL
11026 };
11027
11028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11030 if (!SWIG_IsOK(res1)) {
11031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11032 }
11033 arg1 = reinterpret_cast< wxRegion * >(argp1);
11034 {
11035 arg2 = &temp2;
11036 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11037 }
11038 {
11039 PyThreadState* __tstate = wxPyBeginAllowThreads();
11040 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11041 wxPyEndAllowThreads(__tstate);
11042 if (PyErr_Occurred()) SWIG_fail;
11043 }
11044 {
11045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11046 }
11047 return resultobj;
11048fail:
11049 return NULL;
11050}
11051
11052
11053SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11054 PyObject *resultobj = 0;
11055 wxRegion *arg1 = (wxRegion *) 0 ;
11056 wxRegion *arg2 = 0 ;
11057 bool result;
11058 void *argp1 = 0 ;
11059 int res1 = 0 ;
11060 void *argp2 = 0 ;
11061 int res2 = 0 ;
11062 PyObject * obj0 = 0 ;
11063 PyObject * obj1 = 0 ;
11064 char * kwnames[] = {
11065 (char *) "self",(char *) "region", NULL
11066 };
11067
11068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11070 if (!SWIG_IsOK(res1)) {
11071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11072 }
11073 arg1 = reinterpret_cast< wxRegion * >(argp1);
11074 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11075 if (!SWIG_IsOK(res2)) {
11076 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11077 }
11078 if (!argp2) {
11079 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11080 }
11081 arg2 = reinterpret_cast< wxRegion * >(argp2);
11082 {
11083 PyThreadState* __tstate = wxPyBeginAllowThreads();
11084 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11085 wxPyEndAllowThreads(__tstate);
11086 if (PyErr_Occurred()) SWIG_fail;
11087 }
11088 {
11089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11090 }
11091 return resultobj;
11092fail:
11093 return NULL;
d55e5bfc
RD
11094}
11095
11096
554f62e9
RD
11097SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11098 PyObject *resultobj = 0;
11099 wxRegion *arg1 = (wxRegion *) 0 ;
11100 bool result;
11101 void *argp1 = 0 ;
11102 int res1 = 0 ;
11103 PyObject *swig_obj[1] ;
11104
11105 if (!args) SWIG_fail;
11106 swig_obj[0] = args;
11107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11108 if (!SWIG_IsOK(res1)) {
11109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11110 }
11111 arg1 = reinterpret_cast< wxRegion * >(argp1);
11112 {
11113 PyThreadState* __tstate = wxPyBeginAllowThreads();
11114 result = (bool)(arg1)->IsEmpty();
11115 wxPyEndAllowThreads(__tstate);
11116 if (PyErr_Occurred()) SWIG_fail;
11117 }
11118 {
11119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11120 }
11121 return resultobj;
11122fail:
11123 return NULL;
11124}
11125
11126
11127SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11128 PyObject *resultobj = 0;
11129 wxRegion *arg1 = (wxRegion *) 0 ;
11130 int arg2 ;
11131 int arg3 ;
11132 int arg4 ;
11133 int arg5 ;
11134 bool result;
11135 void *argp1 = 0 ;
11136 int res1 = 0 ;
11137 int val2 ;
11138 int ecode2 = 0 ;
11139 int val3 ;
11140 int ecode3 = 0 ;
11141 int val4 ;
11142 int ecode4 = 0 ;
11143 int val5 ;
11144 int ecode5 = 0 ;
11145 PyObject * obj0 = 0 ;
11146 PyObject * obj1 = 0 ;
11147 PyObject * obj2 = 0 ;
11148 PyObject * obj3 = 0 ;
11149 PyObject * obj4 = 0 ;
11150 char * kwnames[] = {
11151 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11152 };
11153
11154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11156 if (!SWIG_IsOK(res1)) {
11157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11158 }
11159 arg1 = reinterpret_cast< wxRegion * >(argp1);
11160 ecode2 = SWIG_AsVal_int(obj1, &val2);
11161 if (!SWIG_IsOK(ecode2)) {
11162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11163 }
11164 arg2 = static_cast< int >(val2);
11165 ecode3 = SWIG_AsVal_int(obj2, &val3);
11166 if (!SWIG_IsOK(ecode3)) {
11167 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11168 }
11169 arg3 = static_cast< int >(val3);
11170 ecode4 = SWIG_AsVal_int(obj3, &val4);
11171 if (!SWIG_IsOK(ecode4)) {
11172 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11173 }
11174 arg4 = static_cast< int >(val4);
11175 ecode5 = SWIG_AsVal_int(obj4, &val5);
11176 if (!SWIG_IsOK(ecode5)) {
11177 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11178 }
11179 arg5 = static_cast< int >(val5);
11180 {
11181 PyThreadState* __tstate = wxPyBeginAllowThreads();
11182 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11183 wxPyEndAllowThreads(__tstate);
11184 if (PyErr_Occurred()) SWIG_fail;
11185 }
11186 {
11187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11188 }
11189 return resultobj;
11190fail:
11191 return NULL;
11192}
11193
11194
11195SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11196 PyObject *resultobj = 0;
11197 wxRegion *arg1 = (wxRegion *) 0 ;
11198 wxRect *arg2 = 0 ;
11199 bool result;
11200 void *argp1 = 0 ;
11201 int res1 = 0 ;
11202 wxRect temp2 ;
11203 PyObject * obj0 = 0 ;
11204 PyObject * obj1 = 0 ;
11205 char * kwnames[] = {
11206 (char *) "self",(char *) "rect", NULL
11207 };
11208
11209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11211 if (!SWIG_IsOK(res1)) {
11212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11213 }
11214 arg1 = reinterpret_cast< wxRegion * >(argp1);
11215 {
11216 arg2 = &temp2;
11217 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11218 }
11219 {
11220 PyThreadState* __tstate = wxPyBeginAllowThreads();
11221 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11222 wxPyEndAllowThreads(__tstate);
11223 if (PyErr_Occurred()) SWIG_fail;
11224 }
11225 {
11226 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11227 }
11228 return resultobj;
11229fail:
11230 return NULL;
11231}
11232
11233
11234SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11235 PyObject *resultobj = 0;
11236 wxRegion *arg1 = (wxRegion *) 0 ;
11237 wxRegion *arg2 = 0 ;
11238 bool result;
11239 void *argp1 = 0 ;
11240 int res1 = 0 ;
11241 void *argp2 = 0 ;
11242 int res2 = 0 ;
11243 PyObject * obj0 = 0 ;
11244 PyObject * obj1 = 0 ;
11245 char * kwnames[] = {
11246 (char *) "self",(char *) "region", NULL
11247 };
11248
11249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11251 if (!SWIG_IsOK(res1)) {
11252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11253 }
11254 arg1 = reinterpret_cast< wxRegion * >(argp1);
11255 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11256 if (!SWIG_IsOK(res2)) {
11257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11258 }
11259 if (!argp2) {
11260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11261 }
11262 arg2 = reinterpret_cast< wxRegion * >(argp2);
11263 {
11264 PyThreadState* __tstate = wxPyBeginAllowThreads();
11265 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11266 wxPyEndAllowThreads(__tstate);
11267 if (PyErr_Occurred()) SWIG_fail;
11268 }
11269 {
11270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11271 }
11272 return resultobj;
11273fail:
11274 return NULL;
11275}
11276
11277
11278SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11279 PyObject *resultobj = 0;
11280 wxRegion *arg1 = (wxRegion *) 0 ;
11281 int arg2 ;
11282 int arg3 ;
11283 int arg4 ;
11284 int arg5 ;
11285 bool result;
11286 void *argp1 = 0 ;
11287 int res1 = 0 ;
11288 int val2 ;
11289 int ecode2 = 0 ;
11290 int val3 ;
11291 int ecode3 = 0 ;
11292 int val4 ;
11293 int ecode4 = 0 ;
11294 int val5 ;
11295 int ecode5 = 0 ;
11296 PyObject * obj0 = 0 ;
11297 PyObject * obj1 = 0 ;
11298 PyObject * obj2 = 0 ;
11299 PyObject * obj3 = 0 ;
11300 PyObject * obj4 = 0 ;
11301 char * kwnames[] = {
11302 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11303 };
11304
11305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11307 if (!SWIG_IsOK(res1)) {
11308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11309 }
11310 arg1 = reinterpret_cast< wxRegion * >(argp1);
11311 ecode2 = SWIG_AsVal_int(obj1, &val2);
11312 if (!SWIG_IsOK(ecode2)) {
11313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11314 }
11315 arg2 = static_cast< int >(val2);
11316 ecode3 = SWIG_AsVal_int(obj2, &val3);
11317 if (!SWIG_IsOK(ecode3)) {
11318 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11319 }
11320 arg3 = static_cast< int >(val3);
11321 ecode4 = SWIG_AsVal_int(obj3, &val4);
11322 if (!SWIG_IsOK(ecode4)) {
11323 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11324 }
11325 arg4 = static_cast< int >(val4);
11326 ecode5 = SWIG_AsVal_int(obj4, &val5);
11327 if (!SWIG_IsOK(ecode5)) {
11328 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11329 }
11330 arg5 = static_cast< int >(val5);
11331 {
11332 PyThreadState* __tstate = wxPyBeginAllowThreads();
11333 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11334 wxPyEndAllowThreads(__tstate);
11335 if (PyErr_Occurred()) SWIG_fail;
11336 }
11337 {
11338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11339 }
11340 return resultobj;
11341fail:
11342 return NULL;
11343}
11344
11345
11346SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11347 PyObject *resultobj = 0;
11348 wxRegion *arg1 = (wxRegion *) 0 ;
11349 wxRect *arg2 = 0 ;
11350 bool result;
11351 void *argp1 = 0 ;
11352 int res1 = 0 ;
11353 wxRect temp2 ;
11354 PyObject * obj0 = 0 ;
11355 PyObject * obj1 = 0 ;
11356 char * kwnames[] = {
11357 (char *) "self",(char *) "rect", NULL
11358 };
11359
11360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11362 if (!SWIG_IsOK(res1)) {
11363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11364 }
11365 arg1 = reinterpret_cast< wxRegion * >(argp1);
11366 {
11367 arg2 = &temp2;
11368 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11369 }
11370 {
11371 PyThreadState* __tstate = wxPyBeginAllowThreads();
11372 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11373 wxPyEndAllowThreads(__tstate);
11374 if (PyErr_Occurred()) SWIG_fail;
11375 }
11376 {
11377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11378 }
11379 return resultobj;
11380fail:
11381 return NULL;
11382}
11383
11384
11385SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11386 PyObject *resultobj = 0;
11387 wxRegion *arg1 = (wxRegion *) 0 ;
11388 wxRegion *arg2 = 0 ;
11389 bool result;
11390 void *argp1 = 0 ;
11391 int res1 = 0 ;
11392 void *argp2 = 0 ;
11393 int res2 = 0 ;
11394 PyObject * obj0 = 0 ;
11395 PyObject * obj1 = 0 ;
11396 char * kwnames[] = {
11397 (char *) "self",(char *) "region", NULL
11398 };
11399
11400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11402 if (!SWIG_IsOK(res1)) {
11403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11404 }
11405 arg1 = reinterpret_cast< wxRegion * >(argp1);
11406 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11407 if (!SWIG_IsOK(res2)) {
11408 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11409 }
11410 if (!argp2) {
11411 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11412 }
11413 arg2 = reinterpret_cast< wxRegion * >(argp2);
11414 {
11415 PyThreadState* __tstate = wxPyBeginAllowThreads();
11416 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11417 wxPyEndAllowThreads(__tstate);
11418 if (PyErr_Occurred()) SWIG_fail;
11419 }
11420 {
11421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11422 }
11423 return resultobj;
11424fail:
11425 return NULL;
11426}
11427
11428
11429SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11430 PyObject *resultobj = 0;
11431 wxRegion *arg1 = (wxRegion *) 0 ;
11432 int arg2 ;
11433 int arg3 ;
11434 int arg4 ;
11435 int arg5 ;
11436 bool result;
11437 void *argp1 = 0 ;
11438 int res1 = 0 ;
11439 int val2 ;
11440 int ecode2 = 0 ;
11441 int val3 ;
11442 int ecode3 = 0 ;
11443 int val4 ;
11444 int ecode4 = 0 ;
11445 int val5 ;
11446 int ecode5 = 0 ;
11447 PyObject * obj0 = 0 ;
11448 PyObject * obj1 = 0 ;
11449 PyObject * obj2 = 0 ;
11450 PyObject * obj3 = 0 ;
11451 PyObject * obj4 = 0 ;
11452 char * kwnames[] = {
11453 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11454 };
11455
11456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11458 if (!SWIG_IsOK(res1)) {
11459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11460 }
11461 arg1 = reinterpret_cast< wxRegion * >(argp1);
11462 ecode2 = SWIG_AsVal_int(obj1, &val2);
11463 if (!SWIG_IsOK(ecode2)) {
11464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11465 }
11466 arg2 = static_cast< int >(val2);
11467 ecode3 = SWIG_AsVal_int(obj2, &val3);
11468 if (!SWIG_IsOK(ecode3)) {
11469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11470 }
11471 arg3 = static_cast< int >(val3);
11472 ecode4 = SWIG_AsVal_int(obj3, &val4);
11473 if (!SWIG_IsOK(ecode4)) {
11474 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11475 }
11476 arg4 = static_cast< int >(val4);
11477 ecode5 = SWIG_AsVal_int(obj4, &val5);
11478 if (!SWIG_IsOK(ecode5)) {
11479 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11480 }
11481 arg5 = static_cast< int >(val5);
11482 {
11483 PyThreadState* __tstate = wxPyBeginAllowThreads();
11484 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11485 wxPyEndAllowThreads(__tstate);
11486 if (PyErr_Occurred()) SWIG_fail;
11487 }
11488 {
11489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11490 }
11491 return resultobj;
11492fail:
11493 return NULL;
11494}
11495
11496
11497SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11498 PyObject *resultobj = 0;
11499 wxRegion *arg1 = (wxRegion *) 0 ;
11500 wxRect *arg2 = 0 ;
11501 bool result;
11502 void *argp1 = 0 ;
11503 int res1 = 0 ;
11504 wxRect temp2 ;
11505 PyObject * obj0 = 0 ;
11506 PyObject * obj1 = 0 ;
11507 char * kwnames[] = {
11508 (char *) "self",(char *) "rect", NULL
11509 };
11510
11511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11513 if (!SWIG_IsOK(res1)) {
11514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11515 }
11516 arg1 = reinterpret_cast< wxRegion * >(argp1);
11517 {
11518 arg2 = &temp2;
11519 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11520 }
11521 {
11522 PyThreadState* __tstate = wxPyBeginAllowThreads();
11523 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11524 wxPyEndAllowThreads(__tstate);
11525 if (PyErr_Occurred()) SWIG_fail;
11526 }
11527 {
11528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11529 }
11530 return resultobj;
11531fail:
11532 return NULL;
11533}
11534
11535
11536SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11537 PyObject *resultobj = 0;
11538 wxRegion *arg1 = (wxRegion *) 0 ;
11539 wxRegion *arg2 = 0 ;
11540 bool result;
11541 void *argp1 = 0 ;
11542 int res1 = 0 ;
11543 void *argp2 = 0 ;
11544 int res2 = 0 ;
11545 PyObject * obj0 = 0 ;
11546 PyObject * obj1 = 0 ;
11547 char * kwnames[] = {
11548 (char *) "self",(char *) "region", NULL
11549 };
11550
11551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11553 if (!SWIG_IsOK(res1)) {
11554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11555 }
11556 arg1 = reinterpret_cast< wxRegion * >(argp1);
11557 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11558 if (!SWIG_IsOK(res2)) {
11559 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11560 }
11561 if (!argp2) {
11562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11563 }
11564 arg2 = reinterpret_cast< wxRegion * >(argp2);
11565 {
11566 PyThreadState* __tstate = wxPyBeginAllowThreads();
11567 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11568 wxPyEndAllowThreads(__tstate);
11569 if (PyErr_Occurred()) SWIG_fail;
11570 }
11571 {
11572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11573 }
11574 return resultobj;
11575fail:
11576 return NULL;
d55e5bfc
RD
11577}
11578
11579
554f62e9
RD
11580SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11581 PyObject *resultobj = 0;
11582 wxRegion *arg1 = (wxRegion *) 0 ;
11583 SwigValueWrapper<wxBitmap > result;
11584 void *argp1 = 0 ;
11585 int res1 = 0 ;
11586 PyObject *swig_obj[1] ;
11587
11588 if (!args) SWIG_fail;
11589 swig_obj[0] = args;
11590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11591 if (!SWIG_IsOK(res1)) {
11592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11593 }
11594 arg1 = reinterpret_cast< wxRegion * >(argp1);
11595 {
11596 PyThreadState* __tstate = wxPyBeginAllowThreads();
11597 result = (arg1)->ConvertToBitmap();
11598 wxPyEndAllowThreads(__tstate);
11599 if (PyErr_Occurred()) SWIG_fail;
11600 }
11601 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11602 return resultobj;
11603fail:
11604 return NULL;
11605}
11606
11607
11608SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11609 PyObject *resultobj = 0;
11610 wxRegion *arg1 = (wxRegion *) 0 ;
11611 wxBitmap *arg2 = 0 ;
11612 bool result;
11613 void *argp1 = 0 ;
11614 int res1 = 0 ;
11615 void *argp2 = 0 ;
11616 int res2 = 0 ;
11617 PyObject * obj0 = 0 ;
11618 PyObject * obj1 = 0 ;
11619 char * kwnames[] = {
11620 (char *) "self",(char *) "bmp", NULL
11621 };
11622
11623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11625 if (!SWIG_IsOK(res1)) {
11626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11627 }
11628 arg1 = reinterpret_cast< wxRegion * >(argp1);
11629 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11630 if (!SWIG_IsOK(res2)) {
11631 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11632 }
11633 if (!argp2) {
11634 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11635 }
11636 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11637 {
11638 PyThreadState* __tstate = wxPyBeginAllowThreads();
11639 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11640 wxPyEndAllowThreads(__tstate);
11641 if (PyErr_Occurred()) SWIG_fail;
11642 }
11643 {
11644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11645 }
11646 return resultobj;
11647fail:
11648 return NULL;
11649}
11650
11651
11652SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11653 PyObject *resultobj = 0;
11654 wxRegion *arg1 = (wxRegion *) 0 ;
11655 wxBitmap *arg2 = 0 ;
11656 wxColour *arg3 = 0 ;
11657 int arg4 = (int) 0 ;
11658 bool result;
11659 void *argp1 = 0 ;
11660 int res1 = 0 ;
11661 void *argp2 = 0 ;
11662 int res2 = 0 ;
11663 wxColour temp3 ;
11664 int val4 ;
11665 int ecode4 = 0 ;
11666 PyObject * obj0 = 0 ;
11667 PyObject * obj1 = 0 ;
11668 PyObject * obj2 = 0 ;
11669 PyObject * obj3 = 0 ;
11670 char * kwnames[] = {
11671 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11672 };
11673
11674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11676 if (!SWIG_IsOK(res1)) {
11677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11678 }
11679 arg1 = reinterpret_cast< wxRegion * >(argp1);
11680 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11681 if (!SWIG_IsOK(res2)) {
11682 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11683 }
11684 if (!argp2) {
11685 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11686 }
11687 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11688 {
11689 arg3 = &temp3;
11690 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11691 }
11692 if (obj3) {
11693 ecode4 = SWIG_AsVal_int(obj3, &val4);
11694 if (!SWIG_IsOK(ecode4)) {
11695 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11696 }
11697 arg4 = static_cast< int >(val4);
11698 }
11699 {
11700 PyThreadState* __tstate = wxPyBeginAllowThreads();
11701 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11702 wxPyEndAllowThreads(__tstate);
11703 if (PyErr_Occurred()) SWIG_fail;
11704 }
11705 {
11706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11707 }
11708 return resultobj;
11709fail:
11710 return NULL;
d55e5bfc
RD
11711}
11712
11713
554f62e9
RD
11714SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11715 PyObject *obj;
11716 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11717 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11718 return SWIG_Py_Void();
d55e5bfc
RD
11719}
11720
554f62e9
RD
11721SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11722 return SWIG_Python_InitShadowInstance(args);
11723}
d55e5bfc 11724
554f62e9
RD
11725SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11726 PyObject *resultobj = 0;
11727 wxRegion *arg1 = 0 ;
11728 wxRegionIterator *result = 0 ;
11729 void *argp1 = 0 ;
11730 int res1 = 0 ;
11731 PyObject * obj0 = 0 ;
11732 char * kwnames[] = {
11733 (char *) "region", NULL
11734 };
11735
11736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11737 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11738 if (!SWIG_IsOK(res1)) {
11739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11740 }
11741 if (!argp1) {
11742 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11743 }
11744 arg1 = reinterpret_cast< wxRegion * >(argp1);
11745 {
11746 if (!wxPyCheckForApp()) SWIG_fail;
11747 PyThreadState* __tstate = wxPyBeginAllowThreads();
11748 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11749 wxPyEndAllowThreads(__tstate);
11750 if (PyErr_Occurred()) SWIG_fail;
11751 }
11752 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11753 return resultobj;
11754fail:
11755 return NULL;
d55e5bfc
RD
11756}
11757
11758
554f62e9
RD
11759SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11760 PyObject *resultobj = 0;
11761 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11762 void *argp1 = 0 ;
11763 int res1 = 0 ;
11764 PyObject *swig_obj[1] ;
11765
11766 if (!args) SWIG_fail;
11767 swig_obj[0] = args;
11768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11769 if (!SWIG_IsOK(res1)) {
11770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11771 }
11772 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11773 {
11774 PyThreadState* __tstate = wxPyBeginAllowThreads();
11775 delete arg1;
d55e5bfc 11776
554f62e9
RD
11777 wxPyEndAllowThreads(__tstate);
11778 if (PyErr_Occurred()) SWIG_fail;
11779 }
11780 resultobj = SWIG_Py_Void();
11781 return resultobj;
11782fail:
11783 return NULL;
d55e5bfc
RD
11784}
11785
11786
554f62e9
RD
11787SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11788 PyObject *resultobj = 0;
11789 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11790 int result;
11791 void *argp1 = 0 ;
11792 int res1 = 0 ;
11793 PyObject *swig_obj[1] ;
11794
11795 if (!args) SWIG_fail;
11796 swig_obj[0] = args;
11797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11798 if (!SWIG_IsOK(res1)) {
11799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11800 }
11801 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11802 {
11803 PyThreadState* __tstate = wxPyBeginAllowThreads();
11804 result = (int)(arg1)->GetX();
11805 wxPyEndAllowThreads(__tstate);
11806 if (PyErr_Occurred()) SWIG_fail;
11807 }
11808 resultobj = SWIG_From_int(static_cast< int >(result));
11809 return resultobj;
11810fail:
11811 return NULL;
d55e5bfc
RD
11812}
11813
11814
554f62e9
RD
11815SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11816 PyObject *resultobj = 0;
11817 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11818 int result;
11819 void *argp1 = 0 ;
11820 int res1 = 0 ;
11821 PyObject *swig_obj[1] ;
11822
11823 if (!args) SWIG_fail;
11824 swig_obj[0] = args;
11825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11826 if (!SWIG_IsOK(res1)) {
11827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11828 }
11829 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11830 {
11831 PyThreadState* __tstate = wxPyBeginAllowThreads();
11832 result = (int)(arg1)->GetY();
11833 wxPyEndAllowThreads(__tstate);
11834 if (PyErr_Occurred()) SWIG_fail;
11835 }
11836 resultobj = SWIG_From_int(static_cast< int >(result));
11837 return resultobj;
11838fail:
11839 return NULL;
d55e5bfc
RD
11840}
11841
11842
554f62e9
RD
11843SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11844 PyObject *resultobj = 0;
11845 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11846 int result;
11847 void *argp1 = 0 ;
11848 int res1 = 0 ;
11849 PyObject *swig_obj[1] ;
11850
11851 if (!args) SWIG_fail;
11852 swig_obj[0] = args;
11853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11854 if (!SWIG_IsOK(res1)) {
11855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11856 }
11857 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11858 {
11859 PyThreadState* __tstate = wxPyBeginAllowThreads();
11860 result = (int)(arg1)->GetW();
11861 wxPyEndAllowThreads(__tstate);
11862 if (PyErr_Occurred()) SWIG_fail;
11863 }
11864 resultobj = SWIG_From_int(static_cast< int >(result));
11865 return resultobj;
11866fail:
11867 return NULL;
d55e5bfc
RD
11868}
11869
11870
554f62e9
RD
11871SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11872 PyObject *resultobj = 0;
11873 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11874 int result;
11875 void *argp1 = 0 ;
11876 int res1 = 0 ;
11877 PyObject *swig_obj[1] ;
11878
11879 if (!args) SWIG_fail;
11880 swig_obj[0] = args;
11881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11882 if (!SWIG_IsOK(res1)) {
11883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11884 }
11885 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11886 {
11887 PyThreadState* __tstate = wxPyBeginAllowThreads();
11888 result = (int)(arg1)->GetWidth();
11889 wxPyEndAllowThreads(__tstate);
11890 if (PyErr_Occurred()) SWIG_fail;
11891 }
11892 resultobj = SWIG_From_int(static_cast< int >(result));
11893 return resultobj;
11894fail:
11895 return NULL;
d55e5bfc
RD
11896}
11897
11898
554f62e9
RD
11899SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11900 PyObject *resultobj = 0;
11901 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11902 int result;
11903 void *argp1 = 0 ;
11904 int res1 = 0 ;
11905 PyObject *swig_obj[1] ;
11906
11907 if (!args) SWIG_fail;
11908 swig_obj[0] = args;
11909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11910 if (!SWIG_IsOK(res1)) {
11911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11912 }
11913 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11914 {
11915 PyThreadState* __tstate = wxPyBeginAllowThreads();
11916 result = (int)(arg1)->GetH();
11917 wxPyEndAllowThreads(__tstate);
11918 if (PyErr_Occurred()) SWIG_fail;
11919 }
11920 resultobj = SWIG_From_int(static_cast< int >(result));
11921 return resultobj;
11922fail:
11923 return NULL;
d55e5bfc
RD
11924}
11925
11926
554f62e9
RD
11927SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11928 PyObject *resultobj = 0;
11929 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11930 int result;
11931 void *argp1 = 0 ;
11932 int res1 = 0 ;
11933 PyObject *swig_obj[1] ;
11934
11935 if (!args) SWIG_fail;
11936 swig_obj[0] = args;
11937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11938 if (!SWIG_IsOK(res1)) {
11939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11940 }
11941 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11942 {
11943 PyThreadState* __tstate = wxPyBeginAllowThreads();
11944 result = (int)(arg1)->GetHeight();
11945 wxPyEndAllowThreads(__tstate);
11946 if (PyErr_Occurred()) SWIG_fail;
11947 }
11948 resultobj = SWIG_From_int(static_cast< int >(result));
11949 return resultobj;
11950fail:
11951 return NULL;
d55e5bfc
RD
11952}
11953
11954
554f62e9
RD
11955SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11956 PyObject *resultobj = 0;
11957 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11958 wxRect result;
11959 void *argp1 = 0 ;
11960 int res1 = 0 ;
11961 PyObject *swig_obj[1] ;
11962
11963 if (!args) SWIG_fail;
11964 swig_obj[0] = args;
11965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11966 if (!SWIG_IsOK(res1)) {
11967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11968 }
11969 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11970 {
11971 PyThreadState* __tstate = wxPyBeginAllowThreads();
11972 result = (arg1)->GetRect();
11973 wxPyEndAllowThreads(__tstate);
11974 if (PyErr_Occurred()) SWIG_fail;
11975 }
11976 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11977 return resultobj;
11978fail:
11979 return NULL;
d55e5bfc
RD
11980}
11981
11982
554f62e9
RD
11983SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11984 PyObject *resultobj = 0;
11985 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11986 bool result;
11987 void *argp1 = 0 ;
11988 int res1 = 0 ;
11989 PyObject *swig_obj[1] ;
11990
11991 if (!args) SWIG_fail;
11992 swig_obj[0] = args;
11993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11994 if (!SWIG_IsOK(res1)) {
11995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11996 }
11997 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11998 {
11999 PyThreadState* __tstate = wxPyBeginAllowThreads();
12000 result = (bool)(arg1)->HaveRects();
12001 wxPyEndAllowThreads(__tstate);
12002 if (PyErr_Occurred()) SWIG_fail;
12003 }
12004 {
12005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12006 }
12007 return resultobj;
12008fail:
12009 return NULL;
d55e5bfc
RD
12010}
12011
12012
554f62e9
RD
12013SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12014 PyObject *resultobj = 0;
12015 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12016 void *argp1 = 0 ;
12017 int res1 = 0 ;
12018 PyObject *swig_obj[1] ;
12019
12020 if (!args) SWIG_fail;
12021 swig_obj[0] = args;
12022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12023 if (!SWIG_IsOK(res1)) {
12024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12025 }
12026 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12027 {
12028 PyThreadState* __tstate = wxPyBeginAllowThreads();
12029 (arg1)->Reset();
12030 wxPyEndAllowThreads(__tstate);
12031 if (PyErr_Occurred()) SWIG_fail;
12032 }
12033 resultobj = SWIG_Py_Void();
12034 return resultobj;
12035fail:
12036 return NULL;
d55e5bfc
RD
12037}
12038
12039
554f62e9
RD
12040SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12041 PyObject *resultobj = 0;
12042 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12043 void *argp1 = 0 ;
12044 int res1 = 0 ;
12045 PyObject *swig_obj[1] ;
12046
12047 if (!args) SWIG_fail;
12048 swig_obj[0] = args;
12049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12050 if (!SWIG_IsOK(res1)) {
12051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12052 }
12053 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12054 {
12055 PyThreadState* __tstate = wxPyBeginAllowThreads();
12056 wxRegionIterator_Next(arg1);
12057 wxPyEndAllowThreads(__tstate);
12058 if (PyErr_Occurred()) SWIG_fail;
12059 }
12060 resultobj = SWIG_Py_Void();
12061 return resultobj;
12062fail:
12063 return NULL;
d55e5bfc
RD
12064}
12065
12066
554f62e9
RD
12067SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12068 PyObject *resultobj = 0;
12069 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12070 bool result;
12071 void *argp1 = 0 ;
12072 int res1 = 0 ;
12073 PyObject *swig_obj[1] ;
12074
12075 if (!args) SWIG_fail;
12076 swig_obj[0] = args;
12077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12078 if (!SWIG_IsOK(res1)) {
12079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12080 }
12081 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12082 {
12083 PyThreadState* __tstate = wxPyBeginAllowThreads();
12084 result = (bool)wxRegionIterator___nonzero__(arg1);
12085 wxPyEndAllowThreads(__tstate);
12086 if (PyErr_Occurred()) SWIG_fail;
12087 }
12088 {
12089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12090 }
12091 return resultobj;
12092fail:
12093 return NULL;
d55e5bfc
RD
12094}
12095
12096
554f62e9
RD
12097SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12098 PyObject *obj;
12099 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12100 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12101 return SWIG_Py_Void();
d55e5bfc
RD
12102}
12103
554f62e9
RD
12104SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12105 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
12106}
12107
554f62e9
RD
12108SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12109 PyObject *resultobj = 0;
12110 wxNativeFontInfo *result = 0 ;
12111
12112 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12113 {
12114 PyThreadState* __tstate = wxPyBeginAllowThreads();
12115 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12116 wxPyEndAllowThreads(__tstate);
12117 if (PyErr_Occurred()) SWIG_fail;
12118 }
12119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12120 return resultobj;
12121fail:
12122 return NULL;
d55e5bfc
RD
12123}
12124
12125
554f62e9
RD
12126SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12127 PyObject *resultobj = 0;
12128 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12129 void *argp1 = 0 ;
12130 int res1 = 0 ;
12131 PyObject *swig_obj[1] ;
12132
12133 if (!args) SWIG_fail;
12134 swig_obj[0] = args;
12135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12136 if (!SWIG_IsOK(res1)) {
12137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12138 }
12139 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12140 {
12141 PyThreadState* __tstate = wxPyBeginAllowThreads();
12142 delete arg1;
d55e5bfc 12143
554f62e9
RD
12144 wxPyEndAllowThreads(__tstate);
12145 if (PyErr_Occurred()) SWIG_fail;
12146 }
12147 resultobj = SWIG_Py_Void();
12148 return resultobj;
12149fail:
12150 return NULL;
d55e5bfc
RD
12151}
12152
12153
554f62e9
RD
12154SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12155 PyObject *resultobj = 0;
12156 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12157 void *argp1 = 0 ;
12158 int res1 = 0 ;
12159 PyObject *swig_obj[1] ;
12160
12161 if (!args) SWIG_fail;
12162 swig_obj[0] = args;
12163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12164 if (!SWIG_IsOK(res1)) {
12165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12166 }
12167 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12168 {
12169 PyThreadState* __tstate = wxPyBeginAllowThreads();
12170 (arg1)->Init();
12171 wxPyEndAllowThreads(__tstate);
12172 if (PyErr_Occurred()) SWIG_fail;
12173 }
12174 resultobj = SWIG_Py_Void();
12175 return resultobj;
12176fail:
12177 return NULL;
12178}
12179
12180
12181SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12182 PyObject *resultobj = 0;
12183 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12184 wxFont *arg2 = 0 ;
12185 void *argp1 = 0 ;
12186 int res1 = 0 ;
12187 void *argp2 = 0 ;
12188 int res2 = 0 ;
12189 PyObject * obj0 = 0 ;
12190 PyObject * obj1 = 0 ;
12191 char * kwnames[] = {
12192 (char *) "self",(char *) "font", NULL
12193 };
12194
12195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12197 if (!SWIG_IsOK(res1)) {
12198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12199 }
12200 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12201 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12202 if (!SWIG_IsOK(res2)) {
12203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12204 }
12205 if (!argp2) {
12206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12207 }
12208 arg2 = reinterpret_cast< wxFont * >(argp2);
12209 {
12210 PyThreadState* __tstate = wxPyBeginAllowThreads();
12211 (arg1)->InitFromFont((wxFont const &)*arg2);
12212 wxPyEndAllowThreads(__tstate);
12213 if (PyErr_Occurred()) SWIG_fail;
12214 }
12215 resultobj = SWIG_Py_Void();
12216 return resultobj;
12217fail:
12218 return NULL;
d55e5bfc
RD
12219}
12220
12221
554f62e9
RD
12222SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12223 PyObject *resultobj = 0;
12224 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12225 int result;
12226 void *argp1 = 0 ;
12227 int res1 = 0 ;
12228 PyObject *swig_obj[1] ;
12229
12230 if (!args) SWIG_fail;
12231 swig_obj[0] = args;
12232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12233 if (!SWIG_IsOK(res1)) {
12234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12235 }
12236 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12237 {
12238 PyThreadState* __tstate = wxPyBeginAllowThreads();
12239 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12240 wxPyEndAllowThreads(__tstate);
12241 if (PyErr_Occurred()) SWIG_fail;
12242 }
12243 resultobj = SWIG_From_int(static_cast< int >(result));
12244 return resultobj;
12245fail:
12246 return NULL;
d55e5bfc
RD
12247}
12248
12249
554f62e9
RD
12250SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12251 PyObject *resultobj = 0;
12252 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12253 wxSize result;
12254 void *argp1 = 0 ;
12255 int res1 = 0 ;
12256 PyObject *swig_obj[1] ;
12257
12258 if (!args) SWIG_fail;
12259 swig_obj[0] = args;
12260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12261 if (!SWIG_IsOK(res1)) {
12262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12263 }
12264 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12265 {
12266 PyThreadState* __tstate = wxPyBeginAllowThreads();
12267 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12268 wxPyEndAllowThreads(__tstate);
12269 if (PyErr_Occurred()) SWIG_fail;
12270 }
12271 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12272 return resultobj;
12273fail:
12274 return NULL;
d55e5bfc
RD
12275}
12276
12277
554f62e9
RD
12278SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12279 PyObject *resultobj = 0;
12280 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12281 wxFontStyle result;
12282 void *argp1 = 0 ;
12283 int res1 = 0 ;
12284 PyObject *swig_obj[1] ;
12285
12286 if (!args) SWIG_fail;
12287 swig_obj[0] = args;
12288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12289 if (!SWIG_IsOK(res1)) {
12290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12291 }
12292 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12293 {
12294 PyThreadState* __tstate = wxPyBeginAllowThreads();
12295 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12296 wxPyEndAllowThreads(__tstate);
12297 if (PyErr_Occurred()) SWIG_fail;
12298 }
12299 resultobj = SWIG_From_int(static_cast< int >(result));
12300 return resultobj;
12301fail:
12302 return NULL;
d55e5bfc
RD
12303}
12304
12305
554f62e9
RD
12306SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12307 PyObject *resultobj = 0;
12308 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12309 wxFontWeight result;
12310 void *argp1 = 0 ;
12311 int res1 = 0 ;
12312 PyObject *swig_obj[1] ;
12313
12314 if (!args) SWIG_fail;
12315 swig_obj[0] = args;
12316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12317 if (!SWIG_IsOK(res1)) {
12318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12319 }
12320 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12321 {
12322 PyThreadState* __tstate = wxPyBeginAllowThreads();
12323 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12324 wxPyEndAllowThreads(__tstate);
12325 if (PyErr_Occurred()) SWIG_fail;
12326 }
12327 resultobj = SWIG_From_int(static_cast< int >(result));
12328 return resultobj;
12329fail:
12330 return NULL;
d55e5bfc
RD
12331}
12332
12333
554f62e9
RD
12334SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12335 PyObject *resultobj = 0;
12336 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12337 bool result;
12338 void *argp1 = 0 ;
12339 int res1 = 0 ;
12340 PyObject *swig_obj[1] ;
12341
12342 if (!args) SWIG_fail;
12343 swig_obj[0] = args;
12344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12345 if (!SWIG_IsOK(res1)) {
12346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12347 }
12348 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12349 {
12350 PyThreadState* __tstate = wxPyBeginAllowThreads();
12351 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12352 wxPyEndAllowThreads(__tstate);
12353 if (PyErr_Occurred()) SWIG_fail;
12354 }
12355 {
12356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12357 }
12358 return resultobj;
12359fail:
12360 return NULL;
d55e5bfc
RD
12361}
12362
12363
554f62e9
RD
12364SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12365 PyObject *resultobj = 0;
12366 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12367 wxString result;
12368 void *argp1 = 0 ;
12369 int res1 = 0 ;
12370 PyObject *swig_obj[1] ;
12371
12372 if (!args) SWIG_fail;
12373 swig_obj[0] = args;
12374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12375 if (!SWIG_IsOK(res1)) {
12376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12377 }
12378 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12379 {
12380 PyThreadState* __tstate = wxPyBeginAllowThreads();
12381 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12382 wxPyEndAllowThreads(__tstate);
12383 if (PyErr_Occurred()) SWIG_fail;
12384 }
12385 {
093d3ff1 12386#if wxUSE_UNICODE
554f62e9 12387 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 12388#else
554f62e9 12389 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 12390#endif
554f62e9
RD
12391 }
12392 return resultobj;
12393fail:
12394 return NULL;
d55e5bfc
RD
12395}
12396
12397
554f62e9
RD
12398SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12399 PyObject *resultobj = 0;
12400 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12401 wxFontFamily result;
12402 void *argp1 = 0 ;
12403 int res1 = 0 ;
12404 PyObject *swig_obj[1] ;
12405
12406 if (!args) SWIG_fail;
12407 swig_obj[0] = args;
12408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12409 if (!SWIG_IsOK(res1)) {
12410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12411 }
12412 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12413 {
12414 PyThreadState* __tstate = wxPyBeginAllowThreads();
12415 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12416 wxPyEndAllowThreads(__tstate);
12417 if (PyErr_Occurred()) SWIG_fail;
12418 }
12419 resultobj = SWIG_From_int(static_cast< int >(result));
12420 return resultobj;
12421fail:
12422 return NULL;
d55e5bfc
RD
12423}
12424
12425
554f62e9
RD
12426SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12427 PyObject *resultobj = 0;
12428 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12429 wxFontEncoding result;
12430 void *argp1 = 0 ;
12431 int res1 = 0 ;
12432 PyObject *swig_obj[1] ;
12433
12434 if (!args) SWIG_fail;
12435 swig_obj[0] = args;
12436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12437 if (!SWIG_IsOK(res1)) {
12438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12439 }
12440 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12441 {
12442 PyThreadState* __tstate = wxPyBeginAllowThreads();
12443 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12444 wxPyEndAllowThreads(__tstate);
12445 if (PyErr_Occurred()) SWIG_fail;
12446 }
12447 resultobj = SWIG_From_int(static_cast< int >(result));
12448 return resultobj;
12449fail:
12450 return NULL;
12451}
12452
12453
12454SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12455 PyObject *resultobj = 0;
12456 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12457 int arg2 ;
12458 void *argp1 = 0 ;
12459 int res1 = 0 ;
12460 int val2 ;
12461 int ecode2 = 0 ;
12462 PyObject * obj0 = 0 ;
12463 PyObject * obj1 = 0 ;
12464 char * kwnames[] = {
12465 (char *) "self",(char *) "pointsize", NULL
12466 };
12467
12468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12470 if (!SWIG_IsOK(res1)) {
12471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12472 }
12473 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12474 ecode2 = SWIG_AsVal_int(obj1, &val2);
12475 if (!SWIG_IsOK(ecode2)) {
12476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12477 }
12478 arg2 = static_cast< int >(val2);
12479 {
12480 PyThreadState* __tstate = wxPyBeginAllowThreads();
12481 (arg1)->SetPointSize(arg2);
12482 wxPyEndAllowThreads(__tstate);
12483 if (PyErr_Occurred()) SWIG_fail;
12484 }
12485 resultobj = SWIG_Py_Void();
12486 return resultobj;
12487fail:
12488 return NULL;
12489}
12490
12491
12492SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12493 PyObject *resultobj = 0;
12494 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12495 wxSize *arg2 = 0 ;
12496 void *argp1 = 0 ;
12497 int res1 = 0 ;
12498 wxSize temp2 ;
12499 PyObject * obj0 = 0 ;
12500 PyObject * obj1 = 0 ;
12501 char * kwnames[] = {
12502 (char *) "self",(char *) "pixelSize", NULL
12503 };
12504
12505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12507 if (!SWIG_IsOK(res1)) {
12508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12509 }
12510 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12511 {
12512 arg2 = &temp2;
12513 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12514 }
12515 {
12516 PyThreadState* __tstate = wxPyBeginAllowThreads();
12517 (arg1)->SetPixelSize((wxSize const &)*arg2);
12518 wxPyEndAllowThreads(__tstate);
12519 if (PyErr_Occurred()) SWIG_fail;
12520 }
12521 resultobj = SWIG_Py_Void();
12522 return resultobj;
12523fail:
12524 return NULL;
12525}
12526
12527
12528SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12529 PyObject *resultobj = 0;
12530 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12531 wxFontStyle arg2 ;
12532 void *argp1 = 0 ;
12533 int res1 = 0 ;
12534 int val2 ;
12535 int ecode2 = 0 ;
12536 PyObject * obj0 = 0 ;
12537 PyObject * obj1 = 0 ;
12538 char * kwnames[] = {
12539 (char *) "self",(char *) "style", NULL
12540 };
12541
12542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12544 if (!SWIG_IsOK(res1)) {
12545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12546 }
12547 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12548 ecode2 = SWIG_AsVal_int(obj1, &val2);
12549 if (!SWIG_IsOK(ecode2)) {
12550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12551 }
12552 arg2 = static_cast< wxFontStyle >(val2);
12553 {
12554 PyThreadState* __tstate = wxPyBeginAllowThreads();
12555 (arg1)->SetStyle(arg2);
12556 wxPyEndAllowThreads(__tstate);
12557 if (PyErr_Occurred()) SWIG_fail;
12558 }
12559 resultobj = SWIG_Py_Void();
12560 return resultobj;
12561fail:
12562 return NULL;
12563}
12564
12565
12566SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12567 PyObject *resultobj = 0;
12568 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12569 wxFontWeight arg2 ;
12570 void *argp1 = 0 ;
12571 int res1 = 0 ;
12572 int val2 ;
12573 int ecode2 = 0 ;
12574 PyObject * obj0 = 0 ;
12575 PyObject * obj1 = 0 ;
12576 char * kwnames[] = {
12577 (char *) "self",(char *) "weight", NULL
12578 };
12579
12580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12582 if (!SWIG_IsOK(res1)) {
12583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12584 }
12585 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12586 ecode2 = SWIG_AsVal_int(obj1, &val2);
12587 if (!SWIG_IsOK(ecode2)) {
12588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12589 }
12590 arg2 = static_cast< wxFontWeight >(val2);
12591 {
12592 PyThreadState* __tstate = wxPyBeginAllowThreads();
12593 (arg1)->SetWeight(arg2);
12594 wxPyEndAllowThreads(__tstate);
12595 if (PyErr_Occurred()) SWIG_fail;
12596 }
12597 resultobj = SWIG_Py_Void();
12598 return resultobj;
12599fail:
12600 return NULL;
12601}
12602
12603
12604SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12605 PyObject *resultobj = 0;
12606 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12607 bool arg2 ;
12608 void *argp1 = 0 ;
12609 int res1 = 0 ;
12610 bool val2 ;
12611 int ecode2 = 0 ;
12612 PyObject * obj0 = 0 ;
12613 PyObject * obj1 = 0 ;
12614 char * kwnames[] = {
12615 (char *) "self",(char *) "underlined", NULL
12616 };
12617
12618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12620 if (!SWIG_IsOK(res1)) {
12621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12622 }
12623 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12624 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12625 if (!SWIG_IsOK(ecode2)) {
12626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12627 }
12628 arg2 = static_cast< bool >(val2);
12629 {
12630 PyThreadState* __tstate = wxPyBeginAllowThreads();
12631 (arg1)->SetUnderlined(arg2);
12632 wxPyEndAllowThreads(__tstate);
12633 if (PyErr_Occurred()) SWIG_fail;
12634 }
12635 resultobj = SWIG_Py_Void();
12636 return resultobj;
12637fail:
12638 return NULL;
12639}
12640
12641
12642SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12643 PyObject *resultobj = 0;
12644 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12645 wxString arg2 ;
704eda0c 12646 bool result;
554f62e9
RD
12647 void *argp1 = 0 ;
12648 int res1 = 0 ;
12649 PyObject * obj0 = 0 ;
12650 PyObject * obj1 = 0 ;
12651 char * kwnames[] = {
12652 (char *) "self",(char *) "facename", NULL
12653 };
12654
12655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12657 if (!SWIG_IsOK(res1)) {
12658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12659 }
12660 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12661 {
12662 wxString* sptr = wxString_in_helper(obj1);
12663 if (sptr == NULL) SWIG_fail;
12664 arg2 = *sptr;
12665 delete sptr;
12666 }
12667 {
12668 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12669 result = (bool)(arg1)->SetFaceName(arg2);
554f62e9
RD
12670 wxPyEndAllowThreads(__tstate);
12671 if (PyErr_Occurred()) SWIG_fail;
12672 }
704eda0c
RD
12673 {
12674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12675 }
554f62e9
RD
12676 return resultobj;
12677fail:
12678 return NULL;
12679}
12680
12681
12682SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12683 PyObject *resultobj = 0;
12684 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12685 wxFontFamily arg2 ;
12686 void *argp1 = 0 ;
12687 int res1 = 0 ;
12688 int val2 ;
12689 int ecode2 = 0 ;
12690 PyObject * obj0 = 0 ;
12691 PyObject * obj1 = 0 ;
12692 char * kwnames[] = {
12693 (char *) "self",(char *) "family", NULL
12694 };
12695
12696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12698 if (!SWIG_IsOK(res1)) {
12699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12700 }
12701 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12702 ecode2 = SWIG_AsVal_int(obj1, &val2);
12703 if (!SWIG_IsOK(ecode2)) {
12704 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12705 }
12706 arg2 = static_cast< wxFontFamily >(val2);
12707 {
12708 PyThreadState* __tstate = wxPyBeginAllowThreads();
12709 (arg1)->SetFamily(arg2);
12710 wxPyEndAllowThreads(__tstate);
12711 if (PyErr_Occurred()) SWIG_fail;
12712 }
12713 resultobj = SWIG_Py_Void();
12714 return resultobj;
12715fail:
12716 return NULL;
12717}
12718
12719
12720SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12721 PyObject *resultobj = 0;
12722 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12723 wxFontEncoding arg2 ;
12724 void *argp1 = 0 ;
12725 int res1 = 0 ;
12726 int val2 ;
12727 int ecode2 = 0 ;
12728 PyObject * obj0 = 0 ;
12729 PyObject * obj1 = 0 ;
12730 char * kwnames[] = {
12731 (char *) "self",(char *) "encoding", NULL
12732 };
12733
12734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12736 if (!SWIG_IsOK(res1)) {
12737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12738 }
12739 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12740 ecode2 = SWIG_AsVal_int(obj1, &val2);
12741 if (!SWIG_IsOK(ecode2)) {
12742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12743 }
12744 arg2 = static_cast< wxFontEncoding >(val2);
12745 {
12746 PyThreadState* __tstate = wxPyBeginAllowThreads();
12747 (arg1)->SetEncoding(arg2);
12748 wxPyEndAllowThreads(__tstate);
12749 if (PyErr_Occurred()) SWIG_fail;
12750 }
12751 resultobj = SWIG_Py_Void();
12752 return resultobj;
12753fail:
12754 return NULL;
12755}
12756
12757
12758SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12759 PyObject *resultobj = 0;
12760 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12761 wxString *arg2 = 0 ;
12762 bool result;
12763 void *argp1 = 0 ;
12764 int res1 = 0 ;
12765 bool temp2 = false ;
12766 PyObject * obj0 = 0 ;
12767 PyObject * obj1 = 0 ;
12768 char * kwnames[] = {
12769 (char *) "self",(char *) "s", NULL
12770 };
12771
12772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12774 if (!SWIG_IsOK(res1)) {
12775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12776 }
12777 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12778 {
12779 arg2 = wxString_in_helper(obj1);
12780 if (arg2 == NULL) SWIG_fail;
12781 temp2 = true;
12782 }
12783 {
12784 PyThreadState* __tstate = wxPyBeginAllowThreads();
12785 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12786 wxPyEndAllowThreads(__tstate);
12787 if (PyErr_Occurred()) SWIG_fail;
12788 }
12789 {
12790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12791 }
12792 {
12793 if (temp2)
12794 delete arg2;
12795 }
12796 return resultobj;
12797fail:
12798 {
12799 if (temp2)
12800 delete arg2;
12801 }
12802 return NULL;
d55e5bfc
RD
12803}
12804
12805
554f62e9
RD
12806SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12807 PyObject *resultobj = 0;
12808 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12809 wxString result;
12810 void *argp1 = 0 ;
12811 int res1 = 0 ;
12812 PyObject *swig_obj[1] ;
12813
12814 if (!args) SWIG_fail;
12815 swig_obj[0] = args;
12816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12817 if (!SWIG_IsOK(res1)) {
12818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12819 }
12820 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12821 {
12822 PyThreadState* __tstate = wxPyBeginAllowThreads();
12823 result = ((wxNativeFontInfo const *)arg1)->ToString();
12824 wxPyEndAllowThreads(__tstate);
12825 if (PyErr_Occurred()) SWIG_fail;
12826 }
12827 {
12828#if wxUSE_UNICODE
12829 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12830#else
12831 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12832#endif
12833 }
12834 return resultobj;
12835fail:
12836 return NULL;
d55e5bfc
RD
12837}
12838
12839
554f62e9
RD
12840SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12841 PyObject *resultobj = 0;
12842 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12843 wxString result;
12844 void *argp1 = 0 ;
12845 int res1 = 0 ;
12846 PyObject *swig_obj[1] ;
12847
12848 if (!args) SWIG_fail;
12849 swig_obj[0] = args;
12850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12851 if (!SWIG_IsOK(res1)) {
12852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12853 }
12854 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12855 {
12856 PyThreadState* __tstate = wxPyBeginAllowThreads();
12857 result = wxNativeFontInfo___str__(arg1);
12858 wxPyEndAllowThreads(__tstate);
12859 if (PyErr_Occurred()) SWIG_fail;
12860 }
12861 {
12862#if wxUSE_UNICODE
12863 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12864#else
12865 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12866#endif
12867 }
12868 return resultobj;
12869fail:
12870 return NULL;
12871}
12872
12873
12874SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12875 PyObject *resultobj = 0;
12876 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12877 wxString *arg2 = 0 ;
12878 bool result;
12879 void *argp1 = 0 ;
12880 int res1 = 0 ;
12881 bool temp2 = false ;
12882 PyObject * obj0 = 0 ;
12883 PyObject * obj1 = 0 ;
12884 char * kwnames[] = {
12885 (char *) "self",(char *) "s", NULL
12886 };
12887
12888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12890 if (!SWIG_IsOK(res1)) {
12891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12892 }
12893 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12894 {
12895 arg2 = wxString_in_helper(obj1);
12896 if (arg2 == NULL) SWIG_fail;
12897 temp2 = true;
12898 }
12899 {
12900 PyThreadState* __tstate = wxPyBeginAllowThreads();
12901 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12902 wxPyEndAllowThreads(__tstate);
12903 if (PyErr_Occurred()) SWIG_fail;
12904 }
12905 {
12906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12907 }
12908 {
12909 if (temp2)
12910 delete arg2;
12911 }
12912 return resultobj;
12913fail:
12914 {
12915 if (temp2)
12916 delete arg2;
12917 }
12918 return NULL;
a2569024
RD
12919}
12920
12921
554f62e9
RD
12922SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12923 PyObject *resultobj = 0;
12924 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12925 wxString result;
12926 void *argp1 = 0 ;
12927 int res1 = 0 ;
12928 PyObject *swig_obj[1] ;
12929
12930 if (!args) SWIG_fail;
12931 swig_obj[0] = args;
12932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12933 if (!SWIG_IsOK(res1)) {
12934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12935 }
12936 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12937 {
12938 PyThreadState* __tstate = wxPyBeginAllowThreads();
12939 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12940 wxPyEndAllowThreads(__tstate);
12941 if (PyErr_Occurred()) SWIG_fail;
12942 }
12943 {
12944#if wxUSE_UNICODE
12945 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12946#else
12947 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12948#endif
12949 }
12950 return resultobj;
12951fail:
12952 return NULL;
d55e5bfc
RD
12953}
12954
12955
554f62e9
RD
12956SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12957 PyObject *obj;
12958 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12959 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12960 return SWIG_Py_Void();
d55e5bfc
RD
12961}
12962
554f62e9
RD
12963SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12964 return SWIG_Python_InitShadowInstance(args);
12965}
d55e5bfc 12966
554f62e9
RD
12967SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12968 PyObject *resultobj = 0;
12969 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12970 wxString *arg2 = (wxString *) 0 ;
12971 void *argp1 = 0 ;
12972 int res1 = 0 ;
12973 bool temp2 = false ;
12974 PyObject *swig_obj[2] ;
12975
12976 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12978 if (!SWIG_IsOK(res1)) {
12979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12980 }
12981 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12982 {
12983 arg2 = wxString_in_helper(swig_obj[1]);
12984 if (arg2 == NULL) SWIG_fail;
12985 temp2 = true;
12986 }
12987 if (arg1) (arg1)->facename = *arg2;
12988
12989 resultobj = SWIG_Py_Void();
12990 {
12991 if (temp2)
12992 delete arg2;
12993 }
12994 return resultobj;
12995fail:
12996 {
12997 if (temp2)
12998 delete arg2;
12999 }
13000 return NULL;
d55e5bfc
RD
13001}
13002
13003
554f62e9
RD
13004SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13005 PyObject *resultobj = 0;
13006 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13007 wxString *result = 0 ;
13008 void *argp1 = 0 ;
13009 int res1 = 0 ;
13010 PyObject *swig_obj[1] ;
13011
13012 if (!args) SWIG_fail;
13013 swig_obj[0] = args;
13014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13015 if (!SWIG_IsOK(res1)) {
13016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13017 }
13018 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13019 result = (wxString *)& ((arg1)->facename);
13020 {
13021#if wxUSE_UNICODE
13022 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13023#else
13024 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13025#endif
13026 }
13027 return resultobj;
13028fail:
13029 return NULL;
d55e5bfc
RD
13030}
13031
13032
554f62e9
RD
13033SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13034 PyObject *resultobj = 0;
13035 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13036 wxFontEncoding arg2 ;
13037 void *argp1 = 0 ;
13038 int res1 = 0 ;
13039 int val2 ;
13040 int ecode2 = 0 ;
13041 PyObject *swig_obj[2] ;
13042
13043 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13045 if (!SWIG_IsOK(res1)) {
13046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13047 }
13048 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13049 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13050 if (!SWIG_IsOK(ecode2)) {
13051 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13052 }
13053 arg2 = static_cast< wxFontEncoding >(val2);
13054 if (arg1) (arg1)->encoding = arg2;
13055
13056 resultobj = SWIG_Py_Void();
13057 return resultobj;
13058fail:
13059 return NULL;
d55e5bfc
RD
13060}
13061
13062
554f62e9
RD
13063SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13064 PyObject *resultobj = 0;
13065 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13066 wxFontEncoding result;
13067 void *argp1 = 0 ;
13068 int res1 = 0 ;
13069 PyObject *swig_obj[1] ;
13070
13071 if (!args) SWIG_fail;
13072 swig_obj[0] = args;
13073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13074 if (!SWIG_IsOK(res1)) {
13075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13076 }
13077 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13078 result = (wxFontEncoding) ((arg1)->encoding);
13079 resultobj = SWIG_From_int(static_cast< int >(result));
13080 return resultobj;
13081fail:
13082 return NULL;
d55e5bfc
RD
13083}
13084
13085
554f62e9
RD
13086SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13087 PyObject *resultobj = 0;
13088 wxNativeEncodingInfo *result = 0 ;
13089
13090 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13091 {
13092 PyThreadState* __tstate = wxPyBeginAllowThreads();
13093 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13094 wxPyEndAllowThreads(__tstate);
13095 if (PyErr_Occurred()) SWIG_fail;
13096 }
13097 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13098 return resultobj;
13099fail:
13100 return NULL;
d55e5bfc
RD
13101}
13102
13103
554f62e9
RD
13104SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13105 PyObject *resultobj = 0;
13106 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13107 void *argp1 = 0 ;
13108 int res1 = 0 ;
13109 PyObject *swig_obj[1] ;
13110
13111 if (!args) SWIG_fail;
13112 swig_obj[0] = args;
13113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13114 if (!SWIG_IsOK(res1)) {
13115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13116 }
13117 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13118 {
13119 PyThreadState* __tstate = wxPyBeginAllowThreads();
13120 delete arg1;
d55e5bfc 13121
554f62e9
RD
13122 wxPyEndAllowThreads(__tstate);
13123 if (PyErr_Occurred()) SWIG_fail;
13124 }
13125 resultobj = SWIG_Py_Void();
13126 return resultobj;
13127fail:
13128 return NULL;
13129}
13130
13131
13132SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13133 PyObject *resultobj = 0;
13134 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13135 wxString *arg2 = 0 ;
13136 bool result;
13137 void *argp1 = 0 ;
13138 int res1 = 0 ;
13139 bool temp2 = false ;
13140 PyObject * obj0 = 0 ;
13141 PyObject * obj1 = 0 ;
13142 char * kwnames[] = {
13143 (char *) "self",(char *) "s", NULL
13144 };
13145
13146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13148 if (!SWIG_IsOK(res1)) {
13149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13150 }
13151 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13152 {
13153 arg2 = wxString_in_helper(obj1);
13154 if (arg2 == NULL) SWIG_fail;
13155 temp2 = true;
13156 }
13157 {
13158 PyThreadState* __tstate = wxPyBeginAllowThreads();
13159 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13160 wxPyEndAllowThreads(__tstate);
13161 if (PyErr_Occurred()) SWIG_fail;
13162 }
13163 {
13164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13165 }
13166 {
13167 if (temp2)
13168 delete arg2;
13169 }
13170 return resultobj;
13171fail:
13172 {
13173 if (temp2)
13174 delete arg2;
13175 }
13176 return NULL;
d55e5bfc
RD
13177}
13178
13179
554f62e9
RD
13180SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13181 PyObject *resultobj = 0;
13182 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13183 wxString result;
13184 void *argp1 = 0 ;
13185 int res1 = 0 ;
13186 PyObject *swig_obj[1] ;
13187
13188 if (!args) SWIG_fail;
13189 swig_obj[0] = args;
13190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13191 if (!SWIG_IsOK(res1)) {
13192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13193 }
13194 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13195 {
13196 PyThreadState* __tstate = wxPyBeginAllowThreads();
13197 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13198 wxPyEndAllowThreads(__tstate);
13199 if (PyErr_Occurred()) SWIG_fail;
13200 }
13201 {
13202#if wxUSE_UNICODE
13203 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13204#else
13205 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13206#endif
13207 }
13208 return resultobj;
13209fail:
13210 return NULL;
d55e5bfc
RD
13211}
13212
13213
554f62e9
RD
13214SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13215 PyObject *obj;
13216 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13217 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13218 return SWIG_Py_Void();
d55e5bfc
RD
13219}
13220
554f62e9
RD
13221SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13222 return SWIG_Python_InitShadowInstance(args);
13223}
d55e5bfc 13224
554f62e9
RD
13225SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13226 PyObject *resultobj = 0;
13227 wxFontEncoding arg1 ;
13228 wxNativeEncodingInfo *result = 0 ;
13229 int val1 ;
13230 int ecode1 = 0 ;
13231 PyObject * obj0 = 0 ;
13232 char * kwnames[] = {
13233 (char *) "encoding", NULL
13234 };
13235
13236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13237 ecode1 = SWIG_AsVal_int(obj0, &val1);
13238 if (!SWIG_IsOK(ecode1)) {
13239 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13240 }
13241 arg1 = static_cast< wxFontEncoding >(val1);
13242 {
13243 PyThreadState* __tstate = wxPyBeginAllowThreads();
13244 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13245 wxPyEndAllowThreads(__tstate);
13246 if (PyErr_Occurred()) SWIG_fail;
13247 }
13248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13249 return resultobj;
13250fail:
13251 return NULL;
13252}
13253
13254
13255SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13256 PyObject *resultobj = 0;
13257 wxNativeEncodingInfo *arg1 = 0 ;
13258 bool result;
13259 void *argp1 = 0 ;
13260 int res1 = 0 ;
13261 PyObject * obj0 = 0 ;
13262 char * kwnames[] = {
13263 (char *) "info", NULL
13264 };
13265
13266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13267 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13268 if (!SWIG_IsOK(res1)) {
13269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13270 }
13271 if (!argp1) {
13272 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13273 }
13274 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13275 {
13276 PyThreadState* __tstate = wxPyBeginAllowThreads();
13277 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13278 wxPyEndAllowThreads(__tstate);
13279 if (PyErr_Occurred()) SWIG_fail;
13280 }
13281 {
13282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13283 }
13284 return resultobj;
13285fail:
13286 return NULL;
d55e5bfc
RD
13287}
13288
13289
554f62e9
RD
13290SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13291 PyObject *resultobj = 0;
13292 wxFontMapper *result = 0 ;
13293
13294 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13295 {
13296 PyThreadState* __tstate = wxPyBeginAllowThreads();
13297 result = (wxFontMapper *)new wxFontMapper();
13298 wxPyEndAllowThreads(__tstate);
13299 if (PyErr_Occurred()) SWIG_fail;
13300 }
13301 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13302 return resultobj;
13303fail:
13304 return NULL;
d55e5bfc
RD
13305}
13306
13307
554f62e9
RD
13308SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13309 PyObject *resultobj = 0;
13310 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13311 void *argp1 = 0 ;
13312 int res1 = 0 ;
13313 PyObject *swig_obj[1] ;
13314
13315 if (!args) SWIG_fail;
13316 swig_obj[0] = args;
13317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13318 if (!SWIG_IsOK(res1)) {
13319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13320 }
13321 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13322 {
13323 PyThreadState* __tstate = wxPyBeginAllowThreads();
13324 delete arg1;
d55e5bfc 13325
554f62e9
RD
13326 wxPyEndAllowThreads(__tstate);
13327 if (PyErr_Occurred()) SWIG_fail;
13328 }
13329 resultobj = SWIG_Py_Void();
13330 return resultobj;
13331fail:
13332 return NULL;
d55e5bfc
RD
13333}
13334
13335
554f62e9
RD
13336SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13337 PyObject *resultobj = 0;
13338 wxFontMapper *result = 0 ;
13339
13340 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13341 {
13342 PyThreadState* __tstate = wxPyBeginAllowThreads();
13343 result = (wxFontMapper *)wxFontMapper::Get();
13344 wxPyEndAllowThreads(__tstate);
13345 if (PyErr_Occurred()) SWIG_fail;
13346 }
13347 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13348 return resultobj;
13349fail:
13350 return NULL;
13351}
13352
13353
13354SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13355 PyObject *resultobj = 0;
13356 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13357 wxFontMapper *result = 0 ;
13358 void *argp1 = 0 ;
13359 int res1 = 0 ;
13360 PyObject * obj0 = 0 ;
13361 char * kwnames[] = {
13362 (char *) "mapper", NULL
13363 };
13364
13365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13367 if (!SWIG_IsOK(res1)) {
13368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13369 }
13370 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13371 {
13372 PyThreadState* __tstate = wxPyBeginAllowThreads();
13373 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13374 wxPyEndAllowThreads(__tstate);
13375 if (PyErr_Occurred()) SWIG_fail;
13376 }
13377 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13378 return resultobj;
13379fail:
13380 return NULL;
13381}
13382
13383
13384SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13385 PyObject *resultobj = 0;
13386 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13387 wxString *arg2 = 0 ;
13388 bool arg3 = (bool) true ;
13389 wxFontEncoding result;
13390 void *argp1 = 0 ;
13391 int res1 = 0 ;
13392 bool temp2 = false ;
13393 bool val3 ;
13394 int ecode3 = 0 ;
13395 PyObject * obj0 = 0 ;
13396 PyObject * obj1 = 0 ;
13397 PyObject * obj2 = 0 ;
13398 char * kwnames[] = {
13399 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13400 };
13401
13402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13404 if (!SWIG_IsOK(res1)) {
13405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13406 }
13407 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13408 {
13409 arg2 = wxString_in_helper(obj1);
13410 if (arg2 == NULL) SWIG_fail;
13411 temp2 = true;
13412 }
13413 if (obj2) {
13414 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13415 if (!SWIG_IsOK(ecode3)) {
13416 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13417 }
13418 arg3 = static_cast< bool >(val3);
13419 }
13420 {
13421 PyThreadState* __tstate = wxPyBeginAllowThreads();
13422 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13423 wxPyEndAllowThreads(__tstate);
13424 if (PyErr_Occurred()) SWIG_fail;
13425 }
13426 resultobj = SWIG_From_int(static_cast< int >(result));
13427 {
13428 if (temp2)
13429 delete arg2;
13430 }
13431 return resultobj;
13432fail:
13433 {
13434 if (temp2)
13435 delete arg2;
13436 }
13437 return NULL;
d55e5bfc
RD
13438}
13439
13440
554f62e9
RD
13441SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13442 PyObject *resultobj = 0;
13443 size_t result;
13444
13445 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13446 {
13447 PyThreadState* __tstate = wxPyBeginAllowThreads();
13448 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13449 wxPyEndAllowThreads(__tstate);
13450 if (PyErr_Occurred()) SWIG_fail;
13451 }
13452 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13453 return resultobj;
13454fail:
13455 return NULL;
13456}
13457
13458
13459SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13460 PyObject *resultobj = 0;
13461 size_t arg1 ;
13462 wxFontEncoding result;
13463 size_t val1 ;
13464 int ecode1 = 0 ;
13465 PyObject * obj0 = 0 ;
13466 char * kwnames[] = {
13467 (char *) "n", NULL
13468 };
13469
13470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13471 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13472 if (!SWIG_IsOK(ecode1)) {
13473 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13474 }
13475 arg1 = static_cast< size_t >(val1);
13476 {
13477 PyThreadState* __tstate = wxPyBeginAllowThreads();
13478 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13479 wxPyEndAllowThreads(__tstate);
13480 if (PyErr_Occurred()) SWIG_fail;
13481 }
13482 resultobj = SWIG_From_int(static_cast< int >(result));
13483 return resultobj;
13484fail:
13485 return NULL;
13486}
13487
13488
13489SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13490 PyObject *resultobj = 0;
13491 wxFontEncoding arg1 ;
13492 wxString result;
13493 int val1 ;
13494 int ecode1 = 0 ;
13495 PyObject * obj0 = 0 ;
13496 char * kwnames[] = {
13497 (char *) "encoding", NULL
13498 };
13499
13500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13501 ecode1 = SWIG_AsVal_int(obj0, &val1);
13502 if (!SWIG_IsOK(ecode1)) {
13503 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13504 }
13505 arg1 = static_cast< wxFontEncoding >(val1);
13506 {
13507 PyThreadState* __tstate = wxPyBeginAllowThreads();
13508 result = wxFontMapper::GetEncodingName(arg1);
13509 wxPyEndAllowThreads(__tstate);
13510 if (PyErr_Occurred()) SWIG_fail;
13511 }
13512 {
13513#if wxUSE_UNICODE
13514 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13515#else
13516 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13517#endif
13518 }
13519 return resultobj;
13520fail:
13521 return NULL;
d55e5bfc
RD
13522}
13523
13524
554f62e9
RD
13525SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13526 PyObject *resultobj = 0;
13527 wxFontEncoding arg1 ;
13528 wxString result;
13529 int val1 ;
13530 int ecode1 = 0 ;
13531 PyObject * obj0 = 0 ;
13532 char * kwnames[] = {
13533 (char *) "encoding", NULL
13534 };
13535
13536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13537 ecode1 = SWIG_AsVal_int(obj0, &val1);
13538 if (!SWIG_IsOK(ecode1)) {
13539 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13540 }
13541 arg1 = static_cast< wxFontEncoding >(val1);
13542 {
13543 PyThreadState* __tstate = wxPyBeginAllowThreads();
13544 result = wxFontMapper::GetEncodingDescription(arg1);
13545 wxPyEndAllowThreads(__tstate);
13546 if (PyErr_Occurred()) SWIG_fail;
13547 }
13548 {
13549#if wxUSE_UNICODE
13550 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13551#else
13552 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13553#endif
13554 }
13555 return resultobj;
13556fail:
13557 return NULL;
d55e5bfc
RD
13558}
13559
13560
554f62e9
RD
13561SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13562 PyObject *resultobj = 0;
13563 wxString *arg1 = 0 ;
13564 wxFontEncoding result;
13565 bool temp1 = false ;
13566 PyObject * obj0 = 0 ;
13567 char * kwnames[] = {
13568 (char *) "name", NULL
13569 };
13570
13571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13572 {
13573 arg1 = wxString_in_helper(obj0);
13574 if (arg1 == NULL) SWIG_fail;
13575 temp1 = true;
13576 }
13577 {
13578 PyThreadState* __tstate = wxPyBeginAllowThreads();
13579 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13580 wxPyEndAllowThreads(__tstate);
13581 if (PyErr_Occurred()) SWIG_fail;
13582 }
13583 resultobj = SWIG_From_int(static_cast< int >(result));
13584 {
13585 if (temp1)
13586 delete arg1;
13587 }
13588 return resultobj;
13589fail:
13590 {
13591 if (temp1)
13592 delete arg1;
13593 }
13594 return NULL;
d55e5bfc
RD
13595}
13596
13597
554f62e9
RD
13598SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13599 PyObject *resultobj = 0;
13600 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13601 wxString *arg2 = 0 ;
13602 void *argp1 = 0 ;
13603 int res1 = 0 ;
13604 bool temp2 = false ;
13605 PyObject * obj0 = 0 ;
13606 PyObject * obj1 = 0 ;
13607 char * kwnames[] = {
13608 (char *) "self",(char *) "prefix", NULL
13609 };
13610
13611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13613 if (!SWIG_IsOK(res1)) {
13614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13615 }
13616 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13617 {
13618 arg2 = wxString_in_helper(obj1);
13619 if (arg2 == NULL) SWIG_fail;
13620 temp2 = true;
13621 }
13622 {
13623 PyThreadState* __tstate = wxPyBeginAllowThreads();
13624 (arg1)->SetConfigPath((wxString const &)*arg2);
13625 wxPyEndAllowThreads(__tstate);
13626 if (PyErr_Occurred()) SWIG_fail;
13627 }
13628 resultobj = SWIG_Py_Void();
13629 {
13630 if (temp2)
13631 delete arg2;
13632 }
13633 return resultobj;
13634fail:
13635 {
13636 if (temp2)
13637 delete arg2;
13638 }
13639 return NULL;
d55e5bfc
RD
13640}
13641
13642
554f62e9
RD
13643SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13644 PyObject *resultobj = 0;
13645 wxString result;
13646
13647 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13648 {
13649 PyThreadState* __tstate = wxPyBeginAllowThreads();
13650 result = wxFontMapper::GetDefaultConfigPath();
13651 wxPyEndAllowThreads(__tstate);
13652 if (PyErr_Occurred()) SWIG_fail;
13653 }
13654 {
13655#if wxUSE_UNICODE
13656 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13657#else
13658 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13659#endif
13660 }
13661 return resultobj;
13662fail:
13663 return NULL;
13664}
13665
13666
13667SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13668 PyObject *resultobj = 0;
13669 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13670 wxFontEncoding arg2 ;
13671 wxString const &arg3_defvalue = wxPyEmptyString ;
13672 wxString *arg3 = (wxString *) &arg3_defvalue ;
13673 bool arg4 = (bool) true ;
13674 PyObject *result = 0 ;
13675 void *argp1 = 0 ;
13676 int res1 = 0 ;
13677 int val2 ;
13678 int ecode2 = 0 ;
13679 bool temp3 = false ;
13680 bool val4 ;
13681 int ecode4 = 0 ;
13682 PyObject * obj0 = 0 ;
13683 PyObject * obj1 = 0 ;
13684 PyObject * obj2 = 0 ;
13685 PyObject * obj3 = 0 ;
13686 char * kwnames[] = {
13687 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13688 };
13689
13690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13692 if (!SWIG_IsOK(res1)) {
13693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13694 }
13695 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13696 ecode2 = SWIG_AsVal_int(obj1, &val2);
13697 if (!SWIG_IsOK(ecode2)) {
13698 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13699 }
13700 arg2 = static_cast< wxFontEncoding >(val2);
13701 if (obj2) {
d55e5bfc 13702 {
554f62e9
RD
13703 arg3 = wxString_in_helper(obj2);
13704 if (arg3 == NULL) SWIG_fail;
13705 temp3 = true;
d55e5bfc 13706 }
554f62e9
RD
13707 }
13708 if (obj3) {
13709 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13710 if (!SWIG_IsOK(ecode4)) {
13711 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13712 }
13713 arg4 = static_cast< bool >(val4);
13714 }
13715 {
13716 PyThreadState* __tstate = wxPyBeginAllowThreads();
13717 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13718 wxPyEndAllowThreads(__tstate);
13719 if (PyErr_Occurred()) SWIG_fail;
13720 }
13721 resultobj = result;
13722 {
13723 if (temp3)
13724 delete arg3;
13725 }
13726 return resultobj;
13727fail:
13728 {
13729 if (temp3)
13730 delete arg3;
13731 }
13732 return NULL;
13733}
13734
13735
13736SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13737 PyObject *resultobj = 0;
13738 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13739 wxFontEncoding arg2 ;
13740 wxString const &arg3_defvalue = wxPyEmptyString ;
13741 wxString *arg3 = (wxString *) &arg3_defvalue ;
13742 bool result;
13743 void *argp1 = 0 ;
13744 int res1 = 0 ;
13745 int val2 ;
13746 int ecode2 = 0 ;
13747 bool temp3 = false ;
13748 PyObject * obj0 = 0 ;
13749 PyObject * obj1 = 0 ;
13750 PyObject * obj2 = 0 ;
13751 char * kwnames[] = {
13752 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13753 };
13754
13755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13757 if (!SWIG_IsOK(res1)) {
13758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13759 }
13760 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13761 ecode2 = SWIG_AsVal_int(obj1, &val2);
13762 if (!SWIG_IsOK(ecode2)) {
13763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13764 }
13765 arg2 = static_cast< wxFontEncoding >(val2);
13766 if (obj2) {
093d3ff1 13767 {
554f62e9
RD
13768 arg3 = wxString_in_helper(obj2);
13769 if (arg3 == NULL) SWIG_fail;
13770 temp3 = true;
d55e5bfc 13771 }
554f62e9
RD
13772 }
13773 {
13774 PyThreadState* __tstate = wxPyBeginAllowThreads();
13775 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13776 wxPyEndAllowThreads(__tstate);
13777 if (PyErr_Occurred()) SWIG_fail;
13778 }
13779 {
13780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13781 }
13782 {
13783 if (temp3)
13784 delete arg3;
13785 }
13786 return resultobj;
13787fail:
13788 {
13789 if (temp3)
13790 delete arg3;
13791 }
13792 return NULL;
13793}
13794
13795
13796SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13797 PyObject *resultobj = 0;
13798 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13799 wxWindow *arg2 = (wxWindow *) 0 ;
13800 void *argp1 = 0 ;
13801 int res1 = 0 ;
13802 void *argp2 = 0 ;
13803 int res2 = 0 ;
13804 PyObject * obj0 = 0 ;
13805 PyObject * obj1 = 0 ;
13806 char * kwnames[] = {
13807 (char *) "self",(char *) "parent", NULL
13808 };
13809
13810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13812 if (!SWIG_IsOK(res1)) {
13813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13814 }
13815 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13816 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13817 if (!SWIG_IsOK(res2)) {
13818 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13819 }
13820 arg2 = reinterpret_cast< wxWindow * >(argp2);
13821 {
13822 PyThreadState* __tstate = wxPyBeginAllowThreads();
13823 (arg1)->SetDialogParent(arg2);
13824 wxPyEndAllowThreads(__tstate);
13825 if (PyErr_Occurred()) SWIG_fail;
13826 }
13827 resultobj = SWIG_Py_Void();
13828 return resultobj;
13829fail:
13830 return NULL;
13831}
13832
13833
13834SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13835 PyObject *resultobj = 0;
13836 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13837 wxString *arg2 = 0 ;
13838 void *argp1 = 0 ;
13839 int res1 = 0 ;
13840 bool temp2 = false ;
13841 PyObject * obj0 = 0 ;
13842 PyObject * obj1 = 0 ;
13843 char * kwnames[] = {
13844 (char *) "self",(char *) "title", NULL
13845 };
13846
13847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13849 if (!SWIG_IsOK(res1)) {
13850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13851 }
13852 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13853 {
13854 arg2 = wxString_in_helper(obj1);
13855 if (arg2 == NULL) SWIG_fail;
13856 temp2 = true;
13857 }
13858 {
13859 PyThreadState* __tstate = wxPyBeginAllowThreads();
13860 (arg1)->SetDialogTitle((wxString const &)*arg2);
13861 wxPyEndAllowThreads(__tstate);
13862 if (PyErr_Occurred()) SWIG_fail;
13863 }
13864 resultobj = SWIG_Py_Void();
13865 {
13866 if (temp2)
13867 delete arg2;
13868 }
13869 return resultobj;
13870fail:
13871 {
13872 if (temp2)
13873 delete arg2;
13874 }
13875 return NULL;
13876}
13877
13878
13879SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13880 PyObject *obj;
13881 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13882 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13883 return SWIG_Py_Void();
13884}
13885
13886SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13887 return SWIG_Python_InitShadowInstance(args);
13888}
13889
13890SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13891 PyObject *resultobj = 0;
13892 int arg1 ;
13893 int arg2 ;
13894 int arg3 ;
13895 int arg4 ;
13896 bool arg5 = (bool) false ;
13897 wxString const &arg6_defvalue = wxPyEmptyString ;
13898 wxString *arg6 = (wxString *) &arg6_defvalue ;
13899 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13900 wxFont *result = 0 ;
13901 int val1 ;
13902 int ecode1 = 0 ;
13903 int val2 ;
13904 int ecode2 = 0 ;
13905 int val3 ;
13906 int ecode3 = 0 ;
13907 int val4 ;
13908 int ecode4 = 0 ;
13909 bool val5 ;
13910 int ecode5 = 0 ;
13911 bool temp6 = false ;
13912 int val7 ;
13913 int ecode7 = 0 ;
13914 PyObject * obj0 = 0 ;
13915 PyObject * obj1 = 0 ;
13916 PyObject * obj2 = 0 ;
13917 PyObject * obj3 = 0 ;
13918 PyObject * obj4 = 0 ;
13919 PyObject * obj5 = 0 ;
13920 PyObject * obj6 = 0 ;
13921 char * kwnames[] = {
13922 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13923 };
13924
13925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13926 ecode1 = SWIG_AsVal_int(obj0, &val1);
13927 if (!SWIG_IsOK(ecode1)) {
13928 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13929 }
13930 arg1 = static_cast< int >(val1);
13931 ecode2 = SWIG_AsVal_int(obj1, &val2);
13932 if (!SWIG_IsOK(ecode2)) {
13933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13934 }
13935 arg2 = static_cast< int >(val2);
13936 ecode3 = SWIG_AsVal_int(obj2, &val3);
13937 if (!SWIG_IsOK(ecode3)) {
13938 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13939 }
13940 arg3 = static_cast< int >(val3);
13941 ecode4 = SWIG_AsVal_int(obj3, &val4);
13942 if (!SWIG_IsOK(ecode4)) {
13943 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13944 }
13945 arg4 = static_cast< int >(val4);
13946 if (obj4) {
13947 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13948 if (!SWIG_IsOK(ecode5)) {
13949 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13950 }
13951 arg5 = static_cast< bool >(val5);
13952 }
13953 if (obj5) {
d55e5bfc 13954 {
554f62e9
RD
13955 arg6 = wxString_in_helper(obj5);
13956 if (arg6 == NULL) SWIG_fail;
13957 temp6 = true;
d55e5bfc 13958 }
554f62e9
RD
13959 }
13960 if (obj6) {
13961 ecode7 = SWIG_AsVal_int(obj6, &val7);
13962 if (!SWIG_IsOK(ecode7)) {
13963 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13964 }
13965 arg7 = static_cast< wxFontEncoding >(val7);
13966 }
13967 {
13968 if (!wxPyCheckForApp()) SWIG_fail;
13969 PyThreadState* __tstate = wxPyBeginAllowThreads();
13970 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13971 wxPyEndAllowThreads(__tstate);
13972 if (PyErr_Occurred()) SWIG_fail;
13973 }
13974 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13975 {
13976 if (temp6)
13977 delete arg6;
13978 }
13979 return resultobj;
13980fail:
13981 {
13982 if (temp6)
13983 delete arg6;
13984 }
13985 return NULL;
d55e5bfc
RD
13986}
13987
13988
554f62e9
RD
13989SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13990 PyObject *resultobj = 0;
13991 wxFont *arg1 = (wxFont *) 0 ;
13992 void *argp1 = 0 ;
13993 int res1 = 0 ;
13994 PyObject *swig_obj[1] ;
13995
13996 if (!args) SWIG_fail;
13997 swig_obj[0] = args;
13998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13999 if (!SWIG_IsOK(res1)) {
14000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14001 }
14002 arg1 = reinterpret_cast< wxFont * >(argp1);
14003 {
14004 PyThreadState* __tstate = wxPyBeginAllowThreads();
14005 delete arg1;
d55e5bfc 14006
554f62e9
RD
14007 wxPyEndAllowThreads(__tstate);
14008 if (PyErr_Occurred()) SWIG_fail;
14009 }
14010 resultobj = SWIG_Py_Void();
14011 return resultobj;
14012fail:
14013 return NULL;
14014}
14015
14016
14017SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14018 PyObject *resultobj = 0;
14019 wxNativeFontInfo *arg1 = 0 ;
14020 wxFont *result = 0 ;
14021 void *argp1 = 0 ;
14022 int res1 = 0 ;
14023 PyObject * obj0 = 0 ;
14024 char * kwnames[] = {
14025 (char *) "info", NULL
14026 };
14027
14028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14029 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14030 if (!SWIG_IsOK(res1)) {
14031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14032 }
14033 if (!argp1) {
14034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14035 }
14036 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14037 {
14038 if (!wxPyCheckForApp()) SWIG_fail;
14039 PyThreadState* __tstate = wxPyBeginAllowThreads();
14040 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14041 wxPyEndAllowThreads(__tstate);
14042 if (PyErr_Occurred()) SWIG_fail;
14043 }
14044 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14045 return resultobj;
14046fail:
14047 return NULL;
d55e5bfc
RD
14048}
14049
14050
554f62e9
RD
14051SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14052 PyObject *resultobj = 0;
14053 wxString *arg1 = 0 ;
14054 wxFont *result = 0 ;
14055 bool temp1 = false ;
14056 PyObject * obj0 = 0 ;
14057 char * kwnames[] = {
14058 (char *) "info", NULL
14059 };
14060
14061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14062 {
14063 arg1 = wxString_in_helper(obj0);
14064 if (arg1 == NULL) SWIG_fail;
14065 temp1 = true;
14066 }
14067 {
14068 if (!wxPyCheckForApp()) SWIG_fail;
14069 PyThreadState* __tstate = wxPyBeginAllowThreads();
14070 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14071 wxPyEndAllowThreads(__tstate);
14072 if (PyErr_Occurred()) SWIG_fail;
14073 }
14074 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14075 {
14076 if (temp1)
14077 delete arg1;
14078 }
14079 return resultobj;
14080fail:
14081 {
14082 if (temp1)
14083 delete arg1;
14084 }
14085 return NULL;
14086}
14087
14088
14089SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14090 PyObject *resultobj = 0;
14091 int arg1 ;
14092 wxFontFamily arg2 ;
14093 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14094 wxString const &arg4_defvalue = wxPyEmptyString ;
14095 wxString *arg4 = (wxString *) &arg4_defvalue ;
14096 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14097 wxFont *result = 0 ;
14098 int val1 ;
14099 int ecode1 = 0 ;
14100 int val2 ;
14101 int ecode2 = 0 ;
14102 int val3 ;
14103 int ecode3 = 0 ;
14104 bool temp4 = false ;
14105 int val5 ;
14106 int ecode5 = 0 ;
14107 PyObject * obj0 = 0 ;
14108 PyObject * obj1 = 0 ;
14109 PyObject * obj2 = 0 ;
14110 PyObject * obj3 = 0 ;
14111 PyObject * obj4 = 0 ;
14112 char * kwnames[] = {
14113 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14114 };
14115
14116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14117 ecode1 = SWIG_AsVal_int(obj0, &val1);
14118 if (!SWIG_IsOK(ecode1)) {
14119 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14120 }
14121 arg1 = static_cast< int >(val1);
14122 ecode2 = SWIG_AsVal_int(obj1, &val2);
14123 if (!SWIG_IsOK(ecode2)) {
14124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14125 }
14126 arg2 = static_cast< wxFontFamily >(val2);
14127 if (obj2) {
14128 ecode3 = SWIG_AsVal_int(obj2, &val3);
14129 if (!SWIG_IsOK(ecode3)) {
14130 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14131 }
14132 arg3 = static_cast< int >(val3);
14133 }
14134 if (obj3) {
d55e5bfc 14135 {
554f62e9
RD
14136 arg4 = wxString_in_helper(obj3);
14137 if (arg4 == NULL) SWIG_fail;
14138 temp4 = true;
d55e5bfc 14139 }
554f62e9
RD
14140 }
14141 if (obj4) {
14142 ecode5 = SWIG_AsVal_int(obj4, &val5);
14143 if (!SWIG_IsOK(ecode5)) {
14144 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14145 }
14146 arg5 = static_cast< wxFontEncoding >(val5);
14147 }
14148 {
14149 if (!wxPyCheckForApp()) SWIG_fail;
14150 PyThreadState* __tstate = wxPyBeginAllowThreads();
14151 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14152 wxPyEndAllowThreads(__tstate);
14153 if (PyErr_Occurred()) SWIG_fail;
14154 }
14155 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14156 {
14157 if (temp4)
14158 delete arg4;
14159 }
14160 return resultobj;
14161fail:
14162 {
14163 if (temp4)
14164 delete arg4;
14165 }
14166 return NULL;
14167}
14168
14169
14170SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14171 PyObject *resultobj = 0;
14172 wxSize *arg1 = 0 ;
14173 int arg2 ;
14174 int arg3 ;
14175 int arg4 ;
14176 bool arg5 = (bool) false ;
14177 wxString const &arg6_defvalue = wxEmptyString ;
14178 wxString *arg6 = (wxString *) &arg6_defvalue ;
14179 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14180 wxFont *result = 0 ;
14181 wxSize temp1 ;
14182 int val2 ;
14183 int ecode2 = 0 ;
14184 int val3 ;
14185 int ecode3 = 0 ;
14186 int val4 ;
14187 int ecode4 = 0 ;
14188 bool val5 ;
14189 int ecode5 = 0 ;
14190 bool temp6 = false ;
14191 int val7 ;
14192 int ecode7 = 0 ;
14193 PyObject * obj0 = 0 ;
14194 PyObject * obj1 = 0 ;
14195 PyObject * obj2 = 0 ;
14196 PyObject * obj3 = 0 ;
14197 PyObject * obj4 = 0 ;
14198 PyObject * obj5 = 0 ;
14199 PyObject * obj6 = 0 ;
14200 char * kwnames[] = {
14201 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14202 };
14203
14204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14205 {
14206 arg1 = &temp1;
14207 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14208 }
14209 ecode2 = SWIG_AsVal_int(obj1, &val2);
14210 if (!SWIG_IsOK(ecode2)) {
14211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14212 }
14213 arg2 = static_cast< int >(val2);
14214 ecode3 = SWIG_AsVal_int(obj2, &val3);
14215 if (!SWIG_IsOK(ecode3)) {
14216 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14217 }
14218 arg3 = static_cast< int >(val3);
14219 ecode4 = SWIG_AsVal_int(obj3, &val4);
14220 if (!SWIG_IsOK(ecode4)) {
14221 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14222 }
14223 arg4 = static_cast< int >(val4);
14224 if (obj4) {
14225 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14226 if (!SWIG_IsOK(ecode5)) {
14227 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14228 }
14229 arg5 = static_cast< bool >(val5);
14230 }
14231 if (obj5) {
d55e5bfc 14232 {
554f62e9
RD
14233 arg6 = wxString_in_helper(obj5);
14234 if (arg6 == NULL) SWIG_fail;
14235 temp6 = true;
d55e5bfc 14236 }
554f62e9
RD
14237 }
14238 if (obj6) {
14239 ecode7 = SWIG_AsVal_int(obj6, &val7);
14240 if (!SWIG_IsOK(ecode7)) {
14241 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14242 }
14243 arg7 = static_cast< wxFontEncoding >(val7);
14244 }
14245 {
14246 if (!wxPyCheckForApp()) SWIG_fail;
14247 PyThreadState* __tstate = wxPyBeginAllowThreads();
14248 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14249 wxPyEndAllowThreads(__tstate);
14250 if (PyErr_Occurred()) SWIG_fail;
14251 }
14252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14253 {
14254 if (temp6)
14255 delete arg6;
14256 }
14257 return resultobj;
14258fail:
14259 {
14260 if (temp6)
14261 delete arg6;
14262 }
14263 return NULL;
14264}
14265
14266
14267SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14268 PyObject *resultobj = 0;
14269 wxSize *arg1 = 0 ;
14270 wxFontFamily arg2 ;
14271 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14272 wxString const &arg4_defvalue = wxEmptyString ;
14273 wxString *arg4 = (wxString *) &arg4_defvalue ;
14274 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14275 wxFont *result = 0 ;
14276 wxSize temp1 ;
14277 int val2 ;
14278 int ecode2 = 0 ;
14279 int val3 ;
14280 int ecode3 = 0 ;
14281 bool temp4 = false ;
14282 int val5 ;
14283 int ecode5 = 0 ;
14284 PyObject * obj0 = 0 ;
14285 PyObject * obj1 = 0 ;
14286 PyObject * obj2 = 0 ;
14287 PyObject * obj3 = 0 ;
14288 PyObject * obj4 = 0 ;
14289 char * kwnames[] = {
14290 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14291 };
14292
14293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14294 {
14295 arg1 = &temp1;
14296 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14297 }
14298 ecode2 = SWIG_AsVal_int(obj1, &val2);
14299 if (!SWIG_IsOK(ecode2)) {
14300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14301 }
14302 arg2 = static_cast< wxFontFamily >(val2);
14303 if (obj2) {
14304 ecode3 = SWIG_AsVal_int(obj2, &val3);
14305 if (!SWIG_IsOK(ecode3)) {
14306 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14307 }
14308 arg3 = static_cast< int >(val3);
14309 }
14310 if (obj3) {
d55e5bfc 14311 {
554f62e9
RD
14312 arg4 = wxString_in_helper(obj3);
14313 if (arg4 == NULL) SWIG_fail;
14314 temp4 = true;
d55e5bfc 14315 }
554f62e9
RD
14316 }
14317 if (obj4) {
14318 ecode5 = SWIG_AsVal_int(obj4, &val5);
14319 if (!SWIG_IsOK(ecode5)) {
14320 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14321 }
14322 arg5 = static_cast< wxFontEncoding >(val5);
14323 }
14324 {
14325 if (!wxPyCheckForApp()) SWIG_fail;
14326 PyThreadState* __tstate = wxPyBeginAllowThreads();
14327 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14328 wxPyEndAllowThreads(__tstate);
14329 if (PyErr_Occurred()) SWIG_fail;
14330 }
14331 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14332 {
14333 if (temp4)
14334 delete arg4;
14335 }
14336 return resultobj;
14337fail:
14338 {
14339 if (temp4)
14340 delete arg4;
14341 }
14342 return NULL;
d55e5bfc
RD
14343}
14344
14345
554f62e9
RD
14346SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14347 PyObject *resultobj = 0;
14348 wxFont *arg1 = (wxFont *) 0 ;
14349 bool result;
14350 void *argp1 = 0 ;
14351 int res1 = 0 ;
14352 PyObject *swig_obj[1] ;
14353
14354 if (!args) SWIG_fail;
14355 swig_obj[0] = args;
14356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14357 if (!SWIG_IsOK(res1)) {
14358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
14359 }
14360 arg1 = reinterpret_cast< wxFont * >(argp1);
14361 {
14362 PyThreadState* __tstate = wxPyBeginAllowThreads();
14363 result = (bool)((wxFont const *)arg1)->Ok();
14364 wxPyEndAllowThreads(__tstate);
14365 if (PyErr_Occurred()) SWIG_fail;
14366 }
14367 {
14368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14369 }
14370 return resultobj;
14371fail:
14372 return NULL;
14373}
14374
14375
14376SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14377 PyObject *resultobj = 0;
14378 wxFont *arg1 = (wxFont *) 0 ;
14379 wxFont *arg2 = (wxFont *) 0 ;
14380 bool result;
14381 void *argp1 = 0 ;
14382 int res1 = 0 ;
14383 void *argp2 = 0 ;
14384 int res2 = 0 ;
14385 PyObject * obj0 = 0 ;
14386 PyObject * obj1 = 0 ;
14387 char * kwnames[] = {
14388 (char *) "self",(char *) "other", NULL
14389 };
14390
14391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14393 if (!SWIG_IsOK(res1)) {
14394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14395 }
14396 arg1 = reinterpret_cast< wxFont * >(argp1);
14397 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14398 if (!SWIG_IsOK(res2)) {
14399 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14400 }
14401 arg2 = reinterpret_cast< wxFont * >(argp2);
14402 {
14403 PyThreadState* __tstate = wxPyBeginAllowThreads();
14404 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14405 wxPyEndAllowThreads(__tstate);
14406 if (PyErr_Occurred()) SWIG_fail;
14407 }
14408 {
14409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14410 }
14411 return resultobj;
14412fail:
14413 return NULL;
14414}
14415
14416
14417SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14418 PyObject *resultobj = 0;
14419 wxFont *arg1 = (wxFont *) 0 ;
14420 wxFont *arg2 = (wxFont *) 0 ;
14421 bool result;
14422 void *argp1 = 0 ;
14423 int res1 = 0 ;
14424 void *argp2 = 0 ;
14425 int res2 = 0 ;
14426 PyObject * obj0 = 0 ;
14427 PyObject * obj1 = 0 ;
14428 char * kwnames[] = {
14429 (char *) "self",(char *) "other", NULL
14430 };
14431
14432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14434 if (!SWIG_IsOK(res1)) {
14435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14436 }
14437 arg1 = reinterpret_cast< wxFont * >(argp1);
14438 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14439 if (!SWIG_IsOK(res2)) {
14440 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14441 }
14442 arg2 = reinterpret_cast< wxFont * >(argp2);
14443 {
14444 PyThreadState* __tstate = wxPyBeginAllowThreads();
14445 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14446 wxPyEndAllowThreads(__tstate);
14447 if (PyErr_Occurred()) SWIG_fail;
14448 }
14449 {
14450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14451 }
14452 return resultobj;
14453fail:
14454 return NULL;
a2569024
RD
14455}
14456
14457
554f62e9
RD
14458SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14459 PyObject *resultobj = 0;
14460 wxFont *arg1 = (wxFont *) 0 ;
14461 int result;
14462 void *argp1 = 0 ;
14463 int res1 = 0 ;
14464 PyObject *swig_obj[1] ;
14465
14466 if (!args) SWIG_fail;
14467 swig_obj[0] = args;
14468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14469 if (!SWIG_IsOK(res1)) {
14470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14471 }
14472 arg1 = reinterpret_cast< wxFont * >(argp1);
14473 {
14474 PyThreadState* __tstate = wxPyBeginAllowThreads();
14475 result = (int)((wxFont const *)arg1)->GetPointSize();
14476 wxPyEndAllowThreads(__tstate);
14477 if (PyErr_Occurred()) SWIG_fail;
14478 }
14479 resultobj = SWIG_From_int(static_cast< int >(result));
14480 return resultobj;
14481fail:
14482 return NULL;
d55e5bfc
RD
14483}
14484
14485
554f62e9
RD
14486SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14487 PyObject *resultobj = 0;
14488 wxFont *arg1 = (wxFont *) 0 ;
14489 wxSize result;
14490 void *argp1 = 0 ;
14491 int res1 = 0 ;
14492 PyObject *swig_obj[1] ;
14493
14494 if (!args) SWIG_fail;
14495 swig_obj[0] = args;
14496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14497 if (!SWIG_IsOK(res1)) {
14498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14499 }
14500 arg1 = reinterpret_cast< wxFont * >(argp1);
14501 {
14502 PyThreadState* __tstate = wxPyBeginAllowThreads();
14503 result = ((wxFont const *)arg1)->GetPixelSize();
14504 wxPyEndAllowThreads(__tstate);
14505 if (PyErr_Occurred()) SWIG_fail;
14506 }
14507 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14508 return resultobj;
14509fail:
14510 return NULL;
d55e5bfc
RD
14511}
14512
14513
554f62e9
RD
14514SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14515 PyObject *resultobj = 0;
14516 wxFont *arg1 = (wxFont *) 0 ;
14517 bool result;
14518 void *argp1 = 0 ;
14519 int res1 = 0 ;
14520 PyObject *swig_obj[1] ;
14521
14522 if (!args) SWIG_fail;
14523 swig_obj[0] = args;
14524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14525 if (!SWIG_IsOK(res1)) {
14526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14527 }
14528 arg1 = reinterpret_cast< wxFont * >(argp1);
14529 {
14530 PyThreadState* __tstate = wxPyBeginAllowThreads();
14531 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14532 wxPyEndAllowThreads(__tstate);
14533 if (PyErr_Occurred()) SWIG_fail;
14534 }
14535 {
14536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14537 }
14538 return resultobj;
14539fail:
14540 return NULL;
d55e5bfc
RD
14541}
14542
14543
554f62e9
RD
14544SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14545 PyObject *resultobj = 0;
14546 wxFont *arg1 = (wxFont *) 0 ;
14547 int result;
14548 void *argp1 = 0 ;
14549 int res1 = 0 ;
14550 PyObject *swig_obj[1] ;
14551
14552 if (!args) SWIG_fail;
14553 swig_obj[0] = args;
14554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14555 if (!SWIG_IsOK(res1)) {
14556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14557 }
14558 arg1 = reinterpret_cast< wxFont * >(argp1);
14559 {
14560 PyThreadState* __tstate = wxPyBeginAllowThreads();
14561 result = (int)((wxFont const *)arg1)->GetFamily();
14562 wxPyEndAllowThreads(__tstate);
14563 if (PyErr_Occurred()) SWIG_fail;
14564 }
14565 resultobj = SWIG_From_int(static_cast< int >(result));
14566 return resultobj;
14567fail:
14568 return NULL;
d55e5bfc
RD
14569}
14570
14571
554f62e9
RD
14572SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14573 PyObject *resultobj = 0;
14574 wxFont *arg1 = (wxFont *) 0 ;
14575 int result;
14576 void *argp1 = 0 ;
14577 int res1 = 0 ;
14578 PyObject *swig_obj[1] ;
14579
14580 if (!args) SWIG_fail;
14581 swig_obj[0] = args;
14582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14583 if (!SWIG_IsOK(res1)) {
14584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14585 }
14586 arg1 = reinterpret_cast< wxFont * >(argp1);
14587 {
14588 PyThreadState* __tstate = wxPyBeginAllowThreads();
14589 result = (int)((wxFont const *)arg1)->GetStyle();
14590 wxPyEndAllowThreads(__tstate);
14591 if (PyErr_Occurred()) SWIG_fail;
14592 }
14593 resultobj = SWIG_From_int(static_cast< int >(result));
14594 return resultobj;
14595fail:
14596 return NULL;
d55e5bfc
RD
14597}
14598
14599
554f62e9
RD
14600SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14601 PyObject *resultobj = 0;
14602 wxFont *arg1 = (wxFont *) 0 ;
14603 int result;
14604 void *argp1 = 0 ;
14605 int res1 = 0 ;
14606 PyObject *swig_obj[1] ;
14607
14608 if (!args) SWIG_fail;
14609 swig_obj[0] = args;
14610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14611 if (!SWIG_IsOK(res1)) {
14612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14613 }
14614 arg1 = reinterpret_cast< wxFont * >(argp1);
14615 {
14616 PyThreadState* __tstate = wxPyBeginAllowThreads();
14617 result = (int)((wxFont const *)arg1)->GetWeight();
14618 wxPyEndAllowThreads(__tstate);
14619 if (PyErr_Occurred()) SWIG_fail;
14620 }
14621 resultobj = SWIG_From_int(static_cast< int >(result));
14622 return resultobj;
14623fail:
14624 return NULL;
d55e5bfc
RD
14625}
14626
14627
554f62e9
RD
14628SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14629 PyObject *resultobj = 0;
14630 wxFont *arg1 = (wxFont *) 0 ;
14631 bool result;
14632 void *argp1 = 0 ;
14633 int res1 = 0 ;
14634 PyObject *swig_obj[1] ;
14635
14636 if (!args) SWIG_fail;
14637 swig_obj[0] = args;
14638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14639 if (!SWIG_IsOK(res1)) {
14640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14641 }
14642 arg1 = reinterpret_cast< wxFont * >(argp1);
14643 {
14644 PyThreadState* __tstate = wxPyBeginAllowThreads();
14645 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14646 wxPyEndAllowThreads(__tstate);
14647 if (PyErr_Occurred()) SWIG_fail;
14648 }
14649 {
14650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14651 }
14652 return resultobj;
14653fail:
14654 return NULL;
d55e5bfc
RD
14655}
14656
14657
554f62e9
RD
14658SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14659 PyObject *resultobj = 0;
14660 wxFont *arg1 = (wxFont *) 0 ;
14661 wxString result;
14662 void *argp1 = 0 ;
14663 int res1 = 0 ;
14664 PyObject *swig_obj[1] ;
14665
14666 if (!args) SWIG_fail;
14667 swig_obj[0] = args;
14668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14669 if (!SWIG_IsOK(res1)) {
14670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14671 }
14672 arg1 = reinterpret_cast< wxFont * >(argp1);
14673 {
14674 PyThreadState* __tstate = wxPyBeginAllowThreads();
14675 result = ((wxFont const *)arg1)->GetFaceName();
14676 wxPyEndAllowThreads(__tstate);
14677 if (PyErr_Occurred()) SWIG_fail;
14678 }
14679 {
14680#if wxUSE_UNICODE
14681 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14682#else
14683 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14684#endif
14685 }
14686 return resultobj;
14687fail:
14688 return NULL;
d55e5bfc
RD
14689}
14690
14691
554f62e9
RD
14692SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14693 PyObject *resultobj = 0;
14694 wxFont *arg1 = (wxFont *) 0 ;
14695 wxFontEncoding result;
14696 void *argp1 = 0 ;
14697 int res1 = 0 ;
14698 PyObject *swig_obj[1] ;
14699
14700 if (!args) SWIG_fail;
14701 swig_obj[0] = args;
14702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14703 if (!SWIG_IsOK(res1)) {
14704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14705 }
14706 arg1 = reinterpret_cast< wxFont * >(argp1);
14707 {
14708 PyThreadState* __tstate = wxPyBeginAllowThreads();
14709 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14710 wxPyEndAllowThreads(__tstate);
14711 if (PyErr_Occurred()) SWIG_fail;
14712 }
14713 resultobj = SWIG_From_int(static_cast< int >(result));
14714 return resultobj;
14715fail:
14716 return NULL;
d55e5bfc
RD
14717}
14718
14719
554f62e9
RD
14720SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14721 PyObject *resultobj = 0;
14722 wxFont *arg1 = (wxFont *) 0 ;
14723 wxNativeFontInfo *result = 0 ;
14724 void *argp1 = 0 ;
14725 int res1 = 0 ;
14726 PyObject *swig_obj[1] ;
14727
14728 if (!args) SWIG_fail;
14729 swig_obj[0] = args;
14730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14731 if (!SWIG_IsOK(res1)) {
14732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14733 }
14734 arg1 = reinterpret_cast< wxFont * >(argp1);
14735 {
14736 PyThreadState* __tstate = wxPyBeginAllowThreads();
14737 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14738 wxPyEndAllowThreads(__tstate);
14739 if (PyErr_Occurred()) SWIG_fail;
14740 }
14741 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14742 return resultobj;
14743fail:
14744 return NULL;
d55e5bfc
RD
14745}
14746
14747
554f62e9
RD
14748SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14749 PyObject *resultobj = 0;
14750 wxFont *arg1 = (wxFont *) 0 ;
14751 bool result;
14752 void *argp1 = 0 ;
14753 int res1 = 0 ;
14754 PyObject *swig_obj[1] ;
14755
14756 if (!args) SWIG_fail;
14757 swig_obj[0] = args;
14758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14759 if (!SWIG_IsOK(res1)) {
14760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14761 }
14762 arg1 = reinterpret_cast< wxFont * >(argp1);
14763 {
14764 PyThreadState* __tstate = wxPyBeginAllowThreads();
14765 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14766 wxPyEndAllowThreads(__tstate);
14767 if (PyErr_Occurred()) SWIG_fail;
14768 }
14769 {
14770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14771 }
14772 return resultobj;
14773fail:
14774 return NULL;
d55e5bfc
RD
14775}
14776
14777
554f62e9
RD
14778SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14779 PyObject *resultobj = 0;
14780 wxFont *arg1 = (wxFont *) 0 ;
14781 wxString result;
14782 void *argp1 = 0 ;
14783 int res1 = 0 ;
14784 PyObject *swig_obj[1] ;
14785
14786 if (!args) SWIG_fail;
14787 swig_obj[0] = args;
14788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14789 if (!SWIG_IsOK(res1)) {
14790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14791 }
14792 arg1 = reinterpret_cast< wxFont * >(argp1);
14793 {
14794 PyThreadState* __tstate = wxPyBeginAllowThreads();
14795 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14796 wxPyEndAllowThreads(__tstate);
14797 if (PyErr_Occurred()) SWIG_fail;
14798 }
14799 {
14800#if wxUSE_UNICODE
14801 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14802#else
14803 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14804#endif
14805 }
14806 return resultobj;
14807fail:
14808 return NULL;
d55e5bfc
RD
14809}
14810
14811
554f62e9
RD
14812SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14813 PyObject *resultobj = 0;
14814 wxFont *arg1 = (wxFont *) 0 ;
14815 wxString result;
14816 void *argp1 = 0 ;
14817 int res1 = 0 ;
14818 PyObject *swig_obj[1] ;
14819
14820 if (!args) SWIG_fail;
14821 swig_obj[0] = args;
14822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14823 if (!SWIG_IsOK(res1)) {
14824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14825 }
14826 arg1 = reinterpret_cast< wxFont * >(argp1);
14827 {
14828 PyThreadState* __tstate = wxPyBeginAllowThreads();
14829 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14830 wxPyEndAllowThreads(__tstate);
14831 if (PyErr_Occurred()) SWIG_fail;
14832 }
14833 {
14834#if wxUSE_UNICODE
14835 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14836#else
14837 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14838#endif
14839 }
14840 return resultobj;
14841fail:
14842 return NULL;
14843}
14844
14845
14846SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14847 PyObject *resultobj = 0;
14848 wxFont *arg1 = (wxFont *) 0 ;
14849 int arg2 ;
14850 void *argp1 = 0 ;
14851 int res1 = 0 ;
14852 int val2 ;
14853 int ecode2 = 0 ;
14854 PyObject * obj0 = 0 ;
14855 PyObject * obj1 = 0 ;
14856 char * kwnames[] = {
14857 (char *) "self",(char *) "pointSize", NULL
14858 };
14859
14860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14862 if (!SWIG_IsOK(res1)) {
14863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14864 }
14865 arg1 = reinterpret_cast< wxFont * >(argp1);
14866 ecode2 = SWIG_AsVal_int(obj1, &val2);
14867 if (!SWIG_IsOK(ecode2)) {
14868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14869 }
14870 arg2 = static_cast< int >(val2);
14871 {
14872 PyThreadState* __tstate = wxPyBeginAllowThreads();
14873 (arg1)->SetPointSize(arg2);
14874 wxPyEndAllowThreads(__tstate);
14875 if (PyErr_Occurred()) SWIG_fail;
14876 }
14877 resultobj = SWIG_Py_Void();
14878 return resultobj;
14879fail:
14880 return NULL;
14881}
14882
14883
14884SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14885 PyObject *resultobj = 0;
14886 wxFont *arg1 = (wxFont *) 0 ;
14887 wxSize *arg2 = 0 ;
14888 void *argp1 = 0 ;
14889 int res1 = 0 ;
14890 wxSize temp2 ;
14891 PyObject * obj0 = 0 ;
14892 PyObject * obj1 = 0 ;
14893 char * kwnames[] = {
14894 (char *) "self",(char *) "pixelSize", NULL
14895 };
14896
14897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14899 if (!SWIG_IsOK(res1)) {
14900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14901 }
14902 arg1 = reinterpret_cast< wxFont * >(argp1);
14903 {
14904 arg2 = &temp2;
14905 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14906 }
14907 {
14908 PyThreadState* __tstate = wxPyBeginAllowThreads();
14909 (arg1)->SetPixelSize((wxSize const &)*arg2);
14910 wxPyEndAllowThreads(__tstate);
14911 if (PyErr_Occurred()) SWIG_fail;
14912 }
14913 resultobj = SWIG_Py_Void();
14914 return resultobj;
14915fail:
14916 return NULL;
14917}
14918
14919
14920SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14921 PyObject *resultobj = 0;
14922 wxFont *arg1 = (wxFont *) 0 ;
14923 int arg2 ;
14924 void *argp1 = 0 ;
14925 int res1 = 0 ;
14926 int val2 ;
14927 int ecode2 = 0 ;
14928 PyObject * obj0 = 0 ;
14929 PyObject * obj1 = 0 ;
14930 char * kwnames[] = {
14931 (char *) "self",(char *) "family", NULL
14932 };
14933
14934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14936 if (!SWIG_IsOK(res1)) {
14937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14938 }
14939 arg1 = reinterpret_cast< wxFont * >(argp1);
14940 ecode2 = SWIG_AsVal_int(obj1, &val2);
14941 if (!SWIG_IsOK(ecode2)) {
14942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14943 }
14944 arg2 = static_cast< int >(val2);
14945 {
14946 PyThreadState* __tstate = wxPyBeginAllowThreads();
14947 (arg1)->SetFamily(arg2);
14948 wxPyEndAllowThreads(__tstate);
14949 if (PyErr_Occurred()) SWIG_fail;
14950 }
14951 resultobj = SWIG_Py_Void();
14952 return resultobj;
14953fail:
14954 return NULL;
14955}
14956
14957
14958SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14959 PyObject *resultobj = 0;
14960 wxFont *arg1 = (wxFont *) 0 ;
14961 int arg2 ;
14962 void *argp1 = 0 ;
14963 int res1 = 0 ;
14964 int val2 ;
14965 int ecode2 = 0 ;
14966 PyObject * obj0 = 0 ;
14967 PyObject * obj1 = 0 ;
14968 char * kwnames[] = {
14969 (char *) "self",(char *) "style", NULL
14970 };
14971
14972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14974 if (!SWIG_IsOK(res1)) {
14975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14976 }
14977 arg1 = reinterpret_cast< wxFont * >(argp1);
14978 ecode2 = SWIG_AsVal_int(obj1, &val2);
14979 if (!SWIG_IsOK(ecode2)) {
14980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14981 }
14982 arg2 = static_cast< int >(val2);
14983 {
14984 PyThreadState* __tstate = wxPyBeginAllowThreads();
14985 (arg1)->SetStyle(arg2);
14986 wxPyEndAllowThreads(__tstate);
14987 if (PyErr_Occurred()) SWIG_fail;
14988 }
14989 resultobj = SWIG_Py_Void();
14990 return resultobj;
14991fail:
14992 return NULL;
14993}
14994
14995
14996SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14997 PyObject *resultobj = 0;
14998 wxFont *arg1 = (wxFont *) 0 ;
14999 int arg2 ;
15000 void *argp1 = 0 ;
15001 int res1 = 0 ;
15002 int val2 ;
15003 int ecode2 = 0 ;
15004 PyObject * obj0 = 0 ;
15005 PyObject * obj1 = 0 ;
15006 char * kwnames[] = {
15007 (char *) "self",(char *) "weight", NULL
15008 };
15009
15010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15012 if (!SWIG_IsOK(res1)) {
15013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15014 }
15015 arg1 = reinterpret_cast< wxFont * >(argp1);
15016 ecode2 = SWIG_AsVal_int(obj1, &val2);
15017 if (!SWIG_IsOK(ecode2)) {
15018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15019 }
15020 arg2 = static_cast< int >(val2);
15021 {
15022 PyThreadState* __tstate = wxPyBeginAllowThreads();
15023 (arg1)->SetWeight(arg2);
15024 wxPyEndAllowThreads(__tstate);
15025 if (PyErr_Occurred()) SWIG_fail;
15026 }
15027 resultobj = SWIG_Py_Void();
15028 return resultobj;
15029fail:
15030 return NULL;
15031}
15032
15033
15034SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15035 PyObject *resultobj = 0;
15036 wxFont *arg1 = (wxFont *) 0 ;
15037 wxString *arg2 = 0 ;
704eda0c 15038 bool result;
554f62e9
RD
15039 void *argp1 = 0 ;
15040 int res1 = 0 ;
15041 bool temp2 = false ;
15042 PyObject * obj0 = 0 ;
15043 PyObject * obj1 = 0 ;
15044 char * kwnames[] = {
15045 (char *) "self",(char *) "faceName", NULL
15046 };
15047
15048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15050 if (!SWIG_IsOK(res1)) {
15051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15052 }
15053 arg1 = reinterpret_cast< wxFont * >(argp1);
15054 {
15055 arg2 = wxString_in_helper(obj1);
15056 if (arg2 == NULL) SWIG_fail;
15057 temp2 = true;
15058 }
15059 {
15060 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15061 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
554f62e9
RD
15062 wxPyEndAllowThreads(__tstate);
15063 if (PyErr_Occurred()) SWIG_fail;
15064 }
704eda0c
RD
15065 {
15066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15067 }
554f62e9
RD
15068 {
15069 if (temp2)
15070 delete arg2;
15071 }
15072 return resultobj;
15073fail:
15074 {
15075 if (temp2)
15076 delete arg2;
15077 }
15078 return NULL;
15079}
15080
15081
15082SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15083 PyObject *resultobj = 0;
15084 wxFont *arg1 = (wxFont *) 0 ;
15085 bool arg2 ;
15086 void *argp1 = 0 ;
15087 int res1 = 0 ;
15088 bool val2 ;
15089 int ecode2 = 0 ;
15090 PyObject * obj0 = 0 ;
15091 PyObject * obj1 = 0 ;
15092 char * kwnames[] = {
15093 (char *) "self",(char *) "underlined", NULL
15094 };
15095
15096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15098 if (!SWIG_IsOK(res1)) {
15099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15100 }
15101 arg1 = reinterpret_cast< wxFont * >(argp1);
15102 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15103 if (!SWIG_IsOK(ecode2)) {
15104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15105 }
15106 arg2 = static_cast< bool >(val2);
15107 {
15108 PyThreadState* __tstate = wxPyBeginAllowThreads();
15109 (arg1)->SetUnderlined(arg2);
15110 wxPyEndAllowThreads(__tstate);
15111 if (PyErr_Occurred()) SWIG_fail;
15112 }
15113 resultobj = SWIG_Py_Void();
15114 return resultobj;
15115fail:
15116 return NULL;
15117}
15118
15119
15120SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15121 PyObject *resultobj = 0;
15122 wxFont *arg1 = (wxFont *) 0 ;
15123 wxFontEncoding arg2 ;
15124 void *argp1 = 0 ;
15125 int res1 = 0 ;
15126 int val2 ;
15127 int ecode2 = 0 ;
15128 PyObject * obj0 = 0 ;
15129 PyObject * obj1 = 0 ;
15130 char * kwnames[] = {
15131 (char *) "self",(char *) "encoding", NULL
15132 };
15133
15134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15136 if (!SWIG_IsOK(res1)) {
15137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15138 }
15139 arg1 = reinterpret_cast< wxFont * >(argp1);
15140 ecode2 = SWIG_AsVal_int(obj1, &val2);
15141 if (!SWIG_IsOK(ecode2)) {
15142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15143 }
15144 arg2 = static_cast< wxFontEncoding >(val2);
15145 {
15146 PyThreadState* __tstate = wxPyBeginAllowThreads();
15147 (arg1)->SetEncoding(arg2);
15148 wxPyEndAllowThreads(__tstate);
15149 if (PyErr_Occurred()) SWIG_fail;
15150 }
15151 resultobj = SWIG_Py_Void();
15152 return resultobj;
15153fail:
15154 return NULL;
15155}
15156
15157
15158SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15159 PyObject *resultobj = 0;
15160 wxFont *arg1 = (wxFont *) 0 ;
15161 wxNativeFontInfo *arg2 = 0 ;
15162 void *argp1 = 0 ;
15163 int res1 = 0 ;
15164 void *argp2 = 0 ;
15165 int res2 = 0 ;
15166 PyObject * obj0 = 0 ;
15167 PyObject * obj1 = 0 ;
15168 char * kwnames[] = {
15169 (char *) "self",(char *) "info", NULL
15170 };
15171
15172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15174 if (!SWIG_IsOK(res1)) {
15175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15176 }
15177 arg1 = reinterpret_cast< wxFont * >(argp1);
15178 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15179 if (!SWIG_IsOK(res2)) {
15180 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15181 }
15182 if (!argp2) {
15183 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15184 }
15185 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15186 {
15187 PyThreadState* __tstate = wxPyBeginAllowThreads();
15188 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15189 wxPyEndAllowThreads(__tstate);
15190 if (PyErr_Occurred()) SWIG_fail;
15191 }
15192 resultobj = SWIG_Py_Void();
15193 return resultobj;
15194fail:
15195 return NULL;
15196}
15197
15198
15199SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15200 PyObject *resultobj = 0;
15201 wxFont *arg1 = (wxFont *) 0 ;
15202 wxString *arg2 = 0 ;
704eda0c 15203 bool result;
554f62e9
RD
15204 void *argp1 = 0 ;
15205 int res1 = 0 ;
15206 bool temp2 = false ;
15207 PyObject * obj0 = 0 ;
15208 PyObject * obj1 = 0 ;
15209 char * kwnames[] = {
15210 (char *) "self",(char *) "info", NULL
15211 };
15212
15213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15215 if (!SWIG_IsOK(res1)) {
15216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15217 }
15218 arg1 = reinterpret_cast< wxFont * >(argp1);
15219 {
15220 arg2 = wxString_in_helper(obj1);
15221 if (arg2 == NULL) SWIG_fail;
15222 temp2 = true;
15223 }
15224 {
15225 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15226 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
554f62e9
RD
15227 wxPyEndAllowThreads(__tstate);
15228 if (PyErr_Occurred()) SWIG_fail;
15229 }
704eda0c
RD
15230 {
15231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15232 }
554f62e9
RD
15233 {
15234 if (temp2)
15235 delete arg2;
15236 }
15237 return resultobj;
15238fail:
15239 {
15240 if (temp2)
15241 delete arg2;
15242 }
15243 return NULL;
d55e5bfc
RD
15244}
15245
15246
554f62e9
RD
15247SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15248 PyObject *resultobj = 0;
15249 wxFont *arg1 = (wxFont *) 0 ;
15250 wxString *arg2 = 0 ;
704eda0c 15251 bool result;
554f62e9
RD
15252 void *argp1 = 0 ;
15253 int res1 = 0 ;
15254 bool temp2 = false ;
15255 PyObject * obj0 = 0 ;
15256 PyObject * obj1 = 0 ;
15257 char * kwnames[] = {
15258 (char *) "self",(char *) "info", NULL
15259 };
15260
15261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15263 if (!SWIG_IsOK(res1)) {
15264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15265 }
15266 arg1 = reinterpret_cast< wxFont * >(argp1);
15267 {
15268 arg2 = wxString_in_helper(obj1);
15269 if (arg2 == NULL) SWIG_fail;
15270 temp2 = true;
15271 }
15272 {
15273 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15274 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
554f62e9
RD
15275 wxPyEndAllowThreads(__tstate);
15276 if (PyErr_Occurred()) SWIG_fail;
15277 }
704eda0c
RD
15278 {
15279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15280 }
554f62e9
RD
15281 {
15282 if (temp2)
15283 delete arg2;
15284 }
15285 return resultobj;
15286fail:
15287 {
15288 if (temp2)
15289 delete arg2;
15290 }
15291 return NULL;
d55e5bfc
RD
15292}
15293
15294
554f62e9
RD
15295SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15296 PyObject *resultobj = 0;
15297 wxFont *arg1 = (wxFont *) 0 ;
15298 wxString result;
15299 void *argp1 = 0 ;
15300 int res1 = 0 ;
15301 PyObject *swig_obj[1] ;
15302
15303 if (!args) SWIG_fail;
15304 swig_obj[0] = args;
15305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15306 if (!SWIG_IsOK(res1)) {
15307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15308 }
15309 arg1 = reinterpret_cast< wxFont * >(argp1);
15310 {
15311 PyThreadState* __tstate = wxPyBeginAllowThreads();
15312 result = ((wxFont const *)arg1)->GetFamilyString();
15313 wxPyEndAllowThreads(__tstate);
15314 if (PyErr_Occurred()) SWIG_fail;
15315 }
15316 {
15317#if wxUSE_UNICODE
15318 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15319#else
15320 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15321#endif
15322 }
15323 return resultobj;
15324fail:
15325 return NULL;
d55e5bfc
RD
15326}
15327
15328
554f62e9
RD
15329SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15330 PyObject *resultobj = 0;
15331 wxFont *arg1 = (wxFont *) 0 ;
15332 wxString result;
15333 void *argp1 = 0 ;
15334 int res1 = 0 ;
15335 PyObject *swig_obj[1] ;
15336
15337 if (!args) SWIG_fail;
15338 swig_obj[0] = args;
15339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15340 if (!SWIG_IsOK(res1)) {
15341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15342 }
15343 arg1 = reinterpret_cast< wxFont * >(argp1);
15344 {
15345 PyThreadState* __tstate = wxPyBeginAllowThreads();
15346 result = ((wxFont const *)arg1)->GetStyleString();
15347 wxPyEndAllowThreads(__tstate);
15348 if (PyErr_Occurred()) SWIG_fail;
15349 }
15350 {
15351#if wxUSE_UNICODE
15352 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15353#else
15354 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15355#endif
15356 }
15357 return resultobj;
15358fail:
15359 return NULL;
d55e5bfc
RD
15360}
15361
15362
554f62e9
RD
15363SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15364 PyObject *resultobj = 0;
15365 wxFont *arg1 = (wxFont *) 0 ;
15366 wxString result;
15367 void *argp1 = 0 ;
15368 int res1 = 0 ;
15369 PyObject *swig_obj[1] ;
15370
15371 if (!args) SWIG_fail;
15372 swig_obj[0] = args;
15373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15374 if (!SWIG_IsOK(res1)) {
15375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15376 }
15377 arg1 = reinterpret_cast< wxFont * >(argp1);
15378 {
15379 PyThreadState* __tstate = wxPyBeginAllowThreads();
15380 result = ((wxFont const *)arg1)->GetWeightString();
15381 wxPyEndAllowThreads(__tstate);
15382 if (PyErr_Occurred()) SWIG_fail;
15383 }
15384 {
15385#if wxUSE_UNICODE
15386 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15387#else
15388 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15389#endif
15390 }
15391 return resultobj;
15392fail:
15393 return NULL;
15394}
15395
15396
15397SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15398 PyObject *resultobj = 0;
15399 wxFont *arg1 = (wxFont *) 0 ;
15400 bool arg2 = (bool) true ;
15401 void *argp1 = 0 ;
15402 int res1 = 0 ;
15403 bool val2 ;
15404 int ecode2 = 0 ;
15405 PyObject * obj0 = 0 ;
15406 PyObject * obj1 = 0 ;
15407 char * kwnames[] = {
15408 (char *) "self",(char *) "no", NULL
15409 };
15410
15411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15413 if (!SWIG_IsOK(res1)) {
15414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15415 }
15416 arg1 = reinterpret_cast< wxFont * >(argp1);
15417 if (obj1) {
15418 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15419 if (!SWIG_IsOK(ecode2)) {
15420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15421 }
15422 arg2 = static_cast< bool >(val2);
15423 }
15424 {
15425 PyThreadState* __tstate = wxPyBeginAllowThreads();
15426 (arg1)->SetNoAntiAliasing(arg2);
15427 wxPyEndAllowThreads(__tstate);
15428 if (PyErr_Occurred()) SWIG_fail;
15429 }
15430 resultobj = SWIG_Py_Void();
15431 return resultobj;
15432fail:
15433 return NULL;
d55e5bfc
RD
15434}
15435
15436
554f62e9
RD
15437SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15438 PyObject *resultobj = 0;
15439 wxFont *arg1 = (wxFont *) 0 ;
15440 bool result;
15441 void *argp1 = 0 ;
15442 int res1 = 0 ;
15443 PyObject *swig_obj[1] ;
15444
15445 if (!args) SWIG_fail;
15446 swig_obj[0] = args;
15447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15448 if (!SWIG_IsOK(res1)) {
15449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15450 }
15451 arg1 = reinterpret_cast< wxFont * >(argp1);
15452 {
15453 PyThreadState* __tstate = wxPyBeginAllowThreads();
15454 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15455 wxPyEndAllowThreads(__tstate);
15456 if (PyErr_Occurred()) SWIG_fail;
15457 }
15458 {
15459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15460 }
15461 return resultobj;
15462fail:
15463 return NULL;
d55e5bfc
RD
15464}
15465
15466
554f62e9
RD
15467SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15468 PyObject *resultobj = 0;
15469 wxFontEncoding result;
15470
15471 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15472 {
15473 if (!wxPyCheckForApp()) SWIG_fail;
15474 PyThreadState* __tstate = wxPyBeginAllowThreads();
15475 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15476 wxPyEndAllowThreads(__tstate);
15477 if (PyErr_Occurred()) SWIG_fail;
15478 }
15479 resultobj = SWIG_From_int(static_cast< int >(result));
15480 return resultobj;
15481fail:
15482 return NULL;
d55e5bfc
RD
15483}
15484
15485
554f62e9
RD
15486SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15487 PyObject *resultobj = 0;
15488 wxFontEncoding arg1 ;
15489 int val1 ;
15490 int ecode1 = 0 ;
15491 PyObject * obj0 = 0 ;
15492 char * kwnames[] = {
15493 (char *) "encoding", NULL
15494 };
15495
15496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15497 ecode1 = SWIG_AsVal_int(obj0, &val1);
15498 if (!SWIG_IsOK(ecode1)) {
15499 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15500 }
15501 arg1 = static_cast< wxFontEncoding >(val1);
15502 {
15503 if (!wxPyCheckForApp()) SWIG_fail;
15504 PyThreadState* __tstate = wxPyBeginAllowThreads();
15505 wxFont::SetDefaultEncoding(arg1);
15506 wxPyEndAllowThreads(__tstate);
15507 if (PyErr_Occurred()) SWIG_fail;
15508 }
15509 resultobj = SWIG_Py_Void();
15510 return resultobj;
15511fail:
15512 return NULL;
5e483524
RD
15513}
15514
15515
554f62e9
RD
15516SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15517 PyObject *obj;
15518 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15519 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15520 return SWIG_Py_Void();
d55e5bfc
RD
15521}
15522
554f62e9
RD
15523SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15524 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
15525}
15526
554f62e9
RD
15527SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15528 PyObject *resultobj = 0;
15529 wxPyFontEnumerator *result = 0 ;
15530
15531 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15532 {
15533 if (!wxPyCheckForApp()) SWIG_fail;
15534 PyThreadState* __tstate = wxPyBeginAllowThreads();
15535 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15536 wxPyEndAllowThreads(__tstate);
15537 if (PyErr_Occurred()) SWIG_fail;
15538 }
15539 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15540 return resultobj;
15541fail:
15542 return NULL;
d55e5bfc
RD
15543}
15544
15545
554f62e9
RD
15546SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15547 PyObject *resultobj = 0;
15548 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15549 void *argp1 = 0 ;
15550 int res1 = 0 ;
15551 PyObject *swig_obj[1] ;
15552
15553 if (!args) SWIG_fail;
15554 swig_obj[0] = args;
15555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15556 if (!SWIG_IsOK(res1)) {
15557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15558 }
15559 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15560 {
15561 PyThreadState* __tstate = wxPyBeginAllowThreads();
15562 delete arg1;
d55e5bfc 15563
554f62e9
RD
15564 wxPyEndAllowThreads(__tstate);
15565 if (PyErr_Occurred()) SWIG_fail;
15566 }
15567 resultobj = SWIG_Py_Void();
15568 return resultobj;
15569fail:
15570 return NULL;
15571}
15572
15573
15574SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15575 PyObject *resultobj = 0;
15576 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15577 PyObject *arg2 = (PyObject *) 0 ;
15578 PyObject *arg3 = (PyObject *) 0 ;
15579 bool arg4 ;
15580 void *argp1 = 0 ;
15581 int res1 = 0 ;
15582 bool val4 ;
15583 int ecode4 = 0 ;
15584 PyObject * obj0 = 0 ;
15585 PyObject * obj1 = 0 ;
15586 PyObject * obj2 = 0 ;
15587 PyObject * obj3 = 0 ;
15588 char * kwnames[] = {
15589 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15590 };
15591
15592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15594 if (!SWIG_IsOK(res1)) {
15595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15596 }
15597 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15598 arg2 = obj1;
15599 arg3 = obj2;
15600 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15601 if (!SWIG_IsOK(ecode4)) {
15602 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15603 }
15604 arg4 = static_cast< bool >(val4);
15605 {
15606 PyThreadState* __tstate = wxPyBeginAllowThreads();
15607 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15608 wxPyEndAllowThreads(__tstate);
15609 if (PyErr_Occurred()) SWIG_fail;
15610 }
15611 resultobj = SWIG_Py_Void();
15612 return resultobj;
15613fail:
15614 return NULL;
15615}
15616
15617
15618SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15619 PyObject *resultobj = 0;
15620 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15621 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15622 bool arg3 = (bool) false ;
15623 bool result;
15624 void *argp1 = 0 ;
15625 int res1 = 0 ;
15626 int val2 ;
15627 int ecode2 = 0 ;
15628 bool val3 ;
15629 int ecode3 = 0 ;
15630 PyObject * obj0 = 0 ;
15631 PyObject * obj1 = 0 ;
15632 PyObject * obj2 = 0 ;
15633 char * kwnames[] = {
15634 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15635 };
15636
15637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15639 if (!SWIG_IsOK(res1)) {
15640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15641 }
15642 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15643 if (obj1) {
15644 ecode2 = SWIG_AsVal_int(obj1, &val2);
15645 if (!SWIG_IsOK(ecode2)) {
15646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15647 }
15648 arg2 = static_cast< wxFontEncoding >(val2);
15649 }
15650 if (obj2) {
15651 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15652 if (!SWIG_IsOK(ecode3)) {
15653 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15654 }
15655 arg3 = static_cast< bool >(val3);
15656 }
15657 {
15658 PyThreadState* __tstate = wxPyBeginAllowThreads();
15659 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15660 wxPyEndAllowThreads(__tstate);
15661 if (PyErr_Occurred()) SWIG_fail;
15662 }
15663 {
15664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15665 }
15666 return resultobj;
15667fail:
15668 return NULL;
15669}
15670
15671
15672SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15673 PyObject *resultobj = 0;
15674 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15675 wxString const &arg2_defvalue = wxPyEmptyString ;
15676 wxString *arg2 = (wxString *) &arg2_defvalue ;
15677 bool result;
15678 void *argp1 = 0 ;
15679 int res1 = 0 ;
15680 bool temp2 = false ;
15681 PyObject * obj0 = 0 ;
15682 PyObject * obj1 = 0 ;
15683 char * kwnames[] = {
15684 (char *) "self",(char *) "facename", NULL
15685 };
15686
15687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15689 if (!SWIG_IsOK(res1)) {
15690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15691 }
15692 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15693 if (obj1) {
093d3ff1 15694 {
554f62e9
RD
15695 arg2 = wxString_in_helper(obj1);
15696 if (arg2 == NULL) SWIG_fail;
15697 temp2 = true;
093d3ff1 15698 }
554f62e9
RD
15699 }
15700 {
15701 PyThreadState* __tstate = wxPyBeginAllowThreads();
15702 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15703 wxPyEndAllowThreads(__tstate);
15704 if (PyErr_Occurred()) SWIG_fail;
15705 }
15706 {
15707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15708 }
15709 {
15710 if (temp2)
15711 delete arg2;
15712 }
15713 return resultobj;
15714fail:
15715 {
15716 if (temp2)
15717 delete arg2;
15718 }
15719 return NULL;
d55e5bfc
RD
15720}
15721
15722
554f62e9
RD
15723SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15724 PyObject *resultobj = 0;
554f62e9 15725 PyObject *result = 0 ;
554f62e9 15726
704eda0c 15727 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
554f62e9
RD
15728 {
15729 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15730 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
554f62e9
RD
15731 wxPyEndAllowThreads(__tstate);
15732 if (PyErr_Occurred()) SWIG_fail;
15733 }
15734 resultobj = result;
15735 return resultobj;
15736fail:
15737 return NULL;
d55e5bfc
RD
15738}
15739
15740
554f62e9
RD
15741SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15742 PyObject *resultobj = 0;
554f62e9 15743 PyObject *result = 0 ;
554f62e9 15744
704eda0c 15745 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
554f62e9
RD
15746 {
15747 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15748 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
554f62e9
RD
15749 wxPyEndAllowThreads(__tstate);
15750 if (PyErr_Occurred()) SWIG_fail;
15751 }
15752 resultobj = result;
15753 return resultobj;
15754fail:
15755 return NULL;
d55e5bfc
RD
15756}
15757
15758
704eda0c
RD
15759SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15760 PyObject *resultobj = 0;
15761 wxString *arg1 = 0 ;
15762 bool result;
15763 bool temp1 = false ;
15764 PyObject * obj0 = 0 ;
15765 char * kwnames[] = {
15766 (char *) "str", NULL
15767 };
15768
15769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15770 {
15771 arg1 = wxString_in_helper(obj0);
15772 if (arg1 == NULL) SWIG_fail;
15773 temp1 = true;
15774 }
15775 {
15776 PyThreadState* __tstate = wxPyBeginAllowThreads();
15777 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15778 wxPyEndAllowThreads(__tstate);
15779 if (PyErr_Occurred()) SWIG_fail;
15780 }
15781 {
15782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15783 }
15784 {
15785 if (temp1)
15786 delete arg1;
15787 }
15788 return resultobj;
15789fail:
15790 {
15791 if (temp1)
15792 delete arg1;
15793 }
15794 return NULL;
15795}
15796
15797
554f62e9
RD
15798SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15799 PyObject *obj;
15800 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15801 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15802 return SWIG_Py_Void();
5e483524
RD
15803}
15804
554f62e9
RD
15805SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15806 return SWIG_Python_InitShadowInstance(args);
15807}
5e483524 15808
554f62e9
RD
15809SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15810 PyObject *resultobj = 0;
15811 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15812 int arg2 ;
15813 void *argp1 = 0 ;
15814 int res1 = 0 ;
15815 int val2 ;
15816 int ecode2 = 0 ;
15817 PyObject *swig_obj[2] ;
15818
15819 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15821 if (!SWIG_IsOK(res1)) {
15822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15823 }
15824 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15825 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15826 if (!SWIG_IsOK(ecode2)) {
15827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15828 }
15829 arg2 = static_cast< int >(val2);
15830 if (arg1) (arg1)->Language = arg2;
15831
15832 resultobj = SWIG_Py_Void();
15833 return resultobj;
15834fail:
15835 return NULL;
d55e5bfc
RD
15836}
15837
15838
554f62e9
RD
15839SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15840 PyObject *resultobj = 0;
15841 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15842 int result;
15843 void *argp1 = 0 ;
15844 int res1 = 0 ;
15845 PyObject *swig_obj[1] ;
15846
15847 if (!args) SWIG_fail;
15848 swig_obj[0] = args;
15849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15850 if (!SWIG_IsOK(res1)) {
15851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15852 }
15853 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15854 result = (int) ((arg1)->Language);
15855 resultobj = SWIG_From_int(static_cast< int >(result));
15856 return resultobj;
15857fail:
15858 return NULL;
15859}
15860
15861
15862SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15863 PyObject *resultobj = 0;
15864 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15865 wxString *arg2 = (wxString *) 0 ;
15866 void *argp1 = 0 ;
15867 int res1 = 0 ;
15868 bool temp2 = false ;
15869 PyObject *swig_obj[2] ;
15870
15871 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15873 if (!SWIG_IsOK(res1)) {
15874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15875 }
15876 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15877 {
15878 arg2 = wxString_in_helper(swig_obj[1]);
15879 if (arg2 == NULL) SWIG_fail;
15880 temp2 = true;
15881 }
15882 if (arg1) (arg1)->CanonicalName = *arg2;
15883
15884 resultobj = SWIG_Py_Void();
15885 {
15886 if (temp2)
15887 delete arg2;
15888 }
15889 return resultobj;
15890fail:
15891 {
15892 if (temp2)
15893 delete arg2;
15894 }
15895 return NULL;
d55e5bfc
RD
15896}
15897
15898
554f62e9
RD
15899SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15900 PyObject *resultobj = 0;
15901 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15902 wxString *result = 0 ;
15903 void *argp1 = 0 ;
15904 int res1 = 0 ;
15905 PyObject *swig_obj[1] ;
15906
15907 if (!args) SWIG_fail;
15908 swig_obj[0] = args;
15909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15910 if (!SWIG_IsOK(res1)) {
15911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15912 }
15913 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15914 result = (wxString *)& ((arg1)->CanonicalName);
15915 {
15916#if wxUSE_UNICODE
15917 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15918#else
15919 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15920#endif
15921 }
15922 return resultobj;
15923fail:
15924 return NULL;
d55e5bfc
RD
15925}
15926
15927
554f62e9
RD
15928SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15929 PyObject *resultobj = 0;
15930 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15931 wxString *arg2 = (wxString *) 0 ;
15932 void *argp1 = 0 ;
15933 int res1 = 0 ;
15934 bool temp2 = false ;
15935 PyObject *swig_obj[2] ;
15936
15937 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15939 if (!SWIG_IsOK(res1)) {
15940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15941 }
15942 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15943 {
15944 arg2 = wxString_in_helper(swig_obj[1]);
15945 if (arg2 == NULL) SWIG_fail;
15946 temp2 = true;
15947 }
15948 if (arg1) (arg1)->Description = *arg2;
15949
15950 resultobj = SWIG_Py_Void();
15951 {
15952 if (temp2)
15953 delete arg2;
15954 }
15955 return resultobj;
15956fail:
15957 {
15958 if (temp2)
15959 delete arg2;
15960 }
15961 return NULL;
d55e5bfc
RD
15962}
15963
15964
554f62e9
RD
15965SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15966 PyObject *resultobj = 0;
15967 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15968 wxString *result = 0 ;
15969 void *argp1 = 0 ;
15970 int res1 = 0 ;
15971 PyObject *swig_obj[1] ;
15972
15973 if (!args) SWIG_fail;
15974 swig_obj[0] = args;
15975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15976 if (!SWIG_IsOK(res1)) {
15977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15978 }
15979 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15980 result = (wxString *)& ((arg1)->Description);
15981 {
15982#if wxUSE_UNICODE
15983 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15984#else
15985 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15986#endif
15987 }
15988 return resultobj;
15989fail:
15990 return NULL;
15991}
15992
15993
15994SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15995 PyObject *obj;
15996 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15997 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15998 return SWIG_Py_Void();
15999}
16000
16001SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16002 PyObject *resultobj = 0;
16003 int arg1 = (int) -1 ;
16004 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16005 wxLocale *result = 0 ;
16006 int val1 ;
16007 int ecode1 = 0 ;
16008 int val2 ;
16009 int ecode2 = 0 ;
16010 PyObject * obj0 = 0 ;
16011 PyObject * obj1 = 0 ;
16012 char * kwnames[] = {
16013 (char *) "language",(char *) "flags", NULL
16014 };
16015
16016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16017 if (obj0) {
16018 ecode1 = SWIG_AsVal_int(obj0, &val1);
16019 if (!SWIG_IsOK(ecode1)) {
16020 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16021 }
16022 arg1 = static_cast< int >(val1);
16023 }
16024 if (obj1) {
16025 ecode2 = SWIG_AsVal_int(obj1, &val2);
16026 if (!SWIG_IsOK(ecode2)) {
16027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16028 }
16029 arg2 = static_cast< int >(val2);
16030 }
16031 {
16032 PyThreadState* __tstate = wxPyBeginAllowThreads();
16033 result = (wxLocale *)new_wxLocale(arg1,arg2);
16034 wxPyEndAllowThreads(__tstate);
16035 if (PyErr_Occurred()) SWIG_fail;
16036 }
16037 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16038 return resultobj;
16039fail:
16040 return NULL;
d55e5bfc
RD
16041}
16042
16043
554f62e9
RD
16044SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16045 PyObject *resultobj = 0;
16046 wxLocale *arg1 = (wxLocale *) 0 ;
16047 void *argp1 = 0 ;
16048 int res1 = 0 ;
16049 PyObject *swig_obj[1] ;
16050
16051 if (!args) SWIG_fail;
16052 swig_obj[0] = args;
16053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16054 if (!SWIG_IsOK(res1)) {
16055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16056 }
16057 arg1 = reinterpret_cast< wxLocale * >(argp1);
16058 {
16059 PyThreadState* __tstate = wxPyBeginAllowThreads();
16060 delete arg1;
d55e5bfc 16061
554f62e9
RD
16062 wxPyEndAllowThreads(__tstate);
16063 if (PyErr_Occurred()) SWIG_fail;
16064 }
16065 resultobj = SWIG_Py_Void();
16066 return resultobj;
16067fail:
16068 return NULL;
16069}
16070
16071
16072SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16073 PyObject *resultobj = 0;
16074 wxLocale *arg1 = (wxLocale *) 0 ;
16075 wxString *arg2 = 0 ;
16076 wxString const &arg3_defvalue = wxPyEmptyString ;
16077 wxString *arg3 = (wxString *) &arg3_defvalue ;
16078 wxString const &arg4_defvalue = wxPyEmptyString ;
16079 wxString *arg4 = (wxString *) &arg4_defvalue ;
16080 bool arg5 = (bool) true ;
16081 bool arg6 = (bool) false ;
16082 bool result;
16083 void *argp1 = 0 ;
16084 int res1 = 0 ;
16085 bool temp2 = false ;
16086 bool temp3 = false ;
16087 bool temp4 = false ;
16088 bool val5 ;
16089 int ecode5 = 0 ;
16090 bool val6 ;
16091 int ecode6 = 0 ;
16092 PyObject * obj0 = 0 ;
16093 PyObject * obj1 = 0 ;
16094 PyObject * obj2 = 0 ;
16095 PyObject * obj3 = 0 ;
16096 PyObject * obj4 = 0 ;
16097 PyObject * obj5 = 0 ;
16098 char * kwnames[] = {
16099 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16100 };
16101
16102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16104 if (!SWIG_IsOK(res1)) {
16105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16106 }
16107 arg1 = reinterpret_cast< wxLocale * >(argp1);
16108 {
16109 arg2 = wxString_in_helper(obj1);
16110 if (arg2 == NULL) SWIG_fail;
16111 temp2 = true;
16112 }
16113 if (obj2) {
093d3ff1 16114 {
554f62e9
RD
16115 arg3 = wxString_in_helper(obj2);
16116 if (arg3 == NULL) SWIG_fail;
16117 temp3 = true;
093d3ff1 16118 }
554f62e9
RD
16119 }
16120 if (obj3) {
d55e5bfc 16121 {
554f62e9
RD
16122 arg4 = wxString_in_helper(obj3);
16123 if (arg4 == NULL) SWIG_fail;
16124 temp4 = true;
d55e5bfc 16125 }
554f62e9
RD
16126 }
16127 if (obj4) {
16128 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16129 if (!SWIG_IsOK(ecode5)) {
16130 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16131 }
16132 arg5 = static_cast< bool >(val5);
16133 }
16134 if (obj5) {
16135 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16136 if (!SWIG_IsOK(ecode6)) {
16137 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16138 }
16139 arg6 = static_cast< bool >(val6);
16140 }
16141 {
16142 PyThreadState* __tstate = wxPyBeginAllowThreads();
16143 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16144 wxPyEndAllowThreads(__tstate);
16145 if (PyErr_Occurred()) SWIG_fail;
16146 }
16147 {
16148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16149 }
16150 {
16151 if (temp2)
16152 delete arg2;
16153 }
16154 {
16155 if (temp3)
16156 delete arg3;
16157 }
16158 {
16159 if (temp4)
16160 delete arg4;
16161 }
16162 return resultobj;
16163fail:
16164 {
16165 if (temp2)
16166 delete arg2;
16167 }
16168 {
16169 if (temp3)
16170 delete arg3;
16171 }
16172 {
16173 if (temp4)
16174 delete arg4;
16175 }
16176 return NULL;
16177}
16178
16179
16180SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16181 PyObject *resultobj = 0;
16182 wxLocale *arg1 = (wxLocale *) 0 ;
16183 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16184 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16185 bool result;
16186 void *argp1 = 0 ;
16187 int res1 = 0 ;
16188 int val2 ;
16189 int ecode2 = 0 ;
16190 int val3 ;
16191 int ecode3 = 0 ;
16192 PyObject * obj0 = 0 ;
16193 PyObject * obj1 = 0 ;
16194 PyObject * obj2 = 0 ;
16195 char * kwnames[] = {
16196 (char *) "self",(char *) "language",(char *) "flags", NULL
16197 };
16198
16199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16201 if (!SWIG_IsOK(res1)) {
16202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16203 }
16204 arg1 = reinterpret_cast< wxLocale * >(argp1);
16205 if (obj1) {
16206 ecode2 = SWIG_AsVal_int(obj1, &val2);
16207 if (!SWIG_IsOK(ecode2)) {
16208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16209 }
16210 arg2 = static_cast< int >(val2);
16211 }
16212 if (obj2) {
16213 ecode3 = SWIG_AsVal_int(obj2, &val3);
16214 if (!SWIG_IsOK(ecode3)) {
16215 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16216 }
16217 arg3 = static_cast< int >(val3);
16218 }
16219 {
16220 PyThreadState* __tstate = wxPyBeginAllowThreads();
16221 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16222 wxPyEndAllowThreads(__tstate);
16223 if (PyErr_Occurred()) SWIG_fail;
16224 }
16225 {
16226 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16227 }
16228 return resultobj;
16229fail:
16230 return NULL;
d55e5bfc
RD
16231}
16232
16233
554f62e9
RD
16234SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16235 PyObject *resultobj = 0;
16236 int result;
16237
16238 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16239 {
16240 PyThreadState* __tstate = wxPyBeginAllowThreads();
16241 result = (int)wxLocale::GetSystemLanguage();
16242 wxPyEndAllowThreads(__tstate);
16243 if (PyErr_Occurred()) SWIG_fail;
16244 }
16245 resultobj = SWIG_From_int(static_cast< int >(result));
16246 return resultobj;
16247fail:
16248 return NULL;
d55e5bfc
RD
16249}
16250
16251
554f62e9
RD
16252SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16253 PyObject *resultobj = 0;
16254 wxFontEncoding result;
16255
16256 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16257 {
16258 PyThreadState* __tstate = wxPyBeginAllowThreads();
16259 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16260 wxPyEndAllowThreads(__tstate);
16261 if (PyErr_Occurred()) SWIG_fail;
16262 }
16263 resultobj = SWIG_From_int(static_cast< int >(result));
16264 return resultobj;
16265fail:
16266 return NULL;
d55e5bfc
RD
16267}
16268
16269
554f62e9
RD
16270SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16271 PyObject *resultobj = 0;
16272 wxString result;
16273
16274 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16275 {
16276 PyThreadState* __tstate = wxPyBeginAllowThreads();
16277 result = wxLocale::GetSystemEncodingName();
16278 wxPyEndAllowThreads(__tstate);
16279 if (PyErr_Occurred()) SWIG_fail;
16280 }
16281 {
16282#if wxUSE_UNICODE
16283 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16284#else
16285 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16286#endif
16287 }
16288 return resultobj;
16289fail:
16290 return NULL;
d55e5bfc
RD
16291}
16292
16293
554f62e9
RD
16294SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16295 PyObject *resultobj = 0;
16296 wxLocale *arg1 = (wxLocale *) 0 ;
16297 bool result;
16298 void *argp1 = 0 ;
16299 int res1 = 0 ;
16300 PyObject *swig_obj[1] ;
16301
16302 if (!args) SWIG_fail;
16303 swig_obj[0] = args;
16304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16305 if (!SWIG_IsOK(res1)) {
16306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16307 }
16308 arg1 = reinterpret_cast< wxLocale * >(argp1);
16309 {
16310 PyThreadState* __tstate = wxPyBeginAllowThreads();
16311 result = (bool)((wxLocale const *)arg1)->IsOk();
16312 wxPyEndAllowThreads(__tstate);
16313 if (PyErr_Occurred()) SWIG_fail;
16314 }
16315 {
16316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16317 }
16318 return resultobj;
16319fail:
16320 return NULL;
d55e5bfc
RD
16321}
16322
16323
554f62e9
RD
16324SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16325 PyObject *resultobj = 0;
16326 wxLocale *arg1 = (wxLocale *) 0 ;
16327 wxString result;
16328 void *argp1 = 0 ;
16329 int res1 = 0 ;
16330 PyObject *swig_obj[1] ;
16331
16332 if (!args) SWIG_fail;
16333 swig_obj[0] = args;
16334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16335 if (!SWIG_IsOK(res1)) {
16336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16337 }
16338 arg1 = reinterpret_cast< wxLocale * >(argp1);
16339 {
16340 PyThreadState* __tstate = wxPyBeginAllowThreads();
16341 result = ((wxLocale const *)arg1)->GetLocale();
16342 wxPyEndAllowThreads(__tstate);
16343 if (PyErr_Occurred()) SWIG_fail;
16344 }
16345 {
16346#if wxUSE_UNICODE
16347 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16348#else
16349 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16350#endif
16351 }
16352 return resultobj;
16353fail:
16354 return NULL;
d55e5bfc
RD
16355}
16356
16357
554f62e9
RD
16358SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16359 PyObject *resultobj = 0;
16360 wxLocale *arg1 = (wxLocale *) 0 ;
16361 int result;
16362 void *argp1 = 0 ;
16363 int res1 = 0 ;
16364 PyObject *swig_obj[1] ;
16365
16366 if (!args) SWIG_fail;
16367 swig_obj[0] = args;
16368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16369 if (!SWIG_IsOK(res1)) {
16370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16371 }
16372 arg1 = reinterpret_cast< wxLocale * >(argp1);
16373 {
16374 PyThreadState* __tstate = wxPyBeginAllowThreads();
16375 result = (int)((wxLocale const *)arg1)->GetLanguage();
16376 wxPyEndAllowThreads(__tstate);
16377 if (PyErr_Occurred()) SWIG_fail;
16378 }
16379 resultobj = SWIG_From_int(static_cast< int >(result));
16380 return resultobj;
16381fail:
16382 return NULL;
d55e5bfc
RD
16383}
16384
16385
554f62e9
RD
16386SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16387 PyObject *resultobj = 0;
16388 wxLocale *arg1 = (wxLocale *) 0 ;
16389 wxString result;
16390 void *argp1 = 0 ;
16391 int res1 = 0 ;
16392 PyObject *swig_obj[1] ;
16393
16394 if (!args) SWIG_fail;
16395 swig_obj[0] = args;
16396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16397 if (!SWIG_IsOK(res1)) {
16398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16399 }
16400 arg1 = reinterpret_cast< wxLocale * >(argp1);
16401 {
16402 PyThreadState* __tstate = wxPyBeginAllowThreads();
16403 result = ((wxLocale const *)arg1)->GetSysName();
16404 wxPyEndAllowThreads(__tstate);
16405 if (PyErr_Occurred()) SWIG_fail;
16406 }
16407 {
16408#if wxUSE_UNICODE
16409 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16410#else
16411 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16412#endif
16413 }
16414 return resultobj;
16415fail:
16416 return NULL;
d55e5bfc
RD
16417}
16418
16419
554f62e9
RD
16420SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16421 PyObject *resultobj = 0;
16422 wxLocale *arg1 = (wxLocale *) 0 ;
16423 wxString result;
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_wxLocale, 0 | 0 );
16431 if (!SWIG_IsOK(res1)) {
16432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16433 }
16434 arg1 = reinterpret_cast< wxLocale * >(argp1);
16435 {
16436 PyThreadState* __tstate = wxPyBeginAllowThreads();
16437 result = ((wxLocale const *)arg1)->GetCanonicalName();
16438 wxPyEndAllowThreads(__tstate);
16439 if (PyErr_Occurred()) SWIG_fail;
16440 }
16441 {
093d3ff1 16442#if wxUSE_UNICODE
554f62e9 16443 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 16444#else
554f62e9 16445 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 16446#endif
554f62e9
RD
16447 }
16448 return resultobj;
16449fail:
16450 return NULL;
d55e5bfc
RD
16451}
16452
16453
554f62e9
RD
16454SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16455 PyObject *resultobj = 0;
16456 wxString *arg1 = 0 ;
16457 bool temp1 = false ;
16458 PyObject * obj0 = 0 ;
16459 char * kwnames[] = {
16460 (char *) "prefix", NULL
16461 };
16462
16463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16464 {
16465 arg1 = wxString_in_helper(obj0);
16466 if (arg1 == NULL) SWIG_fail;
16467 temp1 = true;
16468 }
16469 {
16470 PyThreadState* __tstate = wxPyBeginAllowThreads();
16471 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16472 wxPyEndAllowThreads(__tstate);
16473 if (PyErr_Occurred()) SWIG_fail;
16474 }
16475 resultobj = SWIG_Py_Void();
16476 {
16477 if (temp1)
16478 delete arg1;
16479 }
16480 return resultobj;
16481fail:
16482 {
16483 if (temp1)
16484 delete arg1;
16485 }
16486 return NULL;
16487}
16488
16489
16490SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16491 PyObject *resultobj = 0;
16492 wxLocale *arg1 = (wxLocale *) 0 ;
16493 wxString *arg2 = 0 ;
16494 bool result;
16495 void *argp1 = 0 ;
16496 int res1 = 0 ;
16497 bool temp2 = false ;
16498 PyObject * obj0 = 0 ;
16499 PyObject * obj1 = 0 ;
16500 char * kwnames[] = {
16501 (char *) "self",(char *) "szDomain", NULL
16502 };
16503
16504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16506 if (!SWIG_IsOK(res1)) {
16507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16508 }
16509 arg1 = reinterpret_cast< wxLocale * >(argp1);
16510 {
16511 arg2 = wxString_in_helper(obj1);
16512 if (arg2 == NULL) SWIG_fail;
16513 temp2 = true;
16514 }
16515 {
16516 PyThreadState* __tstate = wxPyBeginAllowThreads();
16517 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16518 wxPyEndAllowThreads(__tstate);
16519 if (PyErr_Occurred()) SWIG_fail;
16520 }
16521 {
16522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16523 }
16524 {
16525 if (temp2)
16526 delete arg2;
16527 }
16528 return resultobj;
16529fail:
16530 {
16531 if (temp2)
16532 delete arg2;
16533 }
16534 return NULL;
16535}
16536
16537
33d6fd3b
RD
16538SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16539 PyObject *resultobj = 0;
16540 int arg1 ;
16541 bool result;
16542 int val1 ;
16543 int ecode1 = 0 ;
16544 PyObject * obj0 = 0 ;
16545 char * kwnames[] = {
16546 (char *) "lang", NULL
16547 };
16548
16549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16550 ecode1 = SWIG_AsVal_int(obj0, &val1);
16551 if (!SWIG_IsOK(ecode1)) {
16552 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16553 }
16554 arg1 = static_cast< int >(val1);
16555 {
16556 PyThreadState* __tstate = wxPyBeginAllowThreads();
16557 result = (bool)wxLocale::IsAvailable(arg1);
16558 wxPyEndAllowThreads(__tstate);
16559 if (PyErr_Occurred()) SWIG_fail;
16560 }
16561 {
16562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16563 }
16564 return resultobj;
16565fail:
16566 return NULL;
16567}
16568
16569
554f62e9
RD
16570SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16571 PyObject *resultobj = 0;
16572 wxLocale *arg1 = (wxLocale *) 0 ;
16573 wxString *arg2 = 0 ;
16574 bool result;
16575 void *argp1 = 0 ;
16576 int res1 = 0 ;
16577 bool temp2 = false ;
16578 PyObject * obj0 = 0 ;
16579 PyObject * obj1 = 0 ;
16580 char * kwnames[] = {
16581 (char *) "self",(char *) "szDomain", NULL
16582 };
16583
16584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16586 if (!SWIG_IsOK(res1)) {
16587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16588 }
16589 arg1 = reinterpret_cast< wxLocale * >(argp1);
16590 {
16591 arg2 = wxString_in_helper(obj1);
16592 if (arg2 == NULL) SWIG_fail;
16593 temp2 = true;
16594 }
16595 {
16596 PyThreadState* __tstate = wxPyBeginAllowThreads();
16597 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16598 wxPyEndAllowThreads(__tstate);
16599 if (PyErr_Occurred()) SWIG_fail;
16600 }
16601 {
16602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16603 }
16604 {
16605 if (temp2)
16606 delete arg2;
16607 }
16608 return resultobj;
16609fail:
16610 {
16611 if (temp2)
16612 delete arg2;
16613 }
16614 return NULL;
d55e5bfc
RD
16615}
16616
16617
554f62e9
RD
16618SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16619 PyObject *resultobj = 0;
16620 int arg1 ;
16621 wxLanguageInfo *result = 0 ;
16622 int val1 ;
16623 int ecode1 = 0 ;
16624 PyObject * obj0 = 0 ;
16625 char * kwnames[] = {
16626 (char *) "lang", NULL
16627 };
16628
16629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16630 ecode1 = SWIG_AsVal_int(obj0, &val1);
16631 if (!SWIG_IsOK(ecode1)) {
16632 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16633 }
16634 arg1 = static_cast< int >(val1);
16635 {
16636 PyThreadState* __tstate = wxPyBeginAllowThreads();
16637 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16638 wxPyEndAllowThreads(__tstate);
16639 if (PyErr_Occurred()) SWIG_fail;
16640 }
16641 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16642 return resultobj;
16643fail:
16644 return NULL;
16645}
16646
16647
16648SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16649 PyObject *resultobj = 0;
16650 int arg1 ;
16651 wxString result;
16652 int val1 ;
16653 int ecode1 = 0 ;
16654 PyObject * obj0 = 0 ;
16655 char * kwnames[] = {
16656 (char *) "lang", NULL
16657 };
16658
16659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16660 ecode1 = SWIG_AsVal_int(obj0, &val1);
16661 if (!SWIG_IsOK(ecode1)) {
16662 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16663 }
16664 arg1 = static_cast< int >(val1);
16665 {
16666 PyThreadState* __tstate = wxPyBeginAllowThreads();
16667 result = wxLocale::GetLanguageName(arg1);
16668 wxPyEndAllowThreads(__tstate);
16669 if (PyErr_Occurred()) SWIG_fail;
16670 }
16671 {
16672#if wxUSE_UNICODE
16673 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16674#else
16675 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16676#endif
16677 }
16678 return resultobj;
16679fail:
16680 return NULL;
093d3ff1
RD
16681}
16682
16683
554f62e9
RD
16684SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16685 PyObject *resultobj = 0;
16686 wxString *arg1 = 0 ;
16687 wxLanguageInfo *result = 0 ;
16688 bool temp1 = false ;
16689 PyObject * obj0 = 0 ;
16690 char * kwnames[] = {
16691 (char *) "locale", NULL
16692 };
16693
16694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16695 {
16696 arg1 = wxString_in_helper(obj0);
16697 if (arg1 == NULL) SWIG_fail;
16698 temp1 = true;
16699 }
16700 {
16701 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16702 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16703 wxPyEndAllowThreads(__tstate);
16704 if (PyErr_Occurred()) SWIG_fail;
16705 }
16706 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16707 {
16708 if (temp1)
16709 delete arg1;
16710 }
16711 return resultobj;
16712fail:
16713 {
16714 if (temp1)
16715 delete arg1;
16716 }
16717 return NULL;
16718}
16719
16720
16721SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16722 PyObject *resultobj = 0;
16723 wxLanguageInfo *arg1 = 0 ;
16724 void *argp1 = 0 ;
16725 int res1 = 0 ;
16726 PyObject * obj0 = 0 ;
16727 char * kwnames[] = {
16728 (char *) "info", NULL
16729 };
16730
16731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16732 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16733 if (!SWIG_IsOK(res1)) {
16734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16735 }
16736 if (!argp1) {
16737 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16738 }
16739 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16740 {
16741 PyThreadState* __tstate = wxPyBeginAllowThreads();
16742 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16743 wxPyEndAllowThreads(__tstate);
16744 if (PyErr_Occurred()) SWIG_fail;
16745 }
16746 resultobj = SWIG_Py_Void();
16747 return resultobj;
16748fail:
16749 return NULL;
16750}
16751
16752
16753SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16754 PyObject *resultobj = 0;
16755 wxLocale *arg1 = (wxLocale *) 0 ;
16756 wxString *arg2 = 0 ;
16757 wxString const &arg3_defvalue = wxPyEmptyString ;
16758 wxString *arg3 = (wxString *) &arg3_defvalue ;
16759 wxString result;
16760 void *argp1 = 0 ;
16761 int res1 = 0 ;
16762 bool temp2 = false ;
16763 bool temp3 = false ;
16764 PyObject * obj0 = 0 ;
16765 PyObject * obj1 = 0 ;
16766 PyObject * obj2 = 0 ;
16767 char * kwnames[] = {
16768 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16769 };
16770
16771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16773 if (!SWIG_IsOK(res1)) {
16774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16775 }
16776 arg1 = reinterpret_cast< wxLocale * >(argp1);
16777 {
16778 arg2 = wxString_in_helper(obj1);
16779 if (arg2 == NULL) SWIG_fail;
16780 temp2 = true;
16781 }
16782 if (obj2) {
16783 {
16784 arg3 = wxString_in_helper(obj2);
16785 if (arg3 == NULL) SWIG_fail;
16786 temp3 = true;
16787 }
16788 }
16789 {
16790 PyThreadState* __tstate = wxPyBeginAllowThreads();
16791 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16792 wxPyEndAllowThreads(__tstate);
16793 if (PyErr_Occurred()) SWIG_fail;
16794 }
16795 {
16796#if wxUSE_UNICODE
16797 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16798#else
16799 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16800#endif
16801 }
16802 {
16803 if (temp2)
16804 delete arg2;
16805 }
16806 {
16807 if (temp3)
16808 delete arg3;
16809 }
16810 return resultobj;
16811fail:
16812 {
16813 if (temp2)
16814 delete arg2;
16815 }
16816 {
16817 if (temp3)
16818 delete arg3;
16819 }
16820 return NULL;
16821}
16822
16823
16824SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16825 PyObject *resultobj = 0;
16826 wxLocale *arg1 = (wxLocale *) 0 ;
16827 wxString *result = 0 ;
16828 void *argp1 = 0 ;
16829 int res1 = 0 ;
16830 PyObject *swig_obj[1] ;
16831
16832 if (!args) SWIG_fail;
16833 swig_obj[0] = args;
16834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16835 if (!SWIG_IsOK(res1)) {
16836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16837 }
16838 arg1 = reinterpret_cast< wxLocale * >(argp1);
16839 {
16840 PyThreadState* __tstate = wxPyBeginAllowThreads();
16841 {
16842 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16843 result = (wxString *) &_result_ref;
16844 }
16845 wxPyEndAllowThreads(__tstate);
16846 if (PyErr_Occurred()) SWIG_fail;
16847 }
16848 {
16849#if wxUSE_UNICODE
16850 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16851#else
16852 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16853#endif
16854 }
16855 return resultobj;
16856fail:
16857 return NULL;
16858}
16859
16860
16861SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16862 PyObject *obj;
16863 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16864 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16865 return SWIG_Py_Void();
16866}
16867
16868SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16869 return SWIG_Python_InitShadowInstance(args);
16870}
16871
16872SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16873 PyObject *resultobj = 0;
16874 int arg1 = (int) -1 ;
16875 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16876 wxPyLocale *result = 0 ;
16877 int val1 ;
16878 int ecode1 = 0 ;
16879 int val2 ;
16880 int ecode2 = 0 ;
16881 PyObject * obj0 = 0 ;
16882 PyObject * obj1 = 0 ;
16883 char * kwnames[] = {
16884 (char *) "language",(char *) "flags", NULL
16885 };
16886
16887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16888 if (obj0) {
16889 ecode1 = SWIG_AsVal_int(obj0, &val1);
16890 if (!SWIG_IsOK(ecode1)) {
16891 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16892 }
16893 arg1 = static_cast< int >(val1);
16894 }
16895 if (obj1) {
16896 ecode2 = SWIG_AsVal_int(obj1, &val2);
16897 if (!SWIG_IsOK(ecode2)) {
16898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16899 }
16900 arg2 = static_cast< int >(val2);
16901 }
16902 {
16903 PyThreadState* __tstate = wxPyBeginAllowThreads();
16904 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16905 wxPyEndAllowThreads(__tstate);
16906 if (PyErr_Occurred()) SWIG_fail;
16907 }
16908 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16909 return resultobj;
16910fail:
16911 return NULL;
16912}
16913
16914
16915SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16916 PyObject *resultobj = 0;
16917 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16918 void *argp1 = 0 ;
16919 int res1 = 0 ;
16920 PyObject *swig_obj[1] ;
16921
16922 if (!args) SWIG_fail;
16923 swig_obj[0] = args;
16924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16925 if (!SWIG_IsOK(res1)) {
16926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16927 }
16928 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16929 {
16930 PyThreadState* __tstate = wxPyBeginAllowThreads();
16931 delete arg1;
16932
554f62e9
RD
16933 wxPyEndAllowThreads(__tstate);
16934 if (PyErr_Occurred()) SWIG_fail;
16935 }
fc46b7f3 16936 resultobj = SWIG_Py_Void();
554f62e9
RD
16937 return resultobj;
16938fail:
554f62e9 16939 return NULL;
d55e5bfc
RD
16940}
16941
16942
fc46b7f3 16943SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 16944 PyObject *resultobj = 0;
fc46b7f3
RD
16945 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16946 PyObject *arg2 = (PyObject *) 0 ;
16947 PyObject *arg3 = (PyObject *) 0 ;
554f62e9
RD
16948 void *argp1 = 0 ;
16949 int res1 = 0 ;
16950 PyObject * obj0 = 0 ;
fc46b7f3
RD
16951 PyObject * obj1 = 0 ;
16952 PyObject * obj2 = 0 ;
554f62e9 16953 char * kwnames[] = {
fc46b7f3 16954 (char *) "self",(char *) "self",(char *) "_class", NULL
554f62e9
RD
16955 };
16956
fc46b7f3
RD
16957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
554f62e9 16959 if (!SWIG_IsOK(res1)) {
fc46b7f3 16960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
554f62e9 16961 }
fc46b7f3
RD
16962 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16963 arg2 = obj1;
16964 arg3 = obj2;
554f62e9
RD
16965 {
16966 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16967 (arg1)->_setCallbackInfo(arg2,arg3);
554f62e9
RD
16968 wxPyEndAllowThreads(__tstate);
16969 if (PyErr_Occurred()) SWIG_fail;
16970 }
16971 resultobj = SWIG_Py_Void();
16972 return resultobj;
16973fail:
16974 return NULL;
16975}
16976
16977
fc46b7f3 16978SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 16979 PyObject *resultobj = 0;
fc46b7f3
RD
16980 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16981 wxChar *arg2 = (wxChar *) 0 ;
16982 wxChar *arg3 = (wxChar *) NULL ;
16983 wxChar *result = 0 ;
554f62e9
RD
16984 void *argp1 = 0 ;
16985 int res1 = 0 ;
fc46b7f3
RD
16986 void *argp2 = 0 ;
16987 int res2 = 0 ;
16988 void *argp3 = 0 ;
16989 int res3 = 0 ;
554f62e9
RD
16990 PyObject * obj0 = 0 ;
16991 PyObject * obj1 = 0 ;
16992 PyObject * obj2 = 0 ;
16993 char * kwnames[] = {
16994 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16995 };
16996
fc46b7f3
RD
16997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
554f62e9 16999 if (!SWIG_IsOK(res1)) {
fc46b7f3 17000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
554f62e9 17001 }
fc46b7f3
RD
17002 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17003 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17004 if (!SWIG_IsOK(res2)) {
17005 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
554f62e9 17006 }
fc46b7f3 17007 arg2 = reinterpret_cast< wxChar * >(argp2);
554f62e9 17008 if (obj2) {
fc46b7f3
RD
17009 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17010 if (!SWIG_IsOK(res3)) {
17011 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
d55e5bfc 17012 }
fc46b7f3 17013 arg3 = reinterpret_cast< wxChar * >(argp3);
554f62e9
RD
17014 }
17015 {
17016 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 17017 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
554f62e9
RD
17018 wxPyEndAllowThreads(__tstate);
17019 if (PyErr_Occurred()) SWIG_fail;
17020 }
fc46b7f3 17021 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
554f62e9
RD
17022 return resultobj;
17023fail:
554f62e9 17024 return NULL;
d55e5bfc
RD
17025}
17026
17027
fc46b7f3 17028SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 17029 PyObject *resultobj = 0;
fc46b7f3
RD
17030 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17031 wxChar *arg2 = (wxChar *) 0 ;
17032 wxChar *arg3 = (wxChar *) 0 ;
17033 size_t arg4 ;
17034 wxChar *arg5 = (wxChar *) NULL ;
17035 wxChar *result = 0 ;
554f62e9
RD
17036 void *argp1 = 0 ;
17037 int res1 = 0 ;
fc46b7f3
RD
17038 void *argp2 = 0 ;
17039 int res2 = 0 ;
17040 void *argp3 = 0 ;
17041 int res3 = 0 ;
17042 size_t val4 ;
17043 int ecode4 = 0 ;
17044 void *argp5 = 0 ;
17045 int res5 = 0 ;
17046 PyObject * obj0 = 0 ;
17047 PyObject * obj1 = 0 ;
17048 PyObject * obj2 = 0 ;
17049 PyObject * obj3 = 0 ;
17050 PyObject * obj4 = 0 ;
17051 char * kwnames[] = {
17052 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
17053 };
554f62e9 17054
fc46b7f3
RD
17055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
554f62e9 17057 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
17058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17059 }
17060 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17061 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17062 if (!SWIG_IsOK(res2)) {
17063 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
17064 }
17065 arg2 = reinterpret_cast< wxChar * >(argp2);
17066 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17067 if (!SWIG_IsOK(res3)) {
17068 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
17069 }
17070 arg3 = reinterpret_cast< wxChar * >(argp3);
17071 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17072 if (!SWIG_IsOK(ecode4)) {
17073 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17074 }
17075 arg4 = static_cast< size_t >(val4);
17076 if (obj4) {
17077 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
17078 if (!SWIG_IsOK(res5)) {
17079 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
17080 }
17081 arg5 = reinterpret_cast< wxChar * >(argp5);
554f62e9 17082 }
554f62e9
RD
17083 {
17084 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 17085 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
554f62e9
RD
17086 wxPyEndAllowThreads(__tstate);
17087 if (PyErr_Occurred()) SWIG_fail;
17088 }
fc46b7f3 17089 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
554f62e9
RD
17090 return resultobj;
17091fail:
17092 return NULL;
d55e5bfc
RD
17093}
17094
17095
fc46b7f3 17096SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
17097 PyObject *obj;
17098 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 17099 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
554f62e9 17100 return SWIG_Py_Void();
d55e5bfc
RD
17101}
17102
fc46b7f3 17103SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 17104 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17105}
17106
554f62e9
RD
17107SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17108 PyObject *resultobj = 0;
17109 wxLocale *result = 0 ;
17110
17111 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17112 {
17113 PyThreadState* __tstate = wxPyBeginAllowThreads();
17114 result = (wxLocale *)wxGetLocale();
17115 wxPyEndAllowThreads(__tstate);
17116 if (PyErr_Occurred()) SWIG_fail;
17117 }
17118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17119 return resultobj;
17120fail:
17121 return NULL;
d55e5bfc
RD
17122}
17123
17124
554f62e9
RD
17125SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17126 PyObject *resultobj = 0;
17127 wxString *arg1 = 0 ;
17128 wxString result;
17129 bool temp1 = false ;
17130
17131 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17132 {
17133 arg1 = wxString_in_helper(swig_obj[0]);
17134 if (arg1 == NULL) SWIG_fail;
17135 temp1 = true;
17136 }
17137 {
17138 PyThreadState* __tstate = wxPyBeginAllowThreads();
17139 result = wxGetTranslation((wxString const &)*arg1);
17140 wxPyEndAllowThreads(__tstate);
17141 if (PyErr_Occurred()) SWIG_fail;
17142 }
17143 {
093d3ff1 17144#if wxUSE_UNICODE
554f62e9 17145 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 17146#else
554f62e9 17147 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 17148#endif
554f62e9
RD
17149 }
17150 {
17151 if (temp1)
17152 delete arg1;
17153 }
17154 return resultobj;
17155fail:
17156 {
17157 if (temp1)
17158 delete arg1;
17159 }
17160 return NULL;
d55e5bfc
RD
17161}
17162
17163
554f62e9 17164SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
17165 PyObject *resultobj = 0;
17166 wxString *arg1 = 0 ;
17167 wxString *arg2 = 0 ;
17168 wxString result;
17169 bool temp1 = false ;
17170 bool temp2 = false ;
17171
17172 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17173 {
17174 arg1 = wxString_in_helper(swig_obj[0]);
17175 if (arg1 == NULL) SWIG_fail;
17176 temp1 = true;
17177 }
17178 {
17179 arg2 = wxString_in_helper(swig_obj[1]);
17180 if (arg2 == NULL) SWIG_fail;
17181 temp2 = true;
17182 }
17183 {
17184 PyThreadState* __tstate = wxPyBeginAllowThreads();
17185 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17186 wxPyEndAllowThreads(__tstate);
17187 if (PyErr_Occurred()) SWIG_fail;
17188 }
17189 {
17190#if wxUSE_UNICODE
17191 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17192#else
17193 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17194#endif
17195 }
17196 {
17197 if (temp1)
17198 delete arg1;
17199 }
17200 {
17201 if (temp2)
17202 delete arg2;
17203 }
17204 return resultobj;
17205fail:
17206 {
17207 if (temp1)
17208 delete arg1;
17209 }
17210 {
17211 if (temp2)
17212 delete arg2;
17213 }
17214 return NULL;
17215}
17216
17217
17218SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
554f62e9
RD
17219 PyObject *resultobj = 0;
17220 wxString *arg1 = 0 ;
17221 wxString *arg2 = 0 ;
17222 size_t arg3 ;
17223 wxString result;
17224 bool temp1 = false ;
17225 bool temp2 = false ;
17226 size_t val3 ;
17227 int ecode3 = 0 ;
17228
17229 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17230 {
17231 arg1 = wxString_in_helper(swig_obj[0]);
17232 if (arg1 == NULL) SWIG_fail;
17233 temp1 = true;
17234 }
17235 {
17236 arg2 = wxString_in_helper(swig_obj[1]);
17237 if (arg2 == NULL) SWIG_fail;
17238 temp2 = true;
17239 }
17240 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17241 if (!SWIG_IsOK(ecode3)) {
17242 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17243 }
17244 arg3 = static_cast< size_t >(val3);
17245 {
17246 PyThreadState* __tstate = wxPyBeginAllowThreads();
17247 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17248 wxPyEndAllowThreads(__tstate);
17249 if (PyErr_Occurred()) SWIG_fail;
17250 }
17251 {
093d3ff1 17252#if wxUSE_UNICODE
554f62e9 17253 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 17254#else
554f62e9 17255 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 17256#endif
554f62e9
RD
17257 }
17258 {
17259 if (temp1)
17260 delete arg1;
17261 }
17262 {
17263 if (temp2)
17264 delete arg2;
17265 }
17266 return resultobj;
17267fail:
17268 {
17269 if (temp1)
17270 delete arg1;
17271 }
17272 {
17273 if (temp2)
17274 delete arg2;
17275 }
17276 return NULL;
d55e5bfc
RD
17277}
17278
17279
fc46b7f3
RD
17280SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17281 PyObject *resultobj = 0;
17282 wxString *arg1 = 0 ;
17283 wxString *arg2 = 0 ;
17284 size_t arg3 ;
17285 wxString *arg4 = 0 ;
17286 wxString result;
17287 bool temp1 = false ;
17288 bool temp2 = false ;
17289 size_t val3 ;
17290 int ecode3 = 0 ;
17291 bool temp4 = false ;
17292
17293 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17294 {
17295 arg1 = wxString_in_helper(swig_obj[0]);
17296 if (arg1 == NULL) SWIG_fail;
17297 temp1 = true;
17298 }
17299 {
17300 arg2 = wxString_in_helper(swig_obj[1]);
17301 if (arg2 == NULL) SWIG_fail;
17302 temp2 = true;
17303 }
17304 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17305 if (!SWIG_IsOK(ecode3)) {
17306 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17307 }
17308 arg3 = static_cast< size_t >(val3);
17309 {
17310 arg4 = wxString_in_helper(swig_obj[3]);
17311 if (arg4 == NULL) SWIG_fail;
17312 temp4 = true;
17313 }
17314 {
17315 PyThreadState* __tstate = wxPyBeginAllowThreads();
17316 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17317 wxPyEndAllowThreads(__tstate);
17318 if (PyErr_Occurred()) SWIG_fail;
17319 }
17320 {
17321#if wxUSE_UNICODE
17322 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17323#else
17324 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17325#endif
17326 }
17327 {
17328 if (temp1)
17329 delete arg1;
17330 }
17331 {
17332 if (temp2)
17333 delete arg2;
17334 }
17335 {
17336 if (temp4)
17337 delete arg4;
17338 }
17339 return resultobj;
17340fail:
17341 {
17342 if (temp1)
17343 delete arg1;
17344 }
17345 {
17346 if (temp2)
17347 delete arg2;
17348 }
17349 {
17350 if (temp4)
17351 delete arg4;
17352 }
17353 return NULL;
17354}
17355
17356
554f62e9
RD
17357SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17358 int argc;
fc46b7f3 17359 PyObject *argv[5];
554f62e9 17360
fc46b7f3 17361 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
554f62e9
RD
17362 --argc;
17363 if (argc == 1) {
17364 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17365 }
fc46b7f3 17366 if (argc == 2) {
554f62e9
RD
17367 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17368 }
fc46b7f3
RD
17369 if (argc == 3) {
17370 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17371 }
17372 if (argc == 4) {
17373 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17374 }
554f62e9
RD
17375
17376fail:
17377 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17378 return NULL;
d55e5bfc
RD
17379}
17380
17381
554f62e9
RD
17382SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17383 PyObject *resultobj = 0;
17384 wxEncodingConverter *result = 0 ;
17385
17386 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17387 {
17388 PyThreadState* __tstate = wxPyBeginAllowThreads();
17389 result = (wxEncodingConverter *)new wxEncodingConverter();
17390 wxPyEndAllowThreads(__tstate);
17391 if (PyErr_Occurred()) SWIG_fail;
17392 }
17393 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17394 return resultobj;
17395fail:
17396 return NULL;
d55e5bfc
RD
17397}
17398
17399
554f62e9
RD
17400SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17401 PyObject *resultobj = 0;
17402 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17403 void *argp1 = 0 ;
17404 int res1 = 0 ;
17405 PyObject *swig_obj[1] ;
17406
17407 if (!args) SWIG_fail;
17408 swig_obj[0] = args;
17409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17410 if (!SWIG_IsOK(res1)) {
17411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17412 }
17413 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17414 {
17415 PyThreadState* __tstate = wxPyBeginAllowThreads();
17416 delete arg1;
d55e5bfc 17417
554f62e9
RD
17418 wxPyEndAllowThreads(__tstate);
17419 if (PyErr_Occurred()) SWIG_fail;
17420 }
17421 resultobj = SWIG_Py_Void();
17422 return resultobj;
17423fail:
17424 return NULL;
17425}
17426
17427
17428SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17429 PyObject *resultobj = 0;
17430 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17431 wxFontEncoding arg2 ;
17432 wxFontEncoding arg3 ;
17433 int arg4 = (int) wxCONVERT_STRICT ;
17434 bool result;
17435 void *argp1 = 0 ;
17436 int res1 = 0 ;
17437 int val2 ;
17438 int ecode2 = 0 ;
17439 int val3 ;
17440 int ecode3 = 0 ;
17441 int val4 ;
17442 int ecode4 = 0 ;
17443 PyObject * obj0 = 0 ;
17444 PyObject * obj1 = 0 ;
17445 PyObject * obj2 = 0 ;
17446 PyObject * obj3 = 0 ;
17447 char * kwnames[] = {
17448 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17449 };
17450
17451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17453 if (!SWIG_IsOK(res1)) {
17454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17455 }
17456 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17457 ecode2 = SWIG_AsVal_int(obj1, &val2);
17458 if (!SWIG_IsOK(ecode2)) {
17459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17460 }
17461 arg2 = static_cast< wxFontEncoding >(val2);
17462 ecode3 = SWIG_AsVal_int(obj2, &val3);
17463 if (!SWIG_IsOK(ecode3)) {
17464 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17465 }
17466 arg3 = static_cast< wxFontEncoding >(val3);
17467 if (obj3) {
17468 ecode4 = SWIG_AsVal_int(obj3, &val4);
17469 if (!SWIG_IsOK(ecode4)) {
17470 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17471 }
17472 arg4 = static_cast< int >(val4);
17473 }
17474 {
17475 PyThreadState* __tstate = wxPyBeginAllowThreads();
17476 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17477 wxPyEndAllowThreads(__tstate);
17478 if (PyErr_Occurred()) SWIG_fail;
17479 }
17480 {
17481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17482 }
17483 return resultobj;
17484fail:
17485 return NULL;
17486}
17487
17488
17489SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17490 PyObject *resultobj = 0;
17491 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17492 wxString *arg2 = 0 ;
17493 wxString result;
17494 void *argp1 = 0 ;
17495 int res1 = 0 ;
17496 bool temp2 = false ;
17497 PyObject * obj0 = 0 ;
17498 PyObject * obj1 = 0 ;
17499 char * kwnames[] = {
17500 (char *) "self",(char *) "input", NULL
17501 };
17502
17503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17505 if (!SWIG_IsOK(res1)) {
17506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17507 }
17508 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17509 {
17510 arg2 = wxString_in_helper(obj1);
17511 if (arg2 == NULL) SWIG_fail;
17512 temp2 = true;
17513 }
17514 {
17515 PyThreadState* __tstate = wxPyBeginAllowThreads();
17516 result = (arg1)->Convert((wxString const &)*arg2);
17517 wxPyEndAllowThreads(__tstate);
17518 if (PyErr_Occurred()) SWIG_fail;
17519 }
17520 {
d55e5bfc 17521#if wxUSE_UNICODE
554f62e9 17522 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 17523#else
554f62e9 17524 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 17525#endif
554f62e9
RD
17526 }
17527 {
17528 if (temp2)
17529 delete arg2;
17530 }
17531 return resultobj;
17532fail:
17533 {
17534 if (temp2)
17535 delete arg2;
17536 }
17537 return NULL;
17538}
17539
17540
17541SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17542 PyObject *resultobj = 0;
17543 wxFontEncoding arg1 ;
17544 int arg2 = (int) wxPLATFORM_CURRENT ;
17545 wxFontEncodingArray result;
17546 int val1 ;
17547 int ecode1 = 0 ;
17548 int val2 ;
17549 int ecode2 = 0 ;
17550 PyObject * obj0 = 0 ;
17551 PyObject * obj1 = 0 ;
17552 char * kwnames[] = {
17553 (char *) "enc",(char *) "platform", NULL
17554 };
17555
17556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17557 ecode1 = SWIG_AsVal_int(obj0, &val1);
17558 if (!SWIG_IsOK(ecode1)) {
17559 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17560 }
17561 arg1 = static_cast< wxFontEncoding >(val1);
17562 if (obj1) {
17563 ecode2 = SWIG_AsVal_int(obj1, &val2);
17564 if (!SWIG_IsOK(ecode2)) {
17565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17566 }
17567 arg2 = static_cast< int >(val2);
17568 }
17569 {
17570 PyThreadState* __tstate = wxPyBeginAllowThreads();
17571 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17572 wxPyEndAllowThreads(__tstate);
17573 if (PyErr_Occurred()) SWIG_fail;
17574 }
17575 {
17576 resultobj = PyList_New(0);
17577 for (size_t i=0; i < (&result)->GetCount(); i++) {
17578 PyObject* number = PyInt_FromLong((&result)->Item(i));
17579 PyList_Append(resultobj, number);
17580 Py_DECREF(number);
d55e5bfc 17581 }
554f62e9
RD
17582 }
17583 return resultobj;
17584fail:
17585 return NULL;
d55e5bfc
RD
17586}
17587
17588
554f62e9
RD
17589SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17590 PyObject *resultobj = 0;
17591 wxFontEncoding arg1 ;
17592 wxFontEncodingArray result;
17593 int val1 ;
17594 int ecode1 = 0 ;
17595 PyObject * obj0 = 0 ;
17596 char * kwnames[] = {
17597 (char *) "enc", NULL
17598 };
17599
17600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17601 ecode1 = SWIG_AsVal_int(obj0, &val1);
17602 if (!SWIG_IsOK(ecode1)) {
17603 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17604 }
17605 arg1 = static_cast< wxFontEncoding >(val1);
17606 {
17607 PyThreadState* __tstate = wxPyBeginAllowThreads();
17608 result = wxEncodingConverter::GetAllEquivalents(arg1);
17609 wxPyEndAllowThreads(__tstate);
17610 if (PyErr_Occurred()) SWIG_fail;
17611 }
17612 {
17613 resultobj = PyList_New(0);
17614 for (size_t i=0; i < (&result)->GetCount(); i++) {
17615 PyObject* number = PyInt_FromLong((&result)->Item(i));
17616 PyList_Append(resultobj, number);
17617 Py_DECREF(number);
d55e5bfc 17618 }
554f62e9
RD
17619 }
17620 return resultobj;
17621fail:
17622 return NULL;
17623}
17624
17625
17626SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17627 PyObject *resultobj = 0;
17628 wxFontEncoding arg1 ;
17629 wxFontEncoding arg2 ;
17630 bool result;
17631 int val1 ;
17632 int ecode1 = 0 ;
17633 int val2 ;
17634 int ecode2 = 0 ;
17635 PyObject * obj0 = 0 ;
17636 PyObject * obj1 = 0 ;
17637 char * kwnames[] = {
17638 (char *) "encIn",(char *) "encOut", NULL
17639 };
17640
17641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17642 ecode1 = SWIG_AsVal_int(obj0, &val1);
17643 if (!SWIG_IsOK(ecode1)) {
17644 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17645 }
17646 arg1 = static_cast< wxFontEncoding >(val1);
17647 ecode2 = SWIG_AsVal_int(obj1, &val2);
17648 if (!SWIG_IsOK(ecode2)) {
17649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17650 }
17651 arg2 = static_cast< wxFontEncoding >(val2);
17652 {
17653 PyThreadState* __tstate = wxPyBeginAllowThreads();
17654 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17655 wxPyEndAllowThreads(__tstate);
17656 if (PyErr_Occurred()) SWIG_fail;
17657 }
17658 {
17659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17660 }
17661 return resultobj;
17662fail:
17663 return NULL;
d55e5bfc
RD
17664}
17665
17666
554f62e9
RD
17667SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17668 PyObject *obj;
17669 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17670 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17671 return SWIG_Py_Void();
d55e5bfc
RD
17672}
17673
554f62e9
RD
17674SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17675 return SWIG_Python_InitShadowInstance(args);
5e483524
RD
17676}
17677
554f62e9
RD
17678SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17679 PyObject *resultobj = 0;
17680 wxDC *arg1 = (wxDC *) 0 ;
17681 void *argp1 = 0 ;
17682 int res1 = 0 ;
17683 PyObject *swig_obj[1] ;
17684
17685 if (!args) SWIG_fail;
17686 swig_obj[0] = args;
17687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17688 if (!SWIG_IsOK(res1)) {
17689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17690 }
17691 arg1 = reinterpret_cast< wxDC * >(argp1);
17692 {
17693 PyThreadState* __tstate = wxPyBeginAllowThreads();
17694 delete arg1;
d55e5bfc 17695
554f62e9
RD
17696 wxPyEndAllowThreads(__tstate);
17697 if (PyErr_Occurred()) SWIG_fail;
17698 }
17699 resultobj = SWIG_Py_Void();
17700 return resultobj;
17701fail:
17702 return NULL;
17703}
17704
17705
17706SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17707 PyObject *resultobj = 0;
17708 wxDC *arg1 = (wxDC *) 0 ;
17709 int arg2 ;
17710 int arg3 ;
17711 wxColour *arg4 = 0 ;
17712 int arg5 = (int) wxFLOOD_SURFACE ;
17713 bool result;
17714 void *argp1 = 0 ;
17715 int res1 = 0 ;
17716 int val2 ;
17717 int ecode2 = 0 ;
17718 int val3 ;
17719 int ecode3 = 0 ;
17720 wxColour temp4 ;
17721 int val5 ;
17722 int ecode5 = 0 ;
17723 PyObject * obj0 = 0 ;
17724 PyObject * obj1 = 0 ;
17725 PyObject * obj2 = 0 ;
17726 PyObject * obj3 = 0 ;
17727 PyObject * obj4 = 0 ;
17728 char * kwnames[] = {
17729 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17730 };
17731
17732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17734 if (!SWIG_IsOK(res1)) {
17735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17736 }
17737 arg1 = reinterpret_cast< wxDC * >(argp1);
17738 ecode2 = SWIG_AsVal_int(obj1, &val2);
17739 if (!SWIG_IsOK(ecode2)) {
17740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17741 }
17742 arg2 = static_cast< int >(val2);
17743 ecode3 = SWIG_AsVal_int(obj2, &val3);
17744 if (!SWIG_IsOK(ecode3)) {
17745 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17746 }
17747 arg3 = static_cast< int >(val3);
17748 {
17749 arg4 = &temp4;
17750 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17751 }
17752 if (obj4) {
17753 ecode5 = SWIG_AsVal_int(obj4, &val5);
17754 if (!SWIG_IsOK(ecode5)) {
17755 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17756 }
17757 arg5 = static_cast< int >(val5);
17758 }
17759 {
17760 PyThreadState* __tstate = wxPyBeginAllowThreads();
17761 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17762 wxPyEndAllowThreads(__tstate);
17763 if (PyErr_Occurred()) SWIG_fail;
17764 }
17765 {
17766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17767 }
17768 return resultobj;
17769fail:
17770 return NULL;
17771}
17772
17773
17774SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17775 PyObject *resultobj = 0;
17776 wxDC *arg1 = (wxDC *) 0 ;
17777 wxPoint *arg2 = 0 ;
17778 wxColour *arg3 = 0 ;
17779 int arg4 = (int) wxFLOOD_SURFACE ;
17780 bool result;
17781 void *argp1 = 0 ;
17782 int res1 = 0 ;
17783 wxPoint temp2 ;
17784 wxColour temp3 ;
17785 int val4 ;
17786 int ecode4 = 0 ;
17787 PyObject * obj0 = 0 ;
17788 PyObject * obj1 = 0 ;
17789 PyObject * obj2 = 0 ;
17790 PyObject * obj3 = 0 ;
17791 char * kwnames[] = {
17792 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17793 };
17794
17795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17797 if (!SWIG_IsOK(res1)) {
17798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17799 }
17800 arg1 = reinterpret_cast< wxDC * >(argp1);
17801 {
17802 arg2 = &temp2;
17803 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17804 }
17805 {
17806 arg3 = &temp3;
17807 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17808 }
17809 if (obj3) {
17810 ecode4 = SWIG_AsVal_int(obj3, &val4);
17811 if (!SWIG_IsOK(ecode4)) {
17812 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17813 }
17814 arg4 = static_cast< int >(val4);
17815 }
17816 {
17817 PyThreadState* __tstate = wxPyBeginAllowThreads();
17818 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17819 wxPyEndAllowThreads(__tstate);
17820 if (PyErr_Occurred()) SWIG_fail;
17821 }
17822 {
17823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17824 }
17825 return resultobj;
17826fail:
17827 return NULL;
17828}
17829
17830
17831SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17832 PyObject *resultobj = 0;
17833 wxDC *arg1 = (wxDC *) 0 ;
17834 wxRect *arg2 = 0 ;
17835 wxColour *arg3 = 0 ;
17836 wxColour *arg4 = 0 ;
17837 wxPoint *arg5 = 0 ;
17838 void *argp1 = 0 ;
17839 int res1 = 0 ;
17840 wxRect temp2 ;
17841 wxColour temp3 ;
17842 wxColour temp4 ;
17843 wxPoint temp5 ;
17844 PyObject * obj0 = 0 ;
17845 PyObject * obj1 = 0 ;
17846 PyObject * obj2 = 0 ;
17847 PyObject * obj3 = 0 ;
17848 PyObject * obj4 = 0 ;
17849 char * kwnames[] = {
17850 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17851 };
17852
17853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17855 if (!SWIG_IsOK(res1)) {
17856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17857 }
17858 arg1 = reinterpret_cast< wxDC * >(argp1);
17859 {
17860 arg2 = &temp2;
17861 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17862 }
17863 {
17864 arg3 = &temp3;
17865 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17866 }
17867 {
17868 arg4 = &temp4;
17869 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17870 }
17871 {
17872 arg5 = &temp5;
17873 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17874 }
17875 {
17876 PyThreadState* __tstate = wxPyBeginAllowThreads();
17877 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17878 wxPyEndAllowThreads(__tstate);
17879 if (PyErr_Occurred()) SWIG_fail;
17880 }
17881 resultobj = SWIG_Py_Void();
17882 return resultobj;
17883fail:
17884 return NULL;
17885}
17886
17887
17888SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17889 PyObject *resultobj = 0;
17890 wxDC *arg1 = (wxDC *) 0 ;
17891 wxRect *arg2 = 0 ;
17892 wxColour *arg3 = 0 ;
17893 wxColour *arg4 = 0 ;
17894 wxDirection arg5 = (wxDirection) wxEAST ;
17895 void *argp1 = 0 ;
17896 int res1 = 0 ;
17897 wxRect temp2 ;
17898 wxColour temp3 ;
17899 wxColour temp4 ;
17900 int val5 ;
17901 int ecode5 = 0 ;
17902 PyObject * obj0 = 0 ;
17903 PyObject * obj1 = 0 ;
17904 PyObject * obj2 = 0 ;
17905 PyObject * obj3 = 0 ;
17906 PyObject * obj4 = 0 ;
17907 char * kwnames[] = {
17908 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17909 };
17910
17911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17913 if (!SWIG_IsOK(res1)) {
17914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17915 }
17916 arg1 = reinterpret_cast< wxDC * >(argp1);
17917 {
17918 arg2 = &temp2;
17919 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17920 }
17921 {
17922 arg3 = &temp3;
17923 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17924 }
17925 {
17926 arg4 = &temp4;
17927 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17928 }
17929 if (obj4) {
17930 ecode5 = SWIG_AsVal_int(obj4, &val5);
17931 if (!SWIG_IsOK(ecode5)) {
17932 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17933 }
17934 arg5 = static_cast< wxDirection >(val5);
17935 }
17936 {
17937 PyThreadState* __tstate = wxPyBeginAllowThreads();
17938 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17939 wxPyEndAllowThreads(__tstate);
17940 if (PyErr_Occurred()) SWIG_fail;
17941 }
17942 resultobj = SWIG_Py_Void();
17943 return resultobj;
17944fail:
17945 return NULL;
17946}
17947
17948
17949SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17950 PyObject *resultobj = 0;
17951 wxDC *arg1 = (wxDC *) 0 ;
17952 int arg2 ;
17953 int arg3 ;
17954 wxColour result;
17955 void *argp1 = 0 ;
17956 int res1 = 0 ;
17957 int val2 ;
17958 int ecode2 = 0 ;
17959 int val3 ;
17960 int ecode3 = 0 ;
17961 PyObject * obj0 = 0 ;
17962 PyObject * obj1 = 0 ;
17963 PyObject * obj2 = 0 ;
17964 char * kwnames[] = {
17965 (char *) "self",(char *) "x",(char *) "y", NULL
17966 };
17967
17968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17970 if (!SWIG_IsOK(res1)) {
17971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17972 }
17973 arg1 = reinterpret_cast< wxDC * >(argp1);
17974 ecode2 = SWIG_AsVal_int(obj1, &val2);
17975 if (!SWIG_IsOK(ecode2)) {
17976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17977 }
17978 arg2 = static_cast< int >(val2);
17979 ecode3 = SWIG_AsVal_int(obj2, &val3);
17980 if (!SWIG_IsOK(ecode3)) {
17981 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17982 }
17983 arg3 = static_cast< int >(val3);
17984 {
17985 PyThreadState* __tstate = wxPyBeginAllowThreads();
17986 result = wxDC_GetPixel(arg1,arg2,arg3);
17987 wxPyEndAllowThreads(__tstate);
17988 if (PyErr_Occurred()) SWIG_fail;
17989 }
17990 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17991 return resultobj;
17992fail:
17993 return NULL;
17994}
17995
17996
17997SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17998 PyObject *resultobj = 0;
17999 wxDC *arg1 = (wxDC *) 0 ;
18000 wxPoint *arg2 = 0 ;
18001 wxColour result;
18002 void *argp1 = 0 ;
18003 int res1 = 0 ;
18004 wxPoint temp2 ;
18005 PyObject * obj0 = 0 ;
18006 PyObject * obj1 = 0 ;
18007 char * kwnames[] = {
18008 (char *) "self",(char *) "pt", NULL
18009 };
18010
18011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18013 if (!SWIG_IsOK(res1)) {
18014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18015 }
18016 arg1 = reinterpret_cast< wxDC * >(argp1);
18017 {
18018 arg2 = &temp2;
18019 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18020 }
18021 {
18022 PyThreadState* __tstate = wxPyBeginAllowThreads();
18023 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18024 wxPyEndAllowThreads(__tstate);
18025 if (PyErr_Occurred()) SWIG_fail;
18026 }
18027 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18028 return resultobj;
18029fail:
18030 return NULL;
18031}
18032
18033
18034SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18035 PyObject *resultobj = 0;
18036 wxDC *arg1 = (wxDC *) 0 ;
18037 int arg2 ;
18038 int arg3 ;
18039 int arg4 ;
18040 int arg5 ;
18041 void *argp1 = 0 ;
18042 int res1 = 0 ;
18043 int val2 ;
18044 int ecode2 = 0 ;
18045 int val3 ;
18046 int ecode3 = 0 ;
18047 int val4 ;
18048 int ecode4 = 0 ;
18049 int val5 ;
18050 int ecode5 = 0 ;
18051 PyObject * obj0 = 0 ;
18052 PyObject * obj1 = 0 ;
18053 PyObject * obj2 = 0 ;
18054 PyObject * obj3 = 0 ;
18055 PyObject * obj4 = 0 ;
18056 char * kwnames[] = {
18057 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18058 };
18059
18060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18062 if (!SWIG_IsOK(res1)) {
18063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18064 }
18065 arg1 = reinterpret_cast< wxDC * >(argp1);
18066 ecode2 = SWIG_AsVal_int(obj1, &val2);
18067 if (!SWIG_IsOK(ecode2)) {
18068 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18069 }
18070 arg2 = static_cast< int >(val2);
18071 ecode3 = SWIG_AsVal_int(obj2, &val3);
18072 if (!SWIG_IsOK(ecode3)) {
18073 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18074 }
18075 arg3 = static_cast< int >(val3);
18076 ecode4 = SWIG_AsVal_int(obj3, &val4);
18077 if (!SWIG_IsOK(ecode4)) {
18078 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18079 }
18080 arg4 = static_cast< int >(val4);
18081 ecode5 = SWIG_AsVal_int(obj4, &val5);
18082 if (!SWIG_IsOK(ecode5)) {
18083 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18084 }
18085 arg5 = static_cast< int >(val5);
18086 {
18087 PyThreadState* __tstate = wxPyBeginAllowThreads();
18088 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18089 wxPyEndAllowThreads(__tstate);
18090 if (PyErr_Occurred()) SWIG_fail;
18091 }
18092 resultobj = SWIG_Py_Void();
18093 return resultobj;
18094fail:
18095 return NULL;
18096}
18097
18098
18099SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18100 PyObject *resultobj = 0;
18101 wxDC *arg1 = (wxDC *) 0 ;
18102 wxPoint *arg2 = 0 ;
18103 wxPoint *arg3 = 0 ;
18104 void *argp1 = 0 ;
18105 int res1 = 0 ;
18106 wxPoint temp2 ;
18107 wxPoint temp3 ;
18108 PyObject * obj0 = 0 ;
18109 PyObject * obj1 = 0 ;
18110 PyObject * obj2 = 0 ;
18111 char * kwnames[] = {
18112 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18113 };
18114
18115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18117 if (!SWIG_IsOK(res1)) {
18118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18119 }
18120 arg1 = reinterpret_cast< wxDC * >(argp1);
18121 {
18122 arg2 = &temp2;
18123 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18124 }
18125 {
18126 arg3 = &temp3;
18127 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18128 }
18129 {
18130 PyThreadState* __tstate = wxPyBeginAllowThreads();
18131 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18132 wxPyEndAllowThreads(__tstate);
18133 if (PyErr_Occurred()) SWIG_fail;
18134 }
18135 resultobj = SWIG_Py_Void();
18136 return resultobj;
18137fail:
18138 return NULL;
18139}
18140
18141
18142SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18143 PyObject *resultobj = 0;
18144 wxDC *arg1 = (wxDC *) 0 ;
18145 int arg2 ;
18146 int arg3 ;
18147 void *argp1 = 0 ;
18148 int res1 = 0 ;
18149 int val2 ;
18150 int ecode2 = 0 ;
18151 int val3 ;
18152 int ecode3 = 0 ;
18153 PyObject * obj0 = 0 ;
18154 PyObject * obj1 = 0 ;
18155 PyObject * obj2 = 0 ;
18156 char * kwnames[] = {
18157 (char *) "self",(char *) "x",(char *) "y", NULL
18158 };
18159
18160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18162 if (!SWIG_IsOK(res1)) {
18163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18164 }
18165 arg1 = reinterpret_cast< wxDC * >(argp1);
18166 ecode2 = SWIG_AsVal_int(obj1, &val2);
18167 if (!SWIG_IsOK(ecode2)) {
18168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18169 }
18170 arg2 = static_cast< int >(val2);
18171 ecode3 = SWIG_AsVal_int(obj2, &val3);
18172 if (!SWIG_IsOK(ecode3)) {
18173 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18174 }
18175 arg3 = static_cast< int >(val3);
18176 {
18177 PyThreadState* __tstate = wxPyBeginAllowThreads();
18178 (arg1)->CrossHair(arg2,arg3);
18179 wxPyEndAllowThreads(__tstate);
18180 if (PyErr_Occurred()) SWIG_fail;
18181 }
18182 resultobj = SWIG_Py_Void();
18183 return resultobj;
18184fail:
18185 return NULL;
18186}
18187
18188
18189SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18190 PyObject *resultobj = 0;
18191 wxDC *arg1 = (wxDC *) 0 ;
18192 wxPoint *arg2 = 0 ;
18193 void *argp1 = 0 ;
18194 int res1 = 0 ;
18195 wxPoint temp2 ;
18196 PyObject * obj0 = 0 ;
18197 PyObject * obj1 = 0 ;
18198 char * kwnames[] = {
18199 (char *) "self",(char *) "pt", NULL
18200 };
18201
18202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18204 if (!SWIG_IsOK(res1)) {
18205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18206 }
18207 arg1 = reinterpret_cast< wxDC * >(argp1);
18208 {
18209 arg2 = &temp2;
18210 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18211 }
18212 {
18213 PyThreadState* __tstate = wxPyBeginAllowThreads();
18214 (arg1)->CrossHair((wxPoint const &)*arg2);
18215 wxPyEndAllowThreads(__tstate);
18216 if (PyErr_Occurred()) SWIG_fail;
18217 }
18218 resultobj = SWIG_Py_Void();
18219 return resultobj;
18220fail:
18221 return NULL;
18222}
18223
18224
18225SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18226 PyObject *resultobj = 0;
18227 wxDC *arg1 = (wxDC *) 0 ;
18228 int arg2 ;
18229 int arg3 ;
18230 int arg4 ;
18231 int arg5 ;
18232 int arg6 ;
18233 int arg7 ;
18234 void *argp1 = 0 ;
18235 int res1 = 0 ;
18236 int val2 ;
18237 int ecode2 = 0 ;
18238 int val3 ;
18239 int ecode3 = 0 ;
18240 int val4 ;
18241 int ecode4 = 0 ;
18242 int val5 ;
18243 int ecode5 = 0 ;
18244 int val6 ;
18245 int ecode6 = 0 ;
18246 int val7 ;
18247 int ecode7 = 0 ;
18248 PyObject * obj0 = 0 ;
18249 PyObject * obj1 = 0 ;
18250 PyObject * obj2 = 0 ;
18251 PyObject * obj3 = 0 ;
18252 PyObject * obj4 = 0 ;
18253 PyObject * obj5 = 0 ;
18254 PyObject * obj6 = 0 ;
18255 char * kwnames[] = {
18256 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18257 };
18258
18259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18261 if (!SWIG_IsOK(res1)) {
18262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18263 }
18264 arg1 = reinterpret_cast< wxDC * >(argp1);
18265 ecode2 = SWIG_AsVal_int(obj1, &val2);
18266 if (!SWIG_IsOK(ecode2)) {
18267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18268 }
18269 arg2 = static_cast< int >(val2);
18270 ecode3 = SWIG_AsVal_int(obj2, &val3);
18271 if (!SWIG_IsOK(ecode3)) {
18272 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18273 }
18274 arg3 = static_cast< int >(val3);
18275 ecode4 = SWIG_AsVal_int(obj3, &val4);
18276 if (!SWIG_IsOK(ecode4)) {
18277 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18278 }
18279 arg4 = static_cast< int >(val4);
18280 ecode5 = SWIG_AsVal_int(obj4, &val5);
18281 if (!SWIG_IsOK(ecode5)) {
18282 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18283 }
18284 arg5 = static_cast< int >(val5);
18285 ecode6 = SWIG_AsVal_int(obj5, &val6);
18286 if (!SWIG_IsOK(ecode6)) {
18287 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18288 }
18289 arg6 = static_cast< int >(val6);
18290 ecode7 = SWIG_AsVal_int(obj6, &val7);
18291 if (!SWIG_IsOK(ecode7)) {
18292 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18293 }
18294 arg7 = static_cast< int >(val7);
18295 {
18296 PyThreadState* __tstate = wxPyBeginAllowThreads();
18297 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18298 wxPyEndAllowThreads(__tstate);
18299 if (PyErr_Occurred()) SWIG_fail;
18300 }
18301 resultobj = SWIG_Py_Void();
18302 return resultobj;
18303fail:
18304 return NULL;
18305}
18306
18307
18308SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18309 PyObject *resultobj = 0;
18310 wxDC *arg1 = (wxDC *) 0 ;
18311 wxPoint *arg2 = 0 ;
18312 wxPoint *arg3 = 0 ;
18313 wxPoint *arg4 = 0 ;
18314 void *argp1 = 0 ;
18315 int res1 = 0 ;
18316 wxPoint temp2 ;
18317 wxPoint temp3 ;
18318 wxPoint temp4 ;
18319 PyObject * obj0 = 0 ;
18320 PyObject * obj1 = 0 ;
18321 PyObject * obj2 = 0 ;
18322 PyObject * obj3 = 0 ;
18323 char * kwnames[] = {
18324 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18325 };
18326
18327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18329 if (!SWIG_IsOK(res1)) {
18330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18331 }
18332 arg1 = reinterpret_cast< wxDC * >(argp1);
18333 {
18334 arg2 = &temp2;
18335 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18336 }
18337 {
18338 arg3 = &temp3;
18339 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18340 }
18341 {
18342 arg4 = &temp4;
18343 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18344 }
18345 {
18346 PyThreadState* __tstate = wxPyBeginAllowThreads();
18347 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18348 wxPyEndAllowThreads(__tstate);
18349 if (PyErr_Occurred()) SWIG_fail;
18350 }
18351 resultobj = SWIG_Py_Void();
18352 return resultobj;
18353fail:
18354 return NULL;
18355}
18356
18357
18358SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18359 PyObject *resultobj = 0;
18360 wxDC *arg1 = (wxDC *) 0 ;
18361 int arg2 ;
18362 int arg3 ;
18363 int arg4 ;
18364 int arg5 ;
18365 void *argp1 = 0 ;
18366 int res1 = 0 ;
18367 int val2 ;
18368 int ecode2 = 0 ;
18369 int val3 ;
18370 int ecode3 = 0 ;
18371 int val4 ;
18372 int ecode4 = 0 ;
18373 int val5 ;
18374 int ecode5 = 0 ;
18375 PyObject * obj0 = 0 ;
18376 PyObject * obj1 = 0 ;
18377 PyObject * obj2 = 0 ;
18378 PyObject * obj3 = 0 ;
18379 PyObject * obj4 = 0 ;
18380 char * kwnames[] = {
18381 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18382 };
18383
18384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18386 if (!SWIG_IsOK(res1)) {
18387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18388 }
18389 arg1 = reinterpret_cast< wxDC * >(argp1);
18390 ecode2 = SWIG_AsVal_int(obj1, &val2);
18391 if (!SWIG_IsOK(ecode2)) {
18392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18393 }
18394 arg2 = static_cast< int >(val2);
18395 ecode3 = SWIG_AsVal_int(obj2, &val3);
18396 if (!SWIG_IsOK(ecode3)) {
18397 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18398 }
18399 arg3 = static_cast< int >(val3);
18400 ecode4 = SWIG_AsVal_int(obj3, &val4);
18401 if (!SWIG_IsOK(ecode4)) {
18402 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18403 }
18404 arg4 = static_cast< int >(val4);
18405 ecode5 = SWIG_AsVal_int(obj4, &val5);
18406 if (!SWIG_IsOK(ecode5)) {
18407 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18408 }
18409 arg5 = static_cast< int >(val5);
18410 {
18411 PyThreadState* __tstate = wxPyBeginAllowThreads();
18412 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18413 wxPyEndAllowThreads(__tstate);
18414 if (PyErr_Occurred()) SWIG_fail;
18415 }
18416 resultobj = SWIG_Py_Void();
18417 return resultobj;
18418fail:
18419 return NULL;
18420}
18421
18422
18423SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18424 PyObject *resultobj = 0;
18425 wxDC *arg1 = (wxDC *) 0 ;
18426 wxRect *arg2 = 0 ;
18427 void *argp1 = 0 ;
18428 int res1 = 0 ;
18429 wxRect temp2 ;
18430 PyObject * obj0 = 0 ;
18431 PyObject * obj1 = 0 ;
18432 char * kwnames[] = {
18433 (char *) "self",(char *) "rect", NULL
18434 };
18435
18436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18438 if (!SWIG_IsOK(res1)) {
18439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18440 }
18441 arg1 = reinterpret_cast< wxDC * >(argp1);
18442 {
18443 arg2 = &temp2;
18444 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18445 }
18446 {
18447 PyThreadState* __tstate = wxPyBeginAllowThreads();
18448 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18449 wxPyEndAllowThreads(__tstate);
18450 if (PyErr_Occurred()) SWIG_fail;
18451 }
18452 resultobj = SWIG_Py_Void();
18453 return resultobj;
18454fail:
18455 return NULL;
18456}
18457
18458
18459SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18460 PyObject *resultobj = 0;
18461 wxDC *arg1 = (wxDC *) 0 ;
18462 int arg2 ;
18463 int arg3 ;
18464 int arg4 ;
18465 int arg5 ;
18466 double arg6 ;
18467 double arg7 ;
18468 void *argp1 = 0 ;
18469 int res1 = 0 ;
18470 int val2 ;
18471 int ecode2 = 0 ;
18472 int val3 ;
18473 int ecode3 = 0 ;
18474 int val4 ;
18475 int ecode4 = 0 ;
18476 int val5 ;
18477 int ecode5 = 0 ;
18478 double val6 ;
18479 int ecode6 = 0 ;
18480 double val7 ;
18481 int ecode7 = 0 ;
18482 PyObject * obj0 = 0 ;
18483 PyObject * obj1 = 0 ;
18484 PyObject * obj2 = 0 ;
18485 PyObject * obj3 = 0 ;
18486 PyObject * obj4 = 0 ;
18487 PyObject * obj5 = 0 ;
18488 PyObject * obj6 = 0 ;
18489 char * kwnames[] = {
18490 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18491 };
18492
18493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18495 if (!SWIG_IsOK(res1)) {
18496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18497 }
18498 arg1 = reinterpret_cast< wxDC * >(argp1);
18499 ecode2 = SWIG_AsVal_int(obj1, &val2);
18500 if (!SWIG_IsOK(ecode2)) {
18501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18502 }
18503 arg2 = static_cast< int >(val2);
18504 ecode3 = SWIG_AsVal_int(obj2, &val3);
18505 if (!SWIG_IsOK(ecode3)) {
18506 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18507 }
18508 arg3 = static_cast< int >(val3);
18509 ecode4 = SWIG_AsVal_int(obj3, &val4);
18510 if (!SWIG_IsOK(ecode4)) {
18511 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18512 }
18513 arg4 = static_cast< int >(val4);
18514 ecode5 = SWIG_AsVal_int(obj4, &val5);
18515 if (!SWIG_IsOK(ecode5)) {
18516 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18517 }
18518 arg5 = static_cast< int >(val5);
18519 ecode6 = SWIG_AsVal_double(obj5, &val6);
18520 if (!SWIG_IsOK(ecode6)) {
18521 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18522 }
18523 arg6 = static_cast< double >(val6);
18524 ecode7 = SWIG_AsVal_double(obj6, &val7);
18525 if (!SWIG_IsOK(ecode7)) {
18526 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18527 }
18528 arg7 = static_cast< double >(val7);
18529 {
18530 PyThreadState* __tstate = wxPyBeginAllowThreads();
18531 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18532 wxPyEndAllowThreads(__tstate);
18533 if (PyErr_Occurred()) SWIG_fail;
18534 }
18535 resultobj = SWIG_Py_Void();
18536 return resultobj;
18537fail:
18538 return NULL;
18539}
18540
18541
18542SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18543 PyObject *resultobj = 0;
18544 wxDC *arg1 = (wxDC *) 0 ;
18545 wxPoint *arg2 = 0 ;
18546 wxSize *arg3 = 0 ;
18547 double arg4 ;
18548 double arg5 ;
18549 void *argp1 = 0 ;
18550 int res1 = 0 ;
18551 wxPoint temp2 ;
18552 wxSize temp3 ;
18553 double val4 ;
18554 int ecode4 = 0 ;
18555 double val5 ;
18556 int ecode5 = 0 ;
18557 PyObject * obj0 = 0 ;
18558 PyObject * obj1 = 0 ;
18559 PyObject * obj2 = 0 ;
18560 PyObject * obj3 = 0 ;
18561 PyObject * obj4 = 0 ;
18562 char * kwnames[] = {
18563 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18564 };
18565
18566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18568 if (!SWIG_IsOK(res1)) {
18569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18570 }
18571 arg1 = reinterpret_cast< wxDC * >(argp1);
18572 {
18573 arg2 = &temp2;
18574 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18575 }
18576 {
18577 arg3 = &temp3;
18578 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18579 }
18580 ecode4 = SWIG_AsVal_double(obj3, &val4);
18581 if (!SWIG_IsOK(ecode4)) {
18582 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18583 }
18584 arg4 = static_cast< double >(val4);
18585 ecode5 = SWIG_AsVal_double(obj4, &val5);
18586 if (!SWIG_IsOK(ecode5)) {
18587 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18588 }
18589 arg5 = static_cast< double >(val5);
18590 {
18591 PyThreadState* __tstate = wxPyBeginAllowThreads();
18592 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18593 wxPyEndAllowThreads(__tstate);
18594 if (PyErr_Occurred()) SWIG_fail;
18595 }
18596 resultobj = SWIG_Py_Void();
18597 return resultobj;
18598fail:
18599 return NULL;
18600}
18601
18602
18603SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18604 PyObject *resultobj = 0;
18605 wxDC *arg1 = (wxDC *) 0 ;
18606 int arg2 ;
18607 int arg3 ;
18608 void *argp1 = 0 ;
18609 int res1 = 0 ;
18610 int val2 ;
18611 int ecode2 = 0 ;
18612 int val3 ;
18613 int ecode3 = 0 ;
18614 PyObject * obj0 = 0 ;
18615 PyObject * obj1 = 0 ;
18616 PyObject * obj2 = 0 ;
18617 char * kwnames[] = {
18618 (char *) "self",(char *) "x",(char *) "y", NULL
18619 };
18620
18621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18623 if (!SWIG_IsOK(res1)) {
18624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18625 }
18626 arg1 = reinterpret_cast< wxDC * >(argp1);
18627 ecode2 = SWIG_AsVal_int(obj1, &val2);
18628 if (!SWIG_IsOK(ecode2)) {
18629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18630 }
18631 arg2 = static_cast< int >(val2);
18632 ecode3 = SWIG_AsVal_int(obj2, &val3);
18633 if (!SWIG_IsOK(ecode3)) {
18634 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18635 }
18636 arg3 = static_cast< int >(val3);
18637 {
18638 PyThreadState* __tstate = wxPyBeginAllowThreads();
18639 (arg1)->DrawPoint(arg2,arg3);
18640 wxPyEndAllowThreads(__tstate);
18641 if (PyErr_Occurred()) SWIG_fail;
18642 }
18643 resultobj = SWIG_Py_Void();
18644 return resultobj;
18645fail:
18646 return NULL;
18647}
18648
18649
18650SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18651 PyObject *resultobj = 0;
18652 wxDC *arg1 = (wxDC *) 0 ;
18653 wxPoint *arg2 = 0 ;
18654 void *argp1 = 0 ;
18655 int res1 = 0 ;
18656 wxPoint temp2 ;
18657 PyObject * obj0 = 0 ;
18658 PyObject * obj1 = 0 ;
18659 char * kwnames[] = {
18660 (char *) "self",(char *) "pt", NULL
18661 };
18662
18663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18665 if (!SWIG_IsOK(res1)) {
18666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18667 }
18668 arg1 = reinterpret_cast< wxDC * >(argp1);
18669 {
18670 arg2 = &temp2;
18671 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18672 }
18673 {
18674 PyThreadState* __tstate = wxPyBeginAllowThreads();
18675 (arg1)->DrawPoint((wxPoint const &)*arg2);
18676 wxPyEndAllowThreads(__tstate);
18677 if (PyErr_Occurred()) SWIG_fail;
18678 }
18679 resultobj = SWIG_Py_Void();
18680 return resultobj;
18681fail:
18682 return NULL;
18683}
18684
18685
18686SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18687 PyObject *resultobj = 0;
18688 wxDC *arg1 = (wxDC *) 0 ;
18689 int arg2 ;
18690 int arg3 ;
18691 int arg4 ;
18692 int arg5 ;
18693 void *argp1 = 0 ;
18694 int res1 = 0 ;
18695 int val2 ;
18696 int ecode2 = 0 ;
18697 int val3 ;
18698 int ecode3 = 0 ;
18699 int val4 ;
18700 int ecode4 = 0 ;
18701 int val5 ;
18702 int ecode5 = 0 ;
18703 PyObject * obj0 = 0 ;
18704 PyObject * obj1 = 0 ;
18705 PyObject * obj2 = 0 ;
18706 PyObject * obj3 = 0 ;
18707 PyObject * obj4 = 0 ;
18708 char * kwnames[] = {
18709 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18710 };
18711
18712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18714 if (!SWIG_IsOK(res1)) {
18715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18716 }
18717 arg1 = reinterpret_cast< wxDC * >(argp1);
18718 ecode2 = SWIG_AsVal_int(obj1, &val2);
18719 if (!SWIG_IsOK(ecode2)) {
18720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18721 }
18722 arg2 = static_cast< int >(val2);
18723 ecode3 = SWIG_AsVal_int(obj2, &val3);
18724 if (!SWIG_IsOK(ecode3)) {
18725 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18726 }
18727 arg3 = static_cast< int >(val3);
18728 ecode4 = SWIG_AsVal_int(obj3, &val4);
18729 if (!SWIG_IsOK(ecode4)) {
18730 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18731 }
18732 arg4 = static_cast< int >(val4);
18733 ecode5 = SWIG_AsVal_int(obj4, &val5);
18734 if (!SWIG_IsOK(ecode5)) {
18735 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18736 }
18737 arg5 = static_cast< int >(val5);
18738 {
18739 PyThreadState* __tstate = wxPyBeginAllowThreads();
18740 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18741 wxPyEndAllowThreads(__tstate);
18742 if (PyErr_Occurred()) SWIG_fail;
18743 }
18744 resultobj = SWIG_Py_Void();
18745 return resultobj;
18746fail:
18747 return NULL;
18748}
18749
18750
18751SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18752 PyObject *resultobj = 0;
18753 wxDC *arg1 = (wxDC *) 0 ;
18754 wxRect *arg2 = 0 ;
18755 void *argp1 = 0 ;
18756 int res1 = 0 ;
18757 wxRect temp2 ;
18758 PyObject * obj0 = 0 ;
18759 PyObject * obj1 = 0 ;
18760 char * kwnames[] = {
18761 (char *) "self",(char *) "rect", NULL
18762 };
18763
18764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18766 if (!SWIG_IsOK(res1)) {
18767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18768 }
18769 arg1 = reinterpret_cast< wxDC * >(argp1);
18770 {
18771 arg2 = &temp2;
18772 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18773 }
18774 {
18775 PyThreadState* __tstate = wxPyBeginAllowThreads();
18776 (arg1)->DrawRectangle((wxRect const &)*arg2);
18777 wxPyEndAllowThreads(__tstate);
18778 if (PyErr_Occurred()) SWIG_fail;
18779 }
18780 resultobj = SWIG_Py_Void();
18781 return resultobj;
18782fail:
18783 return NULL;
18784}
18785
18786
18787SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18788 PyObject *resultobj = 0;
18789 wxDC *arg1 = (wxDC *) 0 ;
18790 wxPoint *arg2 = 0 ;
18791 wxSize *arg3 = 0 ;
18792 void *argp1 = 0 ;
18793 int res1 = 0 ;
18794 wxPoint temp2 ;
18795 wxSize temp3 ;
18796 PyObject * obj0 = 0 ;
18797 PyObject * obj1 = 0 ;
18798 PyObject * obj2 = 0 ;
18799 char * kwnames[] = {
18800 (char *) "self",(char *) "pt",(char *) "sz", NULL
18801 };
18802
18803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18805 if (!SWIG_IsOK(res1)) {
18806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18807 }
18808 arg1 = reinterpret_cast< wxDC * >(argp1);
18809 {
18810 arg2 = &temp2;
18811 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18812 }
18813 {
18814 arg3 = &temp3;
18815 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18816 }
18817 {
18818 PyThreadState* __tstate = wxPyBeginAllowThreads();
18819 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18820 wxPyEndAllowThreads(__tstate);
18821 if (PyErr_Occurred()) SWIG_fail;
18822 }
18823 resultobj = SWIG_Py_Void();
18824 return resultobj;
18825fail:
18826 return NULL;
18827}
18828
18829
18830SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18831 PyObject *resultobj = 0;
18832 wxDC *arg1 = (wxDC *) 0 ;
18833 int arg2 ;
18834 int arg3 ;
18835 int arg4 ;
18836 int arg5 ;
18837 double arg6 ;
18838 void *argp1 = 0 ;
18839 int res1 = 0 ;
18840 int val2 ;
18841 int ecode2 = 0 ;
18842 int val3 ;
18843 int ecode3 = 0 ;
18844 int val4 ;
18845 int ecode4 = 0 ;
18846 int val5 ;
18847 int ecode5 = 0 ;
18848 double val6 ;
18849 int ecode6 = 0 ;
18850 PyObject * obj0 = 0 ;
18851 PyObject * obj1 = 0 ;
18852 PyObject * obj2 = 0 ;
18853 PyObject * obj3 = 0 ;
18854 PyObject * obj4 = 0 ;
18855 PyObject * obj5 = 0 ;
18856 char * kwnames[] = {
18857 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18858 };
18859
18860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18862 if (!SWIG_IsOK(res1)) {
18863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18864 }
18865 arg1 = reinterpret_cast< wxDC * >(argp1);
18866 ecode2 = SWIG_AsVal_int(obj1, &val2);
18867 if (!SWIG_IsOK(ecode2)) {
18868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18869 }
18870 arg2 = static_cast< int >(val2);
18871 ecode3 = SWIG_AsVal_int(obj2, &val3);
18872 if (!SWIG_IsOK(ecode3)) {
18873 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18874 }
18875 arg3 = static_cast< int >(val3);
18876 ecode4 = SWIG_AsVal_int(obj3, &val4);
18877 if (!SWIG_IsOK(ecode4)) {
18878 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18879 }
18880 arg4 = static_cast< int >(val4);
18881 ecode5 = SWIG_AsVal_int(obj4, &val5);
18882 if (!SWIG_IsOK(ecode5)) {
18883 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18884 }
18885 arg5 = static_cast< int >(val5);
18886 ecode6 = SWIG_AsVal_double(obj5, &val6);
18887 if (!SWIG_IsOK(ecode6)) {
18888 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18889 }
18890 arg6 = static_cast< double >(val6);
18891 {
18892 PyThreadState* __tstate = wxPyBeginAllowThreads();
18893 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18894 wxPyEndAllowThreads(__tstate);
18895 if (PyErr_Occurred()) SWIG_fail;
18896 }
18897 resultobj = SWIG_Py_Void();
18898 return resultobj;
18899fail:
18900 return NULL;
18901}
18902
18903
18904SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18905 PyObject *resultobj = 0;
18906 wxDC *arg1 = (wxDC *) 0 ;
18907 wxRect *arg2 = 0 ;
18908 double arg3 ;
18909 void *argp1 = 0 ;
18910 int res1 = 0 ;
18911 wxRect temp2 ;
18912 double val3 ;
18913 int ecode3 = 0 ;
18914 PyObject * obj0 = 0 ;
18915 PyObject * obj1 = 0 ;
18916 PyObject * obj2 = 0 ;
18917 char * kwnames[] = {
18918 (char *) "self",(char *) "r",(char *) "radius", NULL
18919 };
18920
18921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18923 if (!SWIG_IsOK(res1)) {
18924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18925 }
18926 arg1 = reinterpret_cast< wxDC * >(argp1);
18927 {
18928 arg2 = &temp2;
18929 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18930 }
18931 ecode3 = SWIG_AsVal_double(obj2, &val3);
18932 if (!SWIG_IsOK(ecode3)) {
18933 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18934 }
18935 arg3 = static_cast< double >(val3);
18936 {
18937 PyThreadState* __tstate = wxPyBeginAllowThreads();
18938 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18939 wxPyEndAllowThreads(__tstate);
18940 if (PyErr_Occurred()) SWIG_fail;
18941 }
18942 resultobj = SWIG_Py_Void();
18943 return resultobj;
18944fail:
18945 return NULL;
18946}
18947
18948
18949SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18950 PyObject *resultobj = 0;
18951 wxDC *arg1 = (wxDC *) 0 ;
18952 wxPoint *arg2 = 0 ;
18953 wxSize *arg3 = 0 ;
18954 double arg4 ;
18955 void *argp1 = 0 ;
18956 int res1 = 0 ;
18957 wxPoint temp2 ;
18958 wxSize temp3 ;
18959 double val4 ;
18960 int ecode4 = 0 ;
18961 PyObject * obj0 = 0 ;
18962 PyObject * obj1 = 0 ;
18963 PyObject * obj2 = 0 ;
18964 PyObject * obj3 = 0 ;
18965 char * kwnames[] = {
18966 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18967 };
18968
18969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18971 if (!SWIG_IsOK(res1)) {
18972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18973 }
18974 arg1 = reinterpret_cast< wxDC * >(argp1);
18975 {
18976 arg2 = &temp2;
18977 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18978 }
18979 {
18980 arg3 = &temp3;
18981 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18982 }
18983 ecode4 = SWIG_AsVal_double(obj3, &val4);
18984 if (!SWIG_IsOK(ecode4)) {
18985 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18986 }
18987 arg4 = static_cast< double >(val4);
18988 {
18989 PyThreadState* __tstate = wxPyBeginAllowThreads();
18990 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18991 wxPyEndAllowThreads(__tstate);
18992 if (PyErr_Occurred()) SWIG_fail;
18993 }
18994 resultobj = SWIG_Py_Void();
18995 return resultobj;
18996fail:
18997 return NULL;
18998}
18999
19000
19001SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19002 PyObject *resultobj = 0;
19003 wxDC *arg1 = (wxDC *) 0 ;
19004 int arg2 ;
19005 int arg3 ;
19006 int arg4 ;
19007 void *argp1 = 0 ;
19008 int res1 = 0 ;
19009 int val2 ;
19010 int ecode2 = 0 ;
19011 int val3 ;
19012 int ecode3 = 0 ;
19013 int val4 ;
19014 int ecode4 = 0 ;
19015 PyObject * obj0 = 0 ;
19016 PyObject * obj1 = 0 ;
19017 PyObject * obj2 = 0 ;
19018 PyObject * obj3 = 0 ;
19019 char * kwnames[] = {
19020 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19021 };
19022
19023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19025 if (!SWIG_IsOK(res1)) {
19026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19027 }
19028 arg1 = reinterpret_cast< wxDC * >(argp1);
19029 ecode2 = SWIG_AsVal_int(obj1, &val2);
19030 if (!SWIG_IsOK(ecode2)) {
19031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19032 }
19033 arg2 = static_cast< int >(val2);
19034 ecode3 = SWIG_AsVal_int(obj2, &val3);
19035 if (!SWIG_IsOK(ecode3)) {
19036 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19037 }
19038 arg3 = static_cast< int >(val3);
19039 ecode4 = SWIG_AsVal_int(obj3, &val4);
19040 if (!SWIG_IsOK(ecode4)) {
19041 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19042 }
19043 arg4 = static_cast< int >(val4);
19044 {
19045 PyThreadState* __tstate = wxPyBeginAllowThreads();
19046 (arg1)->DrawCircle(arg2,arg3,arg4);
19047 wxPyEndAllowThreads(__tstate);
19048 if (PyErr_Occurred()) SWIG_fail;
19049 }
19050 resultobj = SWIG_Py_Void();
19051 return resultobj;
19052fail:
19053 return NULL;
19054}
19055
19056
19057SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19058 PyObject *resultobj = 0;
19059 wxDC *arg1 = (wxDC *) 0 ;
19060 wxPoint *arg2 = 0 ;
19061 int arg3 ;
19062 void *argp1 = 0 ;
19063 int res1 = 0 ;
19064 wxPoint temp2 ;
19065 int val3 ;
19066 int ecode3 = 0 ;
19067 PyObject * obj0 = 0 ;
19068 PyObject * obj1 = 0 ;
19069 PyObject * obj2 = 0 ;
19070 char * kwnames[] = {
19071 (char *) "self",(char *) "pt",(char *) "radius", NULL
19072 };
19073
19074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19076 if (!SWIG_IsOK(res1)) {
19077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19078 }
19079 arg1 = reinterpret_cast< wxDC * >(argp1);
19080 {
19081 arg2 = &temp2;
19082 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19083 }
19084 ecode3 = SWIG_AsVal_int(obj2, &val3);
19085 if (!SWIG_IsOK(ecode3)) {
19086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19087 }
19088 arg3 = static_cast< int >(val3);
19089 {
19090 PyThreadState* __tstate = wxPyBeginAllowThreads();
19091 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19092 wxPyEndAllowThreads(__tstate);
19093 if (PyErr_Occurred()) SWIG_fail;
19094 }
19095 resultobj = SWIG_Py_Void();
19096 return resultobj;
19097fail:
19098 return NULL;
19099}
19100
19101
19102SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19103 PyObject *resultobj = 0;
19104 wxDC *arg1 = (wxDC *) 0 ;
19105 int arg2 ;
19106 int arg3 ;
19107 int arg4 ;
19108 int arg5 ;
19109 void *argp1 = 0 ;
19110 int res1 = 0 ;
19111 int val2 ;
19112 int ecode2 = 0 ;
19113 int val3 ;
19114 int ecode3 = 0 ;
19115 int val4 ;
19116 int ecode4 = 0 ;
19117 int 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 *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19126 };
19127
19128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",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_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19132 }
19133 arg1 = reinterpret_cast< wxDC * >(argp1);
19134 ecode2 = SWIG_AsVal_int(obj1, &val2);
19135 if (!SWIG_IsOK(ecode2)) {
19136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19137 }
19138 arg2 = static_cast< int >(val2);
19139 ecode3 = SWIG_AsVal_int(obj2, &val3);
19140 if (!SWIG_IsOK(ecode3)) {
19141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', 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_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19147 }
19148 arg4 = static_cast< int >(val4);
19149 ecode5 = SWIG_AsVal_int(obj4, &val5);
19150 if (!SWIG_IsOK(ecode5)) {
19151 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19152 }
19153 arg5 = static_cast< int >(val5);
19154 {
19155 PyThreadState* __tstate = wxPyBeginAllowThreads();
19156 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19157 wxPyEndAllowThreads(__tstate);
19158 if (PyErr_Occurred()) SWIG_fail;
19159 }
19160 resultobj = SWIG_Py_Void();
19161 return resultobj;
19162fail:
19163 return NULL;
19164}
19165
19166
19167SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19168 PyObject *resultobj = 0;
19169 wxDC *arg1 = (wxDC *) 0 ;
19170 wxRect *arg2 = 0 ;
19171 void *argp1 = 0 ;
19172 int res1 = 0 ;
19173 wxRect temp2 ;
19174 PyObject * obj0 = 0 ;
19175 PyObject * obj1 = 0 ;
19176 char * kwnames[] = {
19177 (char *) "self",(char *) "rect", NULL
19178 };
19179
19180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19182 if (!SWIG_IsOK(res1)) {
19183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19184 }
19185 arg1 = reinterpret_cast< wxDC * >(argp1);
19186 {
19187 arg2 = &temp2;
19188 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19189 }
19190 {
19191 PyThreadState* __tstate = wxPyBeginAllowThreads();
19192 (arg1)->DrawEllipse((wxRect const &)*arg2);
19193 wxPyEndAllowThreads(__tstate);
19194 if (PyErr_Occurred()) SWIG_fail;
19195 }
19196 resultobj = SWIG_Py_Void();
19197 return resultobj;
19198fail:
19199 return NULL;
19200}
19201
19202
19203SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19204 PyObject *resultobj = 0;
19205 wxDC *arg1 = (wxDC *) 0 ;
19206 wxPoint *arg2 = 0 ;
19207 wxSize *arg3 = 0 ;
19208 void *argp1 = 0 ;
19209 int res1 = 0 ;
19210 wxPoint temp2 ;
19211 wxSize temp3 ;
19212 PyObject * obj0 = 0 ;
19213 PyObject * obj1 = 0 ;
19214 PyObject * obj2 = 0 ;
19215 char * kwnames[] = {
19216 (char *) "self",(char *) "pt",(char *) "sz", NULL
19217 };
19218
19219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19221 if (!SWIG_IsOK(res1)) {
19222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19223 }
19224 arg1 = reinterpret_cast< wxDC * >(argp1);
19225 {
19226 arg2 = &temp2;
19227 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19228 }
19229 {
19230 arg3 = &temp3;
19231 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19232 }
19233 {
19234 PyThreadState* __tstate = wxPyBeginAllowThreads();
19235 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19236 wxPyEndAllowThreads(__tstate);
19237 if (PyErr_Occurred()) SWIG_fail;
19238 }
19239 resultobj = SWIG_Py_Void();
19240 return resultobj;
19241fail:
19242 return NULL;
19243}
19244
19245
19246SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19247 PyObject *resultobj = 0;
19248 wxDC *arg1 = (wxDC *) 0 ;
19249 wxIcon *arg2 = 0 ;
19250 int arg3 ;
19251 int arg4 ;
19252 void *argp1 = 0 ;
19253 int res1 = 0 ;
19254 void *argp2 = 0 ;
19255 int res2 = 0 ;
19256 int val3 ;
19257 int ecode3 = 0 ;
19258 int val4 ;
19259 int ecode4 = 0 ;
19260 PyObject * obj0 = 0 ;
19261 PyObject * obj1 = 0 ;
19262 PyObject * obj2 = 0 ;
19263 PyObject * obj3 = 0 ;
19264 char * kwnames[] = {
19265 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19266 };
19267
19268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19270 if (!SWIG_IsOK(res1)) {
19271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19272 }
19273 arg1 = reinterpret_cast< wxDC * >(argp1);
19274 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19275 if (!SWIG_IsOK(res2)) {
19276 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19277 }
19278 if (!argp2) {
19279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19280 }
19281 arg2 = reinterpret_cast< wxIcon * >(argp2);
19282 ecode3 = SWIG_AsVal_int(obj2, &val3);
19283 if (!SWIG_IsOK(ecode3)) {
19284 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19285 }
19286 arg3 = static_cast< int >(val3);
19287 ecode4 = SWIG_AsVal_int(obj3, &val4);
19288 if (!SWIG_IsOK(ecode4)) {
19289 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19290 }
19291 arg4 = static_cast< int >(val4);
19292 {
19293 PyThreadState* __tstate = wxPyBeginAllowThreads();
19294 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19295 wxPyEndAllowThreads(__tstate);
19296 if (PyErr_Occurred()) SWIG_fail;
19297 }
19298 resultobj = SWIG_Py_Void();
19299 return resultobj;
19300fail:
19301 return NULL;
19302}
19303
19304
19305SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19306 PyObject *resultobj = 0;
19307 wxDC *arg1 = (wxDC *) 0 ;
19308 wxIcon *arg2 = 0 ;
19309 wxPoint *arg3 = 0 ;
19310 void *argp1 = 0 ;
19311 int res1 = 0 ;
19312 void *argp2 = 0 ;
19313 int res2 = 0 ;
19314 wxPoint temp3 ;
19315 PyObject * obj0 = 0 ;
19316 PyObject * obj1 = 0 ;
19317 PyObject * obj2 = 0 ;
19318 char * kwnames[] = {
19319 (char *) "self",(char *) "icon",(char *) "pt", NULL
19320 };
19321
19322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19324 if (!SWIG_IsOK(res1)) {
19325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19326 }
19327 arg1 = reinterpret_cast< wxDC * >(argp1);
19328 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19329 if (!SWIG_IsOK(res2)) {
19330 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19331 }
19332 if (!argp2) {
19333 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19334 }
19335 arg2 = reinterpret_cast< wxIcon * >(argp2);
19336 {
19337 arg3 = &temp3;
19338 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19339 }
19340 {
19341 PyThreadState* __tstate = wxPyBeginAllowThreads();
19342 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19343 wxPyEndAllowThreads(__tstate);
19344 if (PyErr_Occurred()) SWIG_fail;
19345 }
19346 resultobj = SWIG_Py_Void();
19347 return resultobj;
19348fail:
19349 return NULL;
19350}
19351
19352
19353SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19354 PyObject *resultobj = 0;
19355 wxDC *arg1 = (wxDC *) 0 ;
19356 wxBitmap *arg2 = 0 ;
19357 int arg3 ;
19358 int arg4 ;
19359 bool arg5 = (bool) false ;
19360 void *argp1 = 0 ;
19361 int res1 = 0 ;
19362 void *argp2 = 0 ;
19363 int res2 = 0 ;
19364 int val3 ;
19365 int ecode3 = 0 ;
19366 int val4 ;
19367 int ecode4 = 0 ;
19368 bool val5 ;
19369 int ecode5 = 0 ;
19370 PyObject * obj0 = 0 ;
19371 PyObject * obj1 = 0 ;
19372 PyObject * obj2 = 0 ;
19373 PyObject * obj3 = 0 ;
19374 PyObject * obj4 = 0 ;
19375 char * kwnames[] = {
19376 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19377 };
19378
19379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19381 if (!SWIG_IsOK(res1)) {
19382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19383 }
19384 arg1 = reinterpret_cast< wxDC * >(argp1);
19385 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19386 if (!SWIG_IsOK(res2)) {
19387 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19388 }
19389 if (!argp2) {
19390 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19391 }
19392 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19393 ecode3 = SWIG_AsVal_int(obj2, &val3);
19394 if (!SWIG_IsOK(ecode3)) {
19395 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19396 }
19397 arg3 = static_cast< int >(val3);
19398 ecode4 = SWIG_AsVal_int(obj3, &val4);
19399 if (!SWIG_IsOK(ecode4)) {
19400 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19401 }
19402 arg4 = static_cast< int >(val4);
19403 if (obj4) {
19404 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19405 if (!SWIG_IsOK(ecode5)) {
19406 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19407 }
19408 arg5 = static_cast< bool >(val5);
19409 }
19410 {
19411 PyThreadState* __tstate = wxPyBeginAllowThreads();
19412 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19413 wxPyEndAllowThreads(__tstate);
19414 if (PyErr_Occurred()) SWIG_fail;
19415 }
19416 resultobj = SWIG_Py_Void();
19417 return resultobj;
19418fail:
19419 return NULL;
19420}
19421
19422
19423SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19424 PyObject *resultobj = 0;
19425 wxDC *arg1 = (wxDC *) 0 ;
19426 wxBitmap *arg2 = 0 ;
19427 wxPoint *arg3 = 0 ;
19428 bool arg4 = (bool) false ;
19429 void *argp1 = 0 ;
19430 int res1 = 0 ;
19431 void *argp2 = 0 ;
19432 int res2 = 0 ;
19433 wxPoint temp3 ;
19434 bool val4 ;
19435 int ecode4 = 0 ;
19436 PyObject * obj0 = 0 ;
19437 PyObject * obj1 = 0 ;
19438 PyObject * obj2 = 0 ;
19439 PyObject * obj3 = 0 ;
19440 char * kwnames[] = {
19441 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19442 };
19443
19444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19446 if (!SWIG_IsOK(res1)) {
19447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19448 }
19449 arg1 = reinterpret_cast< wxDC * >(argp1);
19450 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19451 if (!SWIG_IsOK(res2)) {
19452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19453 }
19454 if (!argp2) {
19455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19456 }
19457 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19458 {
19459 arg3 = &temp3;
19460 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19461 }
19462 if (obj3) {
19463 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19464 if (!SWIG_IsOK(ecode4)) {
19465 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19466 }
19467 arg4 = static_cast< bool >(val4);
19468 }
19469 {
19470 PyThreadState* __tstate = wxPyBeginAllowThreads();
19471 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19472 wxPyEndAllowThreads(__tstate);
19473 if (PyErr_Occurred()) SWIG_fail;
19474 }
19475 resultobj = SWIG_Py_Void();
19476 return resultobj;
19477fail:
19478 return NULL;
19479}
19480
19481
19482SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19483 PyObject *resultobj = 0;
19484 wxDC *arg1 = (wxDC *) 0 ;
19485 wxString *arg2 = 0 ;
19486 int arg3 ;
19487 int arg4 ;
19488 void *argp1 = 0 ;
19489 int res1 = 0 ;
19490 bool temp2 = false ;
19491 int val3 ;
19492 int ecode3 = 0 ;
19493 int val4 ;
19494 int ecode4 = 0 ;
19495 PyObject * obj0 = 0 ;
19496 PyObject * obj1 = 0 ;
19497 PyObject * obj2 = 0 ;
19498 PyObject * obj3 = 0 ;
19499 char * kwnames[] = {
19500 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19501 };
19502
19503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19505 if (!SWIG_IsOK(res1)) {
19506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19507 }
19508 arg1 = reinterpret_cast< wxDC * >(argp1);
19509 {
19510 arg2 = wxString_in_helper(obj1);
19511 if (arg2 == NULL) SWIG_fail;
19512 temp2 = true;
19513 }
19514 ecode3 = SWIG_AsVal_int(obj2, &val3);
19515 if (!SWIG_IsOK(ecode3)) {
19516 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19517 }
19518 arg3 = static_cast< int >(val3);
19519 ecode4 = SWIG_AsVal_int(obj3, &val4);
19520 if (!SWIG_IsOK(ecode4)) {
19521 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19522 }
19523 arg4 = static_cast< int >(val4);
19524 {
19525 PyThreadState* __tstate = wxPyBeginAllowThreads();
19526 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19527 wxPyEndAllowThreads(__tstate);
19528 if (PyErr_Occurred()) SWIG_fail;
19529 }
19530 resultobj = SWIG_Py_Void();
19531 {
19532 if (temp2)
19533 delete arg2;
19534 }
19535 return resultobj;
19536fail:
19537 {
19538 if (temp2)
19539 delete arg2;
19540 }
19541 return NULL;
19542}
19543
19544
19545SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19546 PyObject *resultobj = 0;
19547 wxDC *arg1 = (wxDC *) 0 ;
19548 wxString *arg2 = 0 ;
19549 wxPoint *arg3 = 0 ;
19550 void *argp1 = 0 ;
19551 int res1 = 0 ;
19552 bool temp2 = false ;
19553 wxPoint temp3 ;
19554 PyObject * obj0 = 0 ;
19555 PyObject * obj1 = 0 ;
19556 PyObject * obj2 = 0 ;
19557 char * kwnames[] = {
19558 (char *) "self",(char *) "text",(char *) "pt", NULL
19559 };
19560
19561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19563 if (!SWIG_IsOK(res1)) {
19564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19565 }
19566 arg1 = reinterpret_cast< wxDC * >(argp1);
19567 {
19568 arg2 = wxString_in_helper(obj1);
19569 if (arg2 == NULL) SWIG_fail;
19570 temp2 = true;
19571 }
19572 {
19573 arg3 = &temp3;
19574 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19575 }
19576 {
19577 PyThreadState* __tstate = wxPyBeginAllowThreads();
19578 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19579 wxPyEndAllowThreads(__tstate);
19580 if (PyErr_Occurred()) SWIG_fail;
19581 }
19582 resultobj = SWIG_Py_Void();
19583 {
19584 if (temp2)
19585 delete arg2;
19586 }
19587 return resultobj;
19588fail:
19589 {
19590 if (temp2)
19591 delete arg2;
19592 }
19593 return NULL;
19594}
19595
19596
19597SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19598 PyObject *resultobj = 0;
19599 wxDC *arg1 = (wxDC *) 0 ;
19600 wxString *arg2 = 0 ;
19601 int arg3 ;
19602 int arg4 ;
19603 double arg5 ;
19604 void *argp1 = 0 ;
19605 int res1 = 0 ;
19606 bool temp2 = false ;
19607 int val3 ;
19608 int ecode3 = 0 ;
19609 int val4 ;
19610 int ecode4 = 0 ;
19611 double val5 ;
19612 int ecode5 = 0 ;
19613 PyObject * obj0 = 0 ;
19614 PyObject * obj1 = 0 ;
19615 PyObject * obj2 = 0 ;
19616 PyObject * obj3 = 0 ;
19617 PyObject * obj4 = 0 ;
19618 char * kwnames[] = {
19619 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19620 };
19621
19622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19624 if (!SWIG_IsOK(res1)) {
19625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19626 }
19627 arg1 = reinterpret_cast< wxDC * >(argp1);
19628 {
19629 arg2 = wxString_in_helper(obj1);
19630 if (arg2 == NULL) SWIG_fail;
19631 temp2 = true;
19632 }
19633 ecode3 = SWIG_AsVal_int(obj2, &val3);
19634 if (!SWIG_IsOK(ecode3)) {
19635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19636 }
19637 arg3 = static_cast< int >(val3);
19638 ecode4 = SWIG_AsVal_int(obj3, &val4);
19639 if (!SWIG_IsOK(ecode4)) {
19640 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19641 }
19642 arg4 = static_cast< int >(val4);
19643 ecode5 = SWIG_AsVal_double(obj4, &val5);
19644 if (!SWIG_IsOK(ecode5)) {
19645 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19646 }
19647 arg5 = static_cast< double >(val5);
19648 {
19649 PyThreadState* __tstate = wxPyBeginAllowThreads();
19650 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19651 wxPyEndAllowThreads(__tstate);
19652 if (PyErr_Occurred()) SWIG_fail;
19653 }
19654 resultobj = SWIG_Py_Void();
19655 {
19656 if (temp2)
19657 delete arg2;
19658 }
19659 return resultobj;
19660fail:
19661 {
19662 if (temp2)
19663 delete arg2;
19664 }
19665 return NULL;
19666}
19667
19668
19669SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19670 PyObject *resultobj = 0;
19671 wxDC *arg1 = (wxDC *) 0 ;
19672 wxString *arg2 = 0 ;
19673 wxPoint *arg3 = 0 ;
19674 double arg4 ;
19675 void *argp1 = 0 ;
19676 int res1 = 0 ;
19677 bool temp2 = false ;
19678 wxPoint temp3 ;
19679 double val4 ;
19680 int ecode4 = 0 ;
19681 PyObject * obj0 = 0 ;
19682 PyObject * obj1 = 0 ;
19683 PyObject * obj2 = 0 ;
19684 PyObject * obj3 = 0 ;
19685 char * kwnames[] = {
19686 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19687 };
19688
19689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19691 if (!SWIG_IsOK(res1)) {
19692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19693 }
19694 arg1 = reinterpret_cast< wxDC * >(argp1);
19695 {
19696 arg2 = wxString_in_helper(obj1);
19697 if (arg2 == NULL) SWIG_fail;
19698 temp2 = true;
19699 }
19700 {
19701 arg3 = &temp3;
19702 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19703 }
19704 ecode4 = SWIG_AsVal_double(obj3, &val4);
19705 if (!SWIG_IsOK(ecode4)) {
19706 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19707 }
19708 arg4 = static_cast< double >(val4);
19709 {
19710 PyThreadState* __tstate = wxPyBeginAllowThreads();
19711 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19712 wxPyEndAllowThreads(__tstate);
19713 if (PyErr_Occurred()) SWIG_fail;
19714 }
19715 resultobj = SWIG_Py_Void();
19716 {
19717 if (temp2)
19718 delete arg2;
19719 }
19720 return resultobj;
19721fail:
19722 {
19723 if (temp2)
19724 delete arg2;
19725 }
19726 return NULL;
19727}
19728
19729
19730SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19731 PyObject *resultobj = 0;
19732 wxDC *arg1 = (wxDC *) 0 ;
19733 int arg2 ;
19734 int arg3 ;
19735 int arg4 ;
19736 int arg5 ;
19737 wxDC *arg6 = (wxDC *) 0 ;
19738 int arg7 ;
19739 int arg8 ;
19740 int arg9 = (int) wxCOPY ;
19741 bool arg10 = (bool) false ;
19742 int arg11 = (int) -1 ;
19743 int arg12 = (int) -1 ;
19744 bool result;
19745 void *argp1 = 0 ;
19746 int res1 = 0 ;
19747 int val2 ;
19748 int ecode2 = 0 ;
19749 int val3 ;
19750 int ecode3 = 0 ;
19751 int val4 ;
19752 int ecode4 = 0 ;
19753 int val5 ;
19754 int ecode5 = 0 ;
19755 void *argp6 = 0 ;
19756 int res6 = 0 ;
19757 int val7 ;
19758 int ecode7 = 0 ;
19759 int val8 ;
19760 int ecode8 = 0 ;
19761 int val9 ;
19762 int ecode9 = 0 ;
19763 bool val10 ;
19764 int ecode10 = 0 ;
19765 int val11 ;
19766 int ecode11 = 0 ;
19767 int val12 ;
19768 int ecode12 = 0 ;
19769 PyObject * obj0 = 0 ;
19770 PyObject * obj1 = 0 ;
19771 PyObject * obj2 = 0 ;
19772 PyObject * obj3 = 0 ;
19773 PyObject * obj4 = 0 ;
19774 PyObject * obj5 = 0 ;
19775 PyObject * obj6 = 0 ;
19776 PyObject * obj7 = 0 ;
19777 PyObject * obj8 = 0 ;
19778 PyObject * obj9 = 0 ;
19779 PyObject * obj10 = 0 ;
19780 PyObject * obj11 = 0 ;
19781 char * kwnames[] = {
19782 (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
19783 };
19784
19785 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;
19786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19787 if (!SWIG_IsOK(res1)) {
19788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19789 }
19790 arg1 = reinterpret_cast< wxDC * >(argp1);
19791 ecode2 = SWIG_AsVal_int(obj1, &val2);
19792 if (!SWIG_IsOK(ecode2)) {
19793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19794 }
19795 arg2 = static_cast< int >(val2);
19796 ecode3 = SWIG_AsVal_int(obj2, &val3);
19797 if (!SWIG_IsOK(ecode3)) {
19798 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19799 }
19800 arg3 = static_cast< int >(val3);
19801 ecode4 = SWIG_AsVal_int(obj3, &val4);
19802 if (!SWIG_IsOK(ecode4)) {
19803 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19804 }
19805 arg4 = static_cast< int >(val4);
19806 ecode5 = SWIG_AsVal_int(obj4, &val5);
19807 if (!SWIG_IsOK(ecode5)) {
19808 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19809 }
19810 arg5 = static_cast< int >(val5);
19811 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19812 if (!SWIG_IsOK(res6)) {
19813 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19814 }
19815 arg6 = reinterpret_cast< wxDC * >(argp6);
19816 ecode7 = SWIG_AsVal_int(obj6, &val7);
19817 if (!SWIG_IsOK(ecode7)) {
19818 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19819 }
19820 arg7 = static_cast< int >(val7);
19821 ecode8 = SWIG_AsVal_int(obj7, &val8);
19822 if (!SWIG_IsOK(ecode8)) {
19823 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19824 }
19825 arg8 = static_cast< int >(val8);
19826 if (obj8) {
19827 ecode9 = SWIG_AsVal_int(obj8, &val9);
19828 if (!SWIG_IsOK(ecode9)) {
19829 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19830 }
19831 arg9 = static_cast< int >(val9);
19832 }
19833 if (obj9) {
19834 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19835 if (!SWIG_IsOK(ecode10)) {
19836 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19837 }
19838 arg10 = static_cast< bool >(val10);
19839 }
19840 if (obj10) {
19841 ecode11 = SWIG_AsVal_int(obj10, &val11);
19842 if (!SWIG_IsOK(ecode11)) {
19843 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19844 }
19845 arg11 = static_cast< int >(val11);
19846 }
19847 if (obj11) {
19848 ecode12 = SWIG_AsVal_int(obj11, &val12);
19849 if (!SWIG_IsOK(ecode12)) {
19850 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19851 }
19852 arg12 = static_cast< int >(val12);
19853 }
19854 {
19855 PyThreadState* __tstate = wxPyBeginAllowThreads();
19856 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19857 wxPyEndAllowThreads(__tstate);
19858 if (PyErr_Occurred()) SWIG_fail;
19859 }
19860 {
19861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19862 }
19863 return resultobj;
19864fail:
19865 return NULL;
19866}
19867
19868
19869SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19870 PyObject *resultobj = 0;
19871 wxDC *arg1 = (wxDC *) 0 ;
19872 wxPoint *arg2 = 0 ;
19873 wxSize *arg3 = 0 ;
19874 wxDC *arg4 = (wxDC *) 0 ;
19875 wxPoint *arg5 = 0 ;
19876 int arg6 = (int) wxCOPY ;
19877 bool arg7 = (bool) false ;
19878 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19879 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19880 bool result;
19881 void *argp1 = 0 ;
19882 int res1 = 0 ;
19883 wxPoint temp2 ;
19884 wxSize temp3 ;
19885 void *argp4 = 0 ;
19886 int res4 = 0 ;
19887 wxPoint temp5 ;
19888 int val6 ;
19889 int ecode6 = 0 ;
19890 bool val7 ;
19891 int ecode7 = 0 ;
19892 wxPoint temp8 ;
19893 PyObject * obj0 = 0 ;
19894 PyObject * obj1 = 0 ;
19895 PyObject * obj2 = 0 ;
19896 PyObject * obj3 = 0 ;
19897 PyObject * obj4 = 0 ;
19898 PyObject * obj5 = 0 ;
19899 PyObject * obj6 = 0 ;
19900 PyObject * obj7 = 0 ;
19901 char * kwnames[] = {
19902 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19903 };
19904
19905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19907 if (!SWIG_IsOK(res1)) {
19908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19909 }
19910 arg1 = reinterpret_cast< wxDC * >(argp1);
19911 {
19912 arg2 = &temp2;
19913 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19914 }
19915 {
19916 arg3 = &temp3;
19917 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19918 }
19919 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19920 if (!SWIG_IsOK(res4)) {
19921 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19922 }
19923 arg4 = reinterpret_cast< wxDC * >(argp4);
19924 {
19925 arg5 = &temp5;
19926 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19927 }
19928 if (obj5) {
19929 ecode6 = SWIG_AsVal_int(obj5, &val6);
19930 if (!SWIG_IsOK(ecode6)) {
19931 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19932 }
19933 arg6 = static_cast< int >(val6);
19934 }
19935 if (obj6) {
19936 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19937 if (!SWIG_IsOK(ecode7)) {
19938 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19939 }
19940 arg7 = static_cast< bool >(val7);
19941 }
19942 if (obj7) {
093d3ff1 19943 {
554f62e9
RD
19944 arg8 = &temp8;
19945 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
093d3ff1 19946 }
554f62e9
RD
19947 }
19948 {
19949 PyThreadState* __tstate = wxPyBeginAllowThreads();
19950 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19951 wxPyEndAllowThreads(__tstate);
19952 if (PyErr_Occurred()) SWIG_fail;
19953 }
19954 {
19955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19956 }
19957 return resultobj;
19958fail:
19959 return NULL;
19960}
19961
19962
19963SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19964 PyObject *resultobj = 0;
19965 wxDC *arg1 = (wxDC *) 0 ;
19966 int arg2 ;
19967 int arg3 ;
19968 int arg4 ;
19969 int arg5 ;
19970 void *argp1 = 0 ;
19971 int res1 = 0 ;
19972 int val2 ;
19973 int ecode2 = 0 ;
19974 int val3 ;
19975 int ecode3 = 0 ;
19976 int val4 ;
19977 int ecode4 = 0 ;
19978 int val5 ;
19979 int ecode5 = 0 ;
19980 PyObject * obj0 = 0 ;
19981 PyObject * obj1 = 0 ;
19982 PyObject * obj2 = 0 ;
19983 PyObject * obj3 = 0 ;
19984 PyObject * obj4 = 0 ;
19985 char * kwnames[] = {
19986 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19987 };
19988
19989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19991 if (!SWIG_IsOK(res1)) {
19992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19993 }
19994 arg1 = reinterpret_cast< wxDC * >(argp1);
19995 ecode2 = SWIG_AsVal_int(obj1, &val2);
19996 if (!SWIG_IsOK(ecode2)) {
19997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19998 }
19999 arg2 = static_cast< int >(val2);
20000 ecode3 = SWIG_AsVal_int(obj2, &val3);
20001 if (!SWIG_IsOK(ecode3)) {
20002 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20003 }
20004 arg3 = static_cast< int >(val3);
20005 ecode4 = SWIG_AsVal_int(obj3, &val4);
20006 if (!SWIG_IsOK(ecode4)) {
20007 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20008 }
20009 arg4 = static_cast< int >(val4);
20010 ecode5 = SWIG_AsVal_int(obj4, &val5);
20011 if (!SWIG_IsOK(ecode5)) {
20012 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20013 }
20014 arg5 = static_cast< int >(val5);
20015 {
20016 PyThreadState* __tstate = wxPyBeginAllowThreads();
20017 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20018 wxPyEndAllowThreads(__tstate);
20019 if (PyErr_Occurred()) SWIG_fail;
20020 }
20021 resultobj = SWIG_Py_Void();
20022 return resultobj;
20023fail:
20024 return NULL;
20025}
20026
20027
20028SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20029 PyObject *resultobj = 0;
20030 wxDC *arg1 = (wxDC *) 0 ;
20031 wxPoint *arg2 = 0 ;
20032 wxSize *arg3 = 0 ;
20033 void *argp1 = 0 ;
20034 int res1 = 0 ;
20035 wxPoint temp2 ;
20036 wxSize temp3 ;
20037 PyObject * obj0 = 0 ;
20038 PyObject * obj1 = 0 ;
20039 PyObject * obj2 = 0 ;
20040 char * kwnames[] = {
20041 (char *) "self",(char *) "pt",(char *) "sz", NULL
20042 };
20043
20044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20046 if (!SWIG_IsOK(res1)) {
20047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20048 }
20049 arg1 = reinterpret_cast< wxDC * >(argp1);
20050 {
20051 arg2 = &temp2;
20052 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20053 }
20054 {
20055 arg3 = &temp3;
20056 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20057 }
20058 {
20059 PyThreadState* __tstate = wxPyBeginAllowThreads();
20060 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20061 wxPyEndAllowThreads(__tstate);
20062 if (PyErr_Occurred()) SWIG_fail;
20063 }
20064 resultobj = SWIG_Py_Void();
20065 return resultobj;
20066fail:
20067 return NULL;
20068}
20069
20070
20071SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20072 PyObject *resultobj = 0;
20073 wxDC *arg1 = (wxDC *) 0 ;
20074 wxRegion *arg2 = 0 ;
20075 void *argp1 = 0 ;
20076 int res1 = 0 ;
20077 void *argp2 = 0 ;
20078 int res2 = 0 ;
20079 PyObject * obj0 = 0 ;
20080 PyObject * obj1 = 0 ;
20081 char * kwnames[] = {
20082 (char *) "self",(char *) "region", NULL
20083 };
20084
20085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20087 if (!SWIG_IsOK(res1)) {
20088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20089 }
20090 arg1 = reinterpret_cast< wxDC * >(argp1);
20091 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20092 if (!SWIG_IsOK(res2)) {
20093 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20094 }
20095 if (!argp2) {
20096 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20097 }
20098 arg2 = reinterpret_cast< wxRegion * >(argp2);
20099 {
20100 PyThreadState* __tstate = wxPyBeginAllowThreads();
20101 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20102 wxPyEndAllowThreads(__tstate);
20103 if (PyErr_Occurred()) SWIG_fail;
20104 }
20105 resultobj = SWIG_Py_Void();
20106 return resultobj;
20107fail:
20108 return NULL;
20109}
20110
20111
20112SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20113 PyObject *resultobj = 0;
20114 wxDC *arg1 = (wxDC *) 0 ;
20115 wxRect *arg2 = 0 ;
20116 void *argp1 = 0 ;
20117 int res1 = 0 ;
20118 wxRect temp2 ;
20119 PyObject * obj0 = 0 ;
20120 PyObject * obj1 = 0 ;
20121 char * kwnames[] = {
20122 (char *) "self",(char *) "rect", NULL
20123 };
20124
20125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20127 if (!SWIG_IsOK(res1)) {
20128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20129 }
20130 arg1 = reinterpret_cast< wxDC * >(argp1);
20131 {
20132 arg2 = &temp2;
20133 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20134 }
20135 {
20136 PyThreadState* __tstate = wxPyBeginAllowThreads();
20137 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20138 wxPyEndAllowThreads(__tstate);
20139 if (PyErr_Occurred()) SWIG_fail;
20140 }
20141 resultobj = SWIG_Py_Void();
20142 return resultobj;
20143fail:
20144 return NULL;
20145}
20146
20147
20148SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20149 PyObject *resultobj = 0;
20150 wxDC *arg1 = (wxDC *) 0 ;
20151 int arg2 ;
20152 wxPoint *arg3 = (wxPoint *) 0 ;
20153 int arg4 = (int) 0 ;
20154 int arg5 = (int) 0 ;
20155 void *argp1 = 0 ;
20156 int res1 = 0 ;
20157 int val4 ;
20158 int ecode4 = 0 ;
20159 int val5 ;
20160 int ecode5 = 0 ;
20161 PyObject * obj0 = 0 ;
20162 PyObject * obj1 = 0 ;
20163 PyObject * obj2 = 0 ;
20164 PyObject * obj3 = 0 ;
20165 char * kwnames[] = {
20166 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20167 };
20168
20169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20171 if (!SWIG_IsOK(res1)) {
20172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20173 }
20174 arg1 = reinterpret_cast< wxDC * >(argp1);
20175 {
20176 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20177 if (arg3 == NULL) SWIG_fail;
20178 }
20179 if (obj2) {
20180 ecode4 = SWIG_AsVal_int(obj2, &val4);
20181 if (!SWIG_IsOK(ecode4)) {
20182 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20183 }
20184 arg4 = static_cast< int >(val4);
20185 }
20186 if (obj3) {
20187 ecode5 = SWIG_AsVal_int(obj3, &val5);
20188 if (!SWIG_IsOK(ecode5)) {
20189 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20190 }
20191 arg5 = static_cast< int >(val5);
20192 }
20193 {
20194 PyThreadState* __tstate = wxPyBeginAllowThreads();
20195 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20196 wxPyEndAllowThreads(__tstate);
20197 if (PyErr_Occurred()) SWIG_fail;
20198 }
20199 resultobj = SWIG_Py_Void();
20200 {
20201 if (arg3) delete [] arg3;
20202 }
20203 return resultobj;
20204fail:
20205 {
20206 if (arg3) delete [] arg3;
20207 }
20208 return NULL;
20209}
20210
20211
20212SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20213 PyObject *resultobj = 0;
20214 wxDC *arg1 = (wxDC *) 0 ;
20215 int arg2 ;
20216 wxPoint *arg3 = (wxPoint *) 0 ;
20217 int arg4 = (int) 0 ;
20218 int arg5 = (int) 0 ;
20219 int arg6 = (int) wxODDEVEN_RULE ;
20220 void *argp1 = 0 ;
20221 int res1 = 0 ;
20222 int val4 ;
20223 int ecode4 = 0 ;
20224 int val5 ;
20225 int ecode5 = 0 ;
20226 int val6 ;
20227 int ecode6 = 0 ;
20228 PyObject * obj0 = 0 ;
20229 PyObject * obj1 = 0 ;
20230 PyObject * obj2 = 0 ;
20231 PyObject * obj3 = 0 ;
20232 PyObject * obj4 = 0 ;
20233 char * kwnames[] = {
20234 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20235 };
20236
20237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20239 if (!SWIG_IsOK(res1)) {
20240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20241 }
20242 arg1 = reinterpret_cast< wxDC * >(argp1);
20243 {
20244 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20245 if (arg3 == NULL) SWIG_fail;
20246 }
20247 if (obj2) {
20248 ecode4 = SWIG_AsVal_int(obj2, &val4);
20249 if (!SWIG_IsOK(ecode4)) {
20250 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20251 }
20252 arg4 = static_cast< int >(val4);
20253 }
20254 if (obj3) {
20255 ecode5 = SWIG_AsVal_int(obj3, &val5);
20256 if (!SWIG_IsOK(ecode5)) {
20257 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20258 }
20259 arg5 = static_cast< int >(val5);
20260 }
20261 if (obj4) {
20262 ecode6 = SWIG_AsVal_int(obj4, &val6);
20263 if (!SWIG_IsOK(ecode6)) {
20264 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20265 }
20266 arg6 = static_cast< int >(val6);
20267 }
20268 {
20269 PyThreadState* __tstate = wxPyBeginAllowThreads();
20270 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20271 wxPyEndAllowThreads(__tstate);
20272 if (PyErr_Occurred()) SWIG_fail;
20273 }
20274 resultobj = SWIG_Py_Void();
20275 {
20276 if (arg3) delete [] arg3;
20277 }
20278 return resultobj;
20279fail:
20280 {
20281 if (arg3) delete [] arg3;
20282 }
20283 return NULL;
20284}
20285
20286
20287SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20288 PyObject *resultobj = 0;
20289 wxDC *arg1 = (wxDC *) 0 ;
20290 wxString *arg2 = 0 ;
20291 wxRect *arg3 = 0 ;
20292 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20293 int arg5 = (int) -1 ;
20294 void *argp1 = 0 ;
20295 int res1 = 0 ;
20296 bool temp2 = false ;
20297 wxRect temp3 ;
20298 int val4 ;
20299 int ecode4 = 0 ;
20300 int val5 ;
20301 int ecode5 = 0 ;
20302 PyObject * obj0 = 0 ;
20303 PyObject * obj1 = 0 ;
20304 PyObject * obj2 = 0 ;
20305 PyObject * obj3 = 0 ;
20306 PyObject * obj4 = 0 ;
20307 char * kwnames[] = {
20308 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20309 };
20310
20311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20313 if (!SWIG_IsOK(res1)) {
20314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20315 }
20316 arg1 = reinterpret_cast< wxDC * >(argp1);
20317 {
20318 arg2 = wxString_in_helper(obj1);
20319 if (arg2 == NULL) SWIG_fail;
20320 temp2 = true;
20321 }
20322 {
20323 arg3 = &temp3;
20324 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20325 }
20326 if (obj3) {
20327 ecode4 = SWIG_AsVal_int(obj3, &val4);
20328 if (!SWIG_IsOK(ecode4)) {
20329 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20330 }
20331 arg4 = static_cast< int >(val4);
20332 }
20333 if (obj4) {
20334 ecode5 = SWIG_AsVal_int(obj4, &val5);
20335 if (!SWIG_IsOK(ecode5)) {
20336 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20337 }
20338 arg5 = static_cast< int >(val5);
20339 }
20340 {
20341 PyThreadState* __tstate = wxPyBeginAllowThreads();
20342 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20343 wxPyEndAllowThreads(__tstate);
20344 if (PyErr_Occurred()) SWIG_fail;
20345 }
20346 resultobj = SWIG_Py_Void();
20347 {
20348 if (temp2)
20349 delete arg2;
20350 }
20351 return resultobj;
20352fail:
20353 {
20354 if (temp2)
20355 delete arg2;
20356 }
20357 return NULL;
20358}
20359
20360
20361SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20362 PyObject *resultobj = 0;
20363 wxDC *arg1 = (wxDC *) 0 ;
20364 wxString *arg2 = 0 ;
20365 wxBitmap *arg3 = 0 ;
20366 wxRect *arg4 = 0 ;
20367 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20368 int arg6 = (int) -1 ;
20369 wxRect result;
20370 void *argp1 = 0 ;
20371 int res1 = 0 ;
20372 bool temp2 = false ;
20373 void *argp3 = 0 ;
20374 int res3 = 0 ;
20375 wxRect temp4 ;
20376 int val5 ;
20377 int ecode5 = 0 ;
20378 int val6 ;
20379 int ecode6 = 0 ;
20380 PyObject * obj0 = 0 ;
20381 PyObject * obj1 = 0 ;
20382 PyObject * obj2 = 0 ;
20383 PyObject * obj3 = 0 ;
20384 PyObject * obj4 = 0 ;
20385 PyObject * obj5 = 0 ;
20386 char * kwnames[] = {
20387 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20388 };
20389
20390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20392 if (!SWIG_IsOK(res1)) {
20393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20394 }
20395 arg1 = reinterpret_cast< wxDC * >(argp1);
20396 {
20397 arg2 = wxString_in_helper(obj1);
20398 if (arg2 == NULL) SWIG_fail;
20399 temp2 = true;
20400 }
20401 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20402 if (!SWIG_IsOK(res3)) {
20403 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20404 }
20405 if (!argp3) {
20406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20407 }
20408 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20409 {
20410 arg4 = &temp4;
20411 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20412 }
20413 if (obj4) {
20414 ecode5 = SWIG_AsVal_int(obj4, &val5);
20415 if (!SWIG_IsOK(ecode5)) {
20416 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20417 }
20418 arg5 = static_cast< int >(val5);
20419 }
20420 if (obj5) {
20421 ecode6 = SWIG_AsVal_int(obj5, &val6);
20422 if (!SWIG_IsOK(ecode6)) {
20423 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20424 }
20425 arg6 = static_cast< int >(val6);
20426 }
20427 {
20428 PyThreadState* __tstate = wxPyBeginAllowThreads();
20429 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20430 wxPyEndAllowThreads(__tstate);
20431 if (PyErr_Occurred()) SWIG_fail;
20432 }
20433 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20434 {
20435 if (temp2)
20436 delete arg2;
20437 }
20438 return resultobj;
20439fail:
20440 {
20441 if (temp2)
20442 delete arg2;
20443 }
20444 return NULL;
20445}
20446
20447
20448SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20449 PyObject *resultobj = 0;
20450 wxDC *arg1 = (wxDC *) 0 ;
20451 int arg2 ;
20452 wxPoint *arg3 = (wxPoint *) 0 ;
20453 void *argp1 = 0 ;
20454 int res1 = 0 ;
20455 PyObject * obj0 = 0 ;
20456 PyObject * obj1 = 0 ;
20457 char * kwnames[] = {
20458 (char *) "self",(char *) "points", NULL
20459 };
20460
20461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20463 if (!SWIG_IsOK(res1)) {
20464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20465 }
20466 arg1 = reinterpret_cast< wxDC * >(argp1);
20467 {
20468 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20469 if (arg3 == NULL) SWIG_fail;
20470 }
20471 {
20472 PyThreadState* __tstate = wxPyBeginAllowThreads();
20473 (arg1)->DrawSpline(arg2,arg3);
20474 wxPyEndAllowThreads(__tstate);
20475 if (PyErr_Occurred()) SWIG_fail;
20476 }
20477 resultobj = SWIG_Py_Void();
20478 {
20479 if (arg3) delete [] arg3;
20480 }
20481 return resultobj;
20482fail:
20483 {
20484 if (arg3) delete [] arg3;
20485 }
20486 return NULL;
20487}
20488
20489
20490SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20491 PyObject *resultobj = 0;
20492 wxDC *arg1 = (wxDC *) 0 ;
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_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20502 }
20503 arg1 = reinterpret_cast< wxDC * >(argp1);
20504 {
20505 PyThreadState* __tstate = wxPyBeginAllowThreads();
20506 (arg1)->Clear();
20507 wxPyEndAllowThreads(__tstate);
20508 if (PyErr_Occurred()) SWIG_fail;
20509 }
20510 resultobj = SWIG_Py_Void();
20511 return resultobj;
20512fail:
20513 return NULL;
20514}
20515
20516
20517SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20518 PyObject *resultobj = 0;
20519 wxDC *arg1 = (wxDC *) 0 ;
20520 wxString *arg2 = 0 ;
20521 bool result;
20522 void *argp1 = 0 ;
20523 int res1 = 0 ;
20524 bool temp2 = false ;
20525 PyObject * obj0 = 0 ;
20526 PyObject * obj1 = 0 ;
20527 char * kwnames[] = {
20528 (char *) "self",(char *) "message", NULL
20529 };
20530
20531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20533 if (!SWIG_IsOK(res1)) {
20534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20535 }
20536 arg1 = reinterpret_cast< wxDC * >(argp1);
20537 {
20538 arg2 = wxString_in_helper(obj1);
20539 if (arg2 == NULL) SWIG_fail;
20540 temp2 = true;
20541 }
20542 {
20543 PyThreadState* __tstate = wxPyBeginAllowThreads();
20544 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20545 wxPyEndAllowThreads(__tstate);
20546 if (PyErr_Occurred()) SWIG_fail;
20547 }
20548 {
20549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20550 }
20551 {
20552 if (temp2)
20553 delete arg2;
20554 }
20555 return resultobj;
20556fail:
20557 {
20558 if (temp2)
20559 delete arg2;
20560 }
20561 return NULL;
20562}
20563
20564
20565SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20566 PyObject *resultobj = 0;
20567 wxDC *arg1 = (wxDC *) 0 ;
20568 void *argp1 = 0 ;
20569 int res1 = 0 ;
20570 PyObject *swig_obj[1] ;
20571
20572 if (!args) SWIG_fail;
20573 swig_obj[0] = args;
20574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20575 if (!SWIG_IsOK(res1)) {
20576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20577 }
20578 arg1 = reinterpret_cast< wxDC * >(argp1);
20579 {
20580 PyThreadState* __tstate = wxPyBeginAllowThreads();
20581 (arg1)->EndDoc();
20582 wxPyEndAllowThreads(__tstate);
20583 if (PyErr_Occurred()) SWIG_fail;
20584 }
20585 resultobj = SWIG_Py_Void();
20586 return resultobj;
20587fail:
20588 return NULL;
20589}
20590
20591
20592SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20593 PyObject *resultobj = 0;
20594 wxDC *arg1 = (wxDC *) 0 ;
20595 void *argp1 = 0 ;
20596 int res1 = 0 ;
20597 PyObject *swig_obj[1] ;
20598
20599 if (!args) SWIG_fail;
20600 swig_obj[0] = args;
20601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20602 if (!SWIG_IsOK(res1)) {
20603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20604 }
20605 arg1 = reinterpret_cast< wxDC * >(argp1);
20606 {
20607 PyThreadState* __tstate = wxPyBeginAllowThreads();
20608 (arg1)->StartPage();
20609 wxPyEndAllowThreads(__tstate);
20610 if (PyErr_Occurred()) SWIG_fail;
20611 }
20612 resultobj = SWIG_Py_Void();
20613 return resultobj;
20614fail:
20615 return NULL;
20616}
20617
20618
20619SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20620 PyObject *resultobj = 0;
20621 wxDC *arg1 = (wxDC *) 0 ;
20622 void *argp1 = 0 ;
20623 int res1 = 0 ;
20624 PyObject *swig_obj[1] ;
20625
20626 if (!args) SWIG_fail;
20627 swig_obj[0] = args;
20628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20629 if (!SWIG_IsOK(res1)) {
20630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20631 }
20632 arg1 = reinterpret_cast< wxDC * >(argp1);
20633 {
20634 PyThreadState* __tstate = wxPyBeginAllowThreads();
20635 (arg1)->EndPage();
20636 wxPyEndAllowThreads(__tstate);
20637 if (PyErr_Occurred()) SWIG_fail;
20638 }
20639 resultobj = SWIG_Py_Void();
20640 return resultobj;
20641fail:
20642 return NULL;
20643}
20644
20645
20646SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20647 PyObject *resultobj = 0;
20648 wxDC *arg1 = (wxDC *) 0 ;
20649 wxFont *arg2 = 0 ;
20650 void *argp1 = 0 ;
20651 int res1 = 0 ;
20652 void *argp2 = 0 ;
20653 int res2 = 0 ;
20654 PyObject * obj0 = 0 ;
20655 PyObject * obj1 = 0 ;
20656 char * kwnames[] = {
20657 (char *) "self",(char *) "font", NULL
20658 };
20659
20660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20662 if (!SWIG_IsOK(res1)) {
20663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20664 }
20665 arg1 = reinterpret_cast< wxDC * >(argp1);
20666 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20667 if (!SWIG_IsOK(res2)) {
20668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20669 }
20670 if (!argp2) {
20671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20672 }
20673 arg2 = reinterpret_cast< wxFont * >(argp2);
20674 {
20675 PyThreadState* __tstate = wxPyBeginAllowThreads();
20676 (arg1)->SetFont((wxFont const &)*arg2);
20677 wxPyEndAllowThreads(__tstate);
20678 if (PyErr_Occurred()) SWIG_fail;
20679 }
20680 resultobj = SWIG_Py_Void();
20681 return resultobj;
20682fail:
20683 return NULL;
20684}
20685
20686
20687SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20688 PyObject *resultobj = 0;
20689 wxDC *arg1 = (wxDC *) 0 ;
20690 wxPen *arg2 = 0 ;
20691 void *argp1 = 0 ;
20692 int res1 = 0 ;
20693 void *argp2 = 0 ;
20694 int res2 = 0 ;
20695 PyObject * obj0 = 0 ;
20696 PyObject * obj1 = 0 ;
20697 char * kwnames[] = {
20698 (char *) "self",(char *) "pen", NULL
20699 };
20700
20701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20703 if (!SWIG_IsOK(res1)) {
20704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20705 }
20706 arg1 = reinterpret_cast< wxDC * >(argp1);
20707 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20708 if (!SWIG_IsOK(res2)) {
20709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20710 }
20711 if (!argp2) {
20712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20713 }
20714 arg2 = reinterpret_cast< wxPen * >(argp2);
20715 {
20716 PyThreadState* __tstate = wxPyBeginAllowThreads();
20717 (arg1)->SetPen((wxPen const &)*arg2);
20718 wxPyEndAllowThreads(__tstate);
20719 if (PyErr_Occurred()) SWIG_fail;
20720 }
20721 resultobj = SWIG_Py_Void();
20722 return resultobj;
20723fail:
20724 return NULL;
20725}
20726
20727
20728SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20729 PyObject *resultobj = 0;
20730 wxDC *arg1 = (wxDC *) 0 ;
20731 wxBrush *arg2 = 0 ;
20732 void *argp1 = 0 ;
20733 int res1 = 0 ;
20734 void *argp2 = 0 ;
20735 int res2 = 0 ;
20736 PyObject * obj0 = 0 ;
20737 PyObject * obj1 = 0 ;
20738 char * kwnames[] = {
20739 (char *) "self",(char *) "brush", NULL
20740 };
20741
20742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20744 if (!SWIG_IsOK(res1)) {
20745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20746 }
20747 arg1 = reinterpret_cast< wxDC * >(argp1);
20748 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20749 if (!SWIG_IsOK(res2)) {
20750 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20751 }
20752 if (!argp2) {
20753 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20754 }
20755 arg2 = reinterpret_cast< wxBrush * >(argp2);
20756 {
20757 PyThreadState* __tstate = wxPyBeginAllowThreads();
20758 (arg1)->SetBrush((wxBrush const &)*arg2);
20759 wxPyEndAllowThreads(__tstate);
20760 if (PyErr_Occurred()) SWIG_fail;
20761 }
20762 resultobj = SWIG_Py_Void();
20763 return resultobj;
20764fail:
20765 return NULL;
20766}
20767
20768
20769SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20770 PyObject *resultobj = 0;
20771 wxDC *arg1 = (wxDC *) 0 ;
20772 wxBrush *arg2 = 0 ;
20773 void *argp1 = 0 ;
20774 int res1 = 0 ;
20775 void *argp2 = 0 ;
20776 int res2 = 0 ;
20777 PyObject * obj0 = 0 ;
20778 PyObject * obj1 = 0 ;
20779 char * kwnames[] = {
20780 (char *) "self",(char *) "brush", NULL
20781 };
20782
20783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20785 if (!SWIG_IsOK(res1)) {
20786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20787 }
20788 arg1 = reinterpret_cast< wxDC * >(argp1);
20789 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20790 if (!SWIG_IsOK(res2)) {
20791 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20792 }
20793 if (!argp2) {
20794 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20795 }
20796 arg2 = reinterpret_cast< wxBrush * >(argp2);
20797 {
20798 PyThreadState* __tstate = wxPyBeginAllowThreads();
20799 (arg1)->SetBackground((wxBrush const &)*arg2);
20800 wxPyEndAllowThreads(__tstate);
20801 if (PyErr_Occurred()) SWIG_fail;
20802 }
20803 resultobj = SWIG_Py_Void();
20804 return resultobj;
20805fail:
20806 return NULL;
20807}
20808
20809
20810SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20811 PyObject *resultobj = 0;
20812 wxDC *arg1 = (wxDC *) 0 ;
20813 int arg2 ;
20814 void *argp1 = 0 ;
20815 int res1 = 0 ;
20816 int val2 ;
20817 int ecode2 = 0 ;
20818 PyObject * obj0 = 0 ;
20819 PyObject * obj1 = 0 ;
20820 char * kwnames[] = {
20821 (char *) "self",(char *) "mode", NULL
20822 };
20823
20824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20826 if (!SWIG_IsOK(res1)) {
20827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20828 }
20829 arg1 = reinterpret_cast< wxDC * >(argp1);
20830 ecode2 = SWIG_AsVal_int(obj1, &val2);
20831 if (!SWIG_IsOK(ecode2)) {
20832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20833 }
20834 arg2 = static_cast< int >(val2);
20835 {
20836 PyThreadState* __tstate = wxPyBeginAllowThreads();
20837 (arg1)->SetBackgroundMode(arg2);
20838 wxPyEndAllowThreads(__tstate);
20839 if (PyErr_Occurred()) SWIG_fail;
20840 }
20841 resultobj = SWIG_Py_Void();
20842 return resultobj;
20843fail:
20844 return NULL;
20845}
20846
20847
20848SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20849 PyObject *resultobj = 0;
20850 wxDC *arg1 = (wxDC *) 0 ;
20851 wxPalette *arg2 = 0 ;
20852 void *argp1 = 0 ;
20853 int res1 = 0 ;
20854 void *argp2 = 0 ;
20855 int res2 = 0 ;
20856 PyObject * obj0 = 0 ;
20857 PyObject * obj1 = 0 ;
20858 char * kwnames[] = {
20859 (char *) "self",(char *) "palette", NULL
20860 };
20861
20862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20864 if (!SWIG_IsOK(res1)) {
20865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20866 }
20867 arg1 = reinterpret_cast< wxDC * >(argp1);
20868 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20869 if (!SWIG_IsOK(res2)) {
20870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20871 }
20872 if (!argp2) {
20873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20874 }
20875 arg2 = reinterpret_cast< wxPalette * >(argp2);
20876 {
20877 PyThreadState* __tstate = wxPyBeginAllowThreads();
20878 (arg1)->SetPalette((wxPalette const &)*arg2);
20879 wxPyEndAllowThreads(__tstate);
20880 if (PyErr_Occurred()) SWIG_fail;
20881 }
20882 resultobj = SWIG_Py_Void();
20883 return resultobj;
20884fail:
20885 return NULL;
20886}
20887
20888
20889SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20890 PyObject *resultobj = 0;
20891 wxDC *arg1 = (wxDC *) 0 ;
20892 void *argp1 = 0 ;
20893 int res1 = 0 ;
20894 PyObject *swig_obj[1] ;
20895
20896 if (!args) SWIG_fail;
20897 swig_obj[0] = args;
20898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20899 if (!SWIG_IsOK(res1)) {
20900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20901 }
20902 arg1 = reinterpret_cast< wxDC * >(argp1);
20903 {
20904 PyThreadState* __tstate = wxPyBeginAllowThreads();
20905 (arg1)->DestroyClippingRegion();
20906 wxPyEndAllowThreads(__tstate);
20907 if (PyErr_Occurred()) SWIG_fail;
20908 }
20909 resultobj = SWIG_Py_Void();
20910 return resultobj;
20911fail:
20912 return NULL;
20913}
20914
20915
20916SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20917 PyObject *resultobj = 0;
20918 wxDC *arg1 = (wxDC *) 0 ;
20919 int *arg2 = (int *) 0 ;
20920 int *arg3 = (int *) 0 ;
20921 int *arg4 = (int *) 0 ;
20922 int *arg5 = (int *) 0 ;
20923 void *argp1 = 0 ;
20924 int res1 = 0 ;
20925 int temp2 ;
20926 int res2 = SWIG_TMPOBJ ;
20927 int temp3 ;
20928 int res3 = SWIG_TMPOBJ ;
20929 int temp4 ;
20930 int res4 = SWIG_TMPOBJ ;
20931 int temp5 ;
20932 int res5 = SWIG_TMPOBJ ;
20933 PyObject *swig_obj[1] ;
20934
20935 arg2 = &temp2;
20936 arg3 = &temp3;
20937 arg4 = &temp4;
20938 arg5 = &temp5;
20939 if (!args) SWIG_fail;
20940 swig_obj[0] = args;
20941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20942 if (!SWIG_IsOK(res1)) {
20943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20944 }
20945 arg1 = reinterpret_cast< wxDC * >(argp1);
20946 {
20947 PyThreadState* __tstate = wxPyBeginAllowThreads();
20948 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20949 wxPyEndAllowThreads(__tstate);
20950 if (PyErr_Occurred()) SWIG_fail;
20951 }
20952 resultobj = SWIG_Py_Void();
20953 if (SWIG_IsTmpObj(res2)) {
20954 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20955 } else {
20956 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20957 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20958 }
20959 if (SWIG_IsTmpObj(res3)) {
20960 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20961 } else {
20962 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20963 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20964 }
20965 if (SWIG_IsTmpObj(res4)) {
20966 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20967 } else {
20968 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20969 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20970 }
20971 if (SWIG_IsTmpObj(res5)) {
20972 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20973 } else {
20974 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20975 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20976 }
20977 return resultobj;
20978fail:
20979 return NULL;
20980}
20981
20982
20983SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20984 PyObject *resultobj = 0;
20985 wxDC *arg1 = (wxDC *) 0 ;
20986 wxRect result;
20987 void *argp1 = 0 ;
20988 int res1 = 0 ;
20989 PyObject *swig_obj[1] ;
20990
20991 if (!args) SWIG_fail;
20992 swig_obj[0] = args;
20993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20994 if (!SWIG_IsOK(res1)) {
20995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20996 }
20997 arg1 = reinterpret_cast< wxDC * >(argp1);
20998 {
20999 PyThreadState* __tstate = wxPyBeginAllowThreads();
21000 result = wxDC_GetClippingRect(arg1);
21001 wxPyEndAllowThreads(__tstate);
21002 if (PyErr_Occurred()) SWIG_fail;
21003 }
21004 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21005 return resultobj;
21006fail:
21007 return NULL;
21008}
21009
21010
21011SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21012 PyObject *resultobj = 0;
21013 wxDC *arg1 = (wxDC *) 0 ;
21014 int result;
21015 void *argp1 = 0 ;
21016 int res1 = 0 ;
21017 PyObject *swig_obj[1] ;
21018
21019 if (!args) SWIG_fail;
21020 swig_obj[0] = args;
21021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21022 if (!SWIG_IsOK(res1)) {
21023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21024 }
21025 arg1 = reinterpret_cast< wxDC * >(argp1);
21026 {
21027 PyThreadState* __tstate = wxPyBeginAllowThreads();
21028 result = (int)((wxDC const *)arg1)->GetCharHeight();
21029 wxPyEndAllowThreads(__tstate);
21030 if (PyErr_Occurred()) SWIG_fail;
21031 }
21032 resultobj = SWIG_From_int(static_cast< int >(result));
21033 return resultobj;
21034fail:
21035 return NULL;
21036}
21037
21038
21039SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21040 PyObject *resultobj = 0;
21041 wxDC *arg1 = (wxDC *) 0 ;
21042 int result;
21043 void *argp1 = 0 ;
21044 int res1 = 0 ;
21045 PyObject *swig_obj[1] ;
21046
21047 if (!args) SWIG_fail;
21048 swig_obj[0] = args;
21049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21050 if (!SWIG_IsOK(res1)) {
21051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21052 }
21053 arg1 = reinterpret_cast< wxDC * >(argp1);
21054 {
21055 PyThreadState* __tstate = wxPyBeginAllowThreads();
21056 result = (int)((wxDC const *)arg1)->GetCharWidth();
21057 wxPyEndAllowThreads(__tstate);
21058 if (PyErr_Occurred()) SWIG_fail;
21059 }
21060 resultobj = SWIG_From_int(static_cast< int >(result));
21061 return resultobj;
21062fail:
21063 return NULL;
21064}
21065
21066
21067SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21068 PyObject *resultobj = 0;
21069 wxDC *arg1 = (wxDC *) 0 ;
21070 wxString *arg2 = 0 ;
21071 int *arg3 = (int *) 0 ;
21072 int *arg4 = (int *) 0 ;
21073 void *argp1 = 0 ;
21074 int res1 = 0 ;
21075 bool temp2 = false ;
21076 int temp3 ;
21077 int res3 = SWIG_TMPOBJ ;
21078 int temp4 ;
21079 int res4 = SWIG_TMPOBJ ;
21080 PyObject * obj0 = 0 ;
21081 PyObject * obj1 = 0 ;
21082 char * kwnames[] = {
21083 (char *) "self",(char *) "string", NULL
21084 };
21085
21086 arg3 = &temp3;
21087 arg4 = &temp4;
21088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21090 if (!SWIG_IsOK(res1)) {
21091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21092 }
21093 arg1 = reinterpret_cast< wxDC * >(argp1);
21094 {
21095 arg2 = wxString_in_helper(obj1);
21096 if (arg2 == NULL) SWIG_fail;
21097 temp2 = true;
21098 }
21099 {
21100 PyThreadState* __tstate = wxPyBeginAllowThreads();
21101 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21102 wxPyEndAllowThreads(__tstate);
21103 if (PyErr_Occurred()) SWIG_fail;
21104 }
21105 resultobj = SWIG_Py_Void();
21106 if (SWIG_IsTmpObj(res3)) {
21107 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21108 } else {
21109 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21110 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21111 }
21112 if (SWIG_IsTmpObj(res4)) {
21113 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21114 } else {
21115 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21116 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21117 }
21118 {
21119 if (temp2)
21120 delete arg2;
21121 }
21122 return resultobj;
21123fail:
21124 {
21125 if (temp2)
21126 delete arg2;
21127 }
21128 return NULL;
21129}
21130
21131
21132SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21133 PyObject *resultobj = 0;
21134 wxDC *arg1 = (wxDC *) 0 ;
21135 wxString *arg2 = 0 ;
21136 int *arg3 = (int *) 0 ;
21137 int *arg4 = (int *) 0 ;
21138 int *arg5 = (int *) 0 ;
21139 int *arg6 = (int *) 0 ;
21140 wxFont *arg7 = (wxFont *) NULL ;
21141 void *argp1 = 0 ;
21142 int res1 = 0 ;
21143 bool temp2 = false ;
21144 int temp3 ;
21145 int res3 = SWIG_TMPOBJ ;
21146 int temp4 ;
21147 int res4 = SWIG_TMPOBJ ;
21148 int temp5 ;
21149 int res5 = SWIG_TMPOBJ ;
21150 int temp6 ;
21151 int res6 = SWIG_TMPOBJ ;
21152 void *argp7 = 0 ;
21153 int res7 = 0 ;
21154 PyObject * obj0 = 0 ;
21155 PyObject * obj1 = 0 ;
21156 PyObject * obj2 = 0 ;
21157 char * kwnames[] = {
21158 (char *) "self",(char *) "string",(char *) "font", NULL
21159 };
21160
21161 arg3 = &temp3;
21162 arg4 = &temp4;
21163 arg5 = &temp5;
21164 arg6 = &temp6;
21165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21167 if (!SWIG_IsOK(res1)) {
21168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21169 }
21170 arg1 = reinterpret_cast< wxDC * >(argp1);
21171 {
21172 arg2 = wxString_in_helper(obj1);
21173 if (arg2 == NULL) SWIG_fail;
21174 temp2 = true;
21175 }
21176 if (obj2) {
21177 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21178 if (!SWIG_IsOK(res7)) {
21179 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
093d3ff1 21180 }
554f62e9
RD
21181 arg7 = reinterpret_cast< wxFont * >(argp7);
21182 }
21183 {
21184 PyThreadState* __tstate = wxPyBeginAllowThreads();
21185 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21186 wxPyEndAllowThreads(__tstate);
21187 if (PyErr_Occurred()) SWIG_fail;
21188 }
21189 resultobj = SWIG_Py_Void();
21190 if (SWIG_IsTmpObj(res3)) {
21191 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21192 } else {
21193 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21194 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21195 }
21196 if (SWIG_IsTmpObj(res4)) {
21197 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21198 } else {
21199 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21200 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21201 }
21202 if (SWIG_IsTmpObj(res5)) {
21203 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21204 } else {
21205 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21206 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21207 }
21208 if (SWIG_IsTmpObj(res6)) {
21209 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21210 } else {
21211 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21212 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21213 }
21214 {
21215 if (temp2)
21216 delete arg2;
21217 }
21218 return resultobj;
21219fail:
21220 {
21221 if (temp2)
21222 delete arg2;
21223 }
21224 return NULL;
21225}
21226
21227
21228SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21229 PyObject *resultobj = 0;
21230 wxDC *arg1 = (wxDC *) 0 ;
21231 wxString *arg2 = 0 ;
21232 int *arg3 = (int *) 0 ;
21233 int *arg4 = (int *) 0 ;
21234 int *arg5 = (int *) 0 ;
21235 wxFont *arg6 = (wxFont *) NULL ;
21236 void *argp1 = 0 ;
21237 int res1 = 0 ;
21238 bool temp2 = false ;
21239 int temp3 ;
21240 int res3 = SWIG_TMPOBJ ;
21241 int temp4 ;
21242 int res4 = SWIG_TMPOBJ ;
21243 int temp5 ;
21244 int res5 = SWIG_TMPOBJ ;
21245 void *argp6 = 0 ;
21246 int res6 = 0 ;
21247 PyObject * obj0 = 0 ;
21248 PyObject * obj1 = 0 ;
21249 PyObject * obj2 = 0 ;
21250 char * kwnames[] = {
21251 (char *) "self",(char *) "text",(char *) "font", NULL
21252 };
21253
21254 arg3 = &temp3;
21255 arg4 = &temp4;
21256 arg5 = &temp5;
21257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21259 if (!SWIG_IsOK(res1)) {
21260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21261 }
21262 arg1 = reinterpret_cast< wxDC * >(argp1);
21263 {
21264 arg2 = wxString_in_helper(obj1);
21265 if (arg2 == NULL) SWIG_fail;
21266 temp2 = true;
21267 }
21268 if (obj2) {
21269 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21270 if (!SWIG_IsOK(res6)) {
21271 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
093d3ff1 21272 }
554f62e9
RD
21273 arg6 = reinterpret_cast< wxFont * >(argp6);
21274 }
21275 {
21276 PyThreadState* __tstate = wxPyBeginAllowThreads();
21277 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21278 wxPyEndAllowThreads(__tstate);
21279 if (PyErr_Occurred()) SWIG_fail;
21280 }
21281 resultobj = SWIG_Py_Void();
21282 if (SWIG_IsTmpObj(res3)) {
21283 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21284 } else {
21285 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21286 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21287 }
21288 if (SWIG_IsTmpObj(res4)) {
21289 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21290 } else {
21291 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21292 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21293 }
21294 if (SWIG_IsTmpObj(res5)) {
21295 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21296 } else {
21297 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21298 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21299 }
21300 {
21301 if (temp2)
21302 delete arg2;
21303 }
21304 return resultobj;
21305fail:
21306 {
21307 if (temp2)
21308 delete arg2;
21309 }
21310 return NULL;
21311}
21312
21313
21314SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21315 PyObject *resultobj = 0;
21316 wxDC *arg1 = (wxDC *) 0 ;
21317 wxString *arg2 = 0 ;
21318 wxArrayInt result;
21319 void *argp1 = 0 ;
21320 int res1 = 0 ;
21321 bool temp2 = false ;
21322 PyObject * obj0 = 0 ;
21323 PyObject * obj1 = 0 ;
21324 char * kwnames[] = {
21325 (char *) "self",(char *) "text", NULL
21326 };
21327
21328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21330 if (!SWIG_IsOK(res1)) {
21331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21332 }
21333 arg1 = reinterpret_cast< wxDC * >(argp1);
21334 {
21335 arg2 = wxString_in_helper(obj1);
21336 if (arg2 == NULL) SWIG_fail;
21337 temp2 = true;
21338 }
21339 {
21340 PyThreadState* __tstate = wxPyBeginAllowThreads();
21341 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21342 wxPyEndAllowThreads(__tstate);
21343 if (PyErr_Occurred()) SWIG_fail;
21344 }
21345 {
21346 resultobj = PyList_New(0);
21347 size_t idx;
21348 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
21349 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
21350 PyList_Append(resultobj, val);
21351 Py_DECREF(val);
093d3ff1 21352 }
554f62e9
RD
21353 }
21354 {
21355 if (temp2)
21356 delete arg2;
21357 }
21358 return resultobj;
21359fail:
21360 {
21361 if (temp2)
21362 delete arg2;
21363 }
21364 return NULL;
21365}
21366
21367
21368SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21369 PyObject *resultobj = 0;
21370 wxDC *arg1 = (wxDC *) 0 ;
21371 wxSize result;
21372 void *argp1 = 0 ;
21373 int res1 = 0 ;
21374 PyObject *swig_obj[1] ;
21375
21376 if (!args) SWIG_fail;
21377 swig_obj[0] = args;
21378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21379 if (!SWIG_IsOK(res1)) {
21380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21381 }
21382 arg1 = reinterpret_cast< wxDC * >(argp1);
21383 {
21384 PyThreadState* __tstate = wxPyBeginAllowThreads();
21385 result = (arg1)->GetSize();
21386 wxPyEndAllowThreads(__tstate);
21387 if (PyErr_Occurred()) SWIG_fail;
21388 }
21389 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21390 return resultobj;
21391fail:
21392 return NULL;
21393}
21394
21395
21396SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21397 PyObject *resultobj = 0;
21398 wxDC *arg1 = (wxDC *) 0 ;
21399 int *arg2 = (int *) 0 ;
21400 int *arg3 = (int *) 0 ;
21401 void *argp1 = 0 ;
21402 int res1 = 0 ;
21403 int temp2 ;
21404 int res2 = SWIG_TMPOBJ ;
21405 int temp3 ;
21406 int res3 = SWIG_TMPOBJ ;
21407 PyObject *swig_obj[1] ;
21408
21409 arg2 = &temp2;
21410 arg3 = &temp3;
21411 if (!args) SWIG_fail;
21412 swig_obj[0] = args;
21413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21414 if (!SWIG_IsOK(res1)) {
21415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21416 }
21417 arg1 = reinterpret_cast< wxDC * >(argp1);
21418 {
21419 PyThreadState* __tstate = wxPyBeginAllowThreads();
21420 (arg1)->GetSize(arg2,arg3);
21421 wxPyEndAllowThreads(__tstate);
21422 if (PyErr_Occurred()) SWIG_fail;
21423 }
21424 resultobj = SWIG_Py_Void();
21425 if (SWIG_IsTmpObj(res2)) {
21426 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21427 } else {
21428 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21429 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21430 }
21431 if (SWIG_IsTmpObj(res3)) {
21432 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21433 } else {
21434 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21435 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21436 }
21437 return resultobj;
21438fail:
21439 return NULL;
21440}
21441
21442
21443SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21444 PyObject *resultobj = 0;
21445 wxDC *arg1 = (wxDC *) 0 ;
21446 wxSize result;
21447 void *argp1 = 0 ;
21448 int res1 = 0 ;
21449 PyObject *swig_obj[1] ;
21450
21451 if (!args) SWIG_fail;
21452 swig_obj[0] = args;
21453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21454 if (!SWIG_IsOK(res1)) {
21455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21456 }
21457 arg1 = reinterpret_cast< wxDC * >(argp1);
21458 {
21459 PyThreadState* __tstate = wxPyBeginAllowThreads();
21460 result = ((wxDC const *)arg1)->GetSizeMM();
21461 wxPyEndAllowThreads(__tstate);
21462 if (PyErr_Occurred()) SWIG_fail;
21463 }
21464 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21465 return resultobj;
21466fail:
21467 return NULL;
21468}
21469
21470
21471SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21472 PyObject *resultobj = 0;
21473 wxDC *arg1 = (wxDC *) 0 ;
21474 int *arg2 = (int *) 0 ;
21475 int *arg3 = (int *) 0 ;
21476 void *argp1 = 0 ;
21477 int res1 = 0 ;
21478 int temp2 ;
21479 int res2 = SWIG_TMPOBJ ;
21480 int temp3 ;
21481 int res3 = SWIG_TMPOBJ ;
21482 PyObject *swig_obj[1] ;
21483
21484 arg2 = &temp2;
21485 arg3 = &temp3;
21486 if (!args) SWIG_fail;
21487 swig_obj[0] = args;
21488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21489 if (!SWIG_IsOK(res1)) {
21490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21491 }
21492 arg1 = reinterpret_cast< wxDC * >(argp1);
21493 {
21494 PyThreadState* __tstate = wxPyBeginAllowThreads();
21495 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21496 wxPyEndAllowThreads(__tstate);
21497 if (PyErr_Occurred()) SWIG_fail;
21498 }
21499 resultobj = SWIG_Py_Void();
21500 if (SWIG_IsTmpObj(res2)) {
21501 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21502 } else {
21503 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21504 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21505 }
21506 if (SWIG_IsTmpObj(res3)) {
21507 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21508 } else {
21509 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21510 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21511 }
21512 return resultobj;
21513fail:
21514 return NULL;
21515}
21516
21517
21518SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21519 PyObject *resultobj = 0;
21520 wxDC *arg1 = (wxDC *) 0 ;
21521 int arg2 ;
21522 int result;
21523 void *argp1 = 0 ;
21524 int res1 = 0 ;
21525 int val2 ;
21526 int ecode2 = 0 ;
21527 PyObject * obj0 = 0 ;
21528 PyObject * obj1 = 0 ;
21529 char * kwnames[] = {
21530 (char *) "self",(char *) "x", NULL
21531 };
21532
21533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21535 if (!SWIG_IsOK(res1)) {
21536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21537 }
21538 arg1 = reinterpret_cast< wxDC * >(argp1);
21539 ecode2 = SWIG_AsVal_int(obj1, &val2);
21540 if (!SWIG_IsOK(ecode2)) {
21541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21542 }
21543 arg2 = static_cast< int >(val2);
21544 {
21545 PyThreadState* __tstate = wxPyBeginAllowThreads();
21546 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21547 wxPyEndAllowThreads(__tstate);
21548 if (PyErr_Occurred()) SWIG_fail;
21549 }
21550 resultobj = SWIG_From_int(static_cast< int >(result));
21551 return resultobj;
21552fail:
21553 return NULL;
21554}
21555
21556
21557SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21558 PyObject *resultobj = 0;
21559 wxDC *arg1 = (wxDC *) 0 ;
21560 int arg2 ;
21561 int result;
21562 void *argp1 = 0 ;
21563 int res1 = 0 ;
21564 int val2 ;
21565 int ecode2 = 0 ;
21566 PyObject * obj0 = 0 ;
21567 PyObject * obj1 = 0 ;
21568 char * kwnames[] = {
21569 (char *) "self",(char *) "y", NULL
21570 };
21571
21572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21574 if (!SWIG_IsOK(res1)) {
21575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21576 }
21577 arg1 = reinterpret_cast< wxDC * >(argp1);
21578 ecode2 = SWIG_AsVal_int(obj1, &val2);
21579 if (!SWIG_IsOK(ecode2)) {
21580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21581 }
21582 arg2 = static_cast< int >(val2);
21583 {
21584 PyThreadState* __tstate = wxPyBeginAllowThreads();
21585 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21586 wxPyEndAllowThreads(__tstate);
21587 if (PyErr_Occurred()) SWIG_fail;
21588 }
21589 resultobj = SWIG_From_int(static_cast< int >(result));
21590 return resultobj;
21591fail:
21592 return NULL;
21593}
21594
21595
21596SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21597 PyObject *resultobj = 0;
21598 wxDC *arg1 = (wxDC *) 0 ;
21599 int arg2 ;
21600 int result;
21601 void *argp1 = 0 ;
21602 int res1 = 0 ;
21603 int val2 ;
21604 int ecode2 = 0 ;
21605 PyObject * obj0 = 0 ;
21606 PyObject * obj1 = 0 ;
21607 char * kwnames[] = {
21608 (char *) "self",(char *) "x", NULL
21609 };
21610
21611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21613 if (!SWIG_IsOK(res1)) {
21614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21615 }
21616 arg1 = reinterpret_cast< wxDC * >(argp1);
21617 ecode2 = SWIG_AsVal_int(obj1, &val2);
21618 if (!SWIG_IsOK(ecode2)) {
21619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21620 }
21621 arg2 = static_cast< int >(val2);
21622 {
21623 PyThreadState* __tstate = wxPyBeginAllowThreads();
21624 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21625 wxPyEndAllowThreads(__tstate);
21626 if (PyErr_Occurred()) SWIG_fail;
21627 }
21628 resultobj = SWIG_From_int(static_cast< int >(result));
21629 return resultobj;
21630fail:
21631 return NULL;
21632}
21633
21634
21635SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21636 PyObject *resultobj = 0;
21637 wxDC *arg1 = (wxDC *) 0 ;
21638 int arg2 ;
21639 int result;
21640 void *argp1 = 0 ;
21641 int res1 = 0 ;
21642 int val2 ;
21643 int ecode2 = 0 ;
21644 PyObject * obj0 = 0 ;
21645 PyObject * obj1 = 0 ;
21646 char * kwnames[] = {
21647 (char *) "self",(char *) "y", NULL
21648 };
21649
21650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21652 if (!SWIG_IsOK(res1)) {
21653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21654 }
21655 arg1 = reinterpret_cast< wxDC * >(argp1);
21656 ecode2 = SWIG_AsVal_int(obj1, &val2);
21657 if (!SWIG_IsOK(ecode2)) {
21658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21659 }
21660 arg2 = static_cast< int >(val2);
21661 {
21662 PyThreadState* __tstate = wxPyBeginAllowThreads();
21663 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21664 wxPyEndAllowThreads(__tstate);
21665 if (PyErr_Occurred()) SWIG_fail;
21666 }
21667 resultobj = SWIG_From_int(static_cast< int >(result));
21668 return resultobj;
21669fail:
21670 return NULL;
21671}
21672
21673
21674SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21675 PyObject *resultobj = 0;
21676 wxDC *arg1 = (wxDC *) 0 ;
21677 int arg2 ;
21678 int result;
21679 void *argp1 = 0 ;
21680 int res1 = 0 ;
21681 int val2 ;
21682 int ecode2 = 0 ;
21683 PyObject * obj0 = 0 ;
21684 PyObject * obj1 = 0 ;
21685 char * kwnames[] = {
21686 (char *) "self",(char *) "x", NULL
21687 };
21688
21689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21691 if (!SWIG_IsOK(res1)) {
21692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21693 }
21694 arg1 = reinterpret_cast< wxDC * >(argp1);
21695 ecode2 = SWIG_AsVal_int(obj1, &val2);
21696 if (!SWIG_IsOK(ecode2)) {
21697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21698 }
21699 arg2 = static_cast< int >(val2);
21700 {
21701 PyThreadState* __tstate = wxPyBeginAllowThreads();
21702 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21703 wxPyEndAllowThreads(__tstate);
21704 if (PyErr_Occurred()) SWIG_fail;
21705 }
21706 resultobj = SWIG_From_int(static_cast< int >(result));
21707 return resultobj;
21708fail:
21709 return NULL;
21710}
21711
21712
21713SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21714 PyObject *resultobj = 0;
21715 wxDC *arg1 = (wxDC *) 0 ;
21716 int arg2 ;
21717 int result;
21718 void *argp1 = 0 ;
21719 int res1 = 0 ;
21720 int val2 ;
21721 int ecode2 = 0 ;
21722 PyObject * obj0 = 0 ;
21723 PyObject * obj1 = 0 ;
21724 char * kwnames[] = {
21725 (char *) "self",(char *) "y", NULL
21726 };
21727
21728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21730 if (!SWIG_IsOK(res1)) {
21731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21732 }
21733 arg1 = reinterpret_cast< wxDC * >(argp1);
21734 ecode2 = SWIG_AsVal_int(obj1, &val2);
21735 if (!SWIG_IsOK(ecode2)) {
21736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21737 }
21738 arg2 = static_cast< int >(val2);
21739 {
21740 PyThreadState* __tstate = wxPyBeginAllowThreads();
21741 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21742 wxPyEndAllowThreads(__tstate);
21743 if (PyErr_Occurred()) SWIG_fail;
21744 }
21745 resultobj = SWIG_From_int(static_cast< int >(result));
21746 return resultobj;
21747fail:
21748 return NULL;
21749}
21750
21751
21752SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21753 PyObject *resultobj = 0;
21754 wxDC *arg1 = (wxDC *) 0 ;
21755 int arg2 ;
21756 int result;
21757 void *argp1 = 0 ;
21758 int res1 = 0 ;
21759 int val2 ;
21760 int ecode2 = 0 ;
21761 PyObject * obj0 = 0 ;
21762 PyObject * obj1 = 0 ;
21763 char * kwnames[] = {
21764 (char *) "self",(char *) "x", NULL
21765 };
21766
21767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21769 if (!SWIG_IsOK(res1)) {
21770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21771 }
21772 arg1 = reinterpret_cast< wxDC * >(argp1);
21773 ecode2 = SWIG_AsVal_int(obj1, &val2);
21774 if (!SWIG_IsOK(ecode2)) {
21775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21776 }
21777 arg2 = static_cast< int >(val2);
21778 {
21779 PyThreadState* __tstate = wxPyBeginAllowThreads();
21780 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21781 wxPyEndAllowThreads(__tstate);
21782 if (PyErr_Occurred()) SWIG_fail;
21783 }
21784 resultobj = SWIG_From_int(static_cast< int >(result));
21785 return resultobj;
21786fail:
21787 return NULL;
21788}
21789
21790
21791SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21792 PyObject *resultobj = 0;
21793 wxDC *arg1 = (wxDC *) 0 ;
21794 int arg2 ;
21795 int result;
21796 void *argp1 = 0 ;
21797 int res1 = 0 ;
21798 int val2 ;
21799 int ecode2 = 0 ;
21800 PyObject * obj0 = 0 ;
21801 PyObject * obj1 = 0 ;
21802 char * kwnames[] = {
21803 (char *) "self",(char *) "y", NULL
21804 };
21805
21806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21808 if (!SWIG_IsOK(res1)) {
21809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21810 }
21811 arg1 = reinterpret_cast< wxDC * >(argp1);
21812 ecode2 = SWIG_AsVal_int(obj1, &val2);
21813 if (!SWIG_IsOK(ecode2)) {
21814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21815 }
21816 arg2 = static_cast< int >(val2);
21817 {
21818 PyThreadState* __tstate = wxPyBeginAllowThreads();
21819 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21820 wxPyEndAllowThreads(__tstate);
21821 if (PyErr_Occurred()) SWIG_fail;
21822 }
21823 resultobj = SWIG_From_int(static_cast< int >(result));
21824 return resultobj;
21825fail:
21826 return NULL;
21827}
21828
21829
21830SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21831 PyObject *resultobj = 0;
21832 wxDC *arg1 = (wxDC *) 0 ;
21833 bool result;
21834 void *argp1 = 0 ;
21835 int res1 = 0 ;
21836 PyObject *swig_obj[1] ;
21837
21838 if (!args) SWIG_fail;
21839 swig_obj[0] = args;
21840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21841 if (!SWIG_IsOK(res1)) {
21842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21843 }
21844 arg1 = reinterpret_cast< wxDC * >(argp1);
21845 {
21846 PyThreadState* __tstate = wxPyBeginAllowThreads();
21847 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21848 wxPyEndAllowThreads(__tstate);
21849 if (PyErr_Occurred()) SWIG_fail;
21850 }
21851 {
21852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21853 }
21854 return resultobj;
21855fail:
21856 return NULL;
21857}
21858
21859
21860SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21861 PyObject *resultobj = 0;
21862 wxDC *arg1 = (wxDC *) 0 ;
21863 bool result;
21864 void *argp1 = 0 ;
21865 int res1 = 0 ;
21866 PyObject *swig_obj[1] ;
21867
21868 if (!args) SWIG_fail;
21869 swig_obj[0] = args;
21870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21871 if (!SWIG_IsOK(res1)) {
21872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21873 }
21874 arg1 = reinterpret_cast< wxDC * >(argp1);
21875 {
21876 PyThreadState* __tstate = wxPyBeginAllowThreads();
21877 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21878 wxPyEndAllowThreads(__tstate);
21879 if (PyErr_Occurred()) SWIG_fail;
21880 }
21881 {
21882 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21883 }
21884 return resultobj;
21885fail:
21886 return NULL;
21887}
21888
21889
21890SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21891 PyObject *resultobj = 0;
21892 wxDC *arg1 = (wxDC *) 0 ;
21893 int result;
21894 void *argp1 = 0 ;
21895 int res1 = 0 ;
21896 PyObject *swig_obj[1] ;
21897
21898 if (!args) SWIG_fail;
21899 swig_obj[0] = args;
21900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21901 if (!SWIG_IsOK(res1)) {
21902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21903 }
21904 arg1 = reinterpret_cast< wxDC * >(argp1);
21905 {
21906 PyThreadState* __tstate = wxPyBeginAllowThreads();
21907 result = (int)((wxDC const *)arg1)->GetDepth();
21908 wxPyEndAllowThreads(__tstate);
21909 if (PyErr_Occurred()) SWIG_fail;
21910 }
21911 resultobj = SWIG_From_int(static_cast< int >(result));
21912 return resultobj;
21913fail:
21914 return NULL;
21915}
21916
21917
21918SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21919 PyObject *resultobj = 0;
21920 wxDC *arg1 = (wxDC *) 0 ;
21921 wxSize result;
21922 void *argp1 = 0 ;
21923 int res1 = 0 ;
21924 PyObject *swig_obj[1] ;
21925
21926 if (!args) SWIG_fail;
21927 swig_obj[0] = args;
21928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21929 if (!SWIG_IsOK(res1)) {
21930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21931 }
21932 arg1 = reinterpret_cast< wxDC * >(argp1);
21933 {
21934 PyThreadState* __tstate = wxPyBeginAllowThreads();
21935 result = ((wxDC const *)arg1)->GetPPI();
21936 wxPyEndAllowThreads(__tstate);
21937 if (PyErr_Occurred()) SWIG_fail;
21938 }
21939 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21940 return resultobj;
21941fail:
21942 return NULL;
21943}
21944
21945
21946SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21947 PyObject *resultobj = 0;
21948 wxDC *arg1 = (wxDC *) 0 ;
21949 bool result;
21950 void *argp1 = 0 ;
21951 int res1 = 0 ;
21952 PyObject *swig_obj[1] ;
21953
21954 if (!args) SWIG_fail;
21955 swig_obj[0] = args;
21956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21957 if (!SWIG_IsOK(res1)) {
21958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
21959 }
21960 arg1 = reinterpret_cast< wxDC * >(argp1);
21961 {
21962 PyThreadState* __tstate = wxPyBeginAllowThreads();
21963 result = (bool)((wxDC const *)arg1)->Ok();
21964 wxPyEndAllowThreads(__tstate);
21965 if (PyErr_Occurred()) SWIG_fail;
21966 }
21967 {
21968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21969 }
21970 return resultobj;
21971fail:
21972 return NULL;
21973}
21974
21975
21976SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21977 PyObject *resultobj = 0;
21978 wxDC *arg1 = (wxDC *) 0 ;
21979 int result;
21980 void *argp1 = 0 ;
21981 int res1 = 0 ;
21982 PyObject *swig_obj[1] ;
21983
21984 if (!args) SWIG_fail;
21985 swig_obj[0] = args;
21986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21987 if (!SWIG_IsOK(res1)) {
21988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21989 }
21990 arg1 = reinterpret_cast< wxDC * >(argp1);
21991 {
21992 PyThreadState* __tstate = wxPyBeginAllowThreads();
21993 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21994 wxPyEndAllowThreads(__tstate);
21995 if (PyErr_Occurred()) SWIG_fail;
21996 }
21997 resultobj = SWIG_From_int(static_cast< int >(result));
21998 return resultobj;
21999fail:
22000 return NULL;
22001}
22002
22003
22004SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22005 PyObject *resultobj = 0;
22006 wxDC *arg1 = (wxDC *) 0 ;
22007 wxBrush *result = 0 ;
22008 void *argp1 = 0 ;
22009 int res1 = 0 ;
22010 PyObject *swig_obj[1] ;
22011
22012 if (!args) SWIG_fail;
22013 swig_obj[0] = args;
22014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22015 if (!SWIG_IsOK(res1)) {
22016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22017 }
22018 arg1 = reinterpret_cast< wxDC * >(argp1);
22019 {
22020 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22021 {
554f62e9
RD
22022 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22023 result = (wxBrush *) &_result_ref;
093d3ff1 22024 }
554f62e9
RD
22025 wxPyEndAllowThreads(__tstate);
22026 if (PyErr_Occurred()) SWIG_fail;
22027 }
22028 {
22029 wxBrush* resultptr = new wxBrush(*result);
22030 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22031 }
22032 return resultobj;
22033fail:
22034 return NULL;
22035}
22036
22037
22038SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22039 PyObject *resultobj = 0;
22040 wxDC *arg1 = (wxDC *) 0 ;
22041 wxBrush *result = 0 ;
22042 void *argp1 = 0 ;
22043 int res1 = 0 ;
22044 PyObject *swig_obj[1] ;
22045
22046 if (!args) SWIG_fail;
22047 swig_obj[0] = args;
22048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22049 if (!SWIG_IsOK(res1)) {
22050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22051 }
22052 arg1 = reinterpret_cast< wxDC * >(argp1);
22053 {
22054 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22055 {
554f62e9
RD
22056 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22057 result = (wxBrush *) &_result_ref;
093d3ff1 22058 }
554f62e9
RD
22059 wxPyEndAllowThreads(__tstate);
22060 if (PyErr_Occurred()) SWIG_fail;
22061 }
22062 {
22063 wxBrush* resultptr = new wxBrush(*result);
22064 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22065 }
22066 return resultobj;
22067fail:
22068 return NULL;
22069}
22070
22071
22072SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22073 PyObject *resultobj = 0;
22074 wxDC *arg1 = (wxDC *) 0 ;
22075 wxFont *result = 0 ;
22076 void *argp1 = 0 ;
22077 int res1 = 0 ;
22078 PyObject *swig_obj[1] ;
22079
22080 if (!args) SWIG_fail;
22081 swig_obj[0] = args;
22082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22083 if (!SWIG_IsOK(res1)) {
22084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22085 }
22086 arg1 = reinterpret_cast< wxDC * >(argp1);
22087 {
22088 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22089 {
554f62e9
RD
22090 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22091 result = (wxFont *) &_result_ref;
093d3ff1 22092 }
554f62e9
RD
22093 wxPyEndAllowThreads(__tstate);
22094 if (PyErr_Occurred()) SWIG_fail;
22095 }
22096 {
22097 wxFont* resultptr = new wxFont(*result);
22098 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22099 }
22100 return resultobj;
22101fail:
22102 return NULL;
22103}
22104
22105
22106SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22107 PyObject *resultobj = 0;
22108 wxDC *arg1 = (wxDC *) 0 ;
22109 wxPen *result = 0 ;
22110 void *argp1 = 0 ;
22111 int res1 = 0 ;
22112 PyObject *swig_obj[1] ;
22113
22114 if (!args) SWIG_fail;
22115 swig_obj[0] = args;
22116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22117 if (!SWIG_IsOK(res1)) {
22118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22119 }
22120 arg1 = reinterpret_cast< wxDC * >(argp1);
22121 {
22122 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22123 {
554f62e9
RD
22124 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22125 result = (wxPen *) &_result_ref;
093d3ff1 22126 }
554f62e9
RD
22127 wxPyEndAllowThreads(__tstate);
22128 if (PyErr_Occurred()) SWIG_fail;
22129 }
22130 {
22131 wxPen* resultptr = new wxPen(*result);
22132 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22133 }
22134 return resultobj;
22135fail:
22136 return NULL;
22137}
22138
22139
22140SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22141 PyObject *resultobj = 0;
22142 wxDC *arg1 = (wxDC *) 0 ;
22143 wxColour *result = 0 ;
22144 void *argp1 = 0 ;
22145 int res1 = 0 ;
22146 PyObject *swig_obj[1] ;
22147
22148 if (!args) SWIG_fail;
22149 swig_obj[0] = args;
22150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22151 if (!SWIG_IsOK(res1)) {
22152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22153 }
22154 arg1 = reinterpret_cast< wxDC * >(argp1);
22155 {
22156 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22157 {
554f62e9
RD
22158 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22159 result = (wxColour *) &_result_ref;
093d3ff1 22160 }
554f62e9
RD
22161 wxPyEndAllowThreads(__tstate);
22162 if (PyErr_Occurred()) SWIG_fail;
22163 }
22164 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22165 return resultobj;
22166fail:
22167 return NULL;
22168}
22169
22170
22171SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22172 PyObject *resultobj = 0;
22173 wxDC *arg1 = (wxDC *) 0 ;
22174 wxColour *result = 0 ;
22175 void *argp1 = 0 ;
22176 int res1 = 0 ;
22177 PyObject *swig_obj[1] ;
22178
22179 if (!args) SWIG_fail;
22180 swig_obj[0] = args;
22181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22182 if (!SWIG_IsOK(res1)) {
22183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22184 }
22185 arg1 = reinterpret_cast< wxDC * >(argp1);
22186 {
22187 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22188 {
554f62e9
RD
22189 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22190 result = (wxColour *) &_result_ref;
093d3ff1 22191 }
554f62e9
RD
22192 wxPyEndAllowThreads(__tstate);
22193 if (PyErr_Occurred()) SWIG_fail;
22194 }
22195 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22196 return resultobj;
22197fail:
22198 return NULL;
22199}
22200
22201
22202SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22203 PyObject *resultobj = 0;
22204 wxDC *arg1 = (wxDC *) 0 ;
22205 wxColour *arg2 = 0 ;
22206 void *argp1 = 0 ;
22207 int res1 = 0 ;
22208 wxColour temp2 ;
22209 PyObject * obj0 = 0 ;
22210 PyObject * obj1 = 0 ;
22211 char * kwnames[] = {
22212 (char *) "self",(char *) "colour", NULL
22213 };
22214
22215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22217 if (!SWIG_IsOK(res1)) {
22218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22219 }
22220 arg1 = reinterpret_cast< wxDC * >(argp1);
22221 {
22222 arg2 = &temp2;
22223 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22224 }
22225 {
22226 PyThreadState* __tstate = wxPyBeginAllowThreads();
22227 (arg1)->SetTextForeground((wxColour const &)*arg2);
22228 wxPyEndAllowThreads(__tstate);
22229 if (PyErr_Occurred()) SWIG_fail;
22230 }
22231 resultobj = SWIG_Py_Void();
22232 return resultobj;
22233fail:
22234 return NULL;
22235}
22236
22237
22238SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22239 PyObject *resultobj = 0;
22240 wxDC *arg1 = (wxDC *) 0 ;
22241 wxColour *arg2 = 0 ;
22242 void *argp1 = 0 ;
22243 int res1 = 0 ;
22244 wxColour temp2 ;
22245 PyObject * obj0 = 0 ;
22246 PyObject * obj1 = 0 ;
22247 char * kwnames[] = {
22248 (char *) "self",(char *) "colour", NULL
22249 };
22250
22251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22253 if (!SWIG_IsOK(res1)) {
22254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22255 }
22256 arg1 = reinterpret_cast< wxDC * >(argp1);
22257 {
22258 arg2 = &temp2;
22259 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22260 }
22261 {
22262 PyThreadState* __tstate = wxPyBeginAllowThreads();
22263 (arg1)->SetTextBackground((wxColour const &)*arg2);
22264 wxPyEndAllowThreads(__tstate);
22265 if (PyErr_Occurred()) SWIG_fail;
22266 }
22267 resultobj = SWIG_Py_Void();
22268 return resultobj;
22269fail:
22270 return NULL;
22271}
22272
22273
22274SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22275 PyObject *resultobj = 0;
22276 wxDC *arg1 = (wxDC *) 0 ;
22277 int result;
22278 void *argp1 = 0 ;
22279 int res1 = 0 ;
22280 PyObject *swig_obj[1] ;
22281
22282 if (!args) SWIG_fail;
22283 swig_obj[0] = args;
22284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22285 if (!SWIG_IsOK(res1)) {
22286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22287 }
22288 arg1 = reinterpret_cast< wxDC * >(argp1);
22289 {
22290 PyThreadState* __tstate = wxPyBeginAllowThreads();
22291 result = (int)((wxDC const *)arg1)->GetMapMode();
22292 wxPyEndAllowThreads(__tstate);
22293 if (PyErr_Occurred()) SWIG_fail;
22294 }
22295 resultobj = SWIG_From_int(static_cast< int >(result));
22296 return resultobj;
22297fail:
22298 return NULL;
22299}
22300
22301
22302SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22303 PyObject *resultobj = 0;
22304 wxDC *arg1 = (wxDC *) 0 ;
22305 int arg2 ;
22306 void *argp1 = 0 ;
22307 int res1 = 0 ;
22308 int val2 ;
22309 int ecode2 = 0 ;
22310 PyObject * obj0 = 0 ;
22311 PyObject * obj1 = 0 ;
22312 char * kwnames[] = {
22313 (char *) "self",(char *) "mode", NULL
22314 };
22315
22316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22318 if (!SWIG_IsOK(res1)) {
22319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22320 }
22321 arg1 = reinterpret_cast< wxDC * >(argp1);
22322 ecode2 = SWIG_AsVal_int(obj1, &val2);
22323 if (!SWIG_IsOK(ecode2)) {
22324 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22325 }
22326 arg2 = static_cast< int >(val2);
22327 {
22328 PyThreadState* __tstate = wxPyBeginAllowThreads();
22329 (arg1)->SetMapMode(arg2);
22330 wxPyEndAllowThreads(__tstate);
22331 if (PyErr_Occurred()) SWIG_fail;
22332 }
22333 resultobj = SWIG_Py_Void();
22334 return resultobj;
22335fail:
22336 return NULL;
22337}
22338
22339
22340SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22341 PyObject *resultobj = 0;
22342 wxDC *arg1 = (wxDC *) 0 ;
22343 double *arg2 = (double *) 0 ;
22344 double *arg3 = (double *) 0 ;
22345 void *argp1 = 0 ;
22346 int res1 = 0 ;
22347 double temp2 ;
22348 int res2 = SWIG_TMPOBJ ;
22349 double temp3 ;
22350 int res3 = SWIG_TMPOBJ ;
22351 PyObject *swig_obj[1] ;
22352
22353 arg2 = &temp2;
22354 arg3 = &temp3;
22355 if (!args) SWIG_fail;
22356 swig_obj[0] = args;
22357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22358 if (!SWIG_IsOK(res1)) {
22359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22360 }
22361 arg1 = reinterpret_cast< wxDC * >(argp1);
22362 {
22363 PyThreadState* __tstate = wxPyBeginAllowThreads();
22364 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22365 wxPyEndAllowThreads(__tstate);
22366 if (PyErr_Occurred()) SWIG_fail;
22367 }
22368 resultobj = SWIG_Py_Void();
22369 if (SWIG_IsTmpObj(res2)) {
22370 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22371 } else {
22372 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22373 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22374 }
22375 if (SWIG_IsTmpObj(res3)) {
22376 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22377 } else {
22378 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22379 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22380 }
22381 return resultobj;
22382fail:
22383 return NULL;
22384}
22385
22386
22387SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22388 PyObject *resultobj = 0;
22389 wxDC *arg1 = (wxDC *) 0 ;
22390 double arg2 ;
22391 double arg3 ;
22392 void *argp1 = 0 ;
22393 int res1 = 0 ;
22394 double val2 ;
22395 int ecode2 = 0 ;
22396 double val3 ;
22397 int ecode3 = 0 ;
22398 PyObject * obj0 = 0 ;
22399 PyObject * obj1 = 0 ;
22400 PyObject * obj2 = 0 ;
22401 char * kwnames[] = {
22402 (char *) "self",(char *) "x",(char *) "y", NULL
22403 };
22404
22405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22407 if (!SWIG_IsOK(res1)) {
22408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22409 }
22410 arg1 = reinterpret_cast< wxDC * >(argp1);
22411 ecode2 = SWIG_AsVal_double(obj1, &val2);
22412 if (!SWIG_IsOK(ecode2)) {
22413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22414 }
22415 arg2 = static_cast< double >(val2);
22416 ecode3 = SWIG_AsVal_double(obj2, &val3);
22417 if (!SWIG_IsOK(ecode3)) {
22418 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22419 }
22420 arg3 = static_cast< double >(val3);
22421 {
22422 PyThreadState* __tstate = wxPyBeginAllowThreads();
22423 (arg1)->SetUserScale(arg2,arg3);
22424 wxPyEndAllowThreads(__tstate);
22425 if (PyErr_Occurred()) SWIG_fail;
22426 }
22427 resultobj = SWIG_Py_Void();
22428 return resultobj;
22429fail:
22430 return NULL;
22431}
22432
22433
22434SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22435 PyObject *resultobj = 0;
22436 wxDC *arg1 = (wxDC *) 0 ;
22437 double *arg2 = (double *) 0 ;
22438 double *arg3 = (double *) 0 ;
22439 void *argp1 = 0 ;
22440 int res1 = 0 ;
22441 double temp2 ;
22442 int res2 = SWIG_TMPOBJ ;
22443 double temp3 ;
22444 int res3 = SWIG_TMPOBJ ;
22445 PyObject *swig_obj[1] ;
22446
22447 arg2 = &temp2;
22448 arg3 = &temp3;
22449 if (!args) SWIG_fail;
22450 swig_obj[0] = args;
22451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22452 if (!SWIG_IsOK(res1)) {
22453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22454 }
22455 arg1 = reinterpret_cast< wxDC * >(argp1);
22456 {
22457 PyThreadState* __tstate = wxPyBeginAllowThreads();
22458 (arg1)->GetLogicalScale(arg2,arg3);
22459 wxPyEndAllowThreads(__tstate);
22460 if (PyErr_Occurred()) SWIG_fail;
22461 }
22462 resultobj = SWIG_Py_Void();
22463 if (SWIG_IsTmpObj(res2)) {
22464 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22465 } else {
22466 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22467 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22468 }
22469 if (SWIG_IsTmpObj(res3)) {
22470 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22471 } else {
22472 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22473 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22474 }
22475 return resultobj;
22476fail:
22477 return NULL;
22478}
22479
22480
22481SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22482 PyObject *resultobj = 0;
22483 wxDC *arg1 = (wxDC *) 0 ;
22484 double arg2 ;
22485 double arg3 ;
22486 void *argp1 = 0 ;
22487 int res1 = 0 ;
22488 double val2 ;
22489 int ecode2 = 0 ;
22490 double val3 ;
22491 int ecode3 = 0 ;
22492 PyObject * obj0 = 0 ;
22493 PyObject * obj1 = 0 ;
22494 PyObject * obj2 = 0 ;
22495 char * kwnames[] = {
22496 (char *) "self",(char *) "x",(char *) "y", NULL
22497 };
22498
22499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22501 if (!SWIG_IsOK(res1)) {
22502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22503 }
22504 arg1 = reinterpret_cast< wxDC * >(argp1);
22505 ecode2 = SWIG_AsVal_double(obj1, &val2);
22506 if (!SWIG_IsOK(ecode2)) {
22507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22508 }
22509 arg2 = static_cast< double >(val2);
22510 ecode3 = SWIG_AsVal_double(obj2, &val3);
22511 if (!SWIG_IsOK(ecode3)) {
22512 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22513 }
22514 arg3 = static_cast< double >(val3);
22515 {
22516 PyThreadState* __tstate = wxPyBeginAllowThreads();
22517 (arg1)->SetLogicalScale(arg2,arg3);
22518 wxPyEndAllowThreads(__tstate);
22519 if (PyErr_Occurred()) SWIG_fail;
22520 }
22521 resultobj = SWIG_Py_Void();
22522 return resultobj;
22523fail:
22524 return NULL;
22525}
22526
22527
22528SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22529 PyObject *resultobj = 0;
22530 wxDC *arg1 = (wxDC *) 0 ;
22531 wxPoint result;
22532 void *argp1 = 0 ;
22533 int res1 = 0 ;
22534 PyObject *swig_obj[1] ;
22535
22536 if (!args) SWIG_fail;
22537 swig_obj[0] = args;
22538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22539 if (!SWIG_IsOK(res1)) {
22540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22541 }
22542 arg1 = reinterpret_cast< wxDC * >(argp1);
22543 {
22544 PyThreadState* __tstate = wxPyBeginAllowThreads();
22545 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22546 wxPyEndAllowThreads(__tstate);
22547 if (PyErr_Occurred()) SWIG_fail;
22548 }
22549 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22550 return resultobj;
22551fail:
22552 return NULL;
22553}
22554
22555
22556SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22557 PyObject *resultobj = 0;
22558 wxDC *arg1 = (wxDC *) 0 ;
22559 int *arg2 = (int *) 0 ;
22560 int *arg3 = (int *) 0 ;
22561 void *argp1 = 0 ;
22562 int res1 = 0 ;
22563 int temp2 ;
22564 int res2 = SWIG_TMPOBJ ;
22565 int temp3 ;
22566 int res3 = SWIG_TMPOBJ ;
22567 PyObject *swig_obj[1] ;
22568
22569 arg2 = &temp2;
22570 arg3 = &temp3;
22571 if (!args) SWIG_fail;
22572 swig_obj[0] = args;
22573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22574 if (!SWIG_IsOK(res1)) {
22575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22576 }
22577 arg1 = reinterpret_cast< wxDC * >(argp1);
22578 {
22579 PyThreadState* __tstate = wxPyBeginAllowThreads();
22580 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22581 wxPyEndAllowThreads(__tstate);
22582 if (PyErr_Occurred()) SWIG_fail;
22583 }
22584 resultobj = SWIG_Py_Void();
22585 if (SWIG_IsTmpObj(res2)) {
22586 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22587 } else {
22588 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22589 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22590 }
22591 if (SWIG_IsTmpObj(res3)) {
22592 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22593 } else {
22594 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22595 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22596 }
22597 return resultobj;
22598fail:
22599 return NULL;
22600}
22601
22602
22603SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22604 PyObject *resultobj = 0;
22605 wxDC *arg1 = (wxDC *) 0 ;
22606 int arg2 ;
22607 int arg3 ;
22608 void *argp1 = 0 ;
22609 int res1 = 0 ;
22610 int val2 ;
22611 int ecode2 = 0 ;
22612 int val3 ;
22613 int ecode3 = 0 ;
22614 PyObject * obj0 = 0 ;
22615 PyObject * obj1 = 0 ;
22616 PyObject * obj2 = 0 ;
22617 char * kwnames[] = {
22618 (char *) "self",(char *) "x",(char *) "y", NULL
22619 };
22620
22621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22623 if (!SWIG_IsOK(res1)) {
22624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22625 }
22626 arg1 = reinterpret_cast< wxDC * >(argp1);
22627 ecode2 = SWIG_AsVal_int(obj1, &val2);
22628 if (!SWIG_IsOK(ecode2)) {
22629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22630 }
22631 arg2 = static_cast< int >(val2);
22632 ecode3 = SWIG_AsVal_int(obj2, &val3);
22633 if (!SWIG_IsOK(ecode3)) {
22634 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22635 }
22636 arg3 = static_cast< int >(val3);
22637 {
22638 PyThreadState* __tstate = wxPyBeginAllowThreads();
22639 (arg1)->SetLogicalOrigin(arg2,arg3);
22640 wxPyEndAllowThreads(__tstate);
22641 if (PyErr_Occurred()) SWIG_fail;
22642 }
22643 resultobj = SWIG_Py_Void();
22644 return resultobj;
22645fail:
22646 return NULL;
22647}
22648
22649
22650SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22651 PyObject *resultobj = 0;
22652 wxDC *arg1 = (wxDC *) 0 ;
22653 wxPoint *arg2 = 0 ;
22654 void *argp1 = 0 ;
22655 int res1 = 0 ;
22656 wxPoint temp2 ;
22657 PyObject * obj0 = 0 ;
22658 PyObject * obj1 = 0 ;
22659 char * kwnames[] = {
22660 (char *) "self",(char *) "point", NULL
22661 };
22662
22663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22665 if (!SWIG_IsOK(res1)) {
22666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22667 }
22668 arg1 = reinterpret_cast< wxDC * >(argp1);
22669 {
22670 arg2 = &temp2;
22671 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22672 }
22673 {
22674 PyThreadState* __tstate = wxPyBeginAllowThreads();
22675 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22676 wxPyEndAllowThreads(__tstate);
22677 if (PyErr_Occurred()) SWIG_fail;
22678 }
22679 resultobj = SWIG_Py_Void();
22680 return resultobj;
22681fail:
22682 return NULL;
22683}
22684
22685
22686SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22687 PyObject *resultobj = 0;
22688 wxDC *arg1 = (wxDC *) 0 ;
22689 wxPoint result;
22690 void *argp1 = 0 ;
22691 int res1 = 0 ;
22692 PyObject *swig_obj[1] ;
22693
22694 if (!args) SWIG_fail;
22695 swig_obj[0] = args;
22696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22697 if (!SWIG_IsOK(res1)) {
22698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22699 }
22700 arg1 = reinterpret_cast< wxDC * >(argp1);
22701 {
22702 PyThreadState* __tstate = wxPyBeginAllowThreads();
22703 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22704 wxPyEndAllowThreads(__tstate);
22705 if (PyErr_Occurred()) SWIG_fail;
22706 }
22707 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22708 return resultobj;
22709fail:
22710 return NULL;
22711}
22712
22713
22714SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22715 PyObject *resultobj = 0;
22716 wxDC *arg1 = (wxDC *) 0 ;
22717 int *arg2 = (int *) 0 ;
22718 int *arg3 = (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 PyObject *swig_obj[1] ;
22726
22727 arg2 = &temp2;
22728 arg3 = &temp3;
22729 if (!args) SWIG_fail;
22730 swig_obj[0] = args;
22731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22732 if (!SWIG_IsOK(res1)) {
22733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22734 }
22735 arg1 = reinterpret_cast< wxDC * >(argp1);
22736 {
22737 PyThreadState* __tstate = wxPyBeginAllowThreads();
22738 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22739 wxPyEndAllowThreads(__tstate);
22740 if (PyErr_Occurred()) SWIG_fail;
22741 }
22742 resultobj = SWIG_Py_Void();
22743 if (SWIG_IsTmpObj(res2)) {
22744 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22745 } else {
22746 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22747 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22748 }
22749 if (SWIG_IsTmpObj(res3)) {
22750 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22751 } else {
22752 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22753 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22754 }
22755 return resultobj;
22756fail:
22757 return NULL;
22758}
22759
22760
22761SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22762 PyObject *resultobj = 0;
22763 wxDC *arg1 = (wxDC *) 0 ;
22764 int arg2 ;
22765 int arg3 ;
22766 void *argp1 = 0 ;
22767 int res1 = 0 ;
22768 int val2 ;
22769 int ecode2 = 0 ;
22770 int val3 ;
22771 int ecode3 = 0 ;
22772 PyObject * obj0 = 0 ;
22773 PyObject * obj1 = 0 ;
22774 PyObject * obj2 = 0 ;
22775 char * kwnames[] = {
22776 (char *) "self",(char *) "x",(char *) "y", NULL
22777 };
22778
22779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22781 if (!SWIG_IsOK(res1)) {
22782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22783 }
22784 arg1 = reinterpret_cast< wxDC * >(argp1);
22785 ecode2 = SWIG_AsVal_int(obj1, &val2);
22786 if (!SWIG_IsOK(ecode2)) {
22787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22788 }
22789 arg2 = static_cast< int >(val2);
22790 ecode3 = SWIG_AsVal_int(obj2, &val3);
22791 if (!SWIG_IsOK(ecode3)) {
22792 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22793 }
22794 arg3 = static_cast< int >(val3);
22795 {
22796 PyThreadState* __tstate = wxPyBeginAllowThreads();
22797 (arg1)->SetDeviceOrigin(arg2,arg3);
22798 wxPyEndAllowThreads(__tstate);
22799 if (PyErr_Occurred()) SWIG_fail;
22800 }
22801 resultobj = SWIG_Py_Void();
22802 return resultobj;
22803fail:
22804 return NULL;
22805}
22806
22807
22808SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22809 PyObject *resultobj = 0;
22810 wxDC *arg1 = (wxDC *) 0 ;
22811 wxPoint *arg2 = 0 ;
22812 void *argp1 = 0 ;
22813 int res1 = 0 ;
22814 wxPoint temp2 ;
22815 PyObject * obj0 = 0 ;
22816 PyObject * obj1 = 0 ;
22817 char * kwnames[] = {
22818 (char *) "self",(char *) "point", NULL
22819 };
22820
22821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22823 if (!SWIG_IsOK(res1)) {
22824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22825 }
22826 arg1 = reinterpret_cast< wxDC * >(argp1);
22827 {
22828 arg2 = &temp2;
22829 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22830 }
22831 {
22832 PyThreadState* __tstate = wxPyBeginAllowThreads();
22833 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22834 wxPyEndAllowThreads(__tstate);
22835 if (PyErr_Occurred()) SWIG_fail;
22836 }
22837 resultobj = SWIG_Py_Void();
22838 return resultobj;
22839fail:
22840 return NULL;
22841}
22842
22843
22844SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22845 PyObject *resultobj = 0;
22846 wxDC *arg1 = (wxDC *) 0 ;
22847 bool arg2 ;
22848 bool arg3 ;
22849 void *argp1 = 0 ;
22850 int res1 = 0 ;
22851 bool val2 ;
22852 int ecode2 = 0 ;
22853 bool val3 ;
22854 int ecode3 = 0 ;
22855 PyObject * obj0 = 0 ;
22856 PyObject * obj1 = 0 ;
22857 PyObject * obj2 = 0 ;
22858 char * kwnames[] = {
22859 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22860 };
22861
22862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22864 if (!SWIG_IsOK(res1)) {
22865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22866 }
22867 arg1 = reinterpret_cast< wxDC * >(argp1);
22868 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22869 if (!SWIG_IsOK(ecode2)) {
22870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22871 }
22872 arg2 = static_cast< bool >(val2);
22873 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22874 if (!SWIG_IsOK(ecode3)) {
22875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22876 }
22877 arg3 = static_cast< bool >(val3);
22878 {
22879 PyThreadState* __tstate = wxPyBeginAllowThreads();
22880 (arg1)->SetAxisOrientation(arg2,arg3);
22881 wxPyEndAllowThreads(__tstate);
22882 if (PyErr_Occurred()) SWIG_fail;
22883 }
22884 resultobj = SWIG_Py_Void();
22885 return resultobj;
22886fail:
22887 return NULL;
22888}
22889
22890
22891SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22892 PyObject *resultobj = 0;
22893 wxDC *arg1 = (wxDC *) 0 ;
22894 int result;
22895 void *argp1 = 0 ;
22896 int res1 = 0 ;
22897 PyObject *swig_obj[1] ;
22898
22899 if (!args) SWIG_fail;
22900 swig_obj[0] = args;
22901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22902 if (!SWIG_IsOK(res1)) {
22903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22904 }
22905 arg1 = reinterpret_cast< wxDC * >(argp1);
22906 {
22907 PyThreadState* __tstate = wxPyBeginAllowThreads();
22908 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22909 wxPyEndAllowThreads(__tstate);
22910 if (PyErr_Occurred()) SWIG_fail;
22911 }
22912 resultobj = SWIG_From_int(static_cast< int >(result));
22913 return resultobj;
22914fail:
22915 return NULL;
22916}
22917
22918
22919SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22920 PyObject *resultobj = 0;
22921 wxDC *arg1 = (wxDC *) 0 ;
22922 int arg2 ;
22923 void *argp1 = 0 ;
22924 int res1 = 0 ;
22925 int val2 ;
22926 int ecode2 = 0 ;
22927 PyObject * obj0 = 0 ;
22928 PyObject * obj1 = 0 ;
22929 char * kwnames[] = {
22930 (char *) "self",(char *) "function", NULL
22931 };
22932
22933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22935 if (!SWIG_IsOK(res1)) {
22936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22937 }
22938 arg1 = reinterpret_cast< wxDC * >(argp1);
22939 ecode2 = SWIG_AsVal_int(obj1, &val2);
22940 if (!SWIG_IsOK(ecode2)) {
22941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22942 }
22943 arg2 = static_cast< int >(val2);
22944 {
22945 PyThreadState* __tstate = wxPyBeginAllowThreads();
22946 (arg1)->SetLogicalFunction(arg2);
22947 wxPyEndAllowThreads(__tstate);
22948 if (PyErr_Occurred()) SWIG_fail;
22949 }
22950 resultobj = SWIG_Py_Void();
22951 return resultobj;
22952fail:
22953 return NULL;
22954}
22955
22956
22957SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22958 PyObject *resultobj = 0;
22959 wxDC *arg1 = (wxDC *) 0 ;
22960 void *argp1 = 0 ;
22961 int res1 = 0 ;
22962 PyObject *swig_obj[1] ;
22963
22964 if (!args) SWIG_fail;
22965 swig_obj[0] = args;
22966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22967 if (!SWIG_IsOK(res1)) {
22968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22969 }
22970 arg1 = reinterpret_cast< wxDC * >(argp1);
22971 {
22972 PyThreadState* __tstate = wxPyBeginAllowThreads();
22973 (arg1)->ComputeScaleAndOrigin();
22974 wxPyEndAllowThreads(__tstate);
22975 if (PyErr_Occurred()) SWIG_fail;
22976 }
22977 resultobj = SWIG_Py_Void();
22978 return resultobj;
22979fail:
22980 return NULL;
22981}
22982
22983
22984SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22985 PyObject *resultobj = 0;
22986 wxDC *arg1 = (wxDC *) 0 ;
22987 int arg2 ;
22988 int arg3 ;
22989 void *argp1 = 0 ;
22990 int res1 = 0 ;
22991 int val2 ;
22992 int ecode2 = 0 ;
22993 int val3 ;
22994 int ecode3 = 0 ;
22995 PyObject * obj0 = 0 ;
22996 PyObject * obj1 = 0 ;
22997 PyObject * obj2 = 0 ;
22998 char * kwnames[] = {
22999 (char *) "self",(char *) "x",(char *) "y", NULL
23000 };
23001
23002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23004 if (!SWIG_IsOK(res1)) {
23005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23006 }
23007 arg1 = reinterpret_cast< wxDC * >(argp1);
23008 ecode2 = SWIG_AsVal_int(obj1, &val2);
23009 if (!SWIG_IsOK(ecode2)) {
23010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23011 }
23012 arg2 = static_cast< int >(val2);
23013 ecode3 = SWIG_AsVal_int(obj2, &val3);
23014 if (!SWIG_IsOK(ecode3)) {
23015 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23016 }
23017 arg3 = static_cast< int >(val3);
23018 {
23019 PyThreadState* __tstate = wxPyBeginAllowThreads();
23020 (arg1)->CalcBoundingBox(arg2,arg3);
23021 wxPyEndAllowThreads(__tstate);
23022 if (PyErr_Occurred()) SWIG_fail;
23023 }
23024 resultobj = SWIG_Py_Void();
23025 return resultobj;
23026fail:
23027 return NULL;
23028}
23029
23030
23031SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23032 PyObject *resultobj = 0;
23033 wxDC *arg1 = (wxDC *) 0 ;
23034 wxPoint *arg2 = 0 ;
23035 void *argp1 = 0 ;
23036 int res1 = 0 ;
23037 wxPoint temp2 ;
23038 PyObject * obj0 = 0 ;
23039 PyObject * obj1 = 0 ;
23040 char * kwnames[] = {
23041 (char *) "self",(char *) "point", NULL
23042 };
23043
23044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23046 if (!SWIG_IsOK(res1)) {
23047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23048 }
23049 arg1 = reinterpret_cast< wxDC * >(argp1);
23050 {
23051 arg2 = &temp2;
23052 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23053 }
23054 {
23055 PyThreadState* __tstate = wxPyBeginAllowThreads();
23056 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23057 wxPyEndAllowThreads(__tstate);
23058 if (PyErr_Occurred()) SWIG_fail;
23059 }
23060 resultobj = SWIG_Py_Void();
23061 return resultobj;
23062fail:
23063 return NULL;
23064}
23065
23066
23067SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23068 PyObject *resultobj = 0;
23069 wxDC *arg1 = (wxDC *) 0 ;
23070 void *argp1 = 0 ;
23071 int res1 = 0 ;
23072 PyObject *swig_obj[1] ;
23073
23074 if (!args) SWIG_fail;
23075 swig_obj[0] = args;
23076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23077 if (!SWIG_IsOK(res1)) {
23078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23079 }
23080 arg1 = reinterpret_cast< wxDC * >(argp1);
23081 {
23082 PyThreadState* __tstate = wxPyBeginAllowThreads();
23083 (arg1)->ResetBoundingBox();
23084 wxPyEndAllowThreads(__tstate);
23085 if (PyErr_Occurred()) SWIG_fail;
23086 }
23087 resultobj = SWIG_Py_Void();
23088 return resultobj;
23089fail:
23090 return NULL;
23091}
23092
23093
23094SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23095 PyObject *resultobj = 0;
23096 wxDC *arg1 = (wxDC *) 0 ;
23097 int result;
23098 void *argp1 = 0 ;
23099 int res1 = 0 ;
23100 PyObject *swig_obj[1] ;
23101
23102 if (!args) SWIG_fail;
23103 swig_obj[0] = args;
23104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23105 if (!SWIG_IsOK(res1)) {
23106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23107 }
23108 arg1 = reinterpret_cast< wxDC * >(argp1);
23109 {
23110 PyThreadState* __tstate = wxPyBeginAllowThreads();
23111 result = (int)((wxDC const *)arg1)->MinX();
23112 wxPyEndAllowThreads(__tstate);
23113 if (PyErr_Occurred()) SWIG_fail;
23114 }
23115 resultobj = SWIG_From_int(static_cast< int >(result));
23116 return resultobj;
23117fail:
23118 return NULL;
23119}
23120
23121
23122SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23123 PyObject *resultobj = 0;
23124 wxDC *arg1 = (wxDC *) 0 ;
23125 int result;
23126 void *argp1 = 0 ;
23127 int res1 = 0 ;
23128 PyObject *swig_obj[1] ;
23129
23130 if (!args) SWIG_fail;
23131 swig_obj[0] = args;
23132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23133 if (!SWIG_IsOK(res1)) {
23134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23135 }
23136 arg1 = reinterpret_cast< wxDC * >(argp1);
23137 {
23138 PyThreadState* __tstate = wxPyBeginAllowThreads();
23139 result = (int)((wxDC const *)arg1)->MaxX();
23140 wxPyEndAllowThreads(__tstate);
23141 if (PyErr_Occurred()) SWIG_fail;
23142 }
23143 resultobj = SWIG_From_int(static_cast< int >(result));
23144 return resultobj;
23145fail:
23146 return NULL;
23147}
23148
23149
23150SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23151 PyObject *resultobj = 0;
23152 wxDC *arg1 = (wxDC *) 0 ;
23153 int result;
23154 void *argp1 = 0 ;
23155 int res1 = 0 ;
23156 PyObject *swig_obj[1] ;
23157
23158 if (!args) SWIG_fail;
23159 swig_obj[0] = args;
23160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23161 if (!SWIG_IsOK(res1)) {
23162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23163 }
23164 arg1 = reinterpret_cast< wxDC * >(argp1);
23165 {
23166 PyThreadState* __tstate = wxPyBeginAllowThreads();
23167 result = (int)((wxDC const *)arg1)->MinY();
23168 wxPyEndAllowThreads(__tstate);
23169 if (PyErr_Occurred()) SWIG_fail;
23170 }
23171 resultobj = SWIG_From_int(static_cast< int >(result));
23172 return resultobj;
23173fail:
23174 return NULL;
23175}
23176
23177
23178SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23179 PyObject *resultobj = 0;
23180 wxDC *arg1 = (wxDC *) 0 ;
23181 int result;
23182 void *argp1 = 0 ;
23183 int res1 = 0 ;
23184 PyObject *swig_obj[1] ;
23185
23186 if (!args) SWIG_fail;
23187 swig_obj[0] = args;
23188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23189 if (!SWIG_IsOK(res1)) {
23190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23191 }
23192 arg1 = reinterpret_cast< wxDC * >(argp1);
23193 {
23194 PyThreadState* __tstate = wxPyBeginAllowThreads();
23195 result = (int)((wxDC const *)arg1)->MaxY();
23196 wxPyEndAllowThreads(__tstate);
23197 if (PyErr_Occurred()) SWIG_fail;
23198 }
23199 resultobj = SWIG_From_int(static_cast< int >(result));
23200 return resultobj;
23201fail:
23202 return NULL;
23203}
23204
23205
23206SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23207 PyObject *resultobj = 0;
23208 wxDC *arg1 = (wxDC *) 0 ;
23209 int *arg2 = (int *) 0 ;
23210 int *arg3 = (int *) 0 ;
23211 int *arg4 = (int *) 0 ;
23212 int *arg5 = (int *) 0 ;
23213 void *argp1 = 0 ;
23214 int res1 = 0 ;
23215 int temp2 ;
23216 int res2 = SWIG_TMPOBJ ;
23217 int temp3 ;
23218 int res3 = SWIG_TMPOBJ ;
23219 int temp4 ;
23220 int res4 = SWIG_TMPOBJ ;
23221 int temp5 ;
23222 int res5 = SWIG_TMPOBJ ;
23223 PyObject *swig_obj[1] ;
23224
23225 arg2 = &temp2;
23226 arg3 = &temp3;
23227 arg4 = &temp4;
23228 arg5 = &temp5;
23229 if (!args) SWIG_fail;
23230 swig_obj[0] = args;
23231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23232 if (!SWIG_IsOK(res1)) {
23233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23234 }
23235 arg1 = reinterpret_cast< wxDC * >(argp1);
23236 {
23237 PyThreadState* __tstate = wxPyBeginAllowThreads();
23238 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23239 wxPyEndAllowThreads(__tstate);
23240 if (PyErr_Occurred()) SWIG_fail;
23241 }
23242 resultobj = SWIG_Py_Void();
23243 if (SWIG_IsTmpObj(res2)) {
23244 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23245 } else {
23246 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23247 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23248 }
23249 if (SWIG_IsTmpObj(res3)) {
23250 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23251 } else {
23252 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23253 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23254 }
23255 if (SWIG_IsTmpObj(res4)) {
23256 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23257 } else {
23258 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23259 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23260 }
23261 if (SWIG_IsTmpObj(res5)) {
23262 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23263 } else {
23264 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23265 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23266 }
23267 return resultobj;
23268fail:
23269 return NULL;
23270}
23271
23272
23273SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23274 PyObject *resultobj = 0;
23275 wxDC *arg1 = (wxDC *) 0 ;
23276 long result;
23277 void *argp1 = 0 ;
23278 int res1 = 0 ;
23279 PyObject *swig_obj[1] ;
23280
23281 if (!args) SWIG_fail;
23282 swig_obj[0] = args;
23283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23284 if (!SWIG_IsOK(res1)) {
23285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
23286 }
23287 arg1 = reinterpret_cast< wxDC * >(argp1);
23288 {
23289 PyThreadState* __tstate = wxPyBeginAllowThreads();
23290 result = (long)(arg1)->GetHDC();
23291 wxPyEndAllowThreads(__tstate);
23292 if (PyErr_Occurred()) SWIG_fail;
23293 }
23294 resultobj = SWIG_From_long(static_cast< long >(result));
23295 return resultobj;
23296fail:
23297 return NULL;
23298}
23299
23300
23301SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23302 PyObject *resultobj = 0;
23303 wxDC *arg1 = (wxDC *) 0 ;
23304 PyObject *arg2 = (PyObject *) 0 ;
23305 PyObject *arg3 = (PyObject *) 0 ;
23306 PyObject *arg4 = (PyObject *) 0 ;
23307 PyObject *result = 0 ;
23308 void *argp1 = 0 ;
23309 int res1 = 0 ;
23310 PyObject * obj0 = 0 ;
23311 PyObject * obj1 = 0 ;
23312 PyObject * obj2 = 0 ;
23313 PyObject * obj3 = 0 ;
23314 char * kwnames[] = {
23315 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23316 };
23317
23318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23320 if (!SWIG_IsOK(res1)) {
23321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23322 }
23323 arg1 = reinterpret_cast< wxDC * >(argp1);
23324 arg2 = obj1;
23325 arg3 = obj2;
23326 arg4 = obj3;
23327 {
23328 PyThreadState* __tstate = wxPyBeginAllowThreads();
23329 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23330 wxPyEndAllowThreads(__tstate);
23331 if (PyErr_Occurred()) SWIG_fail;
23332 }
23333 resultobj = result;
23334 return resultobj;
23335fail:
23336 return NULL;
23337}
23338
23339
23340SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23341 PyObject *resultobj = 0;
23342 wxDC *arg1 = (wxDC *) 0 ;
23343 PyObject *arg2 = (PyObject *) 0 ;
23344 PyObject *arg3 = (PyObject *) 0 ;
23345 PyObject *arg4 = (PyObject *) 0 ;
23346 PyObject *result = 0 ;
23347 void *argp1 = 0 ;
23348 int res1 = 0 ;
23349 PyObject * obj0 = 0 ;
23350 PyObject * obj1 = 0 ;
23351 PyObject * obj2 = 0 ;
23352 PyObject * obj3 = 0 ;
23353 char * kwnames[] = {
23354 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23355 };
23356
23357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23359 if (!SWIG_IsOK(res1)) {
23360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23361 }
23362 arg1 = reinterpret_cast< wxDC * >(argp1);
23363 arg2 = obj1;
23364 arg3 = obj2;
23365 arg4 = obj3;
23366 {
23367 PyThreadState* __tstate = wxPyBeginAllowThreads();
23368 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23369 wxPyEndAllowThreads(__tstate);
23370 if (PyErr_Occurred()) SWIG_fail;
23371 }
23372 resultobj = result;
23373 return resultobj;
23374fail:
23375 return NULL;
23376}
23377
23378
23379SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23380 PyObject *resultobj = 0;
23381 wxDC *arg1 = (wxDC *) 0 ;
23382 PyObject *arg2 = (PyObject *) 0 ;
23383 PyObject *arg3 = (PyObject *) 0 ;
23384 PyObject *arg4 = (PyObject *) 0 ;
23385 PyObject *result = 0 ;
23386 void *argp1 = 0 ;
23387 int res1 = 0 ;
23388 PyObject * obj0 = 0 ;
23389 PyObject * obj1 = 0 ;
23390 PyObject * obj2 = 0 ;
23391 PyObject * obj3 = 0 ;
23392 char * kwnames[] = {
23393 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23394 };
23395
23396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23398 if (!SWIG_IsOK(res1)) {
23399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23400 }
23401 arg1 = reinterpret_cast< wxDC * >(argp1);
23402 arg2 = obj1;
23403 arg3 = obj2;
23404 arg4 = obj3;
23405 {
23406 PyThreadState* __tstate = wxPyBeginAllowThreads();
23407 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23408 wxPyEndAllowThreads(__tstate);
23409 if (PyErr_Occurred()) SWIG_fail;
23410 }
23411 resultobj = result;
23412 return resultobj;
23413fail:
23414 return NULL;
23415}
23416
23417
23418SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23419 PyObject *resultobj = 0;
23420 wxDC *arg1 = (wxDC *) 0 ;
23421 PyObject *arg2 = (PyObject *) 0 ;
23422 PyObject *arg3 = (PyObject *) 0 ;
23423 PyObject *arg4 = (PyObject *) 0 ;
23424 PyObject *result = 0 ;
23425 void *argp1 = 0 ;
23426 int res1 = 0 ;
23427 PyObject * obj0 = 0 ;
23428 PyObject * obj1 = 0 ;
23429 PyObject * obj2 = 0 ;
23430 PyObject * obj3 = 0 ;
23431 char * kwnames[] = {
23432 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23433 };
23434
23435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23437 if (!SWIG_IsOK(res1)) {
23438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23439 }
23440 arg1 = reinterpret_cast< wxDC * >(argp1);
23441 arg2 = obj1;
23442 arg3 = obj2;
23443 arg4 = obj3;
23444 {
23445 PyThreadState* __tstate = wxPyBeginAllowThreads();
23446 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23447 wxPyEndAllowThreads(__tstate);
23448 if (PyErr_Occurred()) SWIG_fail;
23449 }
23450 resultobj = result;
23451 return resultobj;
23452fail:
23453 return NULL;
23454}
23455
23456
23457SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23458 PyObject *resultobj = 0;
23459 wxDC *arg1 = (wxDC *) 0 ;
23460 PyObject *arg2 = (PyObject *) 0 ;
23461 PyObject *arg3 = (PyObject *) 0 ;
23462 PyObject *arg4 = (PyObject *) 0 ;
23463 PyObject *result = 0 ;
23464 void *argp1 = 0 ;
23465 int res1 = 0 ;
23466 PyObject * obj0 = 0 ;
23467 PyObject * obj1 = 0 ;
23468 PyObject * obj2 = 0 ;
23469 PyObject * obj3 = 0 ;
23470 char * kwnames[] = {
23471 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23472 };
23473
23474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23476 if (!SWIG_IsOK(res1)) {
23477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23478 }
23479 arg1 = reinterpret_cast< wxDC * >(argp1);
23480 arg2 = obj1;
23481 arg3 = obj2;
23482 arg4 = obj3;
23483 {
23484 PyThreadState* __tstate = wxPyBeginAllowThreads();
23485 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23486 wxPyEndAllowThreads(__tstate);
23487 if (PyErr_Occurred()) SWIG_fail;
23488 }
23489 resultobj = result;
23490 return resultobj;
23491fail:
23492 return NULL;
23493}
23494
23495
23496SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23497 PyObject *resultobj = 0;
23498 wxDC *arg1 = (wxDC *) 0 ;
23499 PyObject *arg2 = (PyObject *) 0 ;
23500 PyObject *arg3 = (PyObject *) 0 ;
23501 PyObject *arg4 = (PyObject *) 0 ;
23502 PyObject *arg5 = (PyObject *) 0 ;
23503 PyObject *result = 0 ;
23504 void *argp1 = 0 ;
23505 int res1 = 0 ;
23506 PyObject * obj0 = 0 ;
23507 PyObject * obj1 = 0 ;
23508 PyObject * obj2 = 0 ;
23509 PyObject * obj3 = 0 ;
23510 PyObject * obj4 = 0 ;
23511 char * kwnames[] = {
23512 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23513 };
23514
23515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23517 if (!SWIG_IsOK(res1)) {
23518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23519 }
23520 arg1 = reinterpret_cast< wxDC * >(argp1);
23521 arg2 = obj1;
23522 arg3 = obj2;
23523 arg4 = obj3;
23524 arg5 = obj4;
23525 {
23526 PyThreadState* __tstate = wxPyBeginAllowThreads();
23527 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23528 wxPyEndAllowThreads(__tstate);
23529 if (PyErr_Occurred()) SWIG_fail;
23530 }
23531 resultobj = result;
23532 return resultobj;
23533fail:
23534 return NULL;
23535}
23536
23537
23538SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23539 PyObject *obj;
23540 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23541 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23542 return SWIG_Py_Void();
23543}
23544
23545SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23546 PyObject *resultobj = 0;
23547 wxMemoryDC *result = 0 ;
23548
23549 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
23550 {
23551 if (!wxPyCheckForApp()) SWIG_fail;
23552 PyThreadState* __tstate = wxPyBeginAllowThreads();
23553 result = (wxMemoryDC *)new wxMemoryDC();
23554 wxPyEndAllowThreads(__tstate);
23555 if (PyErr_Occurred()) SWIG_fail;
23556 }
23557 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23558 return resultobj;
23559fail:
23560 return NULL;
23561}
23562
23563
23564SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23565 PyObject *resultobj = 0;
23566 wxDC *arg1 = (wxDC *) 0 ;
23567 wxMemoryDC *result = 0 ;
23568 void *argp1 = 0 ;
23569 int res1 = 0 ;
23570 PyObject * obj0 = 0 ;
23571 char * kwnames[] = {
23572 (char *) "oldDC", NULL
23573 };
23574
23575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23577 if (!SWIG_IsOK(res1)) {
23578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23579 }
23580 arg1 = reinterpret_cast< wxDC * >(argp1);
23581 {
23582 if (!wxPyCheckForApp()) SWIG_fail;
23583 PyThreadState* __tstate = wxPyBeginAllowThreads();
23584 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23585 wxPyEndAllowThreads(__tstate);
23586 if (PyErr_Occurred()) SWIG_fail;
23587 }
23588 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23589 return resultobj;
23590fail:
23591 return NULL;
23592}
23593
23594
23595SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23596 PyObject *resultobj = 0;
23597 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23598 wxBitmap *arg2 = 0 ;
23599 void *argp1 = 0 ;
23600 int res1 = 0 ;
23601 void *argp2 = 0 ;
23602 int res2 = 0 ;
23603 PyObject * obj0 = 0 ;
23604 PyObject * obj1 = 0 ;
23605 char * kwnames[] = {
23606 (char *) "self",(char *) "bitmap", NULL
23607 };
23608
23609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23611 if (!SWIG_IsOK(res1)) {
23612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23613 }
23614 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23615 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23616 if (!SWIG_IsOK(res2)) {
23617 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23618 }
23619 if (!argp2) {
23620 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23621 }
23622 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23623 {
23624 PyThreadState* __tstate = wxPyBeginAllowThreads();
23625 (arg1)->SelectObject((wxBitmap const &)*arg2);
23626 wxPyEndAllowThreads(__tstate);
23627 if (PyErr_Occurred()) SWIG_fail;
23628 }
23629 resultobj = SWIG_Py_Void();
23630 return resultobj;
23631fail:
23632 return NULL;
23633}
23634
23635
23636SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23637 PyObject *obj;
23638 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23639 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23640 return SWIG_Py_Void();
23641}
23642
23643SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23644 return SWIG_Python_InitShadowInstance(args);
23645}
23646
23647SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23648 PyObject *resultobj = 0;
23649 wxDC *arg1 = (wxDC *) 0 ;
23650 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23651 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23652 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23653 wxBufferedDC *result = 0 ;
23654 void *argp1 = 0 ;
23655 int res1 = 0 ;
23656 void *argp2 = 0 ;
23657 int res2 = 0 ;
23658 int val3 ;
23659 int ecode3 = 0 ;
23660
23661 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
23662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23663 if (!SWIG_IsOK(res1)) {
23664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23665 }
23666 arg1 = reinterpret_cast< wxDC * >(argp1);
23667 if (swig_obj[1]) {
23668 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23669 if (!SWIG_IsOK(res2)) {
23670 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 23671 }
554f62e9
RD
23672 if (!argp2) {
23673 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 23674 }
554f62e9
RD
23675 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23676 }
23677 if (swig_obj[2]) {
23678 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23679 if (!SWIG_IsOK(ecode3)) {
23680 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23681 }
23682 arg3 = static_cast< int >(val3);
23683 }
23684 {
23685 if (!wxPyCheckForApp()) SWIG_fail;
23686 PyThreadState* __tstate = wxPyBeginAllowThreads();
23687 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
23688 wxPyEndAllowThreads(__tstate);
23689 if (PyErr_Occurred()) SWIG_fail;
23690 }
23691 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23692 return resultobj;
23693fail:
23694 return NULL;
23695}
23696
23697
23698SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23699 PyObject *resultobj = 0;
23700 wxDC *arg1 = (wxDC *) 0 ;
23701 wxSize *arg2 = 0 ;
23702 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23703 wxBufferedDC *result = 0 ;
23704 void *argp1 = 0 ;
23705 int res1 = 0 ;
23706 wxSize temp2 ;
23707 int val3 ;
23708 int ecode3 = 0 ;
23709
23710 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
23711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23712 if (!SWIG_IsOK(res1)) {
23713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23714 }
23715 arg1 = reinterpret_cast< wxDC * >(argp1);
23716 {
23717 arg2 = &temp2;
23718 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
23719 }
23720 if (swig_obj[2]) {
23721 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23722 if (!SWIG_IsOK(ecode3)) {
23723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23724 }
23725 arg3 = static_cast< int >(val3);
23726 }
23727 {
23728 if (!wxPyCheckForApp()) SWIG_fail;
23729 PyThreadState* __tstate = wxPyBeginAllowThreads();
23730 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23731 wxPyEndAllowThreads(__tstate);
23732 if (PyErr_Occurred()) SWIG_fail;
23733 }
23734 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23735 return resultobj;
23736fail:
23737 return NULL;
23738}
23739
23740
23741SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23742 int argc;
23743 PyObject *argv[4];
23744
23745 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
23746 --argc;
23747 if ((argc >= 1) && (argc <= 3)) {
23748 int _v = 0;
23749 if (argc > 1) {
23750 {
23751 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23752 _v = SWIG_CheckState(res);
23753 }
23754 if (!_v) goto check_1;
093d3ff1 23755 }
554f62e9
RD
23756 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23757 }
23758check_1:
23759
23760 if ((argc >= 2) && (argc <= 3)) {
23761 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23762 }
23763
23764fail:
23765 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23766 return NULL;
23767}
23768
23769
23770SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23771 PyObject *resultobj = 0;
23772 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23773 void *argp1 = 0 ;
23774 int res1 = 0 ;
23775 PyObject *swig_obj[1] ;
23776
23777 if (!args) SWIG_fail;
23778 swig_obj[0] = args;
23779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23780 if (!SWIG_IsOK(res1)) {
23781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23782 }
23783 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23784 {
23785 PyThreadState* __tstate = wxPyBeginAllowThreads();
23786 delete arg1;
23787
23788 wxPyEndAllowThreads(__tstate);
23789 if (PyErr_Occurred()) SWIG_fail;
23790 }
23791 resultobj = SWIG_Py_Void();
23792 return resultobj;
23793fail:
23794 return NULL;
23795}
23796
23797
23798SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23799 PyObject *resultobj = 0;
23800 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23801 void *argp1 = 0 ;
23802 int res1 = 0 ;
23803 PyObject *swig_obj[1] ;
23804
23805 if (!args) SWIG_fail;
23806 swig_obj[0] = args;
23807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23808 if (!SWIG_IsOK(res1)) {
23809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23810 }
23811 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23812 {
23813 PyThreadState* __tstate = wxPyBeginAllowThreads();
23814 (arg1)->UnMask();
23815 wxPyEndAllowThreads(__tstate);
23816 if (PyErr_Occurred()) SWIG_fail;
23817 }
23818 resultobj = SWIG_Py_Void();
23819 return resultobj;
23820fail:
23821 return NULL;
23822}
23823
23824
23825SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23826 PyObject *obj;
23827 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23828 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23829 return SWIG_Py_Void();
23830}
23831
23832SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23833 return SWIG_Python_InitShadowInstance(args);
23834}
23835
23836SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23837 PyObject *resultobj = 0;
23838 wxWindow *arg1 = (wxWindow *) 0 ;
23839 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23840 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23841 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23842 wxBufferedPaintDC *result = 0 ;
23843 void *argp1 = 0 ;
23844 int res1 = 0 ;
23845 void *argp2 = 0 ;
23846 int res2 = 0 ;
23847 int val3 ;
23848 int ecode3 = 0 ;
23849 PyObject * obj0 = 0 ;
23850 PyObject * obj1 = 0 ;
23851 PyObject * obj2 = 0 ;
23852 char * kwnames[] = {
23853 (char *) "window",(char *) "buffer",(char *) "style", NULL
23854 };
23855
23856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23858 if (!SWIG_IsOK(res1)) {
23859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23860 }
23861 arg1 = reinterpret_cast< wxWindow * >(argp1);
23862 if (obj1) {
23863 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23864 if (!SWIG_IsOK(res2)) {
23865 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 23866 }
554f62e9
RD
23867 if (!argp2) {
23868 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 23869 }
554f62e9
RD
23870 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23871 }
23872 if (obj2) {
23873 ecode3 = SWIG_AsVal_int(obj2, &val3);
23874 if (!SWIG_IsOK(ecode3)) {
23875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23876 }
23877 arg3 = static_cast< int >(val3);
23878 }
23879 {
23880 if (!wxPyCheckForApp()) SWIG_fail;
23881 PyThreadState* __tstate = wxPyBeginAllowThreads();
23882 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23883 wxPyEndAllowThreads(__tstate);
23884 if (PyErr_Occurred()) SWIG_fail;
23885 }
23886 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23887 return resultobj;
23888fail:
23889 return NULL;
23890}
23891
23892
23893SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23894 PyObject *obj;
23895 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23896 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23897 return SWIG_Py_Void();
23898}
23899
23900SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23901 return SWIG_Python_InitShadowInstance(args);
23902}
23903
23904SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23905 PyObject *resultobj = 0;
23906 wxScreenDC *result = 0 ;
23907
23908 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23909 {
23910 if (!wxPyCheckForApp()) SWIG_fail;
23911 PyThreadState* __tstate = wxPyBeginAllowThreads();
23912 result = (wxScreenDC *)new wxScreenDC();
23913 wxPyEndAllowThreads(__tstate);
23914 if (PyErr_Occurred()) SWIG_fail;
23915 }
23916 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23917 return resultobj;
23918fail:
23919 return NULL;
23920}
23921
23922
23923SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23924 PyObject *resultobj = 0;
23925 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23926 wxWindow *arg2 = (wxWindow *) 0 ;
23927 bool result;
23928 void *argp1 = 0 ;
23929 int res1 = 0 ;
23930 void *argp2 = 0 ;
23931 int res2 = 0 ;
23932 PyObject * obj0 = 0 ;
23933 PyObject * obj1 = 0 ;
23934 char * kwnames[] = {
23935 (char *) "self",(char *) "window", NULL
23936 };
23937
23938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23940 if (!SWIG_IsOK(res1)) {
23941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23942 }
23943 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23944 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23945 if (!SWIG_IsOK(res2)) {
23946 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23947 }
23948 arg2 = reinterpret_cast< wxWindow * >(argp2);
23949 {
23950 PyThreadState* __tstate = wxPyBeginAllowThreads();
23951 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23952 wxPyEndAllowThreads(__tstate);
23953 if (PyErr_Occurred()) SWIG_fail;
23954 }
23955 {
23956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23957 }
23958 return resultobj;
23959fail:
23960 return NULL;
23961}
23962
23963
23964SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23965 PyObject *resultobj = 0;
23966 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23967 wxRect *arg2 = (wxRect *) NULL ;
23968 bool result;
23969 void *argp1 = 0 ;
23970 int res1 = 0 ;
23971 void *argp2 = 0 ;
23972 int res2 = 0 ;
23973 PyObject * obj0 = 0 ;
23974 PyObject * obj1 = 0 ;
23975 char * kwnames[] = {
23976 (char *) "self",(char *) "rect", NULL
23977 };
23978
23979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23981 if (!SWIG_IsOK(res1)) {
23982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23983 }
23984 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23985 if (obj1) {
23986 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23987 if (!SWIG_IsOK(res2)) {
23988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
093d3ff1 23989 }
554f62e9
RD
23990 arg2 = reinterpret_cast< wxRect * >(argp2);
23991 }
23992 {
23993 PyThreadState* __tstate = wxPyBeginAllowThreads();
23994 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23995 wxPyEndAllowThreads(__tstate);
23996 if (PyErr_Occurred()) SWIG_fail;
23997 }
23998 {
23999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24000 }
24001 return resultobj;
24002fail:
24003 return NULL;
24004}
24005
24006
24007SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24008 PyObject *resultobj = 0;
24009 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24010 bool result;
24011 void *argp1 = 0 ;
24012 int res1 = 0 ;
24013 PyObject *swig_obj[1] ;
24014
24015 if (!args) SWIG_fail;
24016 swig_obj[0] = args;
24017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24018 if (!SWIG_IsOK(res1)) {
24019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24020 }
24021 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24022 {
24023 PyThreadState* __tstate = wxPyBeginAllowThreads();
24024 result = (bool)(arg1)->EndDrawingOnTop();
24025 wxPyEndAllowThreads(__tstate);
24026 if (PyErr_Occurred()) SWIG_fail;
24027 }
24028 {
24029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24030 }
24031 return resultobj;
24032fail:
24033 return NULL;
24034}
24035
24036
24037SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24038 PyObject *obj;
24039 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24040 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24041 return SWIG_Py_Void();
24042}
24043
24044SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24045 return SWIG_Python_InitShadowInstance(args);
24046}
24047
24048SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24049 PyObject *resultobj = 0;
24050 wxWindow *arg1 = (wxWindow *) 0 ;
24051 wxClientDC *result = 0 ;
24052 void *argp1 = 0 ;
24053 int res1 = 0 ;
24054 PyObject * obj0 = 0 ;
24055 char * kwnames[] = {
24056 (char *) "win", NULL
24057 };
24058
24059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24061 if (!SWIG_IsOK(res1)) {
24062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24063 }
24064 arg1 = reinterpret_cast< wxWindow * >(argp1);
24065 {
24066 if (!wxPyCheckForApp()) SWIG_fail;
24067 PyThreadState* __tstate = wxPyBeginAllowThreads();
24068 result = (wxClientDC *)new wxClientDC(arg1);
24069 wxPyEndAllowThreads(__tstate);
24070 if (PyErr_Occurred()) SWIG_fail;
24071 }
24072 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24073 return resultobj;
24074fail:
24075 return NULL;
24076}
24077
24078
24079SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24080 PyObject *obj;
24081 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24082 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24083 return SWIG_Py_Void();
24084}
24085
24086SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24087 return SWIG_Python_InitShadowInstance(args);
24088}
24089
24090SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24091 PyObject *resultobj = 0;
24092 wxWindow *arg1 = (wxWindow *) 0 ;
24093 wxPaintDC *result = 0 ;
24094 void *argp1 = 0 ;
24095 int res1 = 0 ;
24096 PyObject * obj0 = 0 ;
24097 char * kwnames[] = {
24098 (char *) "win", NULL
24099 };
24100
24101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24103 if (!SWIG_IsOK(res1)) {
24104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24105 }
24106 arg1 = reinterpret_cast< wxWindow * >(argp1);
24107 {
24108 if (!wxPyCheckForApp()) SWIG_fail;
24109 PyThreadState* __tstate = wxPyBeginAllowThreads();
24110 result = (wxPaintDC *)new wxPaintDC(arg1);
24111 wxPyEndAllowThreads(__tstate);
24112 if (PyErr_Occurred()) SWIG_fail;
24113 }
24114 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24115 return resultobj;
24116fail:
24117 return NULL;
24118}
24119
24120
24121SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24122 PyObject *obj;
24123 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24124 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24125 return SWIG_Py_Void();
24126}
24127
24128SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24129 return SWIG_Python_InitShadowInstance(args);
24130}
24131
24132SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24133 PyObject *resultobj = 0;
24134 wxWindow *arg1 = (wxWindow *) 0 ;
24135 wxWindowDC *result = 0 ;
24136 void *argp1 = 0 ;
24137 int res1 = 0 ;
24138 PyObject * obj0 = 0 ;
24139 char * kwnames[] = {
24140 (char *) "win", NULL
24141 };
24142
24143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24145 if (!SWIG_IsOK(res1)) {
24146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24147 }
24148 arg1 = reinterpret_cast< wxWindow * >(argp1);
24149 {
24150 if (!wxPyCheckForApp()) SWIG_fail;
24151 PyThreadState* __tstate = wxPyBeginAllowThreads();
24152 result = (wxWindowDC *)new wxWindowDC(arg1);
24153 wxPyEndAllowThreads(__tstate);
24154 if (PyErr_Occurred()) SWIG_fail;
24155 }
24156 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24157 return resultobj;
24158fail:
24159 return NULL;
24160}
24161
24162
24163SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24164 PyObject *obj;
24165 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24166 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24167 return SWIG_Py_Void();
24168}
24169
24170SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24171 return SWIG_Python_InitShadowInstance(args);
24172}
24173
24174SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24175 PyObject *resultobj = 0;
24176 wxDC *arg1 = 0 ;
24177 bool arg2 ;
24178 wxMirrorDC *result = 0 ;
24179 void *argp1 = 0 ;
24180 int res1 = 0 ;
24181 bool val2 ;
24182 int ecode2 = 0 ;
24183 PyObject * obj0 = 0 ;
24184 PyObject * obj1 = 0 ;
24185 char * kwnames[] = {
24186 (char *) "dc",(char *) "mirror", NULL
24187 };
24188
24189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24190 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24191 if (!SWIG_IsOK(res1)) {
24192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24193 }
24194 if (!argp1) {
24195 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24196 }
24197 arg1 = reinterpret_cast< wxDC * >(argp1);
24198 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24199 if (!SWIG_IsOK(ecode2)) {
24200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24201 }
24202 arg2 = static_cast< bool >(val2);
24203 {
24204 if (!wxPyCheckForApp()) SWIG_fail;
24205 PyThreadState* __tstate = wxPyBeginAllowThreads();
24206 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24207 wxPyEndAllowThreads(__tstate);
24208 if (PyErr_Occurred()) SWIG_fail;
24209 }
24210 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24211 return resultobj;
24212fail:
24213 return NULL;
24214}
24215
24216
24217SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24218 PyObject *obj;
24219 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24220 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24221 return SWIG_Py_Void();
24222}
24223
24224SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24225 return SWIG_Python_InitShadowInstance(args);
24226}
24227
24228SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24229 PyObject *resultobj = 0;
24230 wxPrintData *arg1 = 0 ;
24231 wxPostScriptDC *result = 0 ;
24232 void *argp1 = 0 ;
24233 int res1 = 0 ;
24234 PyObject * obj0 = 0 ;
24235 char * kwnames[] = {
24236 (char *) "printData", NULL
24237 };
24238
24239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24240 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24241 if (!SWIG_IsOK(res1)) {
24242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24243 }
24244 if (!argp1) {
24245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24246 }
24247 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24248 {
24249 if (!wxPyCheckForApp()) SWIG_fail;
24250 PyThreadState* __tstate = wxPyBeginAllowThreads();
24251 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24252 wxPyEndAllowThreads(__tstate);
24253 if (PyErr_Occurred()) SWIG_fail;
24254 }
24255 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24256 return resultobj;
24257fail:
24258 return NULL;
24259}
24260
24261
24262SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24263 PyObject *resultobj = 0;
24264 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24265 wxPrintData *result = 0 ;
24266 void *argp1 = 0 ;
24267 int res1 = 0 ;
24268 PyObject *swig_obj[1] ;
24269
24270 if (!args) SWIG_fail;
24271 swig_obj[0] = args;
24272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24273 if (!SWIG_IsOK(res1)) {
24274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24275 }
24276 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24277 {
24278 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 24279 {
554f62e9
RD
24280 wxPrintData &_result_ref = (arg1)->GetPrintData();
24281 result = (wxPrintData *) &_result_ref;
093d3ff1 24282 }
554f62e9
RD
24283 wxPyEndAllowThreads(__tstate);
24284 if (PyErr_Occurred()) SWIG_fail;
24285 }
24286 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24287 return resultobj;
24288fail:
24289 return NULL;
24290}
24291
24292
24293SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24294 PyObject *resultobj = 0;
24295 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24296 wxPrintData *arg2 = 0 ;
24297 void *argp1 = 0 ;
24298 int res1 = 0 ;
24299 void *argp2 = 0 ;
24300 int res2 = 0 ;
24301 PyObject * obj0 = 0 ;
24302 PyObject * obj1 = 0 ;
24303 char * kwnames[] = {
24304 (char *) "self",(char *) "data", NULL
24305 };
24306
24307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24309 if (!SWIG_IsOK(res1)) {
24310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24311 }
24312 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24313 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24314 if (!SWIG_IsOK(res2)) {
24315 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24316 }
24317 if (!argp2) {
24318 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24319 }
24320 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24321 {
24322 PyThreadState* __tstate = wxPyBeginAllowThreads();
24323 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24324 wxPyEndAllowThreads(__tstate);
24325 if (PyErr_Occurred()) SWIG_fail;
24326 }
24327 resultobj = SWIG_Py_Void();
24328 return resultobj;
24329fail:
24330 return NULL;
24331}
24332
24333
24334SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24335 PyObject *resultobj = 0;
24336 int arg1 ;
24337 int val1 ;
24338 int ecode1 = 0 ;
24339 PyObject * obj0 = 0 ;
24340 char * kwnames[] = {
24341 (char *) "ppi", NULL
24342 };
24343
24344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24345 ecode1 = SWIG_AsVal_int(obj0, &val1);
24346 if (!SWIG_IsOK(ecode1)) {
24347 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24348 }
24349 arg1 = static_cast< int >(val1);
24350 {
24351 PyThreadState* __tstate = wxPyBeginAllowThreads();
24352 wxPostScriptDC::SetResolution(arg1);
24353 wxPyEndAllowThreads(__tstate);
24354 if (PyErr_Occurred()) SWIG_fail;
24355 }
24356 resultobj = SWIG_Py_Void();
24357 return resultobj;
24358fail:
24359 return NULL;
24360}
24361
24362
24363SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24364 PyObject *resultobj = 0;
24365 int result;
24366
24367 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24368 {
24369 PyThreadState* __tstate = wxPyBeginAllowThreads();
24370 result = (int)wxPostScriptDC::GetResolution();
24371 wxPyEndAllowThreads(__tstate);
24372 if (PyErr_Occurred()) SWIG_fail;
24373 }
24374 resultobj = SWIG_From_int(static_cast< int >(result));
24375 return resultobj;
24376fail:
24377 return NULL;
24378}
24379
24380
24381SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24382 PyObject *obj;
24383 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24384 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24385 return SWIG_Py_Void();
24386}
24387
24388SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24389 return SWIG_Python_InitShadowInstance(args);
24390}
24391
24392SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24393 PyObject *resultobj = 0;
24394 wxString const &arg1_defvalue = wxPyEmptyString ;
24395 wxString *arg1 = (wxString *) &arg1_defvalue ;
24396 wxMetaFile *result = 0 ;
24397 bool temp1 = false ;
24398 PyObject * obj0 = 0 ;
24399 char * kwnames[] = {
24400 (char *) "filename", NULL
24401 };
24402
24403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24404 if (obj0) {
093d3ff1 24405 {
554f62e9
RD
24406 arg1 = wxString_in_helper(obj0);
24407 if (arg1 == NULL) SWIG_fail;
24408 temp1 = true;
093d3ff1 24409 }
554f62e9
RD
24410 }
24411 {
24412 if (!wxPyCheckForApp()) SWIG_fail;
24413 PyThreadState* __tstate = wxPyBeginAllowThreads();
24414 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24415 wxPyEndAllowThreads(__tstate);
24416 if (PyErr_Occurred()) SWIG_fail;
24417 }
24418 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24419 {
24420 if (temp1)
24421 delete arg1;
24422 }
24423 return resultobj;
24424fail:
24425 {
24426 if (temp1)
24427 delete arg1;
24428 }
24429 return NULL;
24430}
24431
24432
24433SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24434 PyObject *resultobj = 0;
24435 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24436 void *argp1 = 0 ;
24437 int res1 = 0 ;
24438 PyObject *swig_obj[1] ;
24439
24440 if (!args) SWIG_fail;
24441 swig_obj[0] = args;
24442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
24443 if (!SWIG_IsOK(res1)) {
24444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24445 }
24446 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24447 {
24448 PyThreadState* __tstate = wxPyBeginAllowThreads();
24449 delete arg1;
24450
24451 wxPyEndAllowThreads(__tstate);
24452 if (PyErr_Occurred()) SWIG_fail;
24453 }
24454 resultobj = SWIG_Py_Void();
24455 return resultobj;
24456fail:
24457 return NULL;
24458}
24459
24460
24461SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24462 PyObject *resultobj = 0;
24463 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24464 bool result;
24465 void *argp1 = 0 ;
24466 int res1 = 0 ;
24467 PyObject *swig_obj[1] ;
24468
24469 if (!args) SWIG_fail;
24470 swig_obj[0] = args;
24471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24472 if (!SWIG_IsOK(res1)) {
24473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24474 }
24475 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24476 {
24477 PyThreadState* __tstate = wxPyBeginAllowThreads();
24478 result = (bool)(arg1)->Ok();
24479 wxPyEndAllowThreads(__tstate);
24480 if (PyErr_Occurred()) SWIG_fail;
24481 }
24482 {
24483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24484 }
24485 return resultobj;
24486fail:
24487 return NULL;
24488}
24489
24490
24491SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24492 PyObject *resultobj = 0;
24493 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24494 int arg2 = (int) 0 ;
24495 int arg3 = (int) 0 ;
24496 bool result;
24497 void *argp1 = 0 ;
24498 int res1 = 0 ;
24499 int val2 ;
24500 int ecode2 = 0 ;
24501 int val3 ;
24502 int ecode3 = 0 ;
24503 PyObject * obj0 = 0 ;
24504 PyObject * obj1 = 0 ;
24505 PyObject * obj2 = 0 ;
24506 char * kwnames[] = {
24507 (char *) "self",(char *) "width",(char *) "height", NULL
24508 };
24509
24510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24512 if (!SWIG_IsOK(res1)) {
24513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24514 }
24515 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24516 if (obj1) {
24517 ecode2 = SWIG_AsVal_int(obj1, &val2);
24518 if (!SWIG_IsOK(ecode2)) {
24519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
24520 }
24521 arg2 = static_cast< int >(val2);
24522 }
24523 if (obj2) {
24524 ecode3 = SWIG_AsVal_int(obj2, &val3);
24525 if (!SWIG_IsOK(ecode3)) {
24526 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
24527 }
24528 arg3 = static_cast< int >(val3);
24529 }
24530 {
24531 PyThreadState* __tstate = wxPyBeginAllowThreads();
24532 result = (bool)(arg1)->SetClipboard(arg2,arg3);
24533 wxPyEndAllowThreads(__tstate);
24534 if (PyErr_Occurred()) SWIG_fail;
24535 }
24536 {
24537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24538 }
24539 return resultobj;
24540fail:
24541 return NULL;
24542}
24543
24544
24545SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24546 PyObject *resultobj = 0;
24547 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24548 wxSize result;
24549 void *argp1 = 0 ;
24550 int res1 = 0 ;
24551 PyObject *swig_obj[1] ;
24552
24553 if (!args) SWIG_fail;
24554 swig_obj[0] = args;
24555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24556 if (!SWIG_IsOK(res1)) {
24557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24558 }
24559 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24560 {
24561 PyThreadState* __tstate = wxPyBeginAllowThreads();
24562 result = (arg1)->GetSize();
24563 wxPyEndAllowThreads(__tstate);
24564 if (PyErr_Occurred()) SWIG_fail;
24565 }
24566 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24567 return resultobj;
24568fail:
24569 return NULL;
24570}
24571
24572
24573SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24574 PyObject *resultobj = 0;
24575 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24576 int result;
24577 void *argp1 = 0 ;
24578 int res1 = 0 ;
24579 PyObject *swig_obj[1] ;
24580
24581 if (!args) SWIG_fail;
24582 swig_obj[0] = args;
24583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24584 if (!SWIG_IsOK(res1)) {
24585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24586 }
24587 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24588 {
24589 PyThreadState* __tstate = wxPyBeginAllowThreads();
24590 result = (int)(arg1)->GetWidth();
24591 wxPyEndAllowThreads(__tstate);
24592 if (PyErr_Occurred()) SWIG_fail;
24593 }
24594 resultobj = SWIG_From_int(static_cast< int >(result));
24595 return resultobj;
24596fail:
24597 return NULL;
24598}
24599
24600
24601SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24602 PyObject *resultobj = 0;
24603 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24604 int result;
24605 void *argp1 = 0 ;
24606 int res1 = 0 ;
24607 PyObject *swig_obj[1] ;
24608
24609 if (!args) SWIG_fail;
24610 swig_obj[0] = args;
24611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24612 if (!SWIG_IsOK(res1)) {
24613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24614 }
24615 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24616 {
24617 PyThreadState* __tstate = wxPyBeginAllowThreads();
24618 result = (int)(arg1)->GetHeight();
24619 wxPyEndAllowThreads(__tstate);
24620 if (PyErr_Occurred()) SWIG_fail;
24621 }
24622 resultobj = SWIG_From_int(static_cast< int >(result));
24623 return resultobj;
24624fail:
24625 return NULL;
24626}
24627
24628
24629SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24630 PyObject *resultobj = 0;
24631 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24632 wxString *result = 0 ;
24633 void *argp1 = 0 ;
24634 int res1 = 0 ;
24635 PyObject *swig_obj[1] ;
24636
24637 if (!args) SWIG_fail;
24638 swig_obj[0] = args;
24639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24640 if (!SWIG_IsOK(res1)) {
24641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
24642 }
24643 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24644 {
24645 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 24646 {
554f62e9
RD
24647 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
24648 result = (wxString *) &_result_ref;
e2950dbb 24649 }
554f62e9
RD
24650 wxPyEndAllowThreads(__tstate);
24651 if (PyErr_Occurred()) SWIG_fail;
24652 }
24653 {
24654#if wxUSE_UNICODE
24655 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
24656#else
24657 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
24658#endif
24659 }
24660 return resultobj;
24661fail:
24662 return NULL;
24663}
24664
24665
24666SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24667 PyObject *obj;
24668 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24669 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
24670 return SWIG_Py_Void();
24671}
24672
24673SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24674 return SWIG_Python_InitShadowInstance(args);
24675}
24676
24677SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24678 PyObject *resultobj = 0;
24679 wxString const &arg1_defvalue = wxPyEmptyString ;
24680 wxString *arg1 = (wxString *) &arg1_defvalue ;
24681 int arg2 = (int) 0 ;
24682 int arg3 = (int) 0 ;
24683 wxString const &arg4_defvalue = wxPyEmptyString ;
24684 wxString *arg4 = (wxString *) &arg4_defvalue ;
24685 wxMetaFileDC *result = 0 ;
24686 bool temp1 = false ;
24687 int val2 ;
24688 int ecode2 = 0 ;
24689 int val3 ;
24690 int ecode3 = 0 ;
24691 bool temp4 = false ;
24692 PyObject * obj0 = 0 ;
24693 PyObject * obj1 = 0 ;
24694 PyObject * obj2 = 0 ;
24695 PyObject * obj3 = 0 ;
24696 char * kwnames[] = {
24697 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
24698 };
24699
24700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24701 if (obj0) {
e2950dbb 24702 {
554f62e9
RD
24703 arg1 = wxString_in_helper(obj0);
24704 if (arg1 == NULL) SWIG_fail;
24705 temp1 = true;
e2950dbb 24706 }
554f62e9
RD
24707 }
24708 if (obj1) {
24709 ecode2 = SWIG_AsVal_int(obj1, &val2);
24710 if (!SWIG_IsOK(ecode2)) {
24711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
24712 }
24713 arg2 = static_cast< int >(val2);
24714 }
24715 if (obj2) {
24716 ecode3 = SWIG_AsVal_int(obj2, &val3);
24717 if (!SWIG_IsOK(ecode3)) {
24718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
24719 }
24720 arg3 = static_cast< int >(val3);
24721 }
24722 if (obj3) {
093d3ff1 24723 {
554f62e9
RD
24724 arg4 = wxString_in_helper(obj3);
24725 if (arg4 == NULL) SWIG_fail;
24726 temp4 = true;
093d3ff1 24727 }
554f62e9
RD
24728 }
24729 {
24730 if (!wxPyCheckForApp()) SWIG_fail;
24731 PyThreadState* __tstate = wxPyBeginAllowThreads();
24732 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
24733 wxPyEndAllowThreads(__tstate);
24734 if (PyErr_Occurred()) SWIG_fail;
24735 }
24736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
24737 {
24738 if (temp1)
24739 delete arg1;
24740 }
24741 {
24742 if (temp4)
24743 delete arg4;
24744 }
24745 return resultobj;
24746fail:
24747 {
24748 if (temp1)
24749 delete arg1;
24750 }
24751 {
24752 if (temp4)
24753 delete arg4;
24754 }
24755 return NULL;
24756}
24757
24758
24759SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24760 PyObject *resultobj = 0;
24761 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
24762 wxMetaFile *result = 0 ;
24763 void *argp1 = 0 ;
24764 int res1 = 0 ;
24765 PyObject *swig_obj[1] ;
24766
24767 if (!args) SWIG_fail;
24768 swig_obj[0] = args;
24769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
24770 if (!SWIG_IsOK(res1)) {
24771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
24772 }
24773 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
24774 {
24775 PyThreadState* __tstate = wxPyBeginAllowThreads();
24776 result = (wxMetaFile *)(arg1)->Close();
24777 wxPyEndAllowThreads(__tstate);
24778 if (PyErr_Occurred()) SWIG_fail;
24779 }
24780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
24781 return resultobj;
24782fail:
24783 return NULL;
24784}
24785
24786
24787SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24788 PyObject *obj;
24789 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24790 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
24791 return SWIG_Py_Void();
24792}
24793
24794SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24795 return SWIG_Python_InitShadowInstance(args);
24796}
24797
24798SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24799 PyObject *resultobj = 0;
24800 wxPrintData *arg1 = 0 ;
24801 wxPrinterDC *result = 0 ;
24802 void *argp1 = 0 ;
24803 int res1 = 0 ;
24804 PyObject * obj0 = 0 ;
24805 char * kwnames[] = {
24806 (char *) "printData", NULL
24807 };
24808
24809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
24810 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24811 if (!SWIG_IsOK(res1)) {
24812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24813 }
24814 if (!argp1) {
24815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24816 }
24817 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24818 {
24819 if (!wxPyCheckForApp()) SWIG_fail;
24820 PyThreadState* __tstate = wxPyBeginAllowThreads();
24821 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
24822 wxPyEndAllowThreads(__tstate);
24823 if (PyErr_Occurred()) SWIG_fail;
24824 }
24825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
24826 return resultobj;
24827fail:
24828 return NULL;
24829}
24830
24831
24832SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24833 PyObject *obj;
24834 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24835 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
24836 return SWIG_Py_Void();
24837}
24838
24839SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24840 return SWIG_Python_InitShadowInstance(args);
24841}
24842
24843SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24844 PyObject *resultobj = 0;
24845 int arg1 ;
24846 int arg2 ;
24847 int arg3 = (int) true ;
24848 int arg4 = (int) 1 ;
24849 wxImageList *result = 0 ;
24850 int val1 ;
24851 int ecode1 = 0 ;
24852 int val2 ;
24853 int ecode2 = 0 ;
24854 int val3 ;
24855 int ecode3 = 0 ;
24856 int val4 ;
24857 int ecode4 = 0 ;
24858 PyObject * obj0 = 0 ;
24859 PyObject * obj1 = 0 ;
24860 PyObject * obj2 = 0 ;
24861 PyObject * obj3 = 0 ;
24862 char * kwnames[] = {
24863 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
24864 };
24865
24866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24867 ecode1 = SWIG_AsVal_int(obj0, &val1);
24868 if (!SWIG_IsOK(ecode1)) {
24869 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
24870 }
24871 arg1 = static_cast< int >(val1);
24872 ecode2 = SWIG_AsVal_int(obj1, &val2);
24873 if (!SWIG_IsOK(ecode2)) {
24874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
24875 }
24876 arg2 = static_cast< int >(val2);
24877 if (obj2) {
24878 ecode3 = SWIG_AsVal_int(obj2, &val3);
24879 if (!SWIG_IsOK(ecode3)) {
24880 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
24881 }
24882 arg3 = static_cast< int >(val3);
24883 }
24884 if (obj3) {
24885 ecode4 = SWIG_AsVal_int(obj3, &val4);
24886 if (!SWIG_IsOK(ecode4)) {
24887 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
24888 }
24889 arg4 = static_cast< int >(val4);
24890 }
24891 {
24892 if (!wxPyCheckForApp()) SWIG_fail;
24893 PyThreadState* __tstate = wxPyBeginAllowThreads();
24894 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
24895 wxPyEndAllowThreads(__tstate);
24896 if (PyErr_Occurred()) SWIG_fail;
24897 }
24898 {
24899 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
24900 }
24901 return resultobj;
24902fail:
24903 return NULL;
24904}
24905
24906
24907SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24908 PyObject *resultobj = 0;
24909 wxImageList *arg1 = (wxImageList *) 0 ;
24910 void *argp1 = 0 ;
24911 int res1 = 0 ;
24912 PyObject *swig_obj[1] ;
24913
24914 if (!args) SWIG_fail;
24915 swig_obj[0] = args;
24916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
24917 if (!SWIG_IsOK(res1)) {
24918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
24919 }
24920 arg1 = reinterpret_cast< wxImageList * >(argp1);
24921 {
24922 PyThreadState* __tstate = wxPyBeginAllowThreads();
24923 delete arg1;
24924
24925 wxPyEndAllowThreads(__tstate);
24926 if (PyErr_Occurred()) SWIG_fail;
24927 }
24928 resultobj = SWIG_Py_Void();
24929 return resultobj;
24930fail:
24931 return NULL;
24932}
24933
24934
24935SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24936 PyObject *resultobj = 0;
24937 wxImageList *arg1 = (wxImageList *) 0 ;
24938 wxBitmap *arg2 = 0 ;
24939 wxBitmap const &arg3_defvalue = wxNullBitmap ;
24940 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
24941 int result;
24942 void *argp1 = 0 ;
24943 int res1 = 0 ;
24944 void *argp2 = 0 ;
24945 int res2 = 0 ;
24946 void *argp3 = 0 ;
24947 int res3 = 0 ;
24948 PyObject * obj0 = 0 ;
24949 PyObject * obj1 = 0 ;
24950 PyObject * obj2 = 0 ;
24951 char * kwnames[] = {
24952 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
24953 };
24954
24955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24957 if (!SWIG_IsOK(res1)) {
24958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
24959 }
24960 arg1 = reinterpret_cast< wxImageList * >(argp1);
24961 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24962 if (!SWIG_IsOK(res2)) {
24963 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24964 }
24965 if (!argp2) {
24966 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24967 }
24968 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24969 if (obj2) {
24970 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
24971 if (!SWIG_IsOK(res3)) {
24972 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
093d3ff1 24973 }
554f62e9
RD
24974 if (!argp3) {
24975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
093d3ff1 24976 }
554f62e9
RD
24977 arg3 = reinterpret_cast< wxBitmap * >(argp3);
24978 }
24979 {
24980 PyThreadState* __tstate = wxPyBeginAllowThreads();
24981 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
24982 wxPyEndAllowThreads(__tstate);
24983 if (PyErr_Occurred()) SWIG_fail;
24984 }
24985 resultobj = SWIG_From_int(static_cast< int >(result));
24986 return resultobj;
24987fail:
24988 return NULL;
24989}
24990
24991
24992SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24993 PyObject *resultobj = 0;
24994 wxImageList *arg1 = (wxImageList *) 0 ;
24995 wxBitmap *arg2 = 0 ;
24996 wxColour *arg3 = 0 ;
24997 int result;
24998 void *argp1 = 0 ;
24999 int res1 = 0 ;
25000 void *argp2 = 0 ;
25001 int res2 = 0 ;
25002 wxColour temp3 ;
25003 PyObject * obj0 = 0 ;
25004 PyObject * obj1 = 0 ;
25005 PyObject * obj2 = 0 ;
25006 char * kwnames[] = {
25007 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
25008 };
25009
25010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25012 if (!SWIG_IsOK(res1)) {
25013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
25014 }
25015 arg1 = reinterpret_cast< wxImageList * >(argp1);
25016 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
25017 if (!SWIG_IsOK(res2)) {
25018 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25019 }
25020 if (!argp2) {
25021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25022 }
25023 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25024 {
25025 arg3 = &temp3;
25026 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
25027 }
25028 {
25029 PyThreadState* __tstate = wxPyBeginAllowThreads();
25030 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
25031 wxPyEndAllowThreads(__tstate);
25032 if (PyErr_Occurred()) SWIG_fail;
25033 }
25034 resultobj = SWIG_From_int(static_cast< int >(result));
25035 return resultobj;
25036fail:
25037 return NULL;
25038}
25039
25040
25041SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25042 PyObject *resultobj = 0;
25043 wxImageList *arg1 = (wxImageList *) 0 ;
25044 wxIcon *arg2 = 0 ;
25045 int result;
25046 void *argp1 = 0 ;
25047 int res1 = 0 ;
25048 void *argp2 = 0 ;
25049 int res2 = 0 ;
25050 PyObject * obj0 = 0 ;
25051 PyObject * obj1 = 0 ;
25052 char * kwnames[] = {
25053 (char *) "self",(char *) "icon", NULL
25054 };
25055
25056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
25057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25058 if (!SWIG_IsOK(res1)) {
25059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
25060 }
25061 arg1 = reinterpret_cast< wxImageList * >(argp1);
25062 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
25063 if (!SWIG_IsOK(res2)) {
25064 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
25065 }
25066 if (!argp2) {
25067 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
25068 }
25069 arg2 = reinterpret_cast< wxIcon * >(argp2);
25070 {
25071 PyThreadState* __tstate = wxPyBeginAllowThreads();
25072 result = (int)(arg1)->Add((wxIcon const &)*arg2);
25073 wxPyEndAllowThreads(__tstate);
25074 if (PyErr_Occurred()) SWIG_fail;
25075 }
25076 resultobj = SWIG_From_int(static_cast< int >(result));
25077 return resultobj;
25078fail:
25079 return NULL;
25080}
25081
25082
25083SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25084 PyObject *resultobj = 0;
25085 wxImageList *arg1 = (wxImageList *) 0 ;
25086 int arg2 ;
25087 SwigValueWrapper<wxBitmap > result;
25088 void *argp1 = 0 ;
25089 int res1 = 0 ;
25090 int val2 ;
25091 int ecode2 = 0 ;
25092 PyObject * obj0 = 0 ;
25093 PyObject * obj1 = 0 ;
25094 char * kwnames[] = {
25095 (char *) "self",(char *) "index", NULL
25096 };
25097
25098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
25099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25100 if (!SWIG_IsOK(res1)) {
25101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
25102 }
25103 arg1 = reinterpret_cast< wxImageList * >(argp1);
25104 ecode2 = SWIG_AsVal_int(obj1, &val2);
25105 if (!SWIG_IsOK(ecode2)) {
25106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
25107 }
25108 arg2 = static_cast< int >(val2);
25109 {
25110 PyThreadState* __tstate = wxPyBeginAllowThreads();
25111 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
25112 wxPyEndAllowThreads(__tstate);
25113 if (PyErr_Occurred()) SWIG_fail;
25114 }
25115 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
25116 return resultobj;
25117fail:
25118 return NULL;
25119}
25120
25121
25122SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25123 PyObject *resultobj = 0;
25124 wxImageList *arg1 = (wxImageList *) 0 ;
25125 int arg2 ;
25126 wxIcon result;
25127 void *argp1 = 0 ;
25128 int res1 = 0 ;
25129 int val2 ;
25130 int ecode2 = 0 ;
25131 PyObject * obj0 = 0 ;
25132 PyObject * obj1 = 0 ;
25133 char * kwnames[] = {
25134 (char *) "self",(char *) "index", NULL
25135 };
25136
25137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
25138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25139 if (!SWIG_IsOK(res1)) {
25140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
25141 }
25142 arg1 = reinterpret_cast< wxImageList * >(argp1);
25143 ecode2 = SWIG_AsVal_int(obj1, &val2);
25144 if (!SWIG_IsOK(ecode2)) {
25145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
25146 }
25147 arg2 = static_cast< int >(val2);
25148 {
25149 PyThreadState* __tstate = wxPyBeginAllowThreads();
25150 result = ((wxImageList const *)arg1)->GetIcon(arg2);
25151 wxPyEndAllowThreads(__tstate);
25152 if (PyErr_Occurred()) SWIG_fail;
25153 }
25154 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
25155 return resultobj;
25156fail:
25157 return NULL;
25158}
25159
25160
25161SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25162 PyObject *resultobj = 0;
25163 wxImageList *arg1 = (wxImageList *) 0 ;
25164 int arg2 ;
25165 wxBitmap *arg3 = 0 ;
25166 wxBitmap const &arg4_defvalue = wxNullBitmap ;
25167 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
25168 bool result;
25169 void *argp1 = 0 ;
25170 int res1 = 0 ;
25171 int val2 ;
25172 int ecode2 = 0 ;
25173 void *argp3 = 0 ;
25174 int res3 = 0 ;
25175 void *argp4 = 0 ;
25176 int res4 = 0 ;
25177 PyObject * obj0 = 0 ;
25178 PyObject * obj1 = 0 ;
25179 PyObject * obj2 = 0 ;
25180 PyObject * obj3 = 0 ;
25181 char * kwnames[] = {
25182 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
25183 };
25184
25185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25187 if (!SWIG_IsOK(res1)) {
25188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
25189 }
25190 arg1 = reinterpret_cast< wxImageList * >(argp1);
25191 ecode2 = SWIG_AsVal_int(obj1, &val2);
25192 if (!SWIG_IsOK(ecode2)) {
25193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
25194 }
25195 arg2 = static_cast< int >(val2);
25196 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
25197 if (!SWIG_IsOK(res3)) {
25198 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
25199 }
25200 if (!argp3) {
25201 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
25202 }
25203 arg3 = reinterpret_cast< wxBitmap * >(argp3);
25204 if (obj3) {
25205 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
25206 if (!SWIG_IsOK(res4)) {
25207 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
093d3ff1 25208 }
554f62e9
RD
25209 if (!argp4) {
25210 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
093d3ff1 25211 }
554f62e9
RD
25212 arg4 = reinterpret_cast< wxBitmap * >(argp4);
25213 }
25214 {
25215 PyThreadState* __tstate = wxPyBeginAllowThreads();
25216 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
25217 wxPyEndAllowThreads(__tstate);
25218 if (PyErr_Occurred()) SWIG_fail;
25219 }
25220 {
25221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25222 }
25223 return resultobj;
25224fail:
25225 return NULL;
25226}
25227
25228
25229SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25230 PyObject *resultobj = 0;
25231 wxImageList *arg1 = (wxImageList *) 0 ;
25232 int arg2 ;
25233 wxDC *arg3 = 0 ;
25234 int arg4 ;
25235 int arg5 ;
25236 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
25237 bool arg7 = (bool) (bool)false ;
25238 bool result;
25239 void *argp1 = 0 ;
25240 int res1 = 0 ;
25241 int val2 ;
25242 int ecode2 = 0 ;
25243 void *argp3 = 0 ;
25244 int res3 = 0 ;
25245 int val4 ;
25246 int ecode4 = 0 ;
25247 int val5 ;
25248 int ecode5 = 0 ;
25249 int val6 ;
25250 int ecode6 = 0 ;
25251 bool val7 ;
25252 int ecode7 = 0 ;
25253 PyObject * obj0 = 0 ;
25254 PyObject * obj1 = 0 ;
25255 PyObject * obj2 = 0 ;
25256 PyObject * obj3 = 0 ;
25257 PyObject * obj4 = 0 ;
25258 PyObject * obj5 = 0 ;
25259 PyObject * obj6 = 0 ;
25260 char * kwnames[] = {
25261 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
25262 };
25263
25264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25266 if (!SWIG_IsOK(res1)) {
25267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
25268 }
25269 arg1 = reinterpret_cast< wxImageList * >(argp1);
25270 ecode2 = SWIG_AsVal_int(obj1, &val2);
25271 if (!SWIG_IsOK(ecode2)) {
25272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
25273 }
25274 arg2 = static_cast< int >(val2);
25275 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25276 if (!SWIG_IsOK(res3)) {
25277 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
25278 }
25279 if (!argp3) {
25280 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
25281 }
25282 arg3 = reinterpret_cast< wxDC * >(argp3);
25283 ecode4 = SWIG_AsVal_int(obj3, &val4);
25284 if (!SWIG_IsOK(ecode4)) {
25285 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
25286 }
25287 arg4 = static_cast< int >(val4);
25288 ecode5 = SWIG_AsVal_int(obj4, &val5);
25289 if (!SWIG_IsOK(ecode5)) {
25290 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
25291 }
25292 arg5 = static_cast< int >(val5);
25293 if (obj5) {
25294 ecode6 = SWIG_AsVal_int(obj5, &val6);
25295 if (!SWIG_IsOK(ecode6)) {
25296 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
25297 }
25298 arg6 = static_cast< int >(val6);
25299 }
25300 if (obj6) {
25301 ecode7 = SWIG_AsVal_bool(obj6, &val7);
25302 if (!SWIG_IsOK(ecode7)) {
25303 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
25304 }
25305 arg7 = static_cast< bool >(val7);
25306 }
25307 {
25308 PyThreadState* __tstate = wxPyBeginAllowThreads();
25309 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
25310 wxPyEndAllowThreads(__tstate);
25311 if (PyErr_Occurred()) SWIG_fail;
25312 }
25313 {
25314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25315 }
25316 return resultobj;
25317fail:
25318 return NULL;
25319}
25320
25321
25322SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25323 PyObject *resultobj = 0;
25324 wxImageList *arg1 = (wxImageList *) 0 ;
25325 int result;
25326 void *argp1 = 0 ;
25327 int res1 = 0 ;
25328 PyObject *swig_obj[1] ;
25329
25330 if (!args) SWIG_fail;
25331 swig_obj[0] = args;
25332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25333 if (!SWIG_IsOK(res1)) {
25334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
25335 }
25336 arg1 = reinterpret_cast< wxImageList * >(argp1);
25337 {
25338 PyThreadState* __tstate = wxPyBeginAllowThreads();
25339 result = (int)(arg1)->GetImageCount();
25340 wxPyEndAllowThreads(__tstate);
25341 if (PyErr_Occurred()) SWIG_fail;
25342 }
25343 resultobj = SWIG_From_int(static_cast< int >(result));
25344 return resultobj;
25345fail:
25346 return NULL;
25347}
25348
25349
25350SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25351 PyObject *resultobj = 0;
25352 wxImageList *arg1 = (wxImageList *) 0 ;
25353 int arg2 ;
25354 bool result;
25355 void *argp1 = 0 ;
25356 int res1 = 0 ;
25357 int val2 ;
25358 int ecode2 = 0 ;
25359 PyObject * obj0 = 0 ;
25360 PyObject * obj1 = 0 ;
25361 char * kwnames[] = {
25362 (char *) "self",(char *) "index", NULL
25363 };
25364
25365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
25366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25367 if (!SWIG_IsOK(res1)) {
25368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
25369 }
25370 arg1 = reinterpret_cast< wxImageList * >(argp1);
25371 ecode2 = SWIG_AsVal_int(obj1, &val2);
25372 if (!SWIG_IsOK(ecode2)) {
25373 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
25374 }
25375 arg2 = static_cast< int >(val2);
25376 {
25377 PyThreadState* __tstate = wxPyBeginAllowThreads();
25378 result = (bool)(arg1)->Remove(arg2);
25379 wxPyEndAllowThreads(__tstate);
25380 if (PyErr_Occurred()) SWIG_fail;
25381 }
25382 {
25383 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25384 }
25385 return resultobj;
25386fail:
25387 return NULL;
25388}
25389
25390
25391SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25392 PyObject *resultobj = 0;
25393 wxImageList *arg1 = (wxImageList *) 0 ;
25394 bool result;
25395 void *argp1 = 0 ;
25396 int res1 = 0 ;
25397 PyObject *swig_obj[1] ;
25398
25399 if (!args) SWIG_fail;
25400 swig_obj[0] = args;
25401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25402 if (!SWIG_IsOK(res1)) {
25403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
25404 }
25405 arg1 = reinterpret_cast< wxImageList * >(argp1);
25406 {
25407 PyThreadState* __tstate = wxPyBeginAllowThreads();
25408 result = (bool)(arg1)->RemoveAll();
25409 wxPyEndAllowThreads(__tstate);
25410 if (PyErr_Occurred()) SWIG_fail;
25411 }
25412 {
25413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25414 }
25415 return resultobj;
25416fail:
25417 return NULL;
25418}
25419
25420
25421SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25422 PyObject *resultobj = 0;
25423 wxImageList *arg1 = (wxImageList *) 0 ;
25424 int arg2 ;
25425 int *arg3 = 0 ;
25426 int *arg4 = 0 ;
25427 void *argp1 = 0 ;
25428 int res1 = 0 ;
25429 int val2 ;
25430 int ecode2 = 0 ;
25431 int temp3 ;
25432 int res3 = SWIG_TMPOBJ ;
25433 int temp4 ;
25434 int res4 = SWIG_TMPOBJ ;
25435 PyObject * obj0 = 0 ;
25436 PyObject * obj1 = 0 ;
25437 char * kwnames[] = {
25438 (char *) "self",(char *) "index", NULL
25439 };
25440
25441 arg3 = &temp3;
25442 arg4 = &temp4;
25443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
25444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
25445 if (!SWIG_IsOK(res1)) {
25446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
25447 }
25448 arg1 = reinterpret_cast< wxImageList * >(argp1);
25449 ecode2 = SWIG_AsVal_int(obj1, &val2);
25450 if (!SWIG_IsOK(ecode2)) {
25451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
25452 }
25453 arg2 = static_cast< int >(val2);
25454 {
25455 PyThreadState* __tstate = wxPyBeginAllowThreads();
25456 (arg1)->GetSize(arg2,*arg3,*arg4);
25457 wxPyEndAllowThreads(__tstate);
25458 if (PyErr_Occurred()) SWIG_fail;
25459 }
25460 resultobj = SWIG_Py_Void();
25461 if (SWIG_IsTmpObj(res3)) {
25462 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
25463 } else {
25464 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25465 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
25466 }
25467 if (SWIG_IsTmpObj(res4)) {
25468 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
25469 } else {
25470 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25471 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
25472 }
25473 return resultobj;
25474fail:
25475 return NULL;
25476}
25477
25478
25479SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25480 PyObject *obj;
25481 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25482 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
25483 return SWIG_Py_Void();
25484}
25485
25486SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25487 return SWIG_Python_InitShadowInstance(args);
25488}
25489
50efceee
RD
25490SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25491 PyObject *resultobj = 0;
25492 wxStockGDI *result = 0 ;
554f62e9 25493
50efceee
RD
25494 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
25495 {
25496 PyThreadState* __tstate = wxPyBeginAllowThreads();
25497 result = (wxStockGDI *)new wxStockGDI();
25498 wxPyEndAllowThreads(__tstate);
25499 if (PyErr_Occurred()) SWIG_fail;
25500 }
25501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
25502 return resultobj;
25503fail:
25504 return NULL;
554f62e9
RD
25505}
25506
25507
50efceee
RD
25508SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25509 PyObject *resultobj = 0;
25510 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
25511 void *argp1 = 0 ;
25512 int res1 = 0 ;
25513 PyObject *swig_obj[1] ;
554f62e9 25514
50efceee
RD
25515 if (!args) SWIG_fail;
25516 swig_obj[0] = args;
25517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
25518 if (!SWIG_IsOK(res1)) {
25519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
25520 }
25521 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
25522 {
25523 PyThreadState* __tstate = wxPyBeginAllowThreads();
25524 delete arg1;
25525
25526 wxPyEndAllowThreads(__tstate);
25527 if (PyErr_Occurred()) SWIG_fail;
25528 }
25529 resultobj = SWIG_Py_Void();
25530 return resultobj;
25531fail:
25532 return NULL;
554f62e9
RD
25533}
25534
25535
50efceee
RD
25536SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25537 PyObject *resultobj = 0;
554f62e9 25538
50efceee
RD
25539 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
25540 {
25541 PyThreadState* __tstate = wxPyBeginAllowThreads();
25542 wxStockGDI::DeleteAll();
25543 wxPyEndAllowThreads(__tstate);
25544 if (PyErr_Occurred()) SWIG_fail;
25545 }
25546 resultobj = SWIG_Py_Void();
25547 return resultobj;
25548fail:
25549 return NULL;
554f62e9
RD
25550}
25551
25552
50efceee
RD
25553SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25554 PyObject *resultobj = 0;
25555 wxStockGDI *result = 0 ;
554f62e9 25556
50efceee
RD
25557 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
25558 {
25559 PyThreadState* __tstate = wxPyBeginAllowThreads();
25560 {
25561 wxStockGDI &_result_ref = wxStockGDI::instance();
25562 result = (wxStockGDI *) &_result_ref;
25563 }
25564 wxPyEndAllowThreads(__tstate);
25565 if (PyErr_Occurred()) SWIG_fail;
25566 }
25567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
25568 return resultobj;
25569fail:
25570 return NULL;
554f62e9
RD
25571}
25572
25573
50efceee
RD
25574SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25575 PyObject *resultobj = 0;
25576 wxStockGDI::Item arg1 ;
25577 wxBrush *result = 0 ;
25578 int val1 ;
25579 int ecode1 = 0 ;
25580 PyObject * obj0 = 0 ;
25581 char * kwnames[] = {
25582 (char *) "item", NULL
25583 };
25584
25585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
25586 ecode1 = SWIG_AsVal_int(obj0, &val1);
25587 if (!SWIG_IsOK(ecode1)) {
25588 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
25589 }
25590 arg1 = static_cast< wxStockGDI::Item >(val1);
25591 {
25592 PyThreadState* __tstate = wxPyBeginAllowThreads();
25593 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
25594 wxPyEndAllowThreads(__tstate);
25595 if (PyErr_Occurred()) SWIG_fail;
25596 }
25597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
25598 return resultobj;
25599fail:
25600 return NULL;
554f62e9
RD
25601}
25602
25603
50efceee
RD
25604SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25605 PyObject *resultobj = 0;
25606 wxStockGDI::Item arg1 ;
25607 wxColour *result = 0 ;
25608 int val1 ;
25609 int ecode1 = 0 ;
25610 PyObject * obj0 = 0 ;
25611 char * kwnames[] = {
25612 (char *) "item", NULL
25613 };
554f62e9 25614
50efceee
RD
25615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
25616 ecode1 = SWIG_AsVal_int(obj0, &val1);
25617 if (!SWIG_IsOK(ecode1)) {
25618 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
25619 }
25620 arg1 = static_cast< wxStockGDI::Item >(val1);
25621 {
25622 PyThreadState* __tstate = wxPyBeginAllowThreads();
25623 result = (wxColour *)wxStockGDI::GetColour(arg1);
25624 wxPyEndAllowThreads(__tstate);
25625 if (PyErr_Occurred()) SWIG_fail;
25626 }
25627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
25628 return resultobj;
25629fail:
25630 return NULL;
554f62e9
RD
25631}
25632
25633
50efceee
RD
25634SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25635 PyObject *resultobj = 0;
25636 wxStockGDI::Item arg1 ;
25637 wxCursor *result = 0 ;
25638 int val1 ;
25639 int ecode1 = 0 ;
25640 PyObject * obj0 = 0 ;
25641 char * kwnames[] = {
25642 (char *) "item", NULL
25643 };
25644
25645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
25646 ecode1 = SWIG_AsVal_int(obj0, &val1);
25647 if (!SWIG_IsOK(ecode1)) {
25648 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
25649 }
25650 arg1 = static_cast< wxStockGDI::Item >(val1);
25651 {
25652 PyThreadState* __tstate = wxPyBeginAllowThreads();
25653 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
25654 wxPyEndAllowThreads(__tstate);
25655 if (PyErr_Occurred()) SWIG_fail;
25656 }
25657 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
25658 return resultobj;
25659fail:
25660 return NULL;
554f62e9
RD
25661}
25662
25663
50efceee
RD
25664SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25665 PyObject *resultobj = 0;
25666 wxStockGDI::Item arg1 ;
25667 wxPen *result = 0 ;
25668 int val1 ;
25669 int ecode1 = 0 ;
25670 PyObject * obj0 = 0 ;
25671 char * kwnames[] = {
25672 (char *) "item", NULL
25673 };
25674
25675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
25676 ecode1 = SWIG_AsVal_int(obj0, &val1);
25677 if (!SWIG_IsOK(ecode1)) {
25678 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
25679 }
25680 arg1 = static_cast< wxStockGDI::Item >(val1);
25681 {
25682 PyThreadState* __tstate = wxPyBeginAllowThreads();
25683 result = (wxPen *)wxStockGDI::GetPen(arg1);
25684 wxPyEndAllowThreads(__tstate);
25685 if (PyErr_Occurred()) SWIG_fail;
25686 }
25687 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
25688 return resultobj;
25689fail:
25690 return NULL;
554f62e9
RD
25691}
25692
25693
50efceee
RD
25694SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25695 PyObject *resultobj = 0;
25696 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
25697 wxStockGDI::Item arg2 ;
25698 wxFont *result = 0 ;
25699 void *argp1 = 0 ;
25700 int res1 = 0 ;
25701 int val2 ;
25702 int ecode2 = 0 ;
25703 PyObject * obj0 = 0 ;
25704 PyObject * obj1 = 0 ;
25705 char * kwnames[] = {
25706 (char *) "self",(char *) "item", NULL
25707 };
554f62e9 25708
50efceee
RD
25709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
25711 if (!SWIG_IsOK(res1)) {
25712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
25713 }
25714 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
25715 ecode2 = SWIG_AsVal_int(obj1, &val2);
25716 if (!SWIG_IsOK(ecode2)) {
25717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
25718 }
25719 arg2 = static_cast< wxStockGDI::Item >(val2);
25720 {
25721 PyThreadState* __tstate = wxPyBeginAllowThreads();
25722 result = (wxFont *)(arg1)->GetFont(arg2);
25723 wxPyEndAllowThreads(__tstate);
25724 if (PyErr_Occurred()) SWIG_fail;
25725 }
25726 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
25727 return resultobj;
25728fail:
25729 return NULL;
554f62e9
RD
25730}
25731
25732
50efceee
RD
25733SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25734 PyObject *obj;
25735 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25736 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
25737 return SWIG_Py_Void();
554f62e9
RD
25738}
25739
50efceee
RD
25740SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25741 return SWIG_Python_InitShadowInstance(args);
554f62e9
RD
25742}
25743
554f62e9
RD
25744SWIGINTERN int NullBitmap_set(PyObject *) {
25745 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
25746 return 1;
25747}
25748
25749
25750SWIGINTERN PyObject *NullBitmap_get(void) {
25751 PyObject *pyobj = 0;
25752
25753 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
25754 return pyobj;
25755}
25756
25757
25758SWIGINTERN int NullIcon_set(PyObject *) {
25759 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
25760 return 1;
25761}
25762
25763
25764SWIGINTERN PyObject *NullIcon_get(void) {
25765 PyObject *pyobj = 0;
25766
25767 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
25768 return pyobj;
25769}
25770
25771
25772SWIGINTERN int NullCursor_set(PyObject *) {
25773 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
25774 return 1;
25775}
25776
25777
25778SWIGINTERN PyObject *NullCursor_get(void) {
25779 PyObject *pyobj = 0;
25780
25781 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
25782 return pyobj;
25783}
25784
25785
25786SWIGINTERN int NullPen_set(PyObject *) {
25787 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
25788 return 1;
25789}
25790
25791
25792SWIGINTERN PyObject *NullPen_get(void) {
25793 PyObject *pyobj = 0;
25794
25795 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
25796 return pyobj;
25797}
25798
25799
25800SWIGINTERN int NullBrush_set(PyObject *) {
25801 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
25802 return 1;
25803}
25804
25805
25806SWIGINTERN PyObject *NullBrush_get(void) {
25807 PyObject *pyobj = 0;
25808
25809 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
25810 return pyobj;
25811}
25812
25813
25814SWIGINTERN int NullPalette_set(PyObject *) {
25815 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
25816 return 1;
25817}
25818
25819
25820SWIGINTERN PyObject *NullPalette_get(void) {
25821 PyObject *pyobj = 0;
25822
25823 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
25824 return pyobj;
25825}
25826
25827
25828SWIGINTERN int NullFont_set(PyObject *) {
25829 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
25830 return 1;
25831}
25832
25833
25834SWIGINTERN PyObject *NullFont_get(void) {
25835 PyObject *pyobj = 0;
25836
25837 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
25838 return pyobj;
25839}
25840
25841
25842SWIGINTERN int NullColour_set(PyObject *) {
25843 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
25844 return 1;
25845}
25846
25847
25848SWIGINTERN PyObject *NullColour_get(void) {
25849 PyObject *pyobj = 0;
25850
25851 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
25852 return pyobj;
25853}
25854
25855
50efceee 25856SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 25857 PyObject *resultobj = 0;
50efceee
RD
25858 wxGDIObjListBase *result = 0 ;
25859
25860 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
25861 {
25862 PyThreadState* __tstate = wxPyBeginAllowThreads();
25863 result = (wxGDIObjListBase *)new wxGDIObjListBase();
25864 wxPyEndAllowThreads(__tstate);
25865 if (PyErr_Occurred()) SWIG_fail;
25866 }
25867 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
25868 return resultobj;
25869fail:
25870 return NULL;
25871}
25872
25873
25874SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25875 PyObject *resultobj = 0;
25876 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
554f62e9
RD
25877 void *argp1 = 0 ;
25878 int res1 = 0 ;
50efceee 25879 PyObject *swig_obj[1] ;
554f62e9 25880
50efceee
RD
25881 if (!args) SWIG_fail;
25882 swig_obj[0] = args;
25883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
554f62e9 25884 if (!SWIG_IsOK(res1)) {
50efceee 25885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
554f62e9 25886 }
50efceee 25887 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
554f62e9
RD
25888 {
25889 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee
RD
25890 delete arg1;
25891
554f62e9
RD
25892 wxPyEndAllowThreads(__tstate);
25893 if (PyErr_Occurred()) SWIG_fail;
25894 }
25895 resultobj = SWIG_Py_Void();
25896 return resultobj;
25897fail:
25898 return NULL;
25899}
25900
25901
50efceee
RD
25902SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25903 PyObject *obj;
25904 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25905 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
25906 return SWIG_Py_Void();
25907}
25908
25909SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25910 return SWIG_Python_InitShadowInstance(args);
25911}
25912
554f62e9
RD
25913SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25914 PyObject *resultobj = 0;
25915 wxPenList *arg1 = (wxPenList *) 0 ;
25916 wxColour *arg2 = 0 ;
25917 int arg3 ;
25918 int arg4 ;
25919 wxPen *result = 0 ;
25920 void *argp1 = 0 ;
25921 int res1 = 0 ;
25922 wxColour temp2 ;
25923 int val3 ;
25924 int ecode3 = 0 ;
25925 int val4 ;
25926 int ecode4 = 0 ;
25927 PyObject * obj0 = 0 ;
25928 PyObject * obj1 = 0 ;
25929 PyObject * obj2 = 0 ;
25930 PyObject * obj3 = 0 ;
25931 char * kwnames[] = {
25932 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
25933 };
25934
25935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25937 if (!SWIG_IsOK(res1)) {
25938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
25939 }
25940 arg1 = reinterpret_cast< wxPenList * >(argp1);
25941 {
25942 arg2 = &temp2;
25943 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25944 }
25945 ecode3 = SWIG_AsVal_int(obj2, &val3);
25946 if (!SWIG_IsOK(ecode3)) {
25947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
25948 }
25949 arg3 = static_cast< int >(val3);
25950 ecode4 = SWIG_AsVal_int(obj3, &val4);
25951 if (!SWIG_IsOK(ecode4)) {
25952 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
25953 }
25954 arg4 = static_cast< int >(val4);
25955 {
25956 PyThreadState* __tstate = wxPyBeginAllowThreads();
25957 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
25958 wxPyEndAllowThreads(__tstate);
25959 if (PyErr_Occurred()) SWIG_fail;
25960 }
25961 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
25962 return resultobj;
25963fail:
25964 return NULL;
25965}
25966
25967
50efceee 25968SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
25969 PyObject *resultobj = 0;
25970 wxPenList *arg1 = (wxPenList *) 0 ;
25971 wxPen *arg2 = (wxPen *) 0 ;
25972 void *argp1 = 0 ;
25973 int res1 = 0 ;
25974 void *argp2 = 0 ;
25975 int res2 = 0 ;
25976 PyObject * obj0 = 0 ;
25977 PyObject * obj1 = 0 ;
25978 char * kwnames[] = {
25979 (char *) "self",(char *) "pen", NULL
25980 };
25981
50efceee 25982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
554f62e9
RD
25983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25984 if (!SWIG_IsOK(res1)) {
50efceee 25985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
554f62e9
RD
25986 }
25987 arg1 = reinterpret_cast< wxPenList * >(argp1);
25988 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
25989 if (!SWIG_IsOK(res2)) {
50efceee 25990 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
554f62e9
RD
25991 }
25992 arg2 = reinterpret_cast< wxPen * >(argp2);
25993 {
25994 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 25995 (arg1)->AddPen(arg2);
554f62e9
RD
25996 wxPyEndAllowThreads(__tstate);
25997 if (PyErr_Occurred()) SWIG_fail;
25998 }
25999 resultobj = SWIG_Py_Void();
26000 return resultobj;
26001fail:
26002 return NULL;
26003}
26004
26005
50efceee 26006SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
26007 PyObject *resultobj = 0;
26008 wxPenList *arg1 = (wxPenList *) 0 ;
50efceee 26009 wxPen *arg2 = (wxPen *) 0 ;
554f62e9
RD
26010 void *argp1 = 0 ;
26011 int res1 = 0 ;
50efceee
RD
26012 void *argp2 = 0 ;
26013 int res2 = 0 ;
26014 PyObject * obj0 = 0 ;
26015 PyObject * obj1 = 0 ;
26016 char * kwnames[] = {
26017 (char *) "self",(char *) "pen", NULL
26018 };
554f62e9 26019
50efceee
RD
26020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
26021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
554f62e9 26022 if (!SWIG_IsOK(res1)) {
50efceee 26023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
554f62e9
RD
26024 }
26025 arg1 = reinterpret_cast< wxPenList * >(argp1);
50efceee
RD
26026 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
26027 if (!SWIG_IsOK(res2)) {
26028 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
26029 }
26030 arg2 = reinterpret_cast< wxPen * >(argp2);
554f62e9
RD
26031 {
26032 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 26033 (arg1)->RemovePen(arg2);
554f62e9
RD
26034 wxPyEndAllowThreads(__tstate);
26035 if (PyErr_Occurred()) SWIG_fail;
26036 }
50efceee 26037 resultobj = SWIG_Py_Void();
554f62e9
RD
26038 return resultobj;
26039fail:
26040 return NULL;
26041}
26042
26043
26044SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26045 PyObject *obj;
26046 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26047 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
26048 return SWIG_Py_Void();
26049}
26050
50efceee
RD
26051SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26052 PyObject *resultobj = 0;
26053 wxBrushList *arg1 = (wxBrushList *) 0 ;
26054 wxColour *arg2 = 0 ;
26055 int arg3 = (int) wxSOLID ;
26056 wxBrush *result = 0 ;
26057 void *argp1 = 0 ;
26058 int res1 = 0 ;
26059 wxColour temp2 ;
26060 int val3 ;
26061 int ecode3 = 0 ;
26062 PyObject * obj0 = 0 ;
26063 PyObject * obj1 = 0 ;
26064 PyObject * obj2 = 0 ;
26065 char * kwnames[] = {
26066 (char *) "self",(char *) "colour",(char *) "style", NULL
26067 };
26068
26069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
26071 if (!SWIG_IsOK(res1)) {
26072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
26073 }
26074 arg1 = reinterpret_cast< wxBrushList * >(argp1);
26075 {
26076 arg2 = &temp2;
26077 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26078 }
26079 if (obj2) {
26080 ecode3 = SWIG_AsVal_int(obj2, &val3);
26081 if (!SWIG_IsOK(ecode3)) {
26082 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
26083 }
26084 arg3 = static_cast< int >(val3);
26085 }
26086 {
26087 PyThreadState* __tstate = wxPyBeginAllowThreads();
26088 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
26089 wxPyEndAllowThreads(__tstate);
26090 if (PyErr_Occurred()) SWIG_fail;
26091 }
26092 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
26093 return resultobj;
26094fail:
26095 return NULL;
26096}
26097
26098
554f62e9
RD
26099SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26100 PyObject *resultobj = 0;
26101 wxBrushList *arg1 = (wxBrushList *) 0 ;
26102 wxBrush *arg2 = (wxBrush *) 0 ;
26103 void *argp1 = 0 ;
26104 int res1 = 0 ;
26105 void *argp2 = 0 ;
26106 int res2 = 0 ;
26107 PyObject * obj0 = 0 ;
26108 PyObject * obj1 = 0 ;
26109 char * kwnames[] = {
26110 (char *) "self",(char *) "brush", NULL
26111 };
26112
26113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
26114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
26115 if (!SWIG_IsOK(res1)) {
26116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
26117 }
26118 arg1 = reinterpret_cast< wxBrushList * >(argp1);
26119 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
26120 if (!SWIG_IsOK(res2)) {
26121 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
26122 }
26123 arg2 = reinterpret_cast< wxBrush * >(argp2);
26124 {
26125 PyThreadState* __tstate = wxPyBeginAllowThreads();
26126 (arg1)->AddBrush(arg2);
26127 wxPyEndAllowThreads(__tstate);
26128 if (PyErr_Occurred()) SWIG_fail;
26129 }
26130 resultobj = SWIG_Py_Void();
26131 return resultobj;
26132fail:
26133 return NULL;
26134}
26135
26136
50efceee 26137SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
26138 PyObject *resultobj = 0;
26139 wxBrushList *arg1 = (wxBrushList *) 0 ;
50efceee 26140 wxBrush *arg2 = (wxBrush *) 0 ;
554f62e9
RD
26141 void *argp1 = 0 ;
26142 int res1 = 0 ;
50efceee
RD
26143 void *argp2 = 0 ;
26144 int res2 = 0 ;
26145 PyObject * obj0 = 0 ;
26146 PyObject * obj1 = 0 ;
26147 char * kwnames[] = {
26148 (char *) "self",(char *) "brush", NULL
26149 };
26150
26151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
26152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
26153 if (!SWIG_IsOK(res1)) {
26154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
26155 }
26156 arg1 = reinterpret_cast< wxBrushList * >(argp1);
26157 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
26158 if (!SWIG_IsOK(res2)) {
26159 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
26160 }
26161 arg2 = reinterpret_cast< wxBrush * >(argp2);
26162 {
26163 PyThreadState* __tstate = wxPyBeginAllowThreads();
26164 (arg1)->RemoveBrush(arg2);
26165 wxPyEndAllowThreads(__tstate);
26166 if (PyErr_Occurred()) SWIG_fail;
26167 }
26168 resultobj = SWIG_Py_Void();
26169 return resultobj;
26170fail:
26171 return NULL;
26172}
26173
26174
26175SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26176 PyObject *obj;
26177 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26178 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
26179 return SWIG_Py_Void();
26180}
26181
26182SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26183 PyObject *resultobj = 0;
26184 wxFontList *arg1 = (wxFontList *) 0 ;
26185 int arg2 ;
26186 int arg3 ;
26187 int arg4 ;
26188 int arg5 ;
26189 bool arg6 = (bool) false ;
26190 wxString const &arg7_defvalue = wxPyEmptyString ;
26191 wxString *arg7 = (wxString *) &arg7_defvalue ;
26192 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
26193 wxFont *result = 0 ;
26194 void *argp1 = 0 ;
26195 int res1 = 0 ;
26196 int val2 ;
26197 int ecode2 = 0 ;
554f62e9
RD
26198 int val3 ;
26199 int ecode3 = 0 ;
50efceee
RD
26200 int val4 ;
26201 int ecode4 = 0 ;
26202 int val5 ;
26203 int ecode5 = 0 ;
26204 bool val6 ;
26205 int ecode6 = 0 ;
26206 bool temp7 = false ;
26207 int val8 ;
26208 int ecode8 = 0 ;
554f62e9
RD
26209 PyObject * obj0 = 0 ;
26210 PyObject * obj1 = 0 ;
26211 PyObject * obj2 = 0 ;
50efceee
RD
26212 PyObject * obj3 = 0 ;
26213 PyObject * obj4 = 0 ;
26214 PyObject * obj5 = 0 ;
26215 PyObject * obj6 = 0 ;
26216 PyObject * obj7 = 0 ;
554f62e9 26217 char * kwnames[] = {
50efceee 26218 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
554f62e9
RD
26219 };
26220
50efceee
RD
26221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
26222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 26223 if (!SWIG_IsOK(res1)) {
50efceee 26224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 26225 }
50efceee
RD
26226 arg1 = reinterpret_cast< wxFontList * >(argp1);
26227 ecode2 = SWIG_AsVal_int(obj1, &val2);
26228 if (!SWIG_IsOK(ecode2)) {
26229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
26230 }
26231 arg2 = static_cast< int >(val2);
26232 ecode3 = SWIG_AsVal_int(obj2, &val3);
26233 if (!SWIG_IsOK(ecode3)) {
26234 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
26235 }
26236 arg3 = static_cast< int >(val3);
26237 ecode4 = SWIG_AsVal_int(obj3, &val4);
26238 if (!SWIG_IsOK(ecode4)) {
26239 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
26240 }
26241 arg4 = static_cast< int >(val4);
26242 ecode5 = SWIG_AsVal_int(obj4, &val5);
26243 if (!SWIG_IsOK(ecode5)) {
26244 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
26245 }
26246 arg5 = static_cast< int >(val5);
26247 if (obj5) {
26248 ecode6 = SWIG_AsVal_bool(obj5, &val6);
26249 if (!SWIG_IsOK(ecode6)) {
26250 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
26251 }
26252 arg6 = static_cast< bool >(val6);
554f62e9 26253 }
50efceee
RD
26254 if (obj6) {
26255 {
26256 arg7 = wxString_in_helper(obj6);
26257 if (arg7 == NULL) SWIG_fail;
26258 temp7 = true;
26259 }
26260 }
26261 if (obj7) {
26262 ecode8 = SWIG_AsVal_int(obj7, &val8);
26263 if (!SWIG_IsOK(ecode8)) {
26264 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
554f62e9 26265 }
50efceee 26266 arg8 = static_cast< wxFontEncoding >(val8);
554f62e9
RD
26267 }
26268 {
26269 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 26270 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
554f62e9
RD
26271 wxPyEndAllowThreads(__tstate);
26272 if (PyErr_Occurred()) SWIG_fail;
26273 }
50efceee
RD
26274 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
26275 {
26276 if (temp7)
26277 delete arg7;
26278 }
554f62e9
RD
26279 return resultobj;
26280fail:
50efceee
RD
26281 {
26282 if (temp7)
26283 delete arg7;
26284 }
554f62e9
RD
26285 return NULL;
26286}
26287
26288
50efceee 26289SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 26290 PyObject *resultobj = 0;
50efceee
RD
26291 wxFontList *arg1 = (wxFontList *) 0 ;
26292 wxFont *arg2 = (wxFont *) 0 ;
554f62e9
RD
26293 void *argp1 = 0 ;
26294 int res1 = 0 ;
26295 void *argp2 = 0 ;
26296 int res2 = 0 ;
26297 PyObject * obj0 = 0 ;
26298 PyObject * obj1 = 0 ;
26299 char * kwnames[] = {
50efceee 26300 (char *) "self",(char *) "font", NULL
554f62e9
RD
26301 };
26302
50efceee
RD
26303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
26304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 26305 if (!SWIG_IsOK(res1)) {
50efceee 26306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 26307 }
50efceee
RD
26308 arg1 = reinterpret_cast< wxFontList * >(argp1);
26309 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
554f62e9 26310 if (!SWIG_IsOK(res2)) {
50efceee 26311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
554f62e9 26312 }
50efceee 26313 arg2 = reinterpret_cast< wxFont * >(argp2);
554f62e9
RD
26314 {
26315 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 26316 (arg1)->AddFont(arg2);
554f62e9
RD
26317 wxPyEndAllowThreads(__tstate);
26318 if (PyErr_Occurred()) SWIG_fail;
26319 }
26320 resultobj = SWIG_Py_Void();
26321 return resultobj;
26322fail:
26323 return NULL;
26324}
26325
26326
50efceee 26327SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 26328 PyObject *resultobj = 0;
50efceee
RD
26329 wxFontList *arg1 = (wxFontList *) 0 ;
26330 wxFont *arg2 = (wxFont *) 0 ;
554f62e9
RD
26331 void *argp1 = 0 ;
26332 int res1 = 0 ;
50efceee
RD
26333 void *argp2 = 0 ;
26334 int res2 = 0 ;
26335 PyObject * obj0 = 0 ;
26336 PyObject * obj1 = 0 ;
26337 char * kwnames[] = {
26338 (char *) "self",(char *) "font", NULL
26339 };
554f62e9 26340
50efceee
RD
26341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
26342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 26343 if (!SWIG_IsOK(res1)) {
50efceee 26344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 26345 }
50efceee
RD
26346 arg1 = reinterpret_cast< wxFontList * >(argp1);
26347 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
26348 if (!SWIG_IsOK(res2)) {
26349 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
26350 }
26351 arg2 = reinterpret_cast< wxFont * >(argp2);
554f62e9
RD
26352 {
26353 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 26354 (arg1)->RemoveFont(arg2);
554f62e9
RD
26355 wxPyEndAllowThreads(__tstate);
26356 if (PyErr_Occurred()) SWIG_fail;
26357 }
50efceee 26358 resultobj = SWIG_Py_Void();
554f62e9
RD
26359 return resultobj;
26360fail:
26361 return NULL;
26362}
26363
26364
50efceee 26365SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
26366 PyObject *obj;
26367 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
50efceee 26368 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
554f62e9
RD
26369 return SWIG_Py_Void();
26370}
26371
26372SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26373 PyObject *resultobj = 0;
26374 wxColourDatabase *result = 0 ;
26375
26376 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
26377 {
26378 if (!wxPyCheckForApp()) SWIG_fail;
26379 PyThreadState* __tstate = wxPyBeginAllowThreads();
26380 result = (wxColourDatabase *)new wxColourDatabase();
26381 wxPyEndAllowThreads(__tstate);
26382 if (PyErr_Occurred()) SWIG_fail;
26383 }
26384 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
26385 return resultobj;
26386fail:
26387 return NULL;
26388}
26389
26390
26391SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26392 PyObject *resultobj = 0;
26393 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
26394 void *argp1 = 0 ;
26395 int res1 = 0 ;
26396 PyObject *swig_obj[1] ;
26397
26398 if (!args) SWIG_fail;
26399 swig_obj[0] = args;
26400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
26401 if (!SWIG_IsOK(res1)) {
26402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
26403 }
26404 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
26405 {
26406 PyThreadState* __tstate = wxPyBeginAllowThreads();
26407 delete arg1;
26408
26409 wxPyEndAllowThreads(__tstate);
26410 if (PyErr_Occurred()) SWIG_fail;
26411 }
26412 resultobj = SWIG_Py_Void();
26413 return resultobj;
26414fail:
26415 return NULL;
26416}
26417
26418
26419SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26420 PyObject *resultobj = 0;
26421 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
26422 wxString *arg2 = 0 ;
26423 wxColour result;
26424 void *argp1 = 0 ;
26425 int res1 = 0 ;
26426 bool temp2 = false ;
26427 PyObject * obj0 = 0 ;
26428 PyObject * obj1 = 0 ;
26429 char * kwnames[] = {
26430 (char *) "self",(char *) "name", NULL
26431 };
26432
26433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
26434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
26435 if (!SWIG_IsOK(res1)) {
26436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
26437 }
26438 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
26439 {
26440 arg2 = wxString_in_helper(obj1);
26441 if (arg2 == NULL) SWIG_fail;
26442 temp2 = true;
26443 }
26444 {
26445 PyThreadState* __tstate = wxPyBeginAllowThreads();
26446 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
26447 wxPyEndAllowThreads(__tstate);
26448 if (PyErr_Occurred()) SWIG_fail;
26449 }
26450 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26451 {
26452 if (temp2)
26453 delete arg2;
26454 }
26455 return resultobj;
26456fail:
26457 {
26458 if (temp2)
26459 delete arg2;
26460 }
26461 return NULL;
26462}
26463
26464
26465SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26466 PyObject *resultobj = 0;
26467 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
26468 wxColour *arg2 = 0 ;
26469 wxString result;
26470 void *argp1 = 0 ;
26471 int res1 = 0 ;
26472 wxColour temp2 ;
26473 PyObject * obj0 = 0 ;
26474 PyObject * obj1 = 0 ;
26475 char * kwnames[] = {
26476 (char *) "self",(char *) "colour", NULL
26477 };
26478
26479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
26480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
26481 if (!SWIG_IsOK(res1)) {
26482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
26483 }
26484 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
26485 {
26486 arg2 = &temp2;
26487 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26488 }
26489 {
26490 PyThreadState* __tstate = wxPyBeginAllowThreads();
26491 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
26492 wxPyEndAllowThreads(__tstate);
26493 if (PyErr_Occurred()) SWIG_fail;
26494 }
26495 {
26496#if wxUSE_UNICODE
26497 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26498#else
26499 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26500#endif
26501 }
26502 return resultobj;
26503fail:
26504 return NULL;
26505}
26506
26507
26508SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26509 PyObject *resultobj = 0;
26510 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
26511 wxString *arg2 = 0 ;
26512 wxColour *arg3 = 0 ;
26513 void *argp1 = 0 ;
26514 int res1 = 0 ;
26515 bool temp2 = false ;
26516 wxColour temp3 ;
26517 PyObject * obj0 = 0 ;
26518 PyObject * obj1 = 0 ;
26519 PyObject * obj2 = 0 ;
26520 char * kwnames[] = {
26521 (char *) "self",(char *) "name",(char *) "colour", NULL
26522 };
26523
26524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
26526 if (!SWIG_IsOK(res1)) {
26527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
26528 }
26529 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
26530 {
26531 arg2 = wxString_in_helper(obj1);
26532 if (arg2 == NULL) SWIG_fail;
26533 temp2 = true;
26534 }
26535 {
26536 arg3 = &temp3;
26537 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26538 }
26539 {
26540 PyThreadState* __tstate = wxPyBeginAllowThreads();
26541 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
26542 wxPyEndAllowThreads(__tstate);
26543 if (PyErr_Occurred()) SWIG_fail;
26544 }
26545 resultobj = SWIG_Py_Void();
26546 {
26547 if (temp2)
26548 delete arg2;
26549 }
26550 return resultobj;
26551fail:
26552 {
26553 if (temp2)
26554 delete arg2;
26555 }
26556 return NULL;
26557}
26558
26559
26560SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26561 PyObject *resultobj = 0;
26562 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
26563 wxString *arg2 = 0 ;
26564 int arg3 ;
26565 int arg4 ;
26566 int arg5 ;
26567 void *argp1 = 0 ;
26568 int res1 = 0 ;
26569 bool temp2 = false ;
26570 int val3 ;
26571 int ecode3 = 0 ;
26572 int val4 ;
26573 int ecode4 = 0 ;
50efceee
RD
26574 int val5 ;
26575 int ecode5 = 0 ;
554f62e9
RD
26576 PyObject * obj0 = 0 ;
26577 PyObject * obj1 = 0 ;
26578 PyObject * obj2 = 0 ;
26579 PyObject * obj3 = 0 ;
26580 PyObject * obj4 = 0 ;
554f62e9 26581 char * kwnames[] = {
50efceee 26582 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
554f62e9
RD
26583 };
26584
50efceee
RD
26585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
554f62e9 26587 if (!SWIG_IsOK(res1)) {
50efceee
RD
26588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
26589 }
26590 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
26591 {
26592 arg2 = wxString_in_helper(obj1);
26593 if (arg2 == NULL) SWIG_fail;
26594 temp2 = true;
554f62e9 26595 }
554f62e9
RD
26596 ecode3 = SWIG_AsVal_int(obj2, &val3);
26597 if (!SWIG_IsOK(ecode3)) {
50efceee 26598 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
554f62e9
RD
26599 }
26600 arg3 = static_cast< int >(val3);
26601 ecode4 = SWIG_AsVal_int(obj3, &val4);
26602 if (!SWIG_IsOK(ecode4)) {
50efceee 26603 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
554f62e9
RD
26604 }
26605 arg4 = static_cast< int >(val4);
26606 ecode5 = SWIG_AsVal_int(obj4, &val5);
26607 if (!SWIG_IsOK(ecode5)) {
50efceee 26608 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
554f62e9
RD
26609 }
26610 arg5 = static_cast< int >(val5);
554f62e9
RD
26611 {
26612 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 26613 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
554f62e9
RD
26614 wxPyEndAllowThreads(__tstate);
26615 if (PyErr_Occurred()) SWIG_fail;
26616 }
50efceee 26617 resultobj = SWIG_Py_Void();
554f62e9 26618 {
50efceee
RD
26619 if (temp2)
26620 delete arg2;
554f62e9
RD
26621 }
26622 return resultobj;
26623fail:
26624 {
50efceee
RD
26625 if (temp2)
26626 delete arg2;
554f62e9
RD
26627 }
26628 return NULL;
26629}
26630
26631
50efceee
RD
26632SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26633 PyObject *obj;
26634 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26635 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
26636 return SWIG_Py_Void();
26637}
26638
26639SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26640 return SWIG_Python_InitShadowInstance(args);
26641}
26642
26643SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 26644 PyObject *resultobj = 0;
50efceee 26645 wxFontList *result = 0 ;
554f62e9 26646
50efceee 26647 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
554f62e9
RD
26648 {
26649 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 26650 result = (wxFontList *)_wxPyInitTheFontList();
554f62e9
RD
26651 wxPyEndAllowThreads(__tstate);
26652 if (PyErr_Occurred()) SWIG_fail;
26653 }
50efceee 26654 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9
RD
26655 return resultobj;
26656fail:
26657 return NULL;
26658}
26659
26660
50efceee 26661SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 26662 PyObject *resultobj = 0;
50efceee 26663 wxPenList *result = 0 ;
554f62e9 26664
50efceee 26665 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
554f62e9
RD
26666 {
26667 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 26668 result = (wxPenList *)_wxPyInitThePenList();
554f62e9
RD
26669 wxPyEndAllowThreads(__tstate);
26670 if (PyErr_Occurred()) SWIG_fail;
26671 }
50efceee 26672 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
554f62e9
RD
26673 return resultobj;
26674fail:
26675 return NULL;
26676}
26677
26678
50efceee
RD
26679SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26680 PyObject *resultobj = 0;
26681 wxBrushList *result = 0 ;
554f62e9 26682
50efceee
RD
26683 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
26684 {
26685 PyThreadState* __tstate = wxPyBeginAllowThreads();
26686 result = (wxBrushList *)_wxPyInitTheBrushList();
26687 wxPyEndAllowThreads(__tstate);
26688 if (PyErr_Occurred()) SWIG_fail;
26689 }
26690 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
26691 return resultobj;
26692fail:
26693 return NULL;
554f62e9
RD
26694}
26695
26696
50efceee
RD
26697SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26698 PyObject *resultobj = 0;
26699 wxColourDatabase *result = 0 ;
554f62e9 26700
50efceee
RD
26701 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
26702 {
26703 PyThreadState* __tstate = wxPyBeginAllowThreads();
26704 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
26705 wxPyEndAllowThreads(__tstate);
26706 if (PyErr_Occurred()) SWIG_fail;
26707 }
26708 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
26709 return resultobj;
26710fail:
26711 return NULL;
554f62e9
RD
26712}
26713
26714
26715SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26716 PyObject *resultobj = 0;
26717 wxEffects *result = 0 ;
26718
26719 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
26720 {
26721 PyThreadState* __tstate = wxPyBeginAllowThreads();
26722 result = (wxEffects *)new wxEffects();
26723 wxPyEndAllowThreads(__tstate);
26724 if (PyErr_Occurred()) SWIG_fail;
26725 }
26726 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
26727 return resultobj;
26728fail:
26729 return NULL;
26730}
26731
26732
26733SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26734 PyObject *resultobj = 0;
26735 wxEffects *arg1 = (wxEffects *) 0 ;
26736 wxColour result;
26737 void *argp1 = 0 ;
26738 int res1 = 0 ;
26739 PyObject *swig_obj[1] ;
26740
26741 if (!args) SWIG_fail;
26742 swig_obj[0] = args;
26743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26744 if (!SWIG_IsOK(res1)) {
26745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
26746 }
26747 arg1 = reinterpret_cast< wxEffects * >(argp1);
26748 {
26749 PyThreadState* __tstate = wxPyBeginAllowThreads();
26750 result = ((wxEffects const *)arg1)->GetHighlightColour();
26751 wxPyEndAllowThreads(__tstate);
26752 if (PyErr_Occurred()) SWIG_fail;
26753 }
26754 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26755 return resultobj;
26756fail:
26757 return NULL;
26758}
26759
26760
26761SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26762 PyObject *resultobj = 0;
26763 wxEffects *arg1 = (wxEffects *) 0 ;
26764 wxColour result;
26765 void *argp1 = 0 ;
26766 int res1 = 0 ;
26767 PyObject *swig_obj[1] ;
26768
26769 if (!args) SWIG_fail;
26770 swig_obj[0] = args;
26771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26772 if (!SWIG_IsOK(res1)) {
26773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
26774 }
26775 arg1 = reinterpret_cast< wxEffects * >(argp1);
26776 {
26777 PyThreadState* __tstate = wxPyBeginAllowThreads();
26778 result = ((wxEffects const *)arg1)->GetLightShadow();
26779 wxPyEndAllowThreads(__tstate);
26780 if (PyErr_Occurred()) SWIG_fail;
26781 }
26782 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26783 return resultobj;
26784fail:
26785 return NULL;
26786}
26787
26788
26789SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26790 PyObject *resultobj = 0;
26791 wxEffects *arg1 = (wxEffects *) 0 ;
26792 wxColour result;
26793 void *argp1 = 0 ;
26794 int res1 = 0 ;
26795 PyObject *swig_obj[1] ;
26796
26797 if (!args) SWIG_fail;
26798 swig_obj[0] = args;
26799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26800 if (!SWIG_IsOK(res1)) {
26801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
26802 }
26803 arg1 = reinterpret_cast< wxEffects * >(argp1);
26804 {
26805 PyThreadState* __tstate = wxPyBeginAllowThreads();
26806 result = ((wxEffects const *)arg1)->GetFaceColour();
26807 wxPyEndAllowThreads(__tstate);
26808 if (PyErr_Occurred()) SWIG_fail;
26809 }
26810 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26811 return resultobj;
26812fail:
26813 return NULL;
26814}
26815
26816
26817SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26818 PyObject *resultobj = 0;
26819 wxEffects *arg1 = (wxEffects *) 0 ;
26820 wxColour result;
26821 void *argp1 = 0 ;
26822 int res1 = 0 ;
26823 PyObject *swig_obj[1] ;
26824
26825 if (!args) SWIG_fail;
26826 swig_obj[0] = args;
26827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26828 if (!SWIG_IsOK(res1)) {
26829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
26830 }
26831 arg1 = reinterpret_cast< wxEffects * >(argp1);
26832 {
26833 PyThreadState* __tstate = wxPyBeginAllowThreads();
26834 result = ((wxEffects const *)arg1)->GetMediumShadow();
26835 wxPyEndAllowThreads(__tstate);
26836 if (PyErr_Occurred()) SWIG_fail;
26837 }
26838 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26839 return resultobj;
26840fail:
26841 return NULL;
26842}
26843
26844
26845SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26846 PyObject *resultobj = 0;
26847 wxEffects *arg1 = (wxEffects *) 0 ;
26848 wxColour result;
26849 void *argp1 = 0 ;
26850 int res1 = 0 ;
26851 PyObject *swig_obj[1] ;
26852
26853 if (!args) SWIG_fail;
26854 swig_obj[0] = args;
26855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26856 if (!SWIG_IsOK(res1)) {
26857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
26858 }
26859 arg1 = reinterpret_cast< wxEffects * >(argp1);
26860 {
26861 PyThreadState* __tstate = wxPyBeginAllowThreads();
26862 result = ((wxEffects const *)arg1)->GetDarkShadow();
26863 wxPyEndAllowThreads(__tstate);
26864 if (PyErr_Occurred()) SWIG_fail;
26865 }
26866 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26867 return resultobj;
26868fail:
26869 return NULL;
26870}
26871
26872
26873SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26874 PyObject *resultobj = 0;
26875 wxEffects *arg1 = (wxEffects *) 0 ;
26876 wxColour *arg2 = 0 ;
26877 void *argp1 = 0 ;
26878 int res1 = 0 ;
26879 wxColour temp2 ;
26880 PyObject * obj0 = 0 ;
26881 PyObject * obj1 = 0 ;
26882 char * kwnames[] = {
26883 (char *) "self",(char *) "c", NULL
26884 };
26885
26886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
26887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26888 if (!SWIG_IsOK(res1)) {
26889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
26890 }
26891 arg1 = reinterpret_cast< wxEffects * >(argp1);
26892 {
26893 arg2 = &temp2;
26894 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26895 }
26896 {
26897 PyThreadState* __tstate = wxPyBeginAllowThreads();
26898 (arg1)->SetHighlightColour((wxColour const &)*arg2);
26899 wxPyEndAllowThreads(__tstate);
26900 if (PyErr_Occurred()) SWIG_fail;
26901 }
26902 resultobj = SWIG_Py_Void();
26903 return resultobj;
26904fail:
26905 return NULL;
26906}
26907
26908
26909SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26910 PyObject *resultobj = 0;
26911 wxEffects *arg1 = (wxEffects *) 0 ;
26912 wxColour *arg2 = 0 ;
26913 void *argp1 = 0 ;
26914 int res1 = 0 ;
26915 wxColour temp2 ;
26916 PyObject * obj0 = 0 ;
26917 PyObject * obj1 = 0 ;
26918 char * kwnames[] = {
26919 (char *) "self",(char *) "c", NULL
26920 };
26921
26922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26924 if (!SWIG_IsOK(res1)) {
26925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26926 }
26927 arg1 = reinterpret_cast< wxEffects * >(argp1);
26928 {
26929 arg2 = &temp2;
26930 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26931 }
26932 {
26933 PyThreadState* __tstate = wxPyBeginAllowThreads();
26934 (arg1)->SetLightShadow((wxColour const &)*arg2);
26935 wxPyEndAllowThreads(__tstate);
26936 if (PyErr_Occurred()) SWIG_fail;
26937 }
26938 resultobj = SWIG_Py_Void();
26939 return resultobj;
26940fail:
26941 return NULL;
26942}
26943
26944
26945SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26946 PyObject *resultobj = 0;
26947 wxEffects *arg1 = (wxEffects *) 0 ;
26948 wxColour *arg2 = 0 ;
26949 void *argp1 = 0 ;
26950 int res1 = 0 ;
26951 wxColour temp2 ;
26952 PyObject * obj0 = 0 ;
26953 PyObject * obj1 = 0 ;
26954 char * kwnames[] = {
26955 (char *) "self",(char *) "c", NULL
26956 };
26957
26958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
26959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26960 if (!SWIG_IsOK(res1)) {
26961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
26962 }
26963 arg1 = reinterpret_cast< wxEffects * >(argp1);
26964 {
26965 arg2 = &temp2;
26966 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26967 }
26968 {
26969 PyThreadState* __tstate = wxPyBeginAllowThreads();
26970 (arg1)->SetFaceColour((wxColour const &)*arg2);
26971 wxPyEndAllowThreads(__tstate);
26972 if (PyErr_Occurred()) SWIG_fail;
26973 }
26974 resultobj = SWIG_Py_Void();
26975 return resultobj;
26976fail:
26977 return NULL;
26978}
26979
26980
26981SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26982 PyObject *resultobj = 0;
26983 wxEffects *arg1 = (wxEffects *) 0 ;
26984 wxColour *arg2 = 0 ;
26985 void *argp1 = 0 ;
26986 int res1 = 0 ;
26987 wxColour temp2 ;
26988 PyObject * obj0 = 0 ;
26989 PyObject * obj1 = 0 ;
26990 char * kwnames[] = {
26991 (char *) "self",(char *) "c", NULL
26992 };
26993
26994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26996 if (!SWIG_IsOK(res1)) {
26997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26998 }
26999 arg1 = reinterpret_cast< wxEffects * >(argp1);
27000 {
27001 arg2 = &temp2;
27002 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27003 }
27004 {
27005 PyThreadState* __tstate = wxPyBeginAllowThreads();
27006 (arg1)->SetMediumShadow((wxColour const &)*arg2);
27007 wxPyEndAllowThreads(__tstate);
27008 if (PyErr_Occurred()) SWIG_fail;
27009 }
27010 resultobj = SWIG_Py_Void();
27011 return resultobj;
27012fail:
27013 return NULL;
27014}
27015
27016
27017SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27018 PyObject *resultobj = 0;
27019 wxEffects *arg1 = (wxEffects *) 0 ;
27020 wxColour *arg2 = 0 ;
27021 void *argp1 = 0 ;
27022 int res1 = 0 ;
27023 wxColour temp2 ;
27024 PyObject * obj0 = 0 ;
27025 PyObject * obj1 = 0 ;
27026 char * kwnames[] = {
27027 (char *) "self",(char *) "c", NULL
27028 };
27029
27030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
27031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
27032 if (!SWIG_IsOK(res1)) {
27033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
27034 }
27035 arg1 = reinterpret_cast< wxEffects * >(argp1);
27036 {
27037 arg2 = &temp2;
27038 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27039 }
27040 {
27041 PyThreadState* __tstate = wxPyBeginAllowThreads();
27042 (arg1)->SetDarkShadow((wxColour const &)*arg2);
27043 wxPyEndAllowThreads(__tstate);
27044 if (PyErr_Occurred()) SWIG_fail;
27045 }
27046 resultobj = SWIG_Py_Void();
27047 return resultobj;
27048fail:
27049 return NULL;
27050}
27051
27052
27053SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27054 PyObject *resultobj = 0;
27055 wxEffects *arg1 = (wxEffects *) 0 ;
27056 wxColour *arg2 = 0 ;
27057 wxColour *arg3 = 0 ;
27058 wxColour *arg4 = 0 ;
27059 wxColour *arg5 = 0 ;
27060 wxColour *arg6 = 0 ;
27061 void *argp1 = 0 ;
27062 int res1 = 0 ;
27063 wxColour temp2 ;
27064 wxColour temp3 ;
27065 wxColour temp4 ;
27066 wxColour temp5 ;
27067 wxColour temp6 ;
27068 PyObject * obj0 = 0 ;
27069 PyObject * obj1 = 0 ;
27070 PyObject * obj2 = 0 ;
27071 PyObject * obj3 = 0 ;
27072 PyObject * obj4 = 0 ;
27073 PyObject * obj5 = 0 ;
27074 char * kwnames[] = {
27075 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
27076 };
27077
27078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
27080 if (!SWIG_IsOK(res1)) {
27081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
27082 }
27083 arg1 = reinterpret_cast< wxEffects * >(argp1);
27084 {
27085 arg2 = &temp2;
27086 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27087 }
27088 {
27089 arg3 = &temp3;
27090 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27091 }
27092 {
27093 arg4 = &temp4;
27094 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
27095 }
27096 {
27097 arg5 = &temp5;
27098 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
27099 }
27100 {
27101 arg6 = &temp6;
27102 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
27103 }
27104 {
27105 PyThreadState* __tstate = wxPyBeginAllowThreads();
27106 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
27107 wxPyEndAllowThreads(__tstate);
27108 if (PyErr_Occurred()) SWIG_fail;
27109 }
27110 resultobj = SWIG_Py_Void();
27111 return resultobj;
27112fail:
27113 return NULL;
27114}
27115
27116
27117SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27118 PyObject *resultobj = 0;
27119 wxEffects *arg1 = (wxEffects *) 0 ;
27120 wxDC *arg2 = 0 ;
27121 wxRect *arg3 = 0 ;
27122 int arg4 = (int) 1 ;
27123 void *argp1 = 0 ;
27124 int res1 = 0 ;
27125 void *argp2 = 0 ;
27126 int res2 = 0 ;
27127 wxRect temp3 ;
27128 int val4 ;
27129 int ecode4 = 0 ;
27130 PyObject * obj0 = 0 ;
27131 PyObject * obj1 = 0 ;
27132 PyObject * obj2 = 0 ;
27133 PyObject * obj3 = 0 ;
27134 char * kwnames[] = {
27135 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
27136 };
27137
27138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
27140 if (!SWIG_IsOK(res1)) {
27141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
27142 }
27143 arg1 = reinterpret_cast< wxEffects * >(argp1);
27144 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
27145 if (!SWIG_IsOK(res2)) {
27146 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
27147 }
27148 if (!argp2) {
27149 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
27150 }
27151 arg2 = reinterpret_cast< wxDC * >(argp2);
27152 {
27153 arg3 = &temp3;
27154 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
27155 }
27156 if (obj3) {
27157 ecode4 = SWIG_AsVal_int(obj3, &val4);
27158 if (!SWIG_IsOK(ecode4)) {
27159 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
27160 }
27161 arg4 = static_cast< int >(val4);
27162 }
27163 {
27164 PyThreadState* __tstate = wxPyBeginAllowThreads();
27165 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
27166 wxPyEndAllowThreads(__tstate);
27167 if (PyErr_Occurred()) SWIG_fail;
27168 }
27169 resultobj = SWIG_Py_Void();
27170 return resultobj;
27171fail:
27172 return NULL;
27173}
27174
27175
27176SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27177 PyObject *resultobj = 0;
27178 wxEffects *arg1 = (wxEffects *) 0 ;
27179 wxRect *arg2 = 0 ;
27180 wxDC *arg3 = 0 ;
27181 wxBitmap *arg4 = 0 ;
27182 bool result;
27183 void *argp1 = 0 ;
27184 int res1 = 0 ;
27185 wxRect temp2 ;
27186 void *argp3 = 0 ;
27187 int res3 = 0 ;
27188 void *argp4 = 0 ;
27189 int res4 = 0 ;
27190 PyObject * obj0 = 0 ;
27191 PyObject * obj1 = 0 ;
27192 PyObject * obj2 = 0 ;
27193 PyObject * obj3 = 0 ;
27194 char * kwnames[] = {
27195 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
27196 };
27197
27198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
27200 if (!SWIG_IsOK(res1)) {
27201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
27202 }
27203 arg1 = reinterpret_cast< wxEffects * >(argp1);
27204 {
27205 arg2 = &temp2;
27206 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
27207 }
27208 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27209 if (!SWIG_IsOK(res3)) {
27210 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
27211 }
27212 if (!argp3) {
27213 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
27214 }
27215 arg3 = reinterpret_cast< wxDC * >(argp3);
27216 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
27217 if (!SWIG_IsOK(res4)) {
27218 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
27219 }
27220 if (!argp4) {
27221 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
27222 }
27223 arg4 = reinterpret_cast< wxBitmap * >(argp4);
27224 {
27225 PyThreadState* __tstate = wxPyBeginAllowThreads();
27226 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
27227 wxPyEndAllowThreads(__tstate);
27228 if (PyErr_Occurred()) SWIG_fail;
27229 }
27230 {
27231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27232 }
27233 return resultobj;
27234fail:
27235 return NULL;
27236}
27237
27238
27239SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27240 PyObject *obj;
27241 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27242 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
27243 return SWIG_Py_Void();
27244}
27245
27246SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27247 return SWIG_Python_InitShadowInstance(args);
27248}
27249
27250SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27251 PyObject *resultobj = 0;
27252 int arg1 ;
27253 int arg2 ;
27254 bool arg3 ;
27255 wxSplitterRenderParams *result = 0 ;
27256 int val1 ;
27257 int ecode1 = 0 ;
27258 int val2 ;
27259 int ecode2 = 0 ;
27260 bool val3 ;
27261 int ecode3 = 0 ;
27262 PyObject * obj0 = 0 ;
27263 PyObject * obj1 = 0 ;
27264 PyObject * obj2 = 0 ;
27265 char * kwnames[] = {
27266 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
27267 };
27268
27269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27270 ecode1 = SWIG_AsVal_int(obj0, &val1);
27271 if (!SWIG_IsOK(ecode1)) {
27272 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
27273 }
27274 arg1 = static_cast< int >(val1);
27275 ecode2 = SWIG_AsVal_int(obj1, &val2);
27276 if (!SWIG_IsOK(ecode2)) {
27277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
27278 }
27279 arg2 = static_cast< int >(val2);
27280 ecode3 = SWIG_AsVal_bool(obj2, &val3);
27281 if (!SWIG_IsOK(ecode3)) {
27282 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
27283 }
27284 arg3 = static_cast< bool >(val3);
27285 {
27286 PyThreadState* __tstate = wxPyBeginAllowThreads();
27287 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
27288 wxPyEndAllowThreads(__tstate);
27289 if (PyErr_Occurred()) SWIG_fail;
27290 }
27291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
27292 return resultobj;
27293fail:
27294 return NULL;
27295}
27296
27297
27298SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27299 PyObject *resultobj = 0;
27300 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
27301 void *argp1 = 0 ;
27302 int res1 = 0 ;
27303 PyObject *swig_obj[1] ;
27304
27305 if (!args) SWIG_fail;
27306 swig_obj[0] = args;
27307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
27308 if (!SWIG_IsOK(res1)) {
27309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
27310 }
27311 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
27312 {
27313 PyThreadState* __tstate = wxPyBeginAllowThreads();
27314 delete arg1;
27315
27316 wxPyEndAllowThreads(__tstate);
27317 if (PyErr_Occurred()) SWIG_fail;
27318 }
27319 resultobj = SWIG_Py_Void();
27320 return resultobj;
27321fail:
27322 return NULL;
27323}
27324
27325
27326SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27327 PyObject *resultobj = 0;
27328 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
27329 int result;
27330 void *argp1 = 0 ;
27331 int res1 = 0 ;
27332 PyObject *swig_obj[1] ;
27333
27334 if (!args) SWIG_fail;
27335 swig_obj[0] = args;
27336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
27337 if (!SWIG_IsOK(res1)) {
27338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
27339 }
27340 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
27341 result = (int)(int) ((arg1)->widthSash);
27342 resultobj = SWIG_From_int(static_cast< int >(result));
27343 return resultobj;
27344fail:
27345 return NULL;
27346}
27347
27348
27349SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27350 PyObject *resultobj = 0;
27351 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
27352 int result;
27353 void *argp1 = 0 ;
27354 int res1 = 0 ;
27355 PyObject *swig_obj[1] ;
27356
27357 if (!args) SWIG_fail;
27358 swig_obj[0] = args;
27359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
27360 if (!SWIG_IsOK(res1)) {
27361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
27362 }
27363 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
27364 result = (int)(int) ((arg1)->border);
27365 resultobj = SWIG_From_int(static_cast< int >(result));
27366 return resultobj;
27367fail:
27368 return NULL;
27369}
27370
27371
27372SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27373 PyObject *resultobj = 0;
27374 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
27375 bool result;
27376 void *argp1 = 0 ;
27377 int res1 = 0 ;
27378 PyObject *swig_obj[1] ;
27379
27380 if (!args) SWIG_fail;
27381 swig_obj[0] = args;
27382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
27383 if (!SWIG_IsOK(res1)) {
27384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
27385 }
27386 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
27387 result = (bool)(bool) ((arg1)->isHotSensitive);
27388 resultobj = SWIG_From_bool(static_cast< bool >(result));
27389 return resultobj;
27390fail:
27391 return NULL;
27392}
27393
27394
27395SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27396 PyObject *obj;
27397 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27398 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
27399 return SWIG_Py_Void();
27400}
27401
27402SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27403 return SWIG_Python_InitShadowInstance(args);
27404}
27405
33d6fd3b
RD
27406SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27407 PyObject *resultobj = 0;
27408 wxHeaderButtonParams *result = 0 ;
27409
27410 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
27411 {
27412 PyThreadState* __tstate = wxPyBeginAllowThreads();
27413 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
27414 wxPyEndAllowThreads(__tstate);
27415 if (PyErr_Occurred()) SWIG_fail;
27416 }
27417 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
27418 return resultobj;
27419fail:
27420 return NULL;
27421}
27422
27423
27424SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27425 PyObject *resultobj = 0;
27426 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27427 void *argp1 = 0 ;
27428 int res1 = 0 ;
27429 PyObject *swig_obj[1] ;
27430
27431 if (!args) SWIG_fail;
27432 swig_obj[0] = args;
27433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
27434 if (!SWIG_IsOK(res1)) {
27435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27436 }
27437 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27438 {
27439 PyThreadState* __tstate = wxPyBeginAllowThreads();
27440 delete arg1;
27441
27442 wxPyEndAllowThreads(__tstate);
27443 if (PyErr_Occurred()) SWIG_fail;
27444 }
27445 resultobj = SWIG_Py_Void();
27446 return resultobj;
27447fail:
27448 return NULL;
27449}
27450
27451
27452SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27453 PyObject *resultobj = 0;
27454 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27455 wxColour *arg2 = (wxColour *) 0 ;
27456 void *argp1 = 0 ;
27457 int res1 = 0 ;
27458 wxColour temp2 ;
27459 PyObject *swig_obj[2] ;
27460
27461 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
27462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27463 if (!SWIG_IsOK(res1)) {
27464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27465 }
27466 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27467 {
27468 arg2 = &temp2;
27469 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
27470 }
27471 if (arg1) (arg1)->m_arrowColour = *arg2;
27472
27473 resultobj = SWIG_Py_Void();
27474 return resultobj;
27475fail:
27476 return NULL;
27477}
27478
27479
27480SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27481 PyObject *resultobj = 0;
27482 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27483 wxColour *result = 0 ;
27484 void *argp1 = 0 ;
27485 int res1 = 0 ;
27486 PyObject *swig_obj[1] ;
27487
27488 if (!args) SWIG_fail;
27489 swig_obj[0] = args;
27490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27491 if (!SWIG_IsOK(res1)) {
27492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27493 }
27494 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27495 result = (wxColour *)& ((arg1)->m_arrowColour);
27496 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
27497 return resultobj;
27498fail:
27499 return NULL;
27500}
27501
27502
27503SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27504 PyObject *resultobj = 0;
27505 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27506 wxColour *arg2 = (wxColour *) 0 ;
27507 void *argp1 = 0 ;
27508 int res1 = 0 ;
27509 wxColour temp2 ;
27510 PyObject *swig_obj[2] ;
27511
27512 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
27513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27514 if (!SWIG_IsOK(res1)) {
27515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27516 }
27517 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27518 {
27519 arg2 = &temp2;
27520 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
27521 }
27522 if (arg1) (arg1)->m_selectionColour = *arg2;
27523
27524 resultobj = SWIG_Py_Void();
27525 return resultobj;
27526fail:
27527 return NULL;
27528}
27529
27530
27531SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27532 PyObject *resultobj = 0;
27533 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27534 wxColour *result = 0 ;
27535 void *argp1 = 0 ;
27536 int res1 = 0 ;
27537 PyObject *swig_obj[1] ;
27538
27539 if (!args) SWIG_fail;
27540 swig_obj[0] = args;
27541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27542 if (!SWIG_IsOK(res1)) {
27543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27544 }
27545 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27546 result = (wxColour *)& ((arg1)->m_selectionColour);
27547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
27548 return resultobj;
27549fail:
27550 return NULL;
27551}
27552
27553
27554SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27555 PyObject *resultobj = 0;
27556 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27557 wxString *arg2 = (wxString *) 0 ;
27558 void *argp1 = 0 ;
27559 int res1 = 0 ;
27560 bool temp2 = false ;
27561 PyObject *swig_obj[2] ;
27562
27563 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
27564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27565 if (!SWIG_IsOK(res1)) {
27566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27567 }
27568 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27569 {
27570 arg2 = wxString_in_helper(swig_obj[1]);
27571 if (arg2 == NULL) SWIG_fail;
27572 temp2 = true;
27573 }
27574 if (arg1) (arg1)->m_labelText = *arg2;
27575
27576 resultobj = SWIG_Py_Void();
27577 {
27578 if (temp2)
27579 delete arg2;
27580 }
27581 return resultobj;
27582fail:
27583 {
27584 if (temp2)
27585 delete arg2;
27586 }
27587 return NULL;
27588}
27589
27590
27591SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27592 PyObject *resultobj = 0;
27593 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27594 wxString *result = 0 ;
27595 void *argp1 = 0 ;
27596 int res1 = 0 ;
27597 PyObject *swig_obj[1] ;
27598
27599 if (!args) SWIG_fail;
27600 swig_obj[0] = args;
27601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27602 if (!SWIG_IsOK(res1)) {
27603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27604 }
27605 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27606 result = (wxString *)& ((arg1)->m_labelText);
27607 {
27608#if wxUSE_UNICODE
27609 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27610#else
27611 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27612#endif
27613 }
27614 return resultobj;
27615fail:
27616 return NULL;
27617}
27618
27619
27620SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27621 PyObject *resultobj = 0;
27622 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27623 wxFont *arg2 = (wxFont *) 0 ;
27624 void *argp1 = 0 ;
27625 int res1 = 0 ;
27626 void *argp2 = 0 ;
27627 int res2 = 0 ;
27628 PyObject *swig_obj[2] ;
27629
27630 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
27631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27632 if (!SWIG_IsOK(res1)) {
27633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27634 }
27635 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27636 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
27637 if (!SWIG_IsOK(res2)) {
27638 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
27639 }
27640 arg2 = reinterpret_cast< wxFont * >(argp2);
27641 if (arg1) (arg1)->m_labelFont = *arg2;
27642
27643 resultobj = SWIG_Py_Void();
27644 return resultobj;
27645fail:
27646 return NULL;
27647}
27648
27649
27650SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27651 PyObject *resultobj = 0;
27652 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27653 wxFont *result = 0 ;
27654 void *argp1 = 0 ;
27655 int res1 = 0 ;
27656 PyObject *swig_obj[1] ;
27657
27658 if (!args) SWIG_fail;
27659 swig_obj[0] = args;
27660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27661 if (!SWIG_IsOK(res1)) {
27662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27663 }
27664 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27665 result = (wxFont *)& ((arg1)->m_labelFont);
27666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
27667 return resultobj;
27668fail:
27669 return NULL;
27670}
27671
27672
27673SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27674 PyObject *resultobj = 0;
27675 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27676 wxColour *arg2 = (wxColour *) 0 ;
27677 void *argp1 = 0 ;
27678 int res1 = 0 ;
27679 wxColour temp2 ;
27680 PyObject *swig_obj[2] ;
27681
27682 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
27683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27684 if (!SWIG_IsOK(res1)) {
27685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27686 }
27687 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27688 {
27689 arg2 = &temp2;
27690 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
27691 }
27692 if (arg1) (arg1)->m_labelColour = *arg2;
27693
27694 resultobj = SWIG_Py_Void();
27695 return resultobj;
27696fail:
27697 return NULL;
27698}
27699
27700
27701SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27702 PyObject *resultobj = 0;
27703 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27704 wxColour *result = 0 ;
27705 void *argp1 = 0 ;
27706 int res1 = 0 ;
27707 PyObject *swig_obj[1] ;
27708
27709 if (!args) SWIG_fail;
27710 swig_obj[0] = args;
27711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27712 if (!SWIG_IsOK(res1)) {
27713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27714 }
27715 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27716 result = (wxColour *)& ((arg1)->m_labelColour);
27717 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
27718 return resultobj;
27719fail:
27720 return NULL;
27721}
27722
27723
27724SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27725 PyObject *resultobj = 0;
27726 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27727 wxBitmap *arg2 = (wxBitmap *) 0 ;
27728 void *argp1 = 0 ;
27729 int res1 = 0 ;
27730 void *argp2 = 0 ;
27731 int res2 = 0 ;
27732 PyObject *swig_obj[2] ;
27733
27734 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
27735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27736 if (!SWIG_IsOK(res1)) {
27737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27738 }
27739 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27740 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
27741 if (!SWIG_IsOK(res2)) {
27742 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
27743 }
27744 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27745 if (arg1) (arg1)->m_labelBitmap = *arg2;
27746
27747 resultobj = SWIG_Py_Void();
27748 return resultobj;
27749fail:
27750 return NULL;
27751}
27752
27753
27754SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27755 PyObject *resultobj = 0;
27756 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27757 wxBitmap *result = 0 ;
27758 void *argp1 = 0 ;
27759 int res1 = 0 ;
27760 PyObject *swig_obj[1] ;
27761
27762 if (!args) SWIG_fail;
27763 swig_obj[0] = args;
27764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27765 if (!SWIG_IsOK(res1)) {
27766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27767 }
27768 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27769 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
27770 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
27771 return resultobj;
27772fail:
27773 return NULL;
27774}
27775
27776
27777SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27778 PyObject *resultobj = 0;
27779 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27780 int arg2 ;
27781 void *argp1 = 0 ;
27782 int res1 = 0 ;
27783 int val2 ;
27784 int ecode2 = 0 ;
27785 PyObject *swig_obj[2] ;
27786
27787 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
27788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27789 if (!SWIG_IsOK(res1)) {
27790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27791 }
27792 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27793 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27794 if (!SWIG_IsOK(ecode2)) {
27795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
27796 }
27797 arg2 = static_cast< int >(val2);
27798 if (arg1) (arg1)->m_labelAlignment = arg2;
27799
27800 resultobj = SWIG_Py_Void();
27801 return resultobj;
27802fail:
27803 return NULL;
27804}
27805
27806
27807SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27808 PyObject *resultobj = 0;
27809 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
27810 int result;
27811 void *argp1 = 0 ;
27812 int res1 = 0 ;
27813 PyObject *swig_obj[1] ;
27814
27815 if (!args) SWIG_fail;
27816 swig_obj[0] = args;
27817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
27818 if (!SWIG_IsOK(res1)) {
27819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
27820 }
27821 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
27822 result = (int) ((arg1)->m_labelAlignment);
27823 resultobj = SWIG_From_int(static_cast< int >(result));
27824 return resultobj;
27825fail:
27826 return NULL;
27827}
27828
27829
27830SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27831 PyObject *obj;
27832 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27833 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
27834 return SWIG_Py_Void();
27835}
27836
27837SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27838 return SWIG_Python_InitShadowInstance(args);
27839}
27840
554f62e9
RD
27841SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27842 PyObject *resultobj = 0;
27843 int arg1 ;
27844 int arg2 ;
27845 wxRendererVersion *result = 0 ;
27846 int val1 ;
27847 int ecode1 = 0 ;
27848 int val2 ;
27849 int ecode2 = 0 ;
27850 PyObject * obj0 = 0 ;
27851 PyObject * obj1 = 0 ;
27852 char * kwnames[] = {
27853 (char *) "version_",(char *) "age_", NULL
27854 };
27855
27856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
27857 ecode1 = SWIG_AsVal_int(obj0, &val1);
27858 if (!SWIG_IsOK(ecode1)) {
27859 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
27860 }
27861 arg1 = static_cast< int >(val1);
27862 ecode2 = SWIG_AsVal_int(obj1, &val2);
27863 if (!SWIG_IsOK(ecode2)) {
27864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
27865 }
27866 arg2 = static_cast< int >(val2);
27867 {
27868 PyThreadState* __tstate = wxPyBeginAllowThreads();
27869 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
27870 wxPyEndAllowThreads(__tstate);
27871 if (PyErr_Occurred()) SWIG_fail;
27872 }
27873 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
27874 return resultobj;
27875fail:
27876 return NULL;
27877}
27878
27879
27880SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27881 PyObject *resultobj = 0;
27882 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
27883 void *argp1 = 0 ;
27884 int res1 = 0 ;
27885 PyObject *swig_obj[1] ;
27886
27887 if (!args) SWIG_fail;
27888 swig_obj[0] = args;
27889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
27890 if (!SWIG_IsOK(res1)) {
27891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
27892 }
27893 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27894 {
27895 PyThreadState* __tstate = wxPyBeginAllowThreads();
27896 delete arg1;
27897
27898 wxPyEndAllowThreads(__tstate);
27899 if (PyErr_Occurred()) SWIG_fail;
27900 }
27901 resultobj = SWIG_Py_Void();
27902 return resultobj;
27903fail:
27904 return NULL;
27905}
27906
27907
27908SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27909 PyObject *resultobj = 0;
27910 wxRendererVersion *arg1 = 0 ;
27911 bool result;
27912 void *argp1 = 0 ;
27913 int res1 = 0 ;
27914 PyObject * obj0 = 0 ;
27915 char * kwnames[] = {
27916 (char *) "ver", NULL
27917 };
27918
27919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
27920 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
27921 if (!SWIG_IsOK(res1)) {
27922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
27923 }
27924 if (!argp1) {
27925 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
27926 }
27927 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27928 {
27929 PyThreadState* __tstate = wxPyBeginAllowThreads();
27930 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
27931 wxPyEndAllowThreads(__tstate);
27932 if (PyErr_Occurred()) SWIG_fail;
27933 }
27934 {
27935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27936 }
27937 return resultobj;
27938fail:
27939 return NULL;
27940}
27941
27942
27943SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27944 PyObject *resultobj = 0;
27945 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
27946 int result;
27947 void *argp1 = 0 ;
27948 int res1 = 0 ;
27949 PyObject *swig_obj[1] ;
27950
27951 if (!args) SWIG_fail;
27952 swig_obj[0] = args;
27953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
27954 if (!SWIG_IsOK(res1)) {
27955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
27956 }
27957 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27958 result = (int)(int) ((arg1)->version);
27959 resultobj = SWIG_From_int(static_cast< int >(result));
27960 return resultobj;
27961fail:
27962 return NULL;
27963}
27964
27965
27966SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27967 PyObject *resultobj = 0;
27968 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
27969 int result;
27970 void *argp1 = 0 ;
27971 int res1 = 0 ;
27972 PyObject *swig_obj[1] ;
27973
27974 if (!args) SWIG_fail;
27975 swig_obj[0] = args;
27976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
27977 if (!SWIG_IsOK(res1)) {
27978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
27979 }
27980 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
27981 result = (int)(int) ((arg1)->age);
27982 resultobj = SWIG_From_int(static_cast< int >(result));
27983 return resultobj;
27984fail:
27985 return NULL;
27986}
27987
27988
27989SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27990 PyObject *obj;
27991 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27992 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
27993 return SWIG_Py_Void();
27994}
27995
27996SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27997 return SWIG_Python_InitShadowInstance(args);
27998}
27999
28000SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28001 PyObject *resultobj = 0;
28002 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28003 wxWindow *arg2 = (wxWindow *) 0 ;
28004 wxDC *arg3 = 0 ;
28005 wxRect *arg4 = 0 ;
28006 int arg5 = (int) 0 ;
33d6fd3b
RD
28007 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
28008 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
554f62e9
RD
28009 void *argp1 = 0 ;
28010 int res1 = 0 ;
28011 void *argp2 = 0 ;
28012 int res2 = 0 ;
28013 void *argp3 = 0 ;
28014 int res3 = 0 ;
28015 wxRect temp4 ;
28016 int val5 ;
28017 int ecode5 = 0 ;
33d6fd3b
RD
28018 int val6 ;
28019 int ecode6 = 0 ;
28020 void *argp7 = 0 ;
28021 int res7 = 0 ;
554f62e9
RD
28022 PyObject * obj0 = 0 ;
28023 PyObject * obj1 = 0 ;
28024 PyObject * obj2 = 0 ;
28025 PyObject * obj3 = 0 ;
28026 PyObject * obj4 = 0 ;
33d6fd3b
RD
28027 PyObject * obj5 = 0 ;
28028 PyObject * obj6 = 0 ;
554f62e9 28029 char * kwnames[] = {
33d6fd3b 28030 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
554f62e9
RD
28031 };
28032
33d6fd3b 28033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
554f62e9
RD
28034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28035 if (!SWIG_IsOK(res1)) {
28036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28037 }
28038 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28039 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28040 if (!SWIG_IsOK(res2)) {
28041 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
28042 }
28043 arg2 = reinterpret_cast< wxWindow * >(argp2);
28044 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28045 if (!SWIG_IsOK(res3)) {
28046 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
28047 }
28048 if (!argp3) {
28049 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
28050 }
28051 arg3 = reinterpret_cast< wxDC * >(argp3);
28052 {
28053 arg4 = &temp4;
28054 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28055 }
28056 if (obj4) {
28057 ecode5 = SWIG_AsVal_int(obj4, &val5);
28058 if (!SWIG_IsOK(ecode5)) {
28059 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
28060 }
28061 arg5 = static_cast< int >(val5);
28062 }
33d6fd3b
RD
28063 if (obj5) {
28064 ecode6 = SWIG_AsVal_int(obj5, &val6);
28065 if (!SWIG_IsOK(ecode6)) {
28066 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
28067 }
28068 arg6 = static_cast< wxHeaderSortIconType >(val6);
28069 }
28070 if (obj6) {
28071 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
28072 if (!SWIG_IsOK(res7)) {
28073 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
28074 }
28075 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
28076 }
28077 {
28078 PyThreadState* __tstate = wxPyBeginAllowThreads();
28079 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
28080 wxPyEndAllowThreads(__tstate);
28081 if (PyErr_Occurred()) SWIG_fail;
28082 }
28083 resultobj = SWIG_Py_Void();
28084 return resultobj;
28085fail:
28086 return NULL;
28087}
28088
28089
28090SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28091 PyObject *resultobj = 0;
28092 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28093 wxWindow *arg2 = (wxWindow *) 0 ;
28094 wxDC *arg3 = 0 ;
28095 wxRect *arg4 = 0 ;
28096 int arg5 = (int) 0 ;
28097 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
28098 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
28099 void *argp1 = 0 ;
28100 int res1 = 0 ;
28101 void *argp2 = 0 ;
28102 int res2 = 0 ;
28103 void *argp3 = 0 ;
28104 int res3 = 0 ;
28105 wxRect temp4 ;
28106 int val5 ;
28107 int ecode5 = 0 ;
28108 int val6 ;
28109 int ecode6 = 0 ;
28110 void *argp7 = 0 ;
28111 int res7 = 0 ;
28112 PyObject * obj0 = 0 ;
28113 PyObject * obj1 = 0 ;
28114 PyObject * obj2 = 0 ;
28115 PyObject * obj3 = 0 ;
28116 PyObject * obj4 = 0 ;
28117 PyObject * obj5 = 0 ;
28118 PyObject * obj6 = 0 ;
28119 char * kwnames[] = {
28120 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
28121 };
28122
28123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28125 if (!SWIG_IsOK(res1)) {
28126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28127 }
28128 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28129 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28130 if (!SWIG_IsOK(res2)) {
28131 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
28132 }
28133 arg2 = reinterpret_cast< wxWindow * >(argp2);
28134 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28135 if (!SWIG_IsOK(res3)) {
28136 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
28137 }
28138 if (!argp3) {
28139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
28140 }
28141 arg3 = reinterpret_cast< wxDC * >(argp3);
28142 {
28143 arg4 = &temp4;
28144 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28145 }
28146 if (obj4) {
28147 ecode5 = SWIG_AsVal_int(obj4, &val5);
28148 if (!SWIG_IsOK(ecode5)) {
28149 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
28150 }
28151 arg5 = static_cast< int >(val5);
28152 }
28153 if (obj5) {
28154 ecode6 = SWIG_AsVal_int(obj5, &val6);
28155 if (!SWIG_IsOK(ecode6)) {
28156 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
28157 }
28158 arg6 = static_cast< wxHeaderSortIconType >(val6);
28159 }
28160 if (obj6) {
28161 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
28162 if (!SWIG_IsOK(res7)) {
28163 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
28164 }
28165 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
28166 }
554f62e9
RD
28167 {
28168 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 28169 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
554f62e9
RD
28170 wxPyEndAllowThreads(__tstate);
28171 if (PyErr_Occurred()) SWIG_fail;
28172 }
28173 resultobj = SWIG_Py_Void();
28174 return resultobj;
28175fail:
28176 return NULL;
28177}
28178
28179
33d6fd3b
RD
28180SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28181 PyObject *resultobj = 0;
28182 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28183 wxWindow *arg2 = (wxWindow *) 0 ;
28184 int result;
28185 void *argp1 = 0 ;
28186 int res1 = 0 ;
28187 void *argp2 = 0 ;
28188 int res2 = 0 ;
28189 PyObject * obj0 = 0 ;
28190 PyObject * obj1 = 0 ;
28191 char * kwnames[] = {
28192 (char *) "self",(char *) "win", NULL
28193 };
28194
28195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
28196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28197 if (!SWIG_IsOK(res1)) {
28198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28199 }
28200 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28201 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28202 if (!SWIG_IsOK(res2)) {
28203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
28204 }
28205 arg2 = reinterpret_cast< wxWindow * >(argp2);
28206 {
28207 PyThreadState* __tstate = wxPyBeginAllowThreads();
28208 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
28209 wxPyEndAllowThreads(__tstate);
28210 if (PyErr_Occurred()) SWIG_fail;
28211 }
28212 resultobj = SWIG_From_int(static_cast< int >(result));
28213 return resultobj;
28214fail:
28215 return NULL;
28216}
28217
28218
554f62e9
RD
28219SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28220 PyObject *resultobj = 0;
28221 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28222 wxWindow *arg2 = (wxWindow *) 0 ;
28223 wxDC *arg3 = 0 ;
28224 wxRect *arg4 = 0 ;
28225 int arg5 = (int) 0 ;
28226 void *argp1 = 0 ;
28227 int res1 = 0 ;
28228 void *argp2 = 0 ;
28229 int res2 = 0 ;
28230 void *argp3 = 0 ;
28231 int res3 = 0 ;
28232 wxRect temp4 ;
28233 int val5 ;
28234 int ecode5 = 0 ;
28235 PyObject * obj0 = 0 ;
28236 PyObject * obj1 = 0 ;
28237 PyObject * obj2 = 0 ;
28238 PyObject * obj3 = 0 ;
28239 PyObject * obj4 = 0 ;
28240 char * kwnames[] = {
28241 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
28242 };
28243
28244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28246 if (!SWIG_IsOK(res1)) {
28247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28248 }
28249 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28250 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28251 if (!SWIG_IsOK(res2)) {
28252 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
28253 }
28254 arg2 = reinterpret_cast< wxWindow * >(argp2);
28255 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28256 if (!SWIG_IsOK(res3)) {
28257 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
28258 }
28259 if (!argp3) {
28260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
28261 }
28262 arg3 = reinterpret_cast< wxDC * >(argp3);
28263 {
28264 arg4 = &temp4;
28265 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28266 }
28267 if (obj4) {
28268 ecode5 = SWIG_AsVal_int(obj4, &val5);
28269 if (!SWIG_IsOK(ecode5)) {
28270 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
28271 }
28272 arg5 = static_cast< int >(val5);
28273 }
28274 {
28275 PyThreadState* __tstate = wxPyBeginAllowThreads();
28276 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
28277 wxPyEndAllowThreads(__tstate);
28278 if (PyErr_Occurred()) SWIG_fail;
28279 }
28280 resultobj = SWIG_Py_Void();
28281 return resultobj;
28282fail:
28283 return NULL;
28284}
28285
28286
28287SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28288 PyObject *resultobj = 0;
28289 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28290 wxWindow *arg2 = (wxWindow *) 0 ;
28291 wxDC *arg3 = 0 ;
28292 wxRect *arg4 = 0 ;
28293 int arg5 = (int) 0 ;
28294 void *argp1 = 0 ;
28295 int res1 = 0 ;
28296 void *argp2 = 0 ;
28297 int res2 = 0 ;
28298 void *argp3 = 0 ;
28299 int res3 = 0 ;
28300 wxRect temp4 ;
28301 int val5 ;
28302 int ecode5 = 0 ;
28303 PyObject * obj0 = 0 ;
28304 PyObject * obj1 = 0 ;
28305 PyObject * obj2 = 0 ;
28306 PyObject * obj3 = 0 ;
28307 PyObject * obj4 = 0 ;
28308 char * kwnames[] = {
28309 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
28310 };
28311
28312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28314 if (!SWIG_IsOK(res1)) {
28315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28316 }
28317 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28318 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28319 if (!SWIG_IsOK(res2)) {
28320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
28321 }
28322 arg2 = reinterpret_cast< wxWindow * >(argp2);
28323 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28324 if (!SWIG_IsOK(res3)) {
28325 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
28326 }
28327 if (!argp3) {
28328 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
28329 }
28330 arg3 = reinterpret_cast< wxDC * >(argp3);
28331 {
28332 arg4 = &temp4;
28333 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28334 }
28335 if (obj4) {
28336 ecode5 = SWIG_AsVal_int(obj4, &val5);
28337 if (!SWIG_IsOK(ecode5)) {
28338 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
28339 }
28340 arg5 = static_cast< int >(val5);
28341 }
28342 {
28343 PyThreadState* __tstate = wxPyBeginAllowThreads();
28344 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
28345 wxPyEndAllowThreads(__tstate);
28346 if (PyErr_Occurred()) SWIG_fail;
28347 }
28348 resultobj = SWIG_Py_Void();
28349 return resultobj;
28350fail:
28351 return NULL;
28352}
28353
28354
28355SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28356 PyObject *resultobj = 0;
28357 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28358 wxWindow *arg2 = (wxWindow *) 0 ;
28359 wxDC *arg3 = 0 ;
28360 wxSize *arg4 = 0 ;
28361 int arg5 ;
28362 wxOrientation arg6 ;
28363 int arg7 = (int) 0 ;
28364 void *argp1 = 0 ;
28365 int res1 = 0 ;
28366 void *argp2 = 0 ;
28367 int res2 = 0 ;
28368 void *argp3 = 0 ;
28369 int res3 = 0 ;
28370 wxSize temp4 ;
28371 int val5 ;
28372 int ecode5 = 0 ;
28373 int val6 ;
28374 int ecode6 = 0 ;
28375 int val7 ;
28376 int ecode7 = 0 ;
28377 PyObject * obj0 = 0 ;
28378 PyObject * obj1 = 0 ;
28379 PyObject * obj2 = 0 ;
28380 PyObject * obj3 = 0 ;
28381 PyObject * obj4 = 0 ;
28382 PyObject * obj5 = 0 ;
28383 PyObject * obj6 = 0 ;
28384 char * kwnames[] = {
28385 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
28386 };
28387
28388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28390 if (!SWIG_IsOK(res1)) {
28391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28392 }
28393 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28394 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28395 if (!SWIG_IsOK(res2)) {
28396 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
28397 }
28398 arg2 = reinterpret_cast< wxWindow * >(argp2);
28399 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28400 if (!SWIG_IsOK(res3)) {
28401 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
28402 }
28403 if (!argp3) {
28404 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
28405 }
28406 arg3 = reinterpret_cast< wxDC * >(argp3);
28407 {
28408 arg4 = &temp4;
28409 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28410 }
28411 ecode5 = SWIG_AsVal_int(obj4, &val5);
28412 if (!SWIG_IsOK(ecode5)) {
28413 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
28414 }
28415 arg5 = static_cast< int >(val5);
28416 ecode6 = SWIG_AsVal_int(obj5, &val6);
28417 if (!SWIG_IsOK(ecode6)) {
28418 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
28419 }
28420 arg6 = static_cast< wxOrientation >(val6);
28421 if (obj6) {
28422 ecode7 = SWIG_AsVal_int(obj6, &val7);
28423 if (!SWIG_IsOK(ecode7)) {
28424 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
28425 }
28426 arg7 = static_cast< int >(val7);
28427 }
28428 {
28429 PyThreadState* __tstate = wxPyBeginAllowThreads();
28430 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
28431 wxPyEndAllowThreads(__tstate);
28432 if (PyErr_Occurred()) SWIG_fail;
28433 }
28434 resultobj = SWIG_Py_Void();
28435 return resultobj;
28436fail:
28437 return NULL;
28438}
28439
28440
28441SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28442 PyObject *resultobj = 0;
28443 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28444 wxWindow *arg2 = (wxWindow *) 0 ;
28445 wxDC *arg3 = 0 ;
28446 wxRect *arg4 = 0 ;
28447 int arg5 = (int) 0 ;
28448 void *argp1 = 0 ;
28449 int res1 = 0 ;
28450 void *argp2 = 0 ;
28451 int res2 = 0 ;
28452 void *argp3 = 0 ;
28453 int res3 = 0 ;
28454 wxRect temp4 ;
28455 int val5 ;
28456 int ecode5 = 0 ;
28457 PyObject * obj0 = 0 ;
28458 PyObject * obj1 = 0 ;
28459 PyObject * obj2 = 0 ;
28460 PyObject * obj3 = 0 ;
28461 PyObject * obj4 = 0 ;
28462 char * kwnames[] = {
28463 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
28464 };
28465
28466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28468 if (!SWIG_IsOK(res1)) {
28469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28470 }
28471 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28472 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28473 if (!SWIG_IsOK(res2)) {
28474 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
28475 }
28476 arg2 = reinterpret_cast< wxWindow * >(argp2);
28477 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28478 if (!SWIG_IsOK(res3)) {
28479 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
28480 }
28481 if (!argp3) {
28482 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
28483 }
28484 arg3 = reinterpret_cast< wxDC * >(argp3);
28485 {
28486 arg4 = &temp4;
28487 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28488 }
28489 if (obj4) {
28490 ecode5 = SWIG_AsVal_int(obj4, &val5);
28491 if (!SWIG_IsOK(ecode5)) {
28492 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
28493 }
28494 arg5 = static_cast< int >(val5);
28495 }
28496 {
28497 PyThreadState* __tstate = wxPyBeginAllowThreads();
28498 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
28499 wxPyEndAllowThreads(__tstate);
28500 if (PyErr_Occurred()) SWIG_fail;
28501 }
28502 resultobj = SWIG_Py_Void();
28503 return resultobj;
28504fail:
28505 return NULL;
28506}
28507
28508
28509SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28510 PyObject *resultobj = 0;
28511 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28512 wxWindow *arg2 = (wxWindow *) 0 ;
28513 wxDC *arg3 = 0 ;
28514 wxRect *arg4 = 0 ;
28515 int arg5 = (int) 0 ;
28516 void *argp1 = 0 ;
28517 int res1 = 0 ;
28518 void *argp2 = 0 ;
28519 int res2 = 0 ;
28520 void *argp3 = 0 ;
28521 int res3 = 0 ;
28522 wxRect temp4 ;
28523 int val5 ;
28524 int ecode5 = 0 ;
28525 PyObject * obj0 = 0 ;
28526 PyObject * obj1 = 0 ;
28527 PyObject * obj2 = 0 ;
28528 PyObject * obj3 = 0 ;
28529 PyObject * obj4 = 0 ;
28530 char * kwnames[] = {
28531 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
28532 };
28533
28534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28536 if (!SWIG_IsOK(res1)) {
28537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28538 }
28539 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28540 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28541 if (!SWIG_IsOK(res2)) {
28542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
28543 }
28544 arg2 = reinterpret_cast< wxWindow * >(argp2);
28545 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28546 if (!SWIG_IsOK(res3)) {
28547 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
28548 }
28549 if (!argp3) {
28550 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
28551 }
28552 arg3 = reinterpret_cast< wxDC * >(argp3);
28553 {
28554 arg4 = &temp4;
28555 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28556 }
28557 if (obj4) {
28558 ecode5 = SWIG_AsVal_int(obj4, &val5);
28559 if (!SWIG_IsOK(ecode5)) {
28560 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
28561 }
28562 arg5 = static_cast< int >(val5);
28563 }
28564 {
28565 PyThreadState* __tstate = wxPyBeginAllowThreads();
28566 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
28567 wxPyEndAllowThreads(__tstate);
28568 if (PyErr_Occurred()) SWIG_fail;
28569 }
28570 resultobj = SWIG_Py_Void();
28571 return resultobj;
28572fail:
28573 return NULL;
28574}
28575
28576
f460c29d
RD
28577SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28578 PyObject *resultobj = 0;
28579 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28580 wxWindow *arg2 = (wxWindow *) 0 ;
28581 wxDC *arg3 = 0 ;
28582 wxRect *arg4 = 0 ;
28583 int arg5 = (int) 0 ;
28584 void *argp1 = 0 ;
28585 int res1 = 0 ;
28586 void *argp2 = 0 ;
28587 int res2 = 0 ;
28588 void *argp3 = 0 ;
28589 int res3 = 0 ;
28590 wxRect temp4 ;
28591 int val5 ;
28592 int ecode5 = 0 ;
28593 PyObject * obj0 = 0 ;
28594 PyObject * obj1 = 0 ;
28595 PyObject * obj2 = 0 ;
28596 PyObject * obj3 = 0 ;
28597 PyObject * obj4 = 0 ;
28598 char * kwnames[] = {
28599 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
28600 };
28601
28602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28604 if (!SWIG_IsOK(res1)) {
28605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28606 }
28607 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28608 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28609 if (!SWIG_IsOK(res2)) {
28610 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
28611 }
28612 arg2 = reinterpret_cast< wxWindow * >(argp2);
28613 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28614 if (!SWIG_IsOK(res3)) {
28615 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
28616 }
28617 if (!argp3) {
28618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
28619 }
28620 arg3 = reinterpret_cast< wxDC * >(argp3);
28621 {
28622 arg4 = &temp4;
28623 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28624 }
28625 if (obj4) {
28626 ecode5 = SWIG_AsVal_int(obj4, &val5);
28627 if (!SWIG_IsOK(ecode5)) {
28628 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
28629 }
28630 arg5 = static_cast< int >(val5);
28631 }
28632 {
28633 PyThreadState* __tstate = wxPyBeginAllowThreads();
28634 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
28635 wxPyEndAllowThreads(__tstate);
28636 if (PyErr_Occurred()) SWIG_fail;
28637 }
28638 resultobj = SWIG_Py_Void();
28639 return resultobj;
28640fail:
28641 return NULL;
28642}
28643
28644
28645SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28646 PyObject *resultobj = 0;
28647 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28648 wxWindow *arg2 = (wxWindow *) 0 ;
28649 wxDC *arg3 = 0 ;
28650 wxRect *arg4 = 0 ;
28651 int arg5 = (int) 0 ;
28652 void *argp1 = 0 ;
28653 int res1 = 0 ;
28654 void *argp2 = 0 ;
28655 int res2 = 0 ;
28656 void *argp3 = 0 ;
28657 int res3 = 0 ;
28658 wxRect temp4 ;
28659 int val5 ;
28660 int ecode5 = 0 ;
28661 PyObject * obj0 = 0 ;
28662 PyObject * obj1 = 0 ;
28663 PyObject * obj2 = 0 ;
28664 PyObject * obj3 = 0 ;
28665 PyObject * obj4 = 0 ;
28666 char * kwnames[] = {
28667 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
28668 };
28669
28670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28672 if (!SWIG_IsOK(res1)) {
28673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28674 }
28675 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28676 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28677 if (!SWIG_IsOK(res2)) {
28678 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
28679 }
28680 arg2 = reinterpret_cast< wxWindow * >(argp2);
28681 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28682 if (!SWIG_IsOK(res3)) {
28683 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
28684 }
28685 if (!argp3) {
28686 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
28687 }
28688 arg3 = reinterpret_cast< wxDC * >(argp3);
28689 {
28690 arg4 = &temp4;
28691 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28692 }
28693 if (obj4) {
28694 ecode5 = SWIG_AsVal_int(obj4, &val5);
28695 if (!SWIG_IsOK(ecode5)) {
28696 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
28697 }
28698 arg5 = static_cast< int >(val5);
28699 }
28700 {
28701 PyThreadState* __tstate = wxPyBeginAllowThreads();
28702 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
28703 wxPyEndAllowThreads(__tstate);
28704 if (PyErr_Occurred()) SWIG_fail;
28705 }
28706 resultobj = SWIG_Py_Void();
28707 return resultobj;
28708fail:
28709 return NULL;
28710}
28711
28712
28713SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50efceee
RD
28714 PyObject *resultobj = 0;
28715 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28716 wxWindow *arg2 = (wxWindow *) 0 ;
28717 wxDC *arg3 = 0 ;
28718 wxRect *arg4 = 0 ;
28719 int arg5 = (int) 0 ;
28720 void *argp1 = 0 ;
28721 int res1 = 0 ;
28722 void *argp2 = 0 ;
28723 int res2 = 0 ;
28724 void *argp3 = 0 ;
28725 int res3 = 0 ;
28726 wxRect temp4 ;
28727 int val5 ;
28728 int ecode5 = 0 ;
28729 PyObject * obj0 = 0 ;
28730 PyObject * obj1 = 0 ;
28731 PyObject * obj2 = 0 ;
28732 PyObject * obj3 = 0 ;
28733 PyObject * obj4 = 0 ;
28734 char * kwnames[] = {
28735 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
28736 };
28737
f460c29d 28738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
50efceee
RD
28739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28740 if (!SWIG_IsOK(res1)) {
f460c29d 28741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
50efceee
RD
28742 }
28743 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28744 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28745 if (!SWIG_IsOK(res2)) {
f460c29d 28746 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
50efceee
RD
28747 }
28748 arg2 = reinterpret_cast< wxWindow * >(argp2);
28749 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28750 if (!SWIG_IsOK(res3)) {
f460c29d 28751 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
28752 }
28753 if (!argp3) {
f460c29d 28754 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
28755 }
28756 arg3 = reinterpret_cast< wxDC * >(argp3);
28757 {
28758 arg4 = &temp4;
28759 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28760 }
28761 if (obj4) {
28762 ecode5 = SWIG_AsVal_int(obj4, &val5);
28763 if (!SWIG_IsOK(ecode5)) {
f460c29d 28764 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
50efceee
RD
28765 }
28766 arg5 = static_cast< int >(val5);
28767 }
28768 {
28769 PyThreadState* __tstate = wxPyBeginAllowThreads();
f460c29d 28770 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
50efceee
RD
28771 wxPyEndAllowThreads(__tstate);
28772 if (PyErr_Occurred()) SWIG_fail;
28773 }
28774 resultobj = SWIG_Py_Void();
28775 return resultobj;
28776fail:
28777 return NULL;
28778}
28779
28780
554f62e9
RD
28781SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28782 PyObject *resultobj = 0;
28783 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28784 wxWindow *arg2 = (wxWindow *) 0 ;
28785 SwigValueWrapper<wxSplitterRenderParams > result;
28786 void *argp1 = 0 ;
28787 int res1 = 0 ;
28788 void *argp2 = 0 ;
28789 int res2 = 0 ;
28790 PyObject * obj0 = 0 ;
28791 PyObject * obj1 = 0 ;
28792 char * kwnames[] = {
28793 (char *) "self",(char *) "win", NULL
28794 };
28795
28796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
28797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28798 if (!SWIG_IsOK(res1)) {
28799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28800 }
28801 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28802 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28803 if (!SWIG_IsOK(res2)) {
28804 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
28805 }
28806 arg2 = reinterpret_cast< wxWindow * >(argp2);
28807 {
28808 PyThreadState* __tstate = wxPyBeginAllowThreads();
28809 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
28810 wxPyEndAllowThreads(__tstate);
28811 if (PyErr_Occurred()) SWIG_fail;
28812 }
28813 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
28814 return resultobj;
28815fail:
28816 return NULL;
28817}
28818
28819
28820SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28821 PyObject *resultobj = 0;
28822 wxRendererNative *result = 0 ;
28823
28824 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
28825 {
704eda0c 28826 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 28827 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 28828 {
554f62e9
RD
28829 wxRendererNative &_result_ref = wxRendererNative::Get();
28830 result = (wxRendererNative *) &_result_ref;
093d3ff1 28831 }
554f62e9
RD
28832 wxPyEndAllowThreads(__tstate);
28833 if (PyErr_Occurred()) SWIG_fail;
28834 }
28835 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28836 return resultobj;
28837fail:
28838 return NULL;
28839}
28840
28841
28842SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28843 PyObject *resultobj = 0;
28844 wxRendererNative *result = 0 ;
28845
28846 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
28847 {
704eda0c 28848 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 28849 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 28850 {
554f62e9
RD
28851 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
28852 result = (wxRendererNative *) &_result_ref;
be9b1dca 28853 }
554f62e9
RD
28854 wxPyEndAllowThreads(__tstate);
28855 if (PyErr_Occurred()) SWIG_fail;
28856 }
28857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28858 return resultobj;
28859fail:
28860 return NULL;
28861}
28862
28863
28864SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28865 PyObject *resultobj = 0;
28866 wxRendererNative *result = 0 ;
28867
28868 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
28869 {
704eda0c 28870 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 28871 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 28872 {
554f62e9
RD
28873 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
28874 result = (wxRendererNative *) &_result_ref;
be9b1dca 28875 }
554f62e9
RD
28876 wxPyEndAllowThreads(__tstate);
28877 if (PyErr_Occurred()) SWIG_fail;
28878 }
28879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28880 return resultobj;
28881fail:
28882 return NULL;
28883}
28884
28885
28886SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28887 PyObject *resultobj = 0;
28888 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28889 wxRendererNative *result = 0 ;
28890 void *argp1 = 0 ;
28891 int res1 = 0 ;
28892 PyObject * obj0 = 0 ;
28893 char * kwnames[] = {
28894 (char *) "renderer", NULL
28895 };
28896
28897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
28898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28899 if (!SWIG_IsOK(res1)) {
28900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
28901 }
28902 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28903 {
704eda0c 28904 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9
RD
28905 PyThreadState* __tstate = wxPyBeginAllowThreads();
28906 result = (wxRendererNative *)wxRendererNative::Set(arg1);
28907 wxPyEndAllowThreads(__tstate);
28908 if (PyErr_Occurred()) SWIG_fail;
28909 }
28910 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
28911 return resultobj;
28912fail:
28913 return NULL;
28914}
28915
28916
28917SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28918 PyObject *resultobj = 0;
28919 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
28920 SwigValueWrapper<wxRendererVersion > result;
28921 void *argp1 = 0 ;
28922 int res1 = 0 ;
28923 PyObject *swig_obj[1] ;
28924
28925 if (!args) SWIG_fail;
28926 swig_obj[0] = args;
28927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
28928 if (!SWIG_IsOK(res1)) {
28929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
28930 }
28931 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
28932 {
28933 PyThreadState* __tstate = wxPyBeginAllowThreads();
28934 result = ((wxRendererNative const *)arg1)->GetVersion();
28935 wxPyEndAllowThreads(__tstate);
28936 if (PyErr_Occurred()) SWIG_fail;
28937 }
28938 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
28939 return resultobj;
28940fail:
28941 return NULL;
28942}
28943
28944
28945SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28946 PyObject *obj;
28947 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28948 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
28949 return SWIG_Py_Void();
28950}
28951
27e45892
RD
28952SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28953 PyObject *resultobj = 0;
28954 wxPseudoDC *result = 0 ;
28955
28956 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
28957 {
28958 PyThreadState* __tstate = wxPyBeginAllowThreads();
28959 result = (wxPseudoDC *)new wxPseudoDC();
28960 wxPyEndAllowThreads(__tstate);
28961 if (PyErr_Occurred()) SWIG_fail;
28962 }
28963 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
28964 return resultobj;
28965fail:
28966 return NULL;
28967}
28968
28969
28970SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28971 PyObject *resultobj = 0;
28972 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28973 void *argp1 = 0 ;
28974 int res1 = 0 ;
28975 PyObject *swig_obj[1] ;
28976
28977 if (!args) SWIG_fail;
28978 swig_obj[0] = args;
28979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28980 if (!SWIG_IsOK(res1)) {
28981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28982 }
28983 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28984 {
28985 PyThreadState* __tstate = wxPyBeginAllowThreads();
28986 (arg1)->BeginDrawing();
28987 wxPyEndAllowThreads(__tstate);
28988 if (PyErr_Occurred()) SWIG_fail;
28989 }
28990 resultobj = SWIG_Py_Void();
28991 return resultobj;
28992fail:
28993 return NULL;
28994}
28995
28996
28997SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28998 PyObject *resultobj = 0;
28999 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29000 void *argp1 = 0 ;
29001 int res1 = 0 ;
29002 PyObject *swig_obj[1] ;
29003
29004 if (!args) SWIG_fail;
29005 swig_obj[0] = args;
29006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29007 if (!SWIG_IsOK(res1)) {
29008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29009 }
29010 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29011 {
29012 PyThreadState* __tstate = wxPyBeginAllowThreads();
29013 (arg1)->EndDrawing();
29014 wxPyEndAllowThreads(__tstate);
29015 if (PyErr_Occurred()) SWIG_fail;
29016 }
29017 resultobj = SWIG_Py_Void();
29018 return resultobj;
29019fail:
29020 return NULL;
29021}
29022
29023
29024SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29025 PyObject *resultobj = 0;
29026 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29027 void *argp1 = 0 ;
29028 int res1 = 0 ;
29029 PyObject *swig_obj[1] ;
29030
29031 if (!args) SWIG_fail;
29032 swig_obj[0] = args;
29033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
29034 if (!SWIG_IsOK(res1)) {
29035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29036 }
29037 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29038 {
29039 PyThreadState* __tstate = wxPyBeginAllowThreads();
29040 delete arg1;
29041
29042 wxPyEndAllowThreads(__tstate);
29043 if (PyErr_Occurred()) SWIG_fail;
29044 }
29045 resultobj = SWIG_Py_Void();
29046 return resultobj;
29047fail:
29048 return NULL;
29049}
29050
29051
29052SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29053 PyObject *resultobj = 0;
29054 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29055 void *argp1 = 0 ;
29056 int res1 = 0 ;
29057 PyObject *swig_obj[1] ;
29058
29059 if (!args) SWIG_fail;
29060 swig_obj[0] = args;
29061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29062 if (!SWIG_IsOK(res1)) {
29063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29064 }
29065 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29066 {
29067 PyThreadState* __tstate = wxPyBeginAllowThreads();
29068 (arg1)->RemoveAll();
29069 wxPyEndAllowThreads(__tstate);
29070 if (PyErr_Occurred()) SWIG_fail;
29071 }
29072 resultobj = SWIG_Py_Void();
29073 return resultobj;
29074fail:
29075 return NULL;
29076}
29077
29078
29079SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29080 PyObject *resultobj = 0;
29081 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29082 int result;
29083 void *argp1 = 0 ;
29084 int res1 = 0 ;
29085 PyObject *swig_obj[1] ;
29086
29087 if (!args) SWIG_fail;
29088 swig_obj[0] = args;
29089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29090 if (!SWIG_IsOK(res1)) {
29091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29092 }
29093 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29094 {
29095 PyThreadState* __tstate = wxPyBeginAllowThreads();
29096 result = (int)(arg1)->GetLen();
29097 wxPyEndAllowThreads(__tstate);
29098 if (PyErr_Occurred()) SWIG_fail;
29099 }
29100 resultobj = SWIG_From_int(static_cast< int >(result));
29101 return resultobj;
29102fail:
29103 return NULL;
29104}
29105
29106
29107SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29108 PyObject *resultobj = 0;
29109 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29110 int arg2 ;
29111 void *argp1 = 0 ;
29112 int res1 = 0 ;
29113 int val2 ;
29114 int ecode2 = 0 ;
29115 PyObject * obj0 = 0 ;
29116 PyObject * obj1 = 0 ;
29117 char * kwnames[] = {
29118 (char *) "self",(char *) "id", NULL
29119 };
29120
29121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
29122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29123 if (!SWIG_IsOK(res1)) {
29124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29125 }
29126 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29127 ecode2 = SWIG_AsVal_int(obj1, &val2);
29128 if (!SWIG_IsOK(ecode2)) {
29129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
29130 }
29131 arg2 = static_cast< int >(val2);
29132 {
29133 PyThreadState* __tstate = wxPyBeginAllowThreads();
29134 (arg1)->SetId(arg2);
29135 wxPyEndAllowThreads(__tstate);
29136 if (PyErr_Occurred()) SWIG_fail;
29137 }
29138 resultobj = SWIG_Py_Void();
29139 return resultobj;
29140fail:
29141 return NULL;
29142}
29143
29144
29145SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29146 PyObject *resultobj = 0;
29147 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29148 int arg2 ;
29149 void *argp1 = 0 ;
29150 int res1 = 0 ;
29151 int val2 ;
29152 int ecode2 = 0 ;
29153 PyObject * obj0 = 0 ;
29154 PyObject * obj1 = 0 ;
29155 char * kwnames[] = {
29156 (char *) "self",(char *) "id", NULL
29157 };
29158
29159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
29160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29161 if (!SWIG_IsOK(res1)) {
29162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29163 }
29164 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29165 ecode2 = SWIG_AsVal_int(obj1, &val2);
29166 if (!SWIG_IsOK(ecode2)) {
29167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
29168 }
29169 arg2 = static_cast< int >(val2);
29170 {
29171 PyThreadState* __tstate = wxPyBeginAllowThreads();
29172 (arg1)->ClearId(arg2);
29173 wxPyEndAllowThreads(__tstate);
29174 if (PyErr_Occurred()) SWIG_fail;
29175 }
29176 resultobj = SWIG_Py_Void();
29177 return resultobj;
29178fail:
29179 return NULL;
29180}
29181
29182
29183SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29184 PyObject *resultobj = 0;
29185 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29186 int arg2 ;
29187 void *argp1 = 0 ;
29188 int res1 = 0 ;
29189 int val2 ;
29190 int ecode2 = 0 ;
29191 PyObject * obj0 = 0 ;
29192 PyObject * obj1 = 0 ;
29193 char * kwnames[] = {
29194 (char *) "self",(char *) "id", NULL
29195 };
29196
29197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
29198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29199 if (!SWIG_IsOK(res1)) {
29200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29201 }
29202 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29203 ecode2 = SWIG_AsVal_int(obj1, &val2);
29204 if (!SWIG_IsOK(ecode2)) {
29205 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
29206 }
29207 arg2 = static_cast< int >(val2);
29208 {
29209 PyThreadState* __tstate = wxPyBeginAllowThreads();
29210 (arg1)->RemoveId(arg2);
29211 wxPyEndAllowThreads(__tstate);
29212 if (PyErr_Occurred()) SWIG_fail;
29213 }
29214 resultobj = SWIG_Py_Void();
29215 return resultobj;
29216fail:
29217 return NULL;
29218}
29219
29220
29221SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29222 PyObject *resultobj = 0;
29223 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29224 int arg2 ;
29225 int arg3 ;
29226 int arg4 ;
29227 void *argp1 = 0 ;
29228 int res1 = 0 ;
29229 int val2 ;
29230 int ecode2 = 0 ;
29231 int val3 ;
29232 int ecode3 = 0 ;
29233 int val4 ;
29234 int ecode4 = 0 ;
29235 PyObject * obj0 = 0 ;
29236 PyObject * obj1 = 0 ;
29237 PyObject * obj2 = 0 ;
29238 PyObject * obj3 = 0 ;
29239 char * kwnames[] = {
29240 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
29241 };
29242
29243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29245 if (!SWIG_IsOK(res1)) {
29246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29247 }
29248 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29249 ecode2 = SWIG_AsVal_int(obj1, &val2);
29250 if (!SWIG_IsOK(ecode2)) {
29251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
29252 }
29253 arg2 = static_cast< int >(val2);
29254 ecode3 = SWIG_AsVal_int(obj2, &val3);
29255 if (!SWIG_IsOK(ecode3)) {
29256 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
29257 }
29258 arg3 = static_cast< int >(val3);
29259 ecode4 = SWIG_AsVal_int(obj3, &val4);
29260 if (!SWIG_IsOK(ecode4)) {
29261 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
29262 }
29263 arg4 = static_cast< int >(val4);
29264 {
29265 PyThreadState* __tstate = wxPyBeginAllowThreads();
29266 (arg1)->TranslateId(arg2,arg3,arg4);
29267 wxPyEndAllowThreads(__tstate);
29268 if (PyErr_Occurred()) SWIG_fail;
29269 }
29270 resultobj = SWIG_Py_Void();
29271 return resultobj;
29272fail:
29273 return NULL;
29274}
29275
29276
29277SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29278 PyObject *resultobj = 0;
29279 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29280 int arg2 ;
29281 wxDC *arg3 = (wxDC *) 0 ;
29282 void *argp1 = 0 ;
29283 int res1 = 0 ;
29284 int val2 ;
29285 int ecode2 = 0 ;
29286 void *argp3 = 0 ;
29287 int res3 = 0 ;
29288 PyObject * obj0 = 0 ;
29289 PyObject * obj1 = 0 ;
29290 PyObject * obj2 = 0 ;
29291 char * kwnames[] = {
29292 (char *) "self",(char *) "id",(char *) "dc", NULL
29293 };
29294
29295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29297 if (!SWIG_IsOK(res1)) {
29298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29299 }
29300 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29301 ecode2 = SWIG_AsVal_int(obj1, &val2);
29302 if (!SWIG_IsOK(ecode2)) {
29303 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
29304 }
29305 arg2 = static_cast< int >(val2);
29306 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
29307 if (!SWIG_IsOK(res3)) {
29308 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
29309 }
29310 arg3 = reinterpret_cast< wxDC * >(argp3);
29311 {
29312 PyThreadState* __tstate = wxPyBeginAllowThreads();
29313 (arg1)->DrawIdToDC(arg2,arg3);
29314 wxPyEndAllowThreads(__tstate);
29315 if (PyErr_Occurred()) SWIG_fail;
29316 }
29317 resultobj = SWIG_Py_Void();
29318 return resultobj;
29319fail:
29320 return NULL;
29321}
29322
29323
29324SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29325 PyObject *resultobj = 0;
29326 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29327 int arg2 ;
29328 wxRect *arg3 = 0 ;
29329 void *argp1 = 0 ;
29330 int res1 = 0 ;
29331 int val2 ;
29332 int ecode2 = 0 ;
29333 wxRect temp3 ;
29334 PyObject * obj0 = 0 ;
29335 PyObject * obj1 = 0 ;
29336 PyObject * obj2 = 0 ;
29337 char * kwnames[] = {
29338 (char *) "self",(char *) "id",(char *) "rect", NULL
29339 };
29340
29341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29343 if (!SWIG_IsOK(res1)) {
29344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29345 }
29346 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29347 ecode2 = SWIG_AsVal_int(obj1, &val2);
29348 if (!SWIG_IsOK(ecode2)) {
29349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
29350 }
29351 arg2 = static_cast< int >(val2);
29352 {
29353 arg3 = &temp3;
29354 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
29355 }
29356 {
29357 PyThreadState* __tstate = wxPyBeginAllowThreads();
29358 (arg1)->SetIdBounds(arg2,*arg3);
29359 wxPyEndAllowThreads(__tstate);
29360 if (PyErr_Occurred()) SWIG_fail;
29361 }
29362 resultobj = SWIG_Py_Void();
29363 return resultobj;
29364fail:
29365 return NULL;
29366}
29367
29368
29369SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29370 PyObject *resultobj = 0;
29371 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29372 int arg2 ;
29373 wxRect result;
29374 void *argp1 = 0 ;
29375 int res1 = 0 ;
29376 int val2 ;
29377 int ecode2 = 0 ;
29378 PyObject * obj0 = 0 ;
29379 PyObject * obj1 = 0 ;
29380 char * kwnames[] = {
29381 (char *) "self",(char *) "id", NULL
29382 };
29383
29384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
29385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29386 if (!SWIG_IsOK(res1)) {
29387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29388 }
29389 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29390 ecode2 = SWIG_AsVal_int(obj1, &val2);
29391 if (!SWIG_IsOK(ecode2)) {
29392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
29393 }
29394 arg2 = static_cast< int >(val2);
29395 {
29396 PyThreadState* __tstate = wxPyBeginAllowThreads();
29397 result = wxPseudoDC_GetIdBounds(arg1,arg2);
29398 wxPyEndAllowThreads(__tstate);
29399 if (PyErr_Occurred()) SWIG_fail;
29400 }
29401 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29402 return resultobj;
29403fail:
29404 return NULL;
29405}
29406
29407
29408SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29409 PyObject *resultobj = 0;
29410 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29411 wxDC *arg2 = (wxDC *) 0 ;
29412 wxRect *arg3 = 0 ;
29413 void *argp1 = 0 ;
29414 int res1 = 0 ;
29415 void *argp2 = 0 ;
29416 int res2 = 0 ;
29417 wxRect temp3 ;
29418 PyObject * obj0 = 0 ;
29419 PyObject * obj1 = 0 ;
29420 PyObject * obj2 = 0 ;
29421 char * kwnames[] = {
29422 (char *) "self",(char *) "dc",(char *) "rect", NULL
29423 };
29424
29425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29427 if (!SWIG_IsOK(res1)) {
29428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29429 }
29430 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29431 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
29432 if (!SWIG_IsOK(res2)) {
29433 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
29434 }
29435 arg2 = reinterpret_cast< wxDC * >(argp2);
29436 {
29437 arg3 = &temp3;
29438 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
29439 }
29440 {
29441 PyThreadState* __tstate = wxPyBeginAllowThreads();
29442 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
29443 wxPyEndAllowThreads(__tstate);
29444 if (PyErr_Occurred()) SWIG_fail;
29445 }
29446 resultobj = SWIG_Py_Void();
29447 return resultobj;
29448fail:
29449 return NULL;
29450}
29451
29452
29453SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29454 PyObject *resultobj = 0;
29455 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29456 wxDC *arg2 = (wxDC *) 0 ;
29457 wxRegion *arg3 = 0 ;
29458 void *argp1 = 0 ;
29459 int res1 = 0 ;
29460 void *argp2 = 0 ;
29461 int res2 = 0 ;
29462 void *argp3 = 0 ;
29463 int res3 = 0 ;
29464 PyObject * obj0 = 0 ;
29465 PyObject * obj1 = 0 ;
29466 PyObject * obj2 = 0 ;
29467 char * kwnames[] = {
29468 (char *) "self",(char *) "dc",(char *) "region", NULL
29469 };
29470
29471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29473 if (!SWIG_IsOK(res1)) {
29474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29475 }
29476 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29477 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
29478 if (!SWIG_IsOK(res2)) {
29479 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
29480 }
29481 arg2 = reinterpret_cast< wxDC * >(argp2);
29482 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
29483 if (!SWIG_IsOK(res3)) {
29484 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
29485 }
29486 if (!argp3) {
29487 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
29488 }
29489 arg3 = reinterpret_cast< wxRegion * >(argp3);
29490 {
29491 PyThreadState* __tstate = wxPyBeginAllowThreads();
29492 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
29493 wxPyEndAllowThreads(__tstate);
29494 if (PyErr_Occurred()) SWIG_fail;
29495 }
29496 resultobj = SWIG_Py_Void();
29497 return resultobj;
29498fail:
29499 return NULL;
29500}
29501
29502
29503SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29504 PyObject *resultobj = 0;
29505 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29506 wxDC *arg2 = (wxDC *) 0 ;
29507 void *argp1 = 0 ;
29508 int res1 = 0 ;
29509 void *argp2 = 0 ;
29510 int res2 = 0 ;
29511 PyObject * obj0 = 0 ;
29512 PyObject * obj1 = 0 ;
29513 char * kwnames[] = {
29514 (char *) "self",(char *) "dc", NULL
29515 };
29516
29517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
29518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29519 if (!SWIG_IsOK(res1)) {
29520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29521 }
29522 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29523 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
29524 if (!SWIG_IsOK(res2)) {
29525 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
29526 }
29527 arg2 = reinterpret_cast< wxDC * >(argp2);
29528 {
29529 PyThreadState* __tstate = wxPyBeginAllowThreads();
29530 (arg1)->DrawToDC(arg2);
29531 wxPyEndAllowThreads(__tstate);
29532 if (PyErr_Occurred()) SWIG_fail;
29533 }
29534 resultobj = SWIG_Py_Void();
29535 return resultobj;
29536fail:
29537 return NULL;
29538}
29539
29540
29541SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29542 PyObject *resultobj = 0;
29543 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29544 int arg2 ;
29545 int arg3 ;
29546 wxColour *arg4 = 0 ;
29547 int arg5 = (int) wxFLOOD_SURFACE ;
29548 void *argp1 = 0 ;
29549 int res1 = 0 ;
29550 int val2 ;
29551 int ecode2 = 0 ;
29552 int val3 ;
29553 int ecode3 = 0 ;
29554 wxColour temp4 ;
29555 int val5 ;
29556 int ecode5 = 0 ;
29557 PyObject * obj0 = 0 ;
29558 PyObject * obj1 = 0 ;
29559 PyObject * obj2 = 0 ;
29560 PyObject * obj3 = 0 ;
29561 PyObject * obj4 = 0 ;
29562 char * kwnames[] = {
29563 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
29564 };
29565
29566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29568 if (!SWIG_IsOK(res1)) {
29569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29570 }
29571 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29572 ecode2 = SWIG_AsVal_int(obj1, &val2);
29573 if (!SWIG_IsOK(ecode2)) {
29574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
29575 }
29576 arg2 = static_cast< int >(val2);
29577 ecode3 = SWIG_AsVal_int(obj2, &val3);
29578 if (!SWIG_IsOK(ecode3)) {
29579 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
29580 }
29581 arg3 = static_cast< int >(val3);
29582 {
29583 arg4 = &temp4;
29584 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
29585 }
29586 if (obj4) {
29587 ecode5 = SWIG_AsVal_int(obj4, &val5);
29588 if (!SWIG_IsOK(ecode5)) {
29589 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
29590 }
29591 arg5 = static_cast< int >(val5);
29592 }
29593 {
29594 PyThreadState* __tstate = wxPyBeginAllowThreads();
29595 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
29596 wxPyEndAllowThreads(__tstate);
29597 if (PyErr_Occurred()) SWIG_fail;
29598 }
29599 resultobj = SWIG_Py_Void();
29600 return resultobj;
29601fail:
29602 return NULL;
29603}
29604
29605
29606SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29607 PyObject *resultobj = 0;
29608 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29609 wxPoint *arg2 = 0 ;
29610 wxColour *arg3 = 0 ;
29611 int arg4 = (int) wxFLOOD_SURFACE ;
29612 void *argp1 = 0 ;
29613 int res1 = 0 ;
29614 wxPoint temp2 ;
29615 wxColour temp3 ;
29616 int val4 ;
29617 int ecode4 = 0 ;
29618 PyObject * obj0 = 0 ;
29619 PyObject * obj1 = 0 ;
29620 PyObject * obj2 = 0 ;
29621 PyObject * obj3 = 0 ;
29622 char * kwnames[] = {
29623 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
29624 };
29625
29626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29628 if (!SWIG_IsOK(res1)) {
29629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29630 }
29631 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29632 {
29633 arg2 = &temp2;
29634 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29635 }
29636 {
29637 arg3 = &temp3;
29638 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29639 }
29640 if (obj3) {
29641 ecode4 = SWIG_AsVal_int(obj3, &val4);
29642 if (!SWIG_IsOK(ecode4)) {
29643 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
29644 }
29645 arg4 = static_cast< int >(val4);
29646 }
29647 {
29648 PyThreadState* __tstate = wxPyBeginAllowThreads();
29649 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
29650 wxPyEndAllowThreads(__tstate);
29651 if (PyErr_Occurred()) SWIG_fail;
29652 }
29653 resultobj = SWIG_Py_Void();
29654 return resultobj;
29655fail:
29656 return NULL;
29657}
29658
29659
29660SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29661 PyObject *resultobj = 0;
29662 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29663 int arg2 ;
29664 int arg3 ;
29665 int arg4 ;
29666 int arg5 ;
29667 void *argp1 = 0 ;
29668 int res1 = 0 ;
29669 int val2 ;
29670 int ecode2 = 0 ;
29671 int val3 ;
29672 int ecode3 = 0 ;
29673 int val4 ;
29674 int ecode4 = 0 ;
29675 int val5 ;
29676 int ecode5 = 0 ;
29677 PyObject * obj0 = 0 ;
29678 PyObject * obj1 = 0 ;
29679 PyObject * obj2 = 0 ;
29680 PyObject * obj3 = 0 ;
29681 PyObject * obj4 = 0 ;
29682 char * kwnames[] = {
29683 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29684 };
29685
29686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29688 if (!SWIG_IsOK(res1)) {
29689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29690 }
29691 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29692 ecode2 = SWIG_AsVal_int(obj1, &val2);
29693 if (!SWIG_IsOK(ecode2)) {
29694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
29695 }
29696 arg2 = static_cast< int >(val2);
29697 ecode3 = SWIG_AsVal_int(obj2, &val3);
29698 if (!SWIG_IsOK(ecode3)) {
29699 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
29700 }
29701 arg3 = static_cast< int >(val3);
29702 ecode4 = SWIG_AsVal_int(obj3, &val4);
29703 if (!SWIG_IsOK(ecode4)) {
29704 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
29705 }
29706 arg4 = static_cast< int >(val4);
29707 ecode5 = SWIG_AsVal_int(obj4, &val5);
29708 if (!SWIG_IsOK(ecode5)) {
29709 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
29710 }
29711 arg5 = static_cast< int >(val5);
29712 {
29713 PyThreadState* __tstate = wxPyBeginAllowThreads();
29714 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
29715 wxPyEndAllowThreads(__tstate);
29716 if (PyErr_Occurred()) SWIG_fail;
29717 }
29718 resultobj = SWIG_Py_Void();
29719 return resultobj;
29720fail:
29721 return NULL;
29722}
29723
29724
29725SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29726 PyObject *resultobj = 0;
29727 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29728 wxPoint *arg2 = 0 ;
29729 wxPoint *arg3 = 0 ;
29730 void *argp1 = 0 ;
29731 int res1 = 0 ;
29732 wxPoint temp2 ;
29733 wxPoint temp3 ;
29734 PyObject * obj0 = 0 ;
29735 PyObject * obj1 = 0 ;
29736 PyObject * obj2 = 0 ;
29737 char * kwnames[] = {
29738 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
29739 };
29740
29741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29743 if (!SWIG_IsOK(res1)) {
29744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29745 }
29746 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29747 {
29748 arg2 = &temp2;
29749 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29750 }
29751 {
29752 arg3 = &temp3;
29753 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29754 }
29755 {
29756 PyThreadState* __tstate = wxPyBeginAllowThreads();
29757 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
29758 wxPyEndAllowThreads(__tstate);
29759 if (PyErr_Occurred()) SWIG_fail;
29760 }
29761 resultobj = SWIG_Py_Void();
29762 return resultobj;
29763fail:
29764 return NULL;
29765}
29766
29767
29768SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29769 PyObject *resultobj = 0;
29770 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29771 int arg2 ;
29772 int arg3 ;
29773 void *argp1 = 0 ;
29774 int res1 = 0 ;
29775 int val2 ;
29776 int ecode2 = 0 ;
29777 int val3 ;
29778 int ecode3 = 0 ;
29779 PyObject * obj0 = 0 ;
29780 PyObject * obj1 = 0 ;
29781 PyObject * obj2 = 0 ;
29782 char * kwnames[] = {
29783 (char *) "self",(char *) "x",(char *) "y", NULL
29784 };
29785
29786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29788 if (!SWIG_IsOK(res1)) {
29789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29790 }
29791 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29792 ecode2 = SWIG_AsVal_int(obj1, &val2);
29793 if (!SWIG_IsOK(ecode2)) {
29794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
29795 }
29796 arg2 = static_cast< int >(val2);
29797 ecode3 = SWIG_AsVal_int(obj2, &val3);
29798 if (!SWIG_IsOK(ecode3)) {
29799 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
29800 }
29801 arg3 = static_cast< int >(val3);
29802 {
29803 PyThreadState* __tstate = wxPyBeginAllowThreads();
29804 (arg1)->CrossHair(arg2,arg3);
29805 wxPyEndAllowThreads(__tstate);
29806 if (PyErr_Occurred()) SWIG_fail;
29807 }
29808 resultobj = SWIG_Py_Void();
29809 return resultobj;
29810fail:
29811 return NULL;
29812}
29813
29814
29815SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29816 PyObject *resultobj = 0;
29817 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29818 wxPoint *arg2 = 0 ;
29819 void *argp1 = 0 ;
29820 int res1 = 0 ;
29821 wxPoint temp2 ;
29822 PyObject * obj0 = 0 ;
29823 PyObject * obj1 = 0 ;
29824 char * kwnames[] = {
29825 (char *) "self",(char *) "pt", NULL
29826 };
29827
29828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
29829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29830 if (!SWIG_IsOK(res1)) {
29831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29832 }
29833 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29834 {
29835 arg2 = &temp2;
29836 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29837 }
29838 {
29839 PyThreadState* __tstate = wxPyBeginAllowThreads();
29840 (arg1)->CrossHair((wxPoint const &)*arg2);
29841 wxPyEndAllowThreads(__tstate);
29842 if (PyErr_Occurred()) SWIG_fail;
29843 }
29844 resultobj = SWIG_Py_Void();
29845 return resultobj;
29846fail:
29847 return NULL;
29848}
29849
29850
29851SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29852 PyObject *resultobj = 0;
29853 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29854 int arg2 ;
29855 int arg3 ;
29856 int arg4 ;
29857 int arg5 ;
29858 int arg6 ;
29859 int arg7 ;
29860 void *argp1 = 0 ;
29861 int res1 = 0 ;
29862 int val2 ;
29863 int ecode2 = 0 ;
29864 int val3 ;
29865 int ecode3 = 0 ;
29866 int val4 ;
29867 int ecode4 = 0 ;
29868 int val5 ;
29869 int ecode5 = 0 ;
29870 int val6 ;
29871 int ecode6 = 0 ;
29872 int val7 ;
29873 int ecode7 = 0 ;
29874 PyObject * obj0 = 0 ;
29875 PyObject * obj1 = 0 ;
29876 PyObject * obj2 = 0 ;
29877 PyObject * obj3 = 0 ;
29878 PyObject * obj4 = 0 ;
29879 PyObject * obj5 = 0 ;
29880 PyObject * obj6 = 0 ;
29881 char * kwnames[] = {
29882 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
29883 };
29884
29885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29887 if (!SWIG_IsOK(res1)) {
29888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29889 }
29890 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29891 ecode2 = SWIG_AsVal_int(obj1, &val2);
29892 if (!SWIG_IsOK(ecode2)) {
29893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
29894 }
29895 arg2 = static_cast< int >(val2);
29896 ecode3 = SWIG_AsVal_int(obj2, &val3);
29897 if (!SWIG_IsOK(ecode3)) {
29898 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
29899 }
29900 arg3 = static_cast< int >(val3);
29901 ecode4 = SWIG_AsVal_int(obj3, &val4);
29902 if (!SWIG_IsOK(ecode4)) {
29903 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
29904 }
29905 arg4 = static_cast< int >(val4);
29906 ecode5 = SWIG_AsVal_int(obj4, &val5);
29907 if (!SWIG_IsOK(ecode5)) {
29908 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
29909 }
29910 arg5 = static_cast< int >(val5);
29911 ecode6 = SWIG_AsVal_int(obj5, &val6);
29912 if (!SWIG_IsOK(ecode6)) {
29913 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
29914 }
29915 arg6 = static_cast< int >(val6);
29916 ecode7 = SWIG_AsVal_int(obj6, &val7);
29917 if (!SWIG_IsOK(ecode7)) {
29918 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
29919 }
29920 arg7 = static_cast< int >(val7);
29921 {
29922 PyThreadState* __tstate = wxPyBeginAllowThreads();
29923 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
29924 wxPyEndAllowThreads(__tstate);
29925 if (PyErr_Occurred()) SWIG_fail;
29926 }
29927 resultobj = SWIG_Py_Void();
29928 return resultobj;
29929fail:
29930 return NULL;
29931}
29932
29933
29934SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29935 PyObject *resultobj = 0;
29936 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29937 wxPoint *arg2 = 0 ;
29938 wxPoint *arg3 = 0 ;
29939 wxPoint *arg4 = 0 ;
29940 void *argp1 = 0 ;
29941 int res1 = 0 ;
29942 wxPoint temp2 ;
29943 wxPoint temp3 ;
29944 wxPoint temp4 ;
29945 PyObject * obj0 = 0 ;
29946 PyObject * obj1 = 0 ;
29947 PyObject * obj2 = 0 ;
29948 PyObject * obj3 = 0 ;
29949 char * kwnames[] = {
29950 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
29951 };
29952
29953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29955 if (!SWIG_IsOK(res1)) {
29956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29957 }
29958 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29959 {
29960 arg2 = &temp2;
29961 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29962 }
29963 {
29964 arg3 = &temp3;
29965 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29966 }
29967 {
29968 arg4 = &temp4;
29969 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
29970 }
29971 {
29972 PyThreadState* __tstate = wxPyBeginAllowThreads();
29973 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
29974 wxPyEndAllowThreads(__tstate);
29975 if (PyErr_Occurred()) SWIG_fail;
29976 }
29977 resultobj = SWIG_Py_Void();
29978 return resultobj;
29979fail:
29980 return NULL;
29981}
29982
29983
29984SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29985 PyObject *resultobj = 0;
29986 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29987 int arg2 ;
29988 int arg3 ;
29989 int arg4 ;
29990 int arg5 ;
29991 void *argp1 = 0 ;
29992 int res1 = 0 ;
29993 int val2 ;
29994 int ecode2 = 0 ;
29995 int val3 ;
29996 int ecode3 = 0 ;
29997 int val4 ;
29998 int ecode4 = 0 ;
29999 int val5 ;
30000 int ecode5 = 0 ;
30001 PyObject * obj0 = 0 ;
30002 PyObject * obj1 = 0 ;
30003 PyObject * obj2 = 0 ;
30004 PyObject * obj3 = 0 ;
30005 PyObject * obj4 = 0 ;
30006 char * kwnames[] = {
30007 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
30008 };
30009
30010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30012 if (!SWIG_IsOK(res1)) {
30013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30014 }
30015 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30016 ecode2 = SWIG_AsVal_int(obj1, &val2);
30017 if (!SWIG_IsOK(ecode2)) {
30018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
30019 }
30020 arg2 = static_cast< int >(val2);
30021 ecode3 = SWIG_AsVal_int(obj2, &val3);
30022 if (!SWIG_IsOK(ecode3)) {
30023 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
30024 }
30025 arg3 = static_cast< int >(val3);
30026 ecode4 = SWIG_AsVal_int(obj3, &val4);
30027 if (!SWIG_IsOK(ecode4)) {
30028 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
30029 }
30030 arg4 = static_cast< int >(val4);
30031 ecode5 = SWIG_AsVal_int(obj4, &val5);
30032 if (!SWIG_IsOK(ecode5)) {
30033 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
30034 }
30035 arg5 = static_cast< int >(val5);
30036 {
30037 PyThreadState* __tstate = wxPyBeginAllowThreads();
30038 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
30039 wxPyEndAllowThreads(__tstate);
30040 if (PyErr_Occurred()) SWIG_fail;
30041 }
30042 resultobj = SWIG_Py_Void();
30043 return resultobj;
30044fail:
30045 return NULL;
30046}
30047
30048
30049SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30050 PyObject *resultobj = 0;
30051 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30052 wxRect *arg2 = 0 ;
30053 void *argp1 = 0 ;
30054 int res1 = 0 ;
30055 wxRect temp2 ;
30056 PyObject * obj0 = 0 ;
30057 PyObject * obj1 = 0 ;
30058 char * kwnames[] = {
30059 (char *) "self",(char *) "rect", NULL
30060 };
30061
30062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
30063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30064 if (!SWIG_IsOK(res1)) {
30065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30066 }
30067 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30068 {
30069 arg2 = &temp2;
30070 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
30071 }
30072 {
30073 PyThreadState* __tstate = wxPyBeginAllowThreads();
30074 (arg1)->DrawCheckMark((wxRect const &)*arg2);
30075 wxPyEndAllowThreads(__tstate);
30076 if (PyErr_Occurred()) SWIG_fail;
30077 }
30078 resultobj = SWIG_Py_Void();
30079 return resultobj;
30080fail:
30081 return NULL;
30082}
30083
30084
30085SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30086 PyObject *resultobj = 0;
30087 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30088 int arg2 ;
30089 int arg3 ;
30090 int arg4 ;
30091 int arg5 ;
30092 double arg6 ;
30093 double arg7 ;
30094 void *argp1 = 0 ;
30095 int res1 = 0 ;
30096 int val2 ;
30097 int ecode2 = 0 ;
30098 int val3 ;
30099 int ecode3 = 0 ;
30100 int val4 ;
30101 int ecode4 = 0 ;
30102 int val5 ;
30103 int ecode5 = 0 ;
30104 double val6 ;
30105 int ecode6 = 0 ;
30106 double val7 ;
30107 int ecode7 = 0 ;
30108 PyObject * obj0 = 0 ;
30109 PyObject * obj1 = 0 ;
30110 PyObject * obj2 = 0 ;
30111 PyObject * obj3 = 0 ;
30112 PyObject * obj4 = 0 ;
30113 PyObject * obj5 = 0 ;
30114 PyObject * obj6 = 0 ;
30115 char * kwnames[] = {
30116 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
30117 };
30118
30119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30121 if (!SWIG_IsOK(res1)) {
30122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30123 }
30124 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30125 ecode2 = SWIG_AsVal_int(obj1, &val2);
30126 if (!SWIG_IsOK(ecode2)) {
30127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
30128 }
30129 arg2 = static_cast< int >(val2);
30130 ecode3 = SWIG_AsVal_int(obj2, &val3);
30131 if (!SWIG_IsOK(ecode3)) {
30132 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
30133 }
30134 arg3 = static_cast< int >(val3);
30135 ecode4 = SWIG_AsVal_int(obj3, &val4);
30136 if (!SWIG_IsOK(ecode4)) {
30137 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
30138 }
30139 arg4 = static_cast< int >(val4);
30140 ecode5 = SWIG_AsVal_int(obj4, &val5);
30141 if (!SWIG_IsOK(ecode5)) {
30142 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
30143 }
30144 arg5 = static_cast< int >(val5);
30145 ecode6 = SWIG_AsVal_double(obj5, &val6);
30146 if (!SWIG_IsOK(ecode6)) {
30147 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
30148 }
30149 arg6 = static_cast< double >(val6);
30150 ecode7 = SWIG_AsVal_double(obj6, &val7);
30151 if (!SWIG_IsOK(ecode7)) {
30152 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
30153 }
30154 arg7 = static_cast< double >(val7);
30155 {
30156 PyThreadState* __tstate = wxPyBeginAllowThreads();
30157 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
30158 wxPyEndAllowThreads(__tstate);
30159 if (PyErr_Occurred()) SWIG_fail;
30160 }
30161 resultobj = SWIG_Py_Void();
30162 return resultobj;
30163fail:
30164 return NULL;
30165}
30166
30167
30168SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30169 PyObject *resultobj = 0;
30170 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30171 wxPoint *arg2 = 0 ;
30172 wxSize *arg3 = 0 ;
30173 double arg4 ;
30174 double arg5 ;
30175 void *argp1 = 0 ;
30176 int res1 = 0 ;
30177 wxPoint temp2 ;
30178 wxSize temp3 ;
30179 double val4 ;
30180 int ecode4 = 0 ;
30181 double val5 ;
30182 int ecode5 = 0 ;
30183 PyObject * obj0 = 0 ;
30184 PyObject * obj1 = 0 ;
30185 PyObject * obj2 = 0 ;
30186 PyObject * obj3 = 0 ;
30187 PyObject * obj4 = 0 ;
30188 char * kwnames[] = {
30189 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
30190 };
30191
30192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30194 if (!SWIG_IsOK(res1)) {
30195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30196 }
30197 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30198 {
30199 arg2 = &temp2;
30200 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30201 }
30202 {
30203 arg3 = &temp3;
30204 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
30205 }
30206 ecode4 = SWIG_AsVal_double(obj3, &val4);
30207 if (!SWIG_IsOK(ecode4)) {
30208 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
30209 }
30210 arg4 = static_cast< double >(val4);
30211 ecode5 = SWIG_AsVal_double(obj4, &val5);
30212 if (!SWIG_IsOK(ecode5)) {
30213 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
30214 }
30215 arg5 = static_cast< double >(val5);
30216 {
30217 PyThreadState* __tstate = wxPyBeginAllowThreads();
30218 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,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_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30230 PyObject *resultobj = 0;
30231 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30232 int arg2 ;
30233 int arg3 ;
30234 void *argp1 = 0 ;
30235 int res1 = 0 ;
30236 int val2 ;
30237 int ecode2 = 0 ;
30238 int val3 ;
30239 int ecode3 = 0 ;
30240 PyObject * obj0 = 0 ;
30241 PyObject * obj1 = 0 ;
30242 PyObject * obj2 = 0 ;
30243 char * kwnames[] = {
30244 (char *) "self",(char *) "x",(char *) "y", NULL
30245 };
30246
30247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30249 if (!SWIG_IsOK(res1)) {
30250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30251 }
30252 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30253 ecode2 = SWIG_AsVal_int(obj1, &val2);
30254 if (!SWIG_IsOK(ecode2)) {
30255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
30256 }
30257 arg2 = static_cast< int >(val2);
30258 ecode3 = SWIG_AsVal_int(obj2, &val3);
30259 if (!SWIG_IsOK(ecode3)) {
30260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
30261 }
30262 arg3 = static_cast< int >(val3);
30263 {
30264 PyThreadState* __tstate = wxPyBeginAllowThreads();
30265 (arg1)->DrawPoint(arg2,arg3);
30266 wxPyEndAllowThreads(__tstate);
30267 if (PyErr_Occurred()) SWIG_fail;
30268 }
30269 resultobj = SWIG_Py_Void();
30270 return resultobj;
30271fail:
30272 return NULL;
30273}
30274
30275
30276SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30277 PyObject *resultobj = 0;
30278 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30279 wxPoint *arg2 = 0 ;
30280 void *argp1 = 0 ;
30281 int res1 = 0 ;
30282 wxPoint temp2 ;
30283 PyObject * obj0 = 0 ;
30284 PyObject * obj1 = 0 ;
30285 char * kwnames[] = {
30286 (char *) "self",(char *) "pt", NULL
30287 };
30288
30289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
30290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30291 if (!SWIG_IsOK(res1)) {
30292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30293 }
30294 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30295 {
30296 arg2 = &temp2;
30297 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30298 }
30299 {
30300 PyThreadState* __tstate = wxPyBeginAllowThreads();
30301 (arg1)->DrawPoint((wxPoint const &)*arg2);
30302 wxPyEndAllowThreads(__tstate);
30303 if (PyErr_Occurred()) SWIG_fail;
30304 }
30305 resultobj = SWIG_Py_Void();
30306 return resultobj;
30307fail:
30308 return NULL;
30309}
30310
30311
30312SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30313 PyObject *resultobj = 0;
30314 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30315 int arg2 ;
30316 int arg3 ;
30317 int arg4 ;
30318 int arg5 ;
30319 void *argp1 = 0 ;
30320 int res1 = 0 ;
30321 int val2 ;
30322 int ecode2 = 0 ;
30323 int val3 ;
30324 int ecode3 = 0 ;
30325 int val4 ;
30326 int ecode4 = 0 ;
30327 int val5 ;
30328 int ecode5 = 0 ;
30329 PyObject * obj0 = 0 ;
30330 PyObject * obj1 = 0 ;
30331 PyObject * obj2 = 0 ;
30332 PyObject * obj3 = 0 ;
30333 PyObject * obj4 = 0 ;
30334 char * kwnames[] = {
30335 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
30336 };
30337
30338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30340 if (!SWIG_IsOK(res1)) {
30341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30342 }
30343 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30344 ecode2 = SWIG_AsVal_int(obj1, &val2);
30345 if (!SWIG_IsOK(ecode2)) {
30346 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
30347 }
30348 arg2 = static_cast< int >(val2);
30349 ecode3 = SWIG_AsVal_int(obj2, &val3);
30350 if (!SWIG_IsOK(ecode3)) {
30351 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
30352 }
30353 arg3 = static_cast< int >(val3);
30354 ecode4 = SWIG_AsVal_int(obj3, &val4);
30355 if (!SWIG_IsOK(ecode4)) {
30356 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
30357 }
30358 arg4 = static_cast< int >(val4);
30359 ecode5 = SWIG_AsVal_int(obj4, &val5);
30360 if (!SWIG_IsOK(ecode5)) {
30361 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
30362 }
30363 arg5 = static_cast< int >(val5);
30364 {
30365 PyThreadState* __tstate = wxPyBeginAllowThreads();
30366 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
30367 wxPyEndAllowThreads(__tstate);
30368 if (PyErr_Occurred()) SWIG_fail;
30369 }
30370 resultobj = SWIG_Py_Void();
30371 return resultobj;
30372fail:
30373 return NULL;
30374}
30375
30376
30377SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30378 PyObject *resultobj = 0;
30379 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30380 wxRect *arg2 = 0 ;
30381 void *argp1 = 0 ;
30382 int res1 = 0 ;
30383 wxRect temp2 ;
30384 PyObject * obj0 = 0 ;
30385 PyObject * obj1 = 0 ;
30386 char * kwnames[] = {
30387 (char *) "self",(char *) "rect", NULL
30388 };
30389
30390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
30391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30392 if (!SWIG_IsOK(res1)) {
30393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30394 }
30395 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30396 {
30397 arg2 = &temp2;
30398 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
30399 }
30400 {
30401 PyThreadState* __tstate = wxPyBeginAllowThreads();
30402 (arg1)->DrawRectangle((wxRect const &)*arg2);
30403 wxPyEndAllowThreads(__tstate);
30404 if (PyErr_Occurred()) SWIG_fail;
30405 }
30406 resultobj = SWIG_Py_Void();
30407 return resultobj;
30408fail:
30409 return NULL;
30410}
30411
30412
30413SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30414 PyObject *resultobj = 0;
30415 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30416 wxPoint *arg2 = 0 ;
30417 wxSize *arg3 = 0 ;
30418 void *argp1 = 0 ;
30419 int res1 = 0 ;
30420 wxPoint temp2 ;
30421 wxSize temp3 ;
30422 PyObject * obj0 = 0 ;
30423 PyObject * obj1 = 0 ;
30424 PyObject * obj2 = 0 ;
30425 char * kwnames[] = {
30426 (char *) "self",(char *) "pt",(char *) "sz", NULL
30427 };
30428
30429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30431 if (!SWIG_IsOK(res1)) {
30432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30433 }
30434 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30435 {
30436 arg2 = &temp2;
30437 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30438 }
30439 {
30440 arg3 = &temp3;
30441 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
30442 }
30443 {
30444 PyThreadState* __tstate = wxPyBeginAllowThreads();
30445 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
30446 wxPyEndAllowThreads(__tstate);
30447 if (PyErr_Occurred()) SWIG_fail;
30448 }
30449 resultobj = SWIG_Py_Void();
30450 return resultobj;
30451fail:
30452 return NULL;
30453}
30454
30455
30456SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30457 PyObject *resultobj = 0;
30458 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30459 int arg2 ;
30460 int arg3 ;
30461 int arg4 ;
30462 int arg5 ;
30463 double arg6 ;
30464 void *argp1 = 0 ;
30465 int res1 = 0 ;
30466 int val2 ;
30467 int ecode2 = 0 ;
30468 int val3 ;
30469 int ecode3 = 0 ;
30470 int val4 ;
30471 int ecode4 = 0 ;
30472 int val5 ;
30473 int ecode5 = 0 ;
30474 double val6 ;
30475 int ecode6 = 0 ;
30476 PyObject * obj0 = 0 ;
30477 PyObject * obj1 = 0 ;
30478 PyObject * obj2 = 0 ;
30479 PyObject * obj3 = 0 ;
30480 PyObject * obj4 = 0 ;
30481 PyObject * obj5 = 0 ;
30482 char * kwnames[] = {
30483 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
30484 };
30485
30486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30488 if (!SWIG_IsOK(res1)) {
30489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30490 }
30491 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30492 ecode2 = SWIG_AsVal_int(obj1, &val2);
30493 if (!SWIG_IsOK(ecode2)) {
30494 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
30495 }
30496 arg2 = static_cast< int >(val2);
30497 ecode3 = SWIG_AsVal_int(obj2, &val3);
30498 if (!SWIG_IsOK(ecode3)) {
30499 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
30500 }
30501 arg3 = static_cast< int >(val3);
30502 ecode4 = SWIG_AsVal_int(obj3, &val4);
30503 if (!SWIG_IsOK(ecode4)) {
30504 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
30505 }
30506 arg4 = static_cast< int >(val4);
30507 ecode5 = SWIG_AsVal_int(obj4, &val5);
30508 if (!SWIG_IsOK(ecode5)) {
30509 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
30510 }
30511 arg5 = static_cast< int >(val5);
30512 ecode6 = SWIG_AsVal_double(obj5, &val6);
30513 if (!SWIG_IsOK(ecode6)) {
30514 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
30515 }
30516 arg6 = static_cast< double >(val6);
30517 {
30518 PyThreadState* __tstate = wxPyBeginAllowThreads();
30519 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
30520 wxPyEndAllowThreads(__tstate);
30521 if (PyErr_Occurred()) SWIG_fail;
30522 }
30523 resultobj = SWIG_Py_Void();
30524 return resultobj;
30525fail:
30526 return NULL;
30527}
30528
30529
30530SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30531 PyObject *resultobj = 0;
30532 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30533 wxRect *arg2 = 0 ;
30534 double arg3 ;
30535 void *argp1 = 0 ;
30536 int res1 = 0 ;
30537 wxRect temp2 ;
30538 double val3 ;
30539 int ecode3 = 0 ;
30540 PyObject * obj0 = 0 ;
30541 PyObject * obj1 = 0 ;
30542 PyObject * obj2 = 0 ;
30543 char * kwnames[] = {
30544 (char *) "self",(char *) "r",(char *) "radius", NULL
30545 };
30546
30547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30549 if (!SWIG_IsOK(res1)) {
30550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30551 }
30552 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30553 {
30554 arg2 = &temp2;
30555 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
30556 }
30557 ecode3 = SWIG_AsVal_double(obj2, &val3);
30558 if (!SWIG_IsOK(ecode3)) {
30559 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
30560 }
30561 arg3 = static_cast< double >(val3);
30562 {
30563 PyThreadState* __tstate = wxPyBeginAllowThreads();
30564 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
30565 wxPyEndAllowThreads(__tstate);
30566 if (PyErr_Occurred()) SWIG_fail;
30567 }
30568 resultobj = SWIG_Py_Void();
30569 return resultobj;
30570fail:
30571 return NULL;
30572}
30573
30574
30575SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30576 PyObject *resultobj = 0;
30577 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30578 wxPoint *arg2 = 0 ;
30579 wxSize *arg3 = 0 ;
30580 double arg4 ;
30581 void *argp1 = 0 ;
30582 int res1 = 0 ;
30583 wxPoint temp2 ;
30584 wxSize temp3 ;
30585 double val4 ;
30586 int ecode4 = 0 ;
30587 PyObject * obj0 = 0 ;
30588 PyObject * obj1 = 0 ;
30589 PyObject * obj2 = 0 ;
30590 PyObject * obj3 = 0 ;
30591 char * kwnames[] = {
30592 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
30593 };
30594
30595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30597 if (!SWIG_IsOK(res1)) {
30598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30599 }
30600 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30601 {
30602 arg2 = &temp2;
30603 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30604 }
30605 {
30606 arg3 = &temp3;
30607 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
30608 }
30609 ecode4 = SWIG_AsVal_double(obj3, &val4);
30610 if (!SWIG_IsOK(ecode4)) {
30611 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
30612 }
30613 arg4 = static_cast< double >(val4);
30614 {
30615 PyThreadState* __tstate = wxPyBeginAllowThreads();
30616 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
30617 wxPyEndAllowThreads(__tstate);
30618 if (PyErr_Occurred()) SWIG_fail;
30619 }
30620 resultobj = SWIG_Py_Void();
30621 return resultobj;
30622fail:
30623 return NULL;
30624}
30625
30626
30627SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30628 PyObject *resultobj = 0;
30629 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30630 int arg2 ;
30631 int arg3 ;
30632 int arg4 ;
30633 void *argp1 = 0 ;
30634 int res1 = 0 ;
30635 int val2 ;
30636 int ecode2 = 0 ;
30637 int val3 ;
30638 int ecode3 = 0 ;
30639 int val4 ;
30640 int ecode4 = 0 ;
30641 PyObject * obj0 = 0 ;
30642 PyObject * obj1 = 0 ;
30643 PyObject * obj2 = 0 ;
30644 PyObject * obj3 = 0 ;
30645 char * kwnames[] = {
30646 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
30647 };
30648
30649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30651 if (!SWIG_IsOK(res1)) {
30652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30653 }
30654 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30655 ecode2 = SWIG_AsVal_int(obj1, &val2);
30656 if (!SWIG_IsOK(ecode2)) {
30657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
30658 }
30659 arg2 = static_cast< int >(val2);
30660 ecode3 = SWIG_AsVal_int(obj2, &val3);
30661 if (!SWIG_IsOK(ecode3)) {
30662 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
30663 }
30664 arg3 = static_cast< int >(val3);
30665 ecode4 = SWIG_AsVal_int(obj3, &val4);
30666 if (!SWIG_IsOK(ecode4)) {
30667 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
30668 }
30669 arg4 = static_cast< int >(val4);
30670 {
30671 PyThreadState* __tstate = wxPyBeginAllowThreads();
30672 (arg1)->DrawCircle(arg2,arg3,arg4);
30673 wxPyEndAllowThreads(__tstate);
30674 if (PyErr_Occurred()) SWIG_fail;
30675 }
30676 resultobj = SWIG_Py_Void();
30677 return resultobj;
30678fail:
30679 return NULL;
30680}
30681
30682
30683SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30684 PyObject *resultobj = 0;
30685 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30686 wxPoint *arg2 = 0 ;
30687 int arg3 ;
30688 void *argp1 = 0 ;
30689 int res1 = 0 ;
30690 wxPoint temp2 ;
30691 int val3 ;
30692 int ecode3 = 0 ;
30693 PyObject * obj0 = 0 ;
30694 PyObject * obj1 = 0 ;
30695 PyObject * obj2 = 0 ;
30696 char * kwnames[] = {
30697 (char *) "self",(char *) "pt",(char *) "radius", NULL
30698 };
30699
30700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30702 if (!SWIG_IsOK(res1)) {
30703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30704 }
30705 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30706 {
30707 arg2 = &temp2;
30708 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30709 }
30710 ecode3 = SWIG_AsVal_int(obj2, &val3);
30711 if (!SWIG_IsOK(ecode3)) {
30712 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
30713 }
30714 arg3 = static_cast< int >(val3);
30715 {
30716 PyThreadState* __tstate = wxPyBeginAllowThreads();
30717 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
30718 wxPyEndAllowThreads(__tstate);
30719 if (PyErr_Occurred()) SWIG_fail;
30720 }
30721 resultobj = SWIG_Py_Void();
30722 return resultobj;
30723fail:
30724 return NULL;
30725}
30726
30727
30728SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30729 PyObject *resultobj = 0;
30730 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30731 int arg2 ;
30732 int arg3 ;
30733 int arg4 ;
30734 int arg5 ;
30735 void *argp1 = 0 ;
30736 int res1 = 0 ;
30737 int val2 ;
30738 int ecode2 = 0 ;
30739 int val3 ;
30740 int ecode3 = 0 ;
30741 int val4 ;
30742 int ecode4 = 0 ;
30743 int val5 ;
30744 int ecode5 = 0 ;
30745 PyObject * obj0 = 0 ;
30746 PyObject * obj1 = 0 ;
30747 PyObject * obj2 = 0 ;
30748 PyObject * obj3 = 0 ;
30749 PyObject * obj4 = 0 ;
30750 char * kwnames[] = {
30751 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
30752 };
30753
30754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30756 if (!SWIG_IsOK(res1)) {
30757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30758 }
30759 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30760 ecode2 = SWIG_AsVal_int(obj1, &val2);
30761 if (!SWIG_IsOK(ecode2)) {
30762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
30763 }
30764 arg2 = static_cast< int >(val2);
30765 ecode3 = SWIG_AsVal_int(obj2, &val3);
30766 if (!SWIG_IsOK(ecode3)) {
30767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
30768 }
30769 arg3 = static_cast< int >(val3);
30770 ecode4 = SWIG_AsVal_int(obj3, &val4);
30771 if (!SWIG_IsOK(ecode4)) {
30772 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
30773 }
30774 arg4 = static_cast< int >(val4);
30775 ecode5 = SWIG_AsVal_int(obj4, &val5);
30776 if (!SWIG_IsOK(ecode5)) {
30777 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
30778 }
30779 arg5 = static_cast< int >(val5);
30780 {
30781 PyThreadState* __tstate = wxPyBeginAllowThreads();
30782 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
30783 wxPyEndAllowThreads(__tstate);
30784 if (PyErr_Occurred()) SWIG_fail;
30785 }
30786 resultobj = SWIG_Py_Void();
30787 return resultobj;
30788fail:
30789 return NULL;
30790}
30791
30792
30793SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30794 PyObject *resultobj = 0;
30795 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30796 wxRect *arg2 = 0 ;
30797 void *argp1 = 0 ;
30798 int res1 = 0 ;
30799 wxRect temp2 ;
30800 PyObject * obj0 = 0 ;
30801 PyObject * obj1 = 0 ;
30802 char * kwnames[] = {
30803 (char *) "self",(char *) "rect", NULL
30804 };
30805
30806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
30807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30808 if (!SWIG_IsOK(res1)) {
30809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30810 }
30811 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30812 {
30813 arg2 = &temp2;
30814 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
30815 }
30816 {
30817 PyThreadState* __tstate = wxPyBeginAllowThreads();
30818 (arg1)->DrawEllipse((wxRect const &)*arg2);
30819 wxPyEndAllowThreads(__tstate);
30820 if (PyErr_Occurred()) SWIG_fail;
30821 }
30822 resultobj = SWIG_Py_Void();
30823 return resultobj;
30824fail:
30825 return NULL;
30826}
30827
30828
30829SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30830 PyObject *resultobj = 0;
30831 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30832 wxPoint *arg2 = 0 ;
30833 wxSize *arg3 = 0 ;
30834 void *argp1 = 0 ;
30835 int res1 = 0 ;
30836 wxPoint temp2 ;
30837 wxSize temp3 ;
30838 PyObject * obj0 = 0 ;
30839 PyObject * obj1 = 0 ;
30840 PyObject * obj2 = 0 ;
30841 char * kwnames[] = {
30842 (char *) "self",(char *) "pt",(char *) "sz", NULL
30843 };
30844
30845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30847 if (!SWIG_IsOK(res1)) {
30848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30849 }
30850 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30851 {
30852 arg2 = &temp2;
30853 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30854 }
30855 {
30856 arg3 = &temp3;
30857 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
30858 }
30859 {
30860 PyThreadState* __tstate = wxPyBeginAllowThreads();
30861 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
30862 wxPyEndAllowThreads(__tstate);
30863 if (PyErr_Occurred()) SWIG_fail;
30864 }
30865 resultobj = SWIG_Py_Void();
30866 return resultobj;
30867fail:
30868 return NULL;
30869}
30870
30871
30872SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30873 PyObject *resultobj = 0;
30874 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30875 wxIcon *arg2 = 0 ;
30876 int arg3 ;
30877 int arg4 ;
30878 void *argp1 = 0 ;
30879 int res1 = 0 ;
30880 void *argp2 = 0 ;
30881 int res2 = 0 ;
30882 int val3 ;
30883 int ecode3 = 0 ;
30884 int val4 ;
30885 int ecode4 = 0 ;
30886 PyObject * obj0 = 0 ;
30887 PyObject * obj1 = 0 ;
30888 PyObject * obj2 = 0 ;
30889 PyObject * obj3 = 0 ;
30890 char * kwnames[] = {
30891 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
30892 };
30893
30894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30896 if (!SWIG_IsOK(res1)) {
30897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30898 }
30899 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30900 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30901 if (!SWIG_IsOK(res2)) {
30902 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30903 }
30904 if (!argp2) {
30905 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30906 }
30907 arg2 = reinterpret_cast< wxIcon * >(argp2);
30908 ecode3 = SWIG_AsVal_int(obj2, &val3);
30909 if (!SWIG_IsOK(ecode3)) {
30910 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
30911 }
30912 arg3 = static_cast< int >(val3);
30913 ecode4 = SWIG_AsVal_int(obj3, &val4);
30914 if (!SWIG_IsOK(ecode4)) {
30915 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
30916 }
30917 arg4 = static_cast< int >(val4);
30918 {
30919 PyThreadState* __tstate = wxPyBeginAllowThreads();
30920 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
30921 wxPyEndAllowThreads(__tstate);
30922 if (PyErr_Occurred()) SWIG_fail;
30923 }
30924 resultobj = SWIG_Py_Void();
30925 return resultobj;
30926fail:
30927 return NULL;
30928}
30929
30930
30931SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30932 PyObject *resultobj = 0;
30933 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30934 wxIcon *arg2 = 0 ;
30935 wxPoint *arg3 = 0 ;
30936 void *argp1 = 0 ;
30937 int res1 = 0 ;
30938 void *argp2 = 0 ;
30939 int res2 = 0 ;
30940 wxPoint temp3 ;
30941 PyObject * obj0 = 0 ;
30942 PyObject * obj1 = 0 ;
30943 PyObject * obj2 = 0 ;
30944 char * kwnames[] = {
30945 (char *) "self",(char *) "icon",(char *) "pt", NULL
30946 };
30947
30948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30950 if (!SWIG_IsOK(res1)) {
30951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30952 }
30953 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30954 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30955 if (!SWIG_IsOK(res2)) {
30956 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
30957 }
30958 if (!argp2) {
30959 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
30960 }
30961 arg2 = reinterpret_cast< wxIcon * >(argp2);
30962 {
30963 arg3 = &temp3;
30964 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30965 }
30966 {
30967 PyThreadState* __tstate = wxPyBeginAllowThreads();
30968 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
30969 wxPyEndAllowThreads(__tstate);
30970 if (PyErr_Occurred()) SWIG_fail;
30971 }
30972 resultobj = SWIG_Py_Void();
30973 return resultobj;
30974fail:
30975 return NULL;
30976}
30977
30978
30979SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30980 PyObject *resultobj = 0;
30981 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30982 wxBitmap *arg2 = 0 ;
30983 int arg3 ;
30984 int arg4 ;
30985 bool arg5 = (bool) false ;
30986 void *argp1 = 0 ;
30987 int res1 = 0 ;
30988 void *argp2 = 0 ;
30989 int res2 = 0 ;
30990 int val3 ;
30991 int ecode3 = 0 ;
30992 int val4 ;
30993 int ecode4 = 0 ;
30994 bool val5 ;
30995 int ecode5 = 0 ;
30996 PyObject * obj0 = 0 ;
30997 PyObject * obj1 = 0 ;
30998 PyObject * obj2 = 0 ;
30999 PyObject * obj3 = 0 ;
31000 PyObject * obj4 = 0 ;
31001 char * kwnames[] = {
31002 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
31003 };
31004
31005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31007 if (!SWIG_IsOK(res1)) {
31008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31009 }
31010 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31011 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31012 if (!SWIG_IsOK(res2)) {
31013 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31014 }
31015 if (!argp2) {
31016 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31017 }
31018 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31019 ecode3 = SWIG_AsVal_int(obj2, &val3);
31020 if (!SWIG_IsOK(ecode3)) {
31021 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
31022 }
31023 arg3 = static_cast< int >(val3);
31024 ecode4 = SWIG_AsVal_int(obj3, &val4);
31025 if (!SWIG_IsOK(ecode4)) {
31026 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
31027 }
31028 arg4 = static_cast< int >(val4);
31029 if (obj4) {
31030 ecode5 = SWIG_AsVal_bool(obj4, &val5);
31031 if (!SWIG_IsOK(ecode5)) {
31032 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
31033 }
31034 arg5 = static_cast< bool >(val5);
31035 }
31036 {
31037 PyThreadState* __tstate = wxPyBeginAllowThreads();
31038 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
31039 wxPyEndAllowThreads(__tstate);
31040 if (PyErr_Occurred()) SWIG_fail;
31041 }
31042 resultobj = SWIG_Py_Void();
31043 return resultobj;
31044fail:
31045 return NULL;
31046}
31047
31048
31049SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31050 PyObject *resultobj = 0;
31051 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31052 wxBitmap *arg2 = 0 ;
31053 wxPoint *arg3 = 0 ;
31054 bool arg4 = (bool) false ;
31055 void *argp1 = 0 ;
31056 int res1 = 0 ;
31057 void *argp2 = 0 ;
31058 int res2 = 0 ;
31059 wxPoint temp3 ;
31060 bool val4 ;
31061 int ecode4 = 0 ;
31062 PyObject * obj0 = 0 ;
31063 PyObject * obj1 = 0 ;
31064 PyObject * obj2 = 0 ;
31065 PyObject * obj3 = 0 ;
31066 char * kwnames[] = {
31067 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
31068 };
31069
31070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31072 if (!SWIG_IsOK(res1)) {
31073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31074 }
31075 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31076 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31077 if (!SWIG_IsOK(res2)) {
31078 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31079 }
31080 if (!argp2) {
31081 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31082 }
31083 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31084 {
31085 arg3 = &temp3;
31086 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31087 }
31088 if (obj3) {
31089 ecode4 = SWIG_AsVal_bool(obj3, &val4);
31090 if (!SWIG_IsOK(ecode4)) {
31091 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
31092 }
31093 arg4 = static_cast< bool >(val4);
31094 }
31095 {
31096 PyThreadState* __tstate = wxPyBeginAllowThreads();
31097 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
31098 wxPyEndAllowThreads(__tstate);
31099 if (PyErr_Occurred()) SWIG_fail;
31100 }
31101 resultobj = SWIG_Py_Void();
31102 return resultobj;
31103fail:
31104 return NULL;
31105}
31106
31107
31108SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31109 PyObject *resultobj = 0;
31110 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31111 wxString *arg2 = 0 ;
31112 int arg3 ;
31113 int arg4 ;
31114 void *argp1 = 0 ;
31115 int res1 = 0 ;
31116 bool temp2 = false ;
31117 int val3 ;
31118 int ecode3 = 0 ;
31119 int val4 ;
31120 int ecode4 = 0 ;
31121 PyObject * obj0 = 0 ;
31122 PyObject * obj1 = 0 ;
31123 PyObject * obj2 = 0 ;
31124 PyObject * obj3 = 0 ;
31125 char * kwnames[] = {
31126 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
31127 };
31128
31129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31131 if (!SWIG_IsOK(res1)) {
31132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31133 }
31134 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31135 {
31136 arg2 = wxString_in_helper(obj1);
31137 if (arg2 == NULL) SWIG_fail;
31138 temp2 = true;
31139 }
31140 ecode3 = SWIG_AsVal_int(obj2, &val3);
31141 if (!SWIG_IsOK(ecode3)) {
31142 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
31143 }
31144 arg3 = static_cast< int >(val3);
31145 ecode4 = SWIG_AsVal_int(obj3, &val4);
31146 if (!SWIG_IsOK(ecode4)) {
31147 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
31148 }
31149 arg4 = static_cast< int >(val4);
31150 {
31151 PyThreadState* __tstate = wxPyBeginAllowThreads();
31152 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
31153 wxPyEndAllowThreads(__tstate);
31154 if (PyErr_Occurred()) SWIG_fail;
31155 }
31156 resultobj = SWIG_Py_Void();
31157 {
31158 if (temp2)
31159 delete arg2;
31160 }
31161 return resultobj;
31162fail:
31163 {
31164 if (temp2)
31165 delete arg2;
31166 }
31167 return NULL;
31168}
31169
31170
31171SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31172 PyObject *resultobj = 0;
31173 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31174 wxString *arg2 = 0 ;
31175 wxPoint *arg3 = 0 ;
31176 void *argp1 = 0 ;
31177 int res1 = 0 ;
31178 bool temp2 = false ;
31179 wxPoint temp3 ;
31180 PyObject * obj0 = 0 ;
31181 PyObject * obj1 = 0 ;
31182 PyObject * obj2 = 0 ;
31183 char * kwnames[] = {
31184 (char *) "self",(char *) "text",(char *) "pt", NULL
31185 };
31186
31187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31189 if (!SWIG_IsOK(res1)) {
31190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31191 }
31192 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31193 {
31194 arg2 = wxString_in_helper(obj1);
31195 if (arg2 == NULL) SWIG_fail;
31196 temp2 = true;
31197 }
31198 {
31199 arg3 = &temp3;
31200 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31201 }
31202 {
31203 PyThreadState* __tstate = wxPyBeginAllowThreads();
31204 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
31205 wxPyEndAllowThreads(__tstate);
31206 if (PyErr_Occurred()) SWIG_fail;
31207 }
31208 resultobj = SWIG_Py_Void();
31209 {
31210 if (temp2)
31211 delete arg2;
31212 }
31213 return resultobj;
31214fail:
31215 {
31216 if (temp2)
31217 delete arg2;
31218 }
31219 return NULL;
31220}
31221
31222
31223SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31224 PyObject *resultobj = 0;
31225 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31226 wxString *arg2 = 0 ;
31227 int arg3 ;
31228 int arg4 ;
31229 double arg5 ;
31230 void *argp1 = 0 ;
31231 int res1 = 0 ;
31232 bool temp2 = false ;
31233 int val3 ;
31234 int ecode3 = 0 ;
31235 int val4 ;
31236 int ecode4 = 0 ;
31237 double val5 ;
31238 int ecode5 = 0 ;
31239 PyObject * obj0 = 0 ;
31240 PyObject * obj1 = 0 ;
31241 PyObject * obj2 = 0 ;
31242 PyObject * obj3 = 0 ;
31243 PyObject * obj4 = 0 ;
31244 char * kwnames[] = {
31245 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
31246 };
31247
31248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31250 if (!SWIG_IsOK(res1)) {
31251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31252 }
31253 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31254 {
31255 arg2 = wxString_in_helper(obj1);
31256 if (arg2 == NULL) SWIG_fail;
31257 temp2 = true;
31258 }
31259 ecode3 = SWIG_AsVal_int(obj2, &val3);
31260 if (!SWIG_IsOK(ecode3)) {
31261 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
31262 }
31263 arg3 = static_cast< int >(val3);
31264 ecode4 = SWIG_AsVal_int(obj3, &val4);
31265 if (!SWIG_IsOK(ecode4)) {
31266 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
31267 }
31268 arg4 = static_cast< int >(val4);
31269 ecode5 = SWIG_AsVal_double(obj4, &val5);
31270 if (!SWIG_IsOK(ecode5)) {
31271 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
31272 }
31273 arg5 = static_cast< double >(val5);
31274 {
31275 PyThreadState* __tstate = wxPyBeginAllowThreads();
31276 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
31277 wxPyEndAllowThreads(__tstate);
31278 if (PyErr_Occurred()) SWIG_fail;
31279 }
31280 resultobj = SWIG_Py_Void();
31281 {
31282 if (temp2)
31283 delete arg2;
31284 }
31285 return resultobj;
31286fail:
31287 {
31288 if (temp2)
31289 delete arg2;
31290 }
31291 return NULL;
31292}
31293
31294
31295SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31296 PyObject *resultobj = 0;
31297 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31298 wxString *arg2 = 0 ;
31299 wxPoint *arg3 = 0 ;
31300 double arg4 ;
31301 void *argp1 = 0 ;
31302 int res1 = 0 ;
31303 bool temp2 = false ;
31304 wxPoint temp3 ;
31305 double val4 ;
31306 int ecode4 = 0 ;
31307 PyObject * obj0 = 0 ;
31308 PyObject * obj1 = 0 ;
31309 PyObject * obj2 = 0 ;
31310 PyObject * obj3 = 0 ;
31311 char * kwnames[] = {
31312 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
31313 };
31314
31315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31317 if (!SWIG_IsOK(res1)) {
31318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31319 }
31320 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31321 {
31322 arg2 = wxString_in_helper(obj1);
31323 if (arg2 == NULL) SWIG_fail;
31324 temp2 = true;
31325 }
31326 {
31327 arg3 = &temp3;
31328 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31329 }
31330 ecode4 = SWIG_AsVal_double(obj3, &val4);
31331 if (!SWIG_IsOK(ecode4)) {
31332 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
31333 }
31334 arg4 = static_cast< double >(val4);
31335 {
31336 PyThreadState* __tstate = wxPyBeginAllowThreads();
31337 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
31338 wxPyEndAllowThreads(__tstate);
31339 if (PyErr_Occurred()) SWIG_fail;
31340 }
31341 resultobj = SWIG_Py_Void();
31342 {
31343 if (temp2)
31344 delete arg2;
31345 }
31346 return resultobj;
31347fail:
31348 {
31349 if (temp2)
31350 delete arg2;
31351 }
31352 return NULL;
31353}
31354
31355
31356SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31357 PyObject *resultobj = 0;
31358 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31359 int arg2 ;
31360 wxPoint *arg3 = (wxPoint *) 0 ;
31361 int arg4 = (int) 0 ;
31362 int arg5 = (int) 0 ;
31363 void *argp1 = 0 ;
31364 int res1 = 0 ;
31365 int val4 ;
31366 int ecode4 = 0 ;
31367 int val5 ;
31368 int ecode5 = 0 ;
31369 PyObject * obj0 = 0 ;
31370 PyObject * obj1 = 0 ;
31371 PyObject * obj2 = 0 ;
31372 PyObject * obj3 = 0 ;
31373 char * kwnames[] = {
31374 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
31375 };
31376
31377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31379 if (!SWIG_IsOK(res1)) {
31380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31381 }
31382 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31383 {
31384 arg3 = wxPoint_LIST_helper(obj1, &arg2);
31385 if (arg3 == NULL) SWIG_fail;
31386 }
31387 if (obj2) {
31388 ecode4 = SWIG_AsVal_int(obj2, &val4);
31389 if (!SWIG_IsOK(ecode4)) {
31390 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
31391 }
31392 arg4 = static_cast< int >(val4);
31393 }
31394 if (obj3) {
31395 ecode5 = SWIG_AsVal_int(obj3, &val5);
31396 if (!SWIG_IsOK(ecode5)) {
31397 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
31398 }
31399 arg5 = static_cast< int >(val5);
31400 }
31401 {
31402 PyThreadState* __tstate = wxPyBeginAllowThreads();
31403 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
31404 wxPyEndAllowThreads(__tstate);
31405 if (PyErr_Occurred()) SWIG_fail;
31406 }
31407 resultobj = SWIG_Py_Void();
31408 {
31409 if (arg3) delete [] arg3;
31410 }
31411 return resultobj;
31412fail:
31413 {
31414 if (arg3) delete [] arg3;
31415 }
31416 return NULL;
31417}
31418
31419
31420SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31421 PyObject *resultobj = 0;
31422 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31423 int arg2 ;
31424 wxPoint *arg3 = (wxPoint *) 0 ;
31425 int arg4 = (int) 0 ;
31426 int arg5 = (int) 0 ;
31427 int arg6 = (int) wxODDEVEN_RULE ;
31428 void *argp1 = 0 ;
31429 int res1 = 0 ;
31430 int val4 ;
31431 int ecode4 = 0 ;
31432 int val5 ;
31433 int ecode5 = 0 ;
31434 int val6 ;
31435 int ecode6 = 0 ;
31436 PyObject * obj0 = 0 ;
31437 PyObject * obj1 = 0 ;
31438 PyObject * obj2 = 0 ;
31439 PyObject * obj3 = 0 ;
31440 PyObject * obj4 = 0 ;
31441 char * kwnames[] = {
31442 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
31443 };
31444
31445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31447 if (!SWIG_IsOK(res1)) {
31448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31449 }
31450 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31451 {
31452 arg3 = wxPoint_LIST_helper(obj1, &arg2);
31453 if (arg3 == NULL) SWIG_fail;
31454 }
31455 if (obj2) {
31456 ecode4 = SWIG_AsVal_int(obj2, &val4);
31457 if (!SWIG_IsOK(ecode4)) {
31458 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
31459 }
31460 arg4 = static_cast< int >(val4);
31461 }
31462 if (obj3) {
31463 ecode5 = SWIG_AsVal_int(obj3, &val5);
31464 if (!SWIG_IsOK(ecode5)) {
31465 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
31466 }
31467 arg5 = static_cast< int >(val5);
31468 }
31469 if (obj4) {
31470 ecode6 = SWIG_AsVal_int(obj4, &val6);
31471 if (!SWIG_IsOK(ecode6)) {
31472 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
31473 }
31474 arg6 = static_cast< int >(val6);
31475 }
31476 {
31477 PyThreadState* __tstate = wxPyBeginAllowThreads();
31478 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
31479 wxPyEndAllowThreads(__tstate);
31480 if (PyErr_Occurred()) SWIG_fail;
31481 }
31482 resultobj = SWIG_Py_Void();
31483 {
31484 if (arg3) delete [] arg3;
31485 }
31486 return resultobj;
31487fail:
31488 {
31489 if (arg3) delete [] arg3;
31490 }
31491 return NULL;
31492}
31493
31494
31495SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31496 PyObject *resultobj = 0;
31497 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31498 wxString *arg2 = 0 ;
31499 wxRect *arg3 = 0 ;
31500 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
31501 int arg5 = (int) -1 ;
31502 void *argp1 = 0 ;
31503 int res1 = 0 ;
31504 bool temp2 = false ;
31505 wxRect temp3 ;
31506 int val4 ;
31507 int ecode4 = 0 ;
31508 int val5 ;
31509 int ecode5 = 0 ;
31510 PyObject * obj0 = 0 ;
31511 PyObject * obj1 = 0 ;
31512 PyObject * obj2 = 0 ;
31513 PyObject * obj3 = 0 ;
31514 PyObject * obj4 = 0 ;
31515 char * kwnames[] = {
31516 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
31517 };
31518
31519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31521 if (!SWIG_IsOK(res1)) {
31522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31523 }
31524 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31525 {
31526 arg2 = wxString_in_helper(obj1);
31527 if (arg2 == NULL) SWIG_fail;
31528 temp2 = true;
31529 }
31530 {
31531 arg3 = &temp3;
31532 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31533 }
31534 if (obj3) {
31535 ecode4 = SWIG_AsVal_int(obj3, &val4);
31536 if (!SWIG_IsOK(ecode4)) {
31537 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
31538 }
31539 arg4 = static_cast< int >(val4);
31540 }
31541 if (obj4) {
31542 ecode5 = SWIG_AsVal_int(obj4, &val5);
31543 if (!SWIG_IsOK(ecode5)) {
31544 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
31545 }
31546 arg5 = static_cast< int >(val5);
31547 }
31548 {
31549 PyThreadState* __tstate = wxPyBeginAllowThreads();
31550 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
31551 wxPyEndAllowThreads(__tstate);
31552 if (PyErr_Occurred()) SWIG_fail;
31553 }
31554 resultobj = SWIG_Py_Void();
31555 {
31556 if (temp2)
31557 delete arg2;
31558 }
31559 return resultobj;
31560fail:
31561 {
31562 if (temp2)
31563 delete arg2;
31564 }
31565 return NULL;
31566}
31567
31568
31569SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31570 PyObject *resultobj = 0;
31571 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31572 wxString *arg2 = 0 ;
31573 wxBitmap *arg3 = 0 ;
31574 wxRect *arg4 = 0 ;
31575 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
31576 int arg6 = (int) -1 ;
31577 void *argp1 = 0 ;
31578 int res1 = 0 ;
31579 bool temp2 = false ;
31580 void *argp3 = 0 ;
31581 int res3 = 0 ;
31582 wxRect temp4 ;
31583 int val5 ;
31584 int ecode5 = 0 ;
31585 int val6 ;
31586 int ecode6 = 0 ;
31587 PyObject * obj0 = 0 ;
31588 PyObject * obj1 = 0 ;
31589 PyObject * obj2 = 0 ;
31590 PyObject * obj3 = 0 ;
31591 PyObject * obj4 = 0 ;
31592 PyObject * obj5 = 0 ;
31593 char * kwnames[] = {
31594 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
31595 };
31596
31597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
31598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31599 if (!SWIG_IsOK(res1)) {
31600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31601 }
31602 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31603 {
31604 arg2 = wxString_in_helper(obj1);
31605 if (arg2 == NULL) SWIG_fail;
31606 temp2 = true;
31607 }
31608 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31609 if (!SWIG_IsOK(res3)) {
31610 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31611 }
31612 if (!argp3) {
31613 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31614 }
31615 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31616 {
31617 arg4 = &temp4;
31618 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31619 }
31620 if (obj4) {
31621 ecode5 = SWIG_AsVal_int(obj4, &val5);
31622 if (!SWIG_IsOK(ecode5)) {
31623 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
31624 }
31625 arg5 = static_cast< int >(val5);
31626 }
31627 if (obj5) {
31628 ecode6 = SWIG_AsVal_int(obj5, &val6);
31629 if (!SWIG_IsOK(ecode6)) {
31630 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
31631 }
31632 arg6 = static_cast< int >(val6);
31633 }
31634 {
31635 PyThreadState* __tstate = wxPyBeginAllowThreads();
31636 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
31637 wxPyEndAllowThreads(__tstate);
31638 if (PyErr_Occurred()) SWIG_fail;
31639 }
31640 resultobj = SWIG_Py_Void();
31641 {
31642 if (temp2)
31643 delete arg2;
31644 }
31645 return resultobj;
31646fail:
31647 {
31648 if (temp2)
31649 delete arg2;
31650 }
31651 return NULL;
31652}
31653
31654
31655SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31656 PyObject *resultobj = 0;
31657 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31658 int arg2 ;
31659 wxPoint *arg3 = (wxPoint *) 0 ;
31660 void *argp1 = 0 ;
31661 int res1 = 0 ;
31662 PyObject * obj0 = 0 ;
31663 PyObject * obj1 = 0 ;
31664 char * kwnames[] = {
31665 (char *) "self",(char *) "points", NULL
31666 };
31667
31668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
31669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31670 if (!SWIG_IsOK(res1)) {
31671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31672 }
31673 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31674 {
31675 arg3 = wxPoint_LIST_helper(obj1, &arg2);
31676 if (arg3 == NULL) SWIG_fail;
31677 }
31678 {
31679 PyThreadState* __tstate = wxPyBeginAllowThreads();
31680 (arg1)->DrawSpline(arg2,arg3);
31681 wxPyEndAllowThreads(__tstate);
31682 if (PyErr_Occurred()) SWIG_fail;
31683 }
31684 resultobj = SWIG_Py_Void();
31685 {
31686 if (arg3) delete [] arg3;
31687 }
31688 return resultobj;
31689fail:
31690 {
31691 if (arg3) delete [] arg3;
31692 }
31693 return NULL;
31694}
31695
31696
31697SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31698 PyObject *resultobj = 0;
31699 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31700 void *argp1 = 0 ;
31701 int res1 = 0 ;
31702 PyObject *swig_obj[1] ;
31703
31704 if (!args) SWIG_fail;
31705 swig_obj[0] = args;
31706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31707 if (!SWIG_IsOK(res1)) {
31708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31709 }
31710 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31711 {
31712 PyThreadState* __tstate = wxPyBeginAllowThreads();
31713 (arg1)->Clear();
31714 wxPyEndAllowThreads(__tstate);
31715 if (PyErr_Occurred()) SWIG_fail;
31716 }
31717 resultobj = SWIG_Py_Void();
31718 return resultobj;
31719fail:
31720 return NULL;
31721}
31722
31723
31724SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31725 PyObject *resultobj = 0;
31726 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31727 wxFont *arg2 = 0 ;
31728 void *argp1 = 0 ;
31729 int res1 = 0 ;
31730 void *argp2 = 0 ;
31731 int res2 = 0 ;
31732 PyObject * obj0 = 0 ;
31733 PyObject * obj1 = 0 ;
31734 char * kwnames[] = {
31735 (char *) "self",(char *) "font", NULL
31736 };
31737
31738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
31739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31740 if (!SWIG_IsOK(res1)) {
31741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31742 }
31743 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31744 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
31745 if (!SWIG_IsOK(res2)) {
31746 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31747 }
31748 if (!argp2) {
31749 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31750 }
31751 arg2 = reinterpret_cast< wxFont * >(argp2);
31752 {
31753 PyThreadState* __tstate = wxPyBeginAllowThreads();
31754 (arg1)->SetFont((wxFont const &)*arg2);
31755 wxPyEndAllowThreads(__tstate);
31756 if (PyErr_Occurred()) SWIG_fail;
31757 }
31758 resultobj = SWIG_Py_Void();
31759 return resultobj;
31760fail:
31761 return NULL;
31762}
31763
31764
31765SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31766 PyObject *resultobj = 0;
31767 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31768 wxPen *arg2 = 0 ;
31769 void *argp1 = 0 ;
31770 int res1 = 0 ;
31771 void *argp2 = 0 ;
31772 int res2 = 0 ;
31773 PyObject * obj0 = 0 ;
31774 PyObject * obj1 = 0 ;
31775 char * kwnames[] = {
31776 (char *) "self",(char *) "pen", NULL
31777 };
31778
31779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
31780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31781 if (!SWIG_IsOK(res1)) {
31782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31783 }
31784 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31785 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
31786 if (!SWIG_IsOK(res2)) {
31787 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
31788 }
31789 if (!argp2) {
31790 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
31791 }
31792 arg2 = reinterpret_cast< wxPen * >(argp2);
31793 {
31794 PyThreadState* __tstate = wxPyBeginAllowThreads();
31795 (arg1)->SetPen((wxPen const &)*arg2);
31796 wxPyEndAllowThreads(__tstate);
31797 if (PyErr_Occurred()) SWIG_fail;
31798 }
31799 resultobj = SWIG_Py_Void();
31800 return resultobj;
31801fail:
31802 return NULL;
31803}
31804
31805
31806SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31807 PyObject *resultobj = 0;
31808 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31809 wxBrush *arg2 = 0 ;
31810 void *argp1 = 0 ;
31811 int res1 = 0 ;
31812 void *argp2 = 0 ;
31813 int res2 = 0 ;
31814 PyObject * obj0 = 0 ;
31815 PyObject * obj1 = 0 ;
31816 char * kwnames[] = {
31817 (char *) "self",(char *) "brush", NULL
31818 };
31819
31820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31822 if (!SWIG_IsOK(res1)) {
31823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31824 }
31825 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31826 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
31827 if (!SWIG_IsOK(res2)) {
31828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31829 }
31830 if (!argp2) {
31831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31832 }
31833 arg2 = reinterpret_cast< wxBrush * >(argp2);
31834 {
31835 PyThreadState* __tstate = wxPyBeginAllowThreads();
31836 (arg1)->SetBrush((wxBrush const &)*arg2);
31837 wxPyEndAllowThreads(__tstate);
31838 if (PyErr_Occurred()) SWIG_fail;
31839 }
31840 resultobj = SWIG_Py_Void();
31841 return resultobj;
31842fail:
31843 return NULL;
31844}
31845
31846
31847SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31848 PyObject *resultobj = 0;
31849 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31850 wxBrush *arg2 = 0 ;
31851 void *argp1 = 0 ;
31852 int res1 = 0 ;
31853 void *argp2 = 0 ;
31854 int res2 = 0 ;
31855 PyObject * obj0 = 0 ;
31856 PyObject * obj1 = 0 ;
31857 char * kwnames[] = {
31858 (char *) "self",(char *) "brush", NULL
31859 };
31860
31861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
31862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31863 if (!SWIG_IsOK(res1)) {
31864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31865 }
31866 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31867 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
31868 if (!SWIG_IsOK(res2)) {
31869 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
31870 }
31871 if (!argp2) {
31872 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
31873 }
31874 arg2 = reinterpret_cast< wxBrush * >(argp2);
31875 {
31876 PyThreadState* __tstate = wxPyBeginAllowThreads();
31877 (arg1)->SetBackground((wxBrush const &)*arg2);
31878 wxPyEndAllowThreads(__tstate);
31879 if (PyErr_Occurred()) SWIG_fail;
31880 }
31881 resultobj = SWIG_Py_Void();
31882 return resultobj;
31883fail:
31884 return NULL;
31885}
31886
31887
31888SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31889 PyObject *resultobj = 0;
31890 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31891 int arg2 ;
31892 void *argp1 = 0 ;
31893 int res1 = 0 ;
31894 int val2 ;
31895 int ecode2 = 0 ;
31896 PyObject * obj0 = 0 ;
31897 PyObject * obj1 = 0 ;
31898 char * kwnames[] = {
31899 (char *) "self",(char *) "mode", NULL
31900 };
31901
31902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
31903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31904 if (!SWIG_IsOK(res1)) {
31905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31906 }
31907 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31908 ecode2 = SWIG_AsVal_int(obj1, &val2);
31909 if (!SWIG_IsOK(ecode2)) {
31910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
31911 }
31912 arg2 = static_cast< int >(val2);
31913 {
31914 PyThreadState* __tstate = wxPyBeginAllowThreads();
31915 (arg1)->SetBackgroundMode(arg2);
31916 wxPyEndAllowThreads(__tstate);
31917 if (PyErr_Occurred()) SWIG_fail;
31918 }
31919 resultobj = SWIG_Py_Void();
31920 return resultobj;
31921fail:
31922 return NULL;
31923}
31924
31925
31926SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31927 PyObject *resultobj = 0;
31928 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31929 wxPalette *arg2 = 0 ;
31930 void *argp1 = 0 ;
31931 int res1 = 0 ;
31932 void *argp2 = 0 ;
31933 int res2 = 0 ;
31934 PyObject * obj0 = 0 ;
31935 PyObject * obj1 = 0 ;
31936 char * kwnames[] = {
31937 (char *) "self",(char *) "palette", NULL
31938 };
31939
31940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
31941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31942 if (!SWIG_IsOK(res1)) {
31943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31944 }
31945 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31946 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
31947 if (!SWIG_IsOK(res2)) {
31948 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
31949 }
31950 if (!argp2) {
31951 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
31952 }
31953 arg2 = reinterpret_cast< wxPalette * >(argp2);
31954 {
31955 PyThreadState* __tstate = wxPyBeginAllowThreads();
31956 (arg1)->SetPalette((wxPalette const &)*arg2);
31957 wxPyEndAllowThreads(__tstate);
31958 if (PyErr_Occurred()) SWIG_fail;
31959 }
31960 resultobj = SWIG_Py_Void();
31961 return resultobj;
31962fail:
31963 return NULL;
31964}
31965
31966
31967SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31968 PyObject *resultobj = 0;
31969 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31970 wxColour *arg2 = 0 ;
31971 void *argp1 = 0 ;
31972 int res1 = 0 ;
31973 wxColour temp2 ;
31974 PyObject * obj0 = 0 ;
31975 PyObject * obj1 = 0 ;
31976 char * kwnames[] = {
31977 (char *) "self",(char *) "colour", NULL
31978 };
31979
31980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
31981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31982 if (!SWIG_IsOK(res1)) {
31983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31984 }
31985 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31986 {
31987 arg2 = &temp2;
31988 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31989 }
31990 {
31991 PyThreadState* __tstate = wxPyBeginAllowThreads();
31992 (arg1)->SetTextForeground((wxColour const &)*arg2);
31993 wxPyEndAllowThreads(__tstate);
31994 if (PyErr_Occurred()) SWIG_fail;
31995 }
31996 resultobj = SWIG_Py_Void();
31997 return resultobj;
31998fail:
31999 return NULL;
32000}
32001
32002
32003SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32004 PyObject *resultobj = 0;
32005 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32006 wxColour *arg2 = 0 ;
32007 void *argp1 = 0 ;
32008 int res1 = 0 ;
32009 wxColour temp2 ;
32010 PyObject * obj0 = 0 ;
32011 PyObject * obj1 = 0 ;
32012 char * kwnames[] = {
32013 (char *) "self",(char *) "colour", NULL
32014 };
32015
32016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
32017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32018 if (!SWIG_IsOK(res1)) {
32019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32020 }
32021 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32022 {
32023 arg2 = &temp2;
32024 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32025 }
32026 {
32027 PyThreadState* __tstate = wxPyBeginAllowThreads();
32028 (arg1)->SetTextBackground((wxColour const &)*arg2);
32029 wxPyEndAllowThreads(__tstate);
32030 if (PyErr_Occurred()) SWIG_fail;
32031 }
32032 resultobj = SWIG_Py_Void();
32033 return resultobj;
32034fail:
32035 return NULL;
32036}
32037
32038
32039SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32040 PyObject *resultobj = 0;
32041 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32042 int arg2 ;
32043 void *argp1 = 0 ;
32044 int res1 = 0 ;
32045 int val2 ;
32046 int ecode2 = 0 ;
32047 PyObject * obj0 = 0 ;
32048 PyObject * obj1 = 0 ;
32049 char * kwnames[] = {
32050 (char *) "self",(char *) "function", NULL
32051 };
32052
32053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
32054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32055 if (!SWIG_IsOK(res1)) {
32056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32057 }
32058 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32059 ecode2 = SWIG_AsVal_int(obj1, &val2);
32060 if (!SWIG_IsOK(ecode2)) {
32061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
32062 }
32063 arg2 = static_cast< int >(val2);
32064 {
32065 PyThreadState* __tstate = wxPyBeginAllowThreads();
32066 (arg1)->SetLogicalFunction(arg2);
32067 wxPyEndAllowThreads(__tstate);
32068 if (PyErr_Occurred()) SWIG_fail;
32069 }
32070 resultobj = SWIG_Py_Void();
32071 return resultobj;
32072fail:
32073 return NULL;
32074}
32075
32076
32077SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32078 PyObject *obj;
32079 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32080 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
32081 return SWIG_Py_Void();
32082}
32083
32084SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32085 return SWIG_Python_InitShadowInstance(args);
32086}
32087
32088static PyMethodDef SwigMethods[] = {
32089 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
32090 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
32091 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
32092 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
32093 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
32094 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
32095 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
32096 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
32097 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
32098 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
32099 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
32100 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 32101 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
27e45892
RD
32102 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
32103 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
32104 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
32105 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
32106 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
32107 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
32108 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
32109 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 32110 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
32111 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
32112 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
32113 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
32114 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
32115 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
32116 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
32117 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
32118 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
32119 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
32120 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
32121 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
32122 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
32123 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
32124 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
32125 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
32126 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
32127 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
32128 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
32129 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
32130 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
32131 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
32132 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
32133 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
32134 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
32135 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
32136 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
32137 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
32138 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
32139 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
32140 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
32141 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
32142 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
32143 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
32144 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
32145 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
32146 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32147 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
32148 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
32149 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
32150 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
32151 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
32152 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
32153 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
32154 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
32155 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
32156 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
32157 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
32158 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32159 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
32160 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32161 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32162 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
32163 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
32164 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
32165 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
32166 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
32167 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
32168 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
32169 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
32170 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
32171 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
32172 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
32173 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
32174 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
32175 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
32176 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32177 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
32178 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
32179 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
32180 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
32181 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32182 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
32183 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
32184 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
32185 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
32186 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
32187 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
32188 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
32189 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
32190 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
32191 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
32192 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
32193 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
32194 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
32195 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
32196 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
32197 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
32198 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
32199 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
32200 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
32201 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
32202 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
32203 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
32204 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
32205 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
32206 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
32207 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
32208 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
32209 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
32210 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
32211 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
32212 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
32213 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
32214 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
32215 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
32216 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
32217 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
32218 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
32219 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
32220 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
32221 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
32222 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
32223 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
32224 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
32225 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
32226 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
32227 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
32228 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
32229 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
32230 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
32231 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
32232 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
32233 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
32234 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
32235 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
32236 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
32237 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
32238 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
32239 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
32240 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
32241 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
32242 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
32243 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
32244 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
32245 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
32246 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
32247 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
32248 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32249 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
32250 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
32251 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
32252 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
32253 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
32254 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
32255 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
32256 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
32257 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
32258 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
32259 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
32260 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
32261 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32262 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
32263 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
32264 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
32265 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
32266 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
32267 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
32268 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
32269 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
32270 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
32271 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
32272 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
32273 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
32274 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
32275 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32276 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
32277 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32278 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
32279 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32280 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
32281 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
32282 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
32283 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
32284 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
32285 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
32286 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
32287 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
32288 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
32289 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
32290 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
32291 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
32292 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
32293 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
32294 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
32295 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
32296 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
32297 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
32298 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
32299 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32300 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
32301 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
32302 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
32303 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
32304 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
32305 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
32306 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32307 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
32308 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
32309 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
32310 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
32311 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
32312 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
32313 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
32314 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
32315 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
32316 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
32317 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
32318 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
32319 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
32320 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
32321 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
32322 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
32323 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
32324 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32325 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
32326 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
32327 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
32328 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
32329 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
32330 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
32331 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
32332 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
32333 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
32334 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
32335 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
32336 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
32337 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
32338 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
32339 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
32340 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
32341 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
32342 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
32343 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
32344 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
32345 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
32346 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
32347 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
32348 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
32349 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
32350 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
32351 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
32352 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
32353 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
32354 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
32355 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32356 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
32357 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
32358 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
32359 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
32360 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
32361 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
32362 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
32363 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
32364 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
32365 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
32366 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
32367 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
32368 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
32369 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
32370 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
32371 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
32372 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
32373 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
32374 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
32375 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
32376 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
32377 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
32378 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
32379 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
32380 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
32381 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
32382 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
32383 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
32384 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
32385 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
32386 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
32387 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
32388 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
32389 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
32390 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
32391 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
32392 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
32393 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
32394 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
32395 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
32396 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
32397 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
32398 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
32399 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
32400 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
32401 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
32402 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
32403 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
32404 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
32405 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
32406 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
32407 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
32408 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
32409 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
32410 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
32411 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
32412 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
32413 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
32414 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
32415 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
32416 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
32417 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
32418 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
32419 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
32420 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
32421 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
32422 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
32423 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32424 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
32425 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
32426 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
32427 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
32428 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
32429 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
32430 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
32431 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
32432 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
32433 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
32434 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
32435 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
32436 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
32437 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
32438 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
32439 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
32440 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
32441 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
32442 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
32443 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
32444 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
32445 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
32446 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
32447 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
32448 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
32449 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
32450 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
32451 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
32452 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
32453 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
32454 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
32455 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
32456 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
32457 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
32458 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
32459 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
32460 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
32461 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
32462 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
32463 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
32464 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
32465 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
32466 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
32467 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
32468 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
32469 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
32470 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
32471 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
32472 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
32473 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 32474 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
32475 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
32476 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
32477 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
32478 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
32479 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
32480 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
32481 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
32482 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
32483 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
32484 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
32485 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
32486 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
32487 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
32488 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
32489 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
32490 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
554f62e9
RD
32491 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
32492 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
32493 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
32494 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
32495 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
32496 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
32497 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
32498 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
32499 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
32500 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
32501 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
32502 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
32503 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
32504 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32505 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
32506 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
32507 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
32508 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32509 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
32510 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
32511 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
32512 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32513 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
32514 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32515 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
32516 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
32517 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
32518 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32519 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32520 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32521 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
32522 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
32523 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32524 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
32525 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
32526 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32527 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
32528 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
32529 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
32530 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
32531 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32532 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32533 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32534 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32535 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32536 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
32537 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32538 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
32539 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32540 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
32541 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32542 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
32543 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32544 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
32545 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
32546 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
32547 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
32548 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
32549 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
32550 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
32551 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
32552 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
32553 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
32554 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
32555 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
32556 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
32557 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
32558 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
32559 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
32560 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
32561 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
32562 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
32563 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
32564 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
32565 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
32566 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
32567 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
32568 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
32569 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
32570 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
32571 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
32572 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
32573 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
32574 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
32575 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
32576 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
32577 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
32578 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
32579 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
32580 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
32581 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
32582 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
32583 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
32584 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
32585 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
32586 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
32587 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
32588 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
32589 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
32590 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
32591 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
32592 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
32593 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
32594 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
32595 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
32596 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
32597 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
32598 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
32599 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
32600 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
32601 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
32602 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
32603 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
32604 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
32605 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
32606 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32607 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
32608 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
32609 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
32610 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32611 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
32612 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
32613 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
32614 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
32615 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
32616 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32617 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
32618 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
32619 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
32620 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
32621 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
32622 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
32623 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
32624 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
32625 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
32626 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
32627 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
32628 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
32629 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
32630 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
32631 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
32632 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
32633 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
32634 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
32635 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
32636 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
32637 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
32638 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
32639 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
32640 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
32641 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
32642 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
32643 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
32644 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
32645 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
32646 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
32647 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
32648 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
32649 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
32650 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
32651 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
32652 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
32653 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
32654 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
32655 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
32656 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
32657 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
32658 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
32659 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
32660 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
32661 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
32662 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
32663 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
32664 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
32665 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
32666 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
32667 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
32668 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
32669 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
32670 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
32671 { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL},
32672 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
32673 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
32674 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
32675 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
32676 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
32677 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
32678 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
32679 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
32680 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
32681 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
32682 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
32683 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
32684 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
32685 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
32686 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
32687 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
32688 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
32689 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
32690 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32691 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32692 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32693 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
32694 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
32695 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
32696 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
32697 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
32698 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
32699 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
32700 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
50efceee
RD
32701 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
32702 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
32703 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
32704 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
32705 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
32706 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
32707 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
32708 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
32709 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
32710 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
32711 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
32712 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
32713 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
32714 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
32715 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
554f62e9 32716 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 32717 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 32718 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 32719 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
554f62e9 32720 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 32721 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 32722 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 32723 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
50efceee
RD
32724 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
32725 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
32726 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
32727 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
554f62e9
RD
32728 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
32729 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
32730 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
32731 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
32732 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
32733 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
32734 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
32735 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
50efceee
RD
32736 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
32737 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
32738 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
32739 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
554f62e9
RD
32740 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
32741 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
32742 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
32743 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
32744 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
32745 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
32746 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
32747 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
32748 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
32749 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
32750 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
32751 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
32752 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
32753 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32754 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
32755 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
32756 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
32757 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
32758 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
32759 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
32760 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
32761 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
32762 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
32763 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
32764 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
32765 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
32766 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
32767 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
32768 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
32769 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
32770 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
32771 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
32772 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
32773 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
32774 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
32775 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
32776 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
32777 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
32778 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
32779 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
32780 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
554f62e9
RD
32781 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
32782 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
32783 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
32784 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
32785 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
32786 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
32787 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
32788 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
32789 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
32790 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
32791 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
32792 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
32793 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
32794 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
32795 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
f460c29d
RD
32796 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
32797 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
32798 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
32799 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
32800 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
32801 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
32802 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
32803 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
32804 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
32805 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
32806 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
32807 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
32808 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
32809 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
32810 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
32811 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
32812 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
32813 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
32814 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
32815 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
32816 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
32817 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
32818 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
32819 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
32820 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
32821 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
32822 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
32823 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32824 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
32825 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
32826 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
32827 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32828 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
32829 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32830 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
32831 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
32832 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
32833 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32834 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32835 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32836 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
32837 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
32838 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32839 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
32840 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
32841 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32842 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
32843 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
32844 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
32845 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
32846 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
32847 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
32848 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32849 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
32850 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32851 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
32852 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32853 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
32854 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
32855 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
32856 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
32857 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
32858 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
32859 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
32860 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
32861 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
32862 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
32863 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
32864 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
32865 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
32866 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
32867 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
32868 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
32869 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
32870 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
32871 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
554f62e9
RD
32872 { NULL, NULL, 0, NULL }
32873};
32874
32875
32876/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
32877
32878static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
32879 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
32880}
32881static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
32882 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
32883}
fc46b7f3
RD
32884static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
32885 return (void *)((wxLocale *) ((wxPyLocale *) x));
32886}
554f62e9
RD
32887static void *_p_wxIconTo_p_wxGDIObject(void *x) {
32888 return (void *)((wxGDIObject *) ((wxIcon *) x));
32889}
32890static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
32891 return (void *)((wxGDIObject *) ((wxPalette *) x));
32892}
32893static void *_p_wxPenTo_p_wxGDIObject(void *x) {
32894 return (void *)((wxGDIObject *) ((wxPen *) x));
32895}
32896static void *_p_wxFontTo_p_wxGDIObject(void *x) {
32897 return (void *)((wxGDIObject *) ((wxFont *) x));
32898}
32899static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
32900 return (void *)((wxGDIObject *) ((wxCursor *) x));
32901}
32902static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
32903 return (void *)((wxGDIObject *) ((wxBitmap *) x));
32904}
32905static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
32906 return (void *)((wxGDIObject *) ((wxRegion *) x));
32907}
32908static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
32909 return (void *)((wxGDIObject *) ((wxBrush *) x));
32910}
32911static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
32912 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
32913}
32914static void *_p_wxScreenDCTo_p_wxDC(void *x) {
32915 return (void *)((wxDC *) ((wxScreenDC *) x));
32916}
32917static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
32918 return (void *)((wxDC *) ((wxMirrorDC *) x));
32919}
32920static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
32921 return (void *)((wxDC *) ((wxMemoryDC *) x));
32922}
32923static void *_p_wxWindowDCTo_p_wxDC(void *x) {
32924 return (void *)((wxDC *) ((wxWindowDC *) x));
32925}
32926static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
32927 return (void *)((wxDC *) ((wxMetaFileDC *) x));
32928}
32929static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
32930 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
32931}
32932static void *_p_wxClientDCTo_p_wxDC(void *x) {
32933 return (void *)((wxDC *) ((wxClientDC *) x));
32934}
32935static void *_p_wxPaintDCTo_p_wxDC(void *x) {
32936 return (void *)((wxDC *) ((wxPaintDC *) x));
32937}
32938static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
32939 return (void *)((wxDC *) ((wxPostScriptDC *) x));
32940}
32941static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
32942 return (void *)((wxDC *) ((wxPrinterDC *) x));
32943}
50efceee
RD
32944static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
32945 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
32946}
32947static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
32948 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
32949}
32950static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
32951 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
32952}
554f62e9
RD
32953static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
32954 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
32955}
32956static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
32957 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
32958}
32959static void *_p_wxPenTo_p_wxObject(void *x) {
32960 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
32961}
32962static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
32963 return (void *)((wxObject *) ((wxRegionIterator *) x));
32964}
554f62e9
RD
32965static void *_p_wxSizerItemTo_p_wxObject(void *x) {
32966 return (void *)((wxObject *) ((wxSizerItem *) x));
32967}
0f83f5da
RD
32968static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
32969 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
32970}
554f62e9
RD
32971static void *_p_wxScrollEventTo_p_wxObject(void *x) {
32972 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
32973}
32974static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
32975 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
32976}
32977static void *_p_wxIconTo_p_wxObject(void *x) {
32978 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
32979}
32980static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
32981 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
32982}
32983static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
32984 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
32985}
32986static void *_p_wxSizerTo_p_wxObject(void *x) {
32987 return (void *)((wxObject *) ((wxSizer *) x));
32988}
32989static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
32990 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32991}
32992static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
32993 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
32994}
554f62e9
RD
32995static void *_p_wxEventTo_p_wxObject(void *x) {
32996 return (void *)((wxObject *) ((wxEvent *) x));
32997}
32998static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
32999 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
33000}
33001static void *_p_wxGridSizerTo_p_wxObject(void *x) {
33002 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
33003}
33004static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
33005 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
33006}
27e45892
RD
33007static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
33008 return (void *)((wxObject *) ((wxPseudoDC *) x));
33009}
2131d850
RD
33010static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
33011 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
33012}
554f62e9
RD
33013static void *_p_wxPaintEventTo_p_wxObject(void *x) {
33014 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
33015}
33016static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
33017 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
33018}
33019static void *_p_wxDCTo_p_wxObject(void *x) {
33020 return (void *)((wxObject *) ((wxDC *) x));
33021}
33022static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
33023 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
33024}
33025static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
33026 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
33027}
33028static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
33029 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
33030}
33031static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
33032 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
33033}
33034static void *_p_wxControlTo_p_wxObject(void *x) {
33035 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
33036}
33037static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
33038 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
33039}
33040static void *_p_wxClientDCTo_p_wxObject(void *x) {
33041 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
33042}
33043static void *_p_wxFSFileTo_p_wxObject(void *x) {
33044 return (void *)((wxObject *) ((wxFSFile *) x));
33045}
33046static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
33047 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
33048}
33049static void *_p_wxRegionTo_p_wxObject(void *x) {
33050 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
33051}
33052static void *_p_wxPySizerTo_p_wxObject(void *x) {
33053 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
33054}
33055static void *_p_wxWindowDCTo_p_wxObject(void *x) {
33056 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
33057}
33058static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
33059 return (void *)((wxObject *) ((wxGDIObject *) x));
33060}
33061static void *_p_wxEffectsTo_p_wxObject(void *x) {
33062 return (void *)((wxObject *) ((wxEffects *) x));
33063}
33064static void *_p_wxPyEventTo_p_wxObject(void *x) {
33065 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
33066}
33067static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
33068 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
33069}
33070static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
33071 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
33072}
33073static void *_p_wxShowEventTo_p_wxObject(void *x) {
33074 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
33075}
33076static void *_p_wxMenuItemTo_p_wxObject(void *x) {
33077 return (void *)((wxObject *) ((wxMenuItem *) x));
33078}
33079static void *_p_wxDateEventTo_p_wxObject(void *x) {
33080 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
33081}
33082static void *_p_wxIdleEventTo_p_wxObject(void *x) {
33083 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
33084}
33085static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
33086 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
33087}
33088static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
33089 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
33090}
33091static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
33092 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
33093}
33094static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
33095 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
33096}
33097static void *_p_wxSizeEventTo_p_wxObject(void *x) {
33098 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
33099}
33100static void *_p_wxMoveEventTo_p_wxObject(void *x) {
33101 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
33102}
33103static void *_p_wxActivateEventTo_p_wxObject(void *x) {
33104 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
33105}
33106static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
33107 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
33108}
33109static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
33110 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
33111}
33112static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
33113 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
33114}
33115static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
33116 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
33117}
33118static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
33119 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
33120}
33121static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
33122 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
33123}
33124static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
33125 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
33126}
33127static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
33128 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
33129}
33130static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
33131 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
33132}
33133static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
33134 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
33135}
33136static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
33137 return (void *)((wxObject *) ((wxImageHandler *) x));
33138}
33139static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
33140 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
33141}
33142static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
33143 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
33144}
33145static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
33146 return (void *)((wxObject *) ((wxEvtHandler *) x));
33147}
0f83f5da
RD
33148static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
33149 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
33150}
554f62e9
RD
33151static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
33152 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
33153}
33154static void *_p_wxPaintDCTo_p_wxObject(void *x) {
33155 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
33156}
33157static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
33158 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
33159}
33160static void *_p_wxScreenDCTo_p_wxObject(void *x) {
33161 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
33162}
33163static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
33164 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
33165}
33166static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
33167 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
33168}
33169static void *_p_wxImageTo_p_wxObject(void *x) {
33170 return (void *)((wxObject *) ((wxImage *) x));
33171}
33172static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
33173 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
33174}
33175static void *_p_wxPaletteTo_p_wxObject(void *x) {
33176 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
33177}
33178static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
33179 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
33180}
33181static void *_p_wxImageListTo_p_wxObject(void *x) {
33182 return (void *)((wxObject *) ((wxImageList *) x));
33183}
33184static void *_p_wxCursorTo_p_wxObject(void *x) {
33185 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
33186}
33187static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
33188 return (void *)((wxObject *) ((wxEncodingConverter *) x));
33189}
33190static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
33191 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
33192}
33193static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
33194 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
33195}
33196static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
33197 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
33198}
33199static void *_p_wxKeyEventTo_p_wxObject(void *x) {
33200 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
33201}
33202static void *_p_wxWindowTo_p_wxObject(void *x) {
33203 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
33204}
33205static void *_p_wxMenuTo_p_wxObject(void *x) {
33206 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
33207}
33208static void *_p_wxMenuBarTo_p_wxObject(void *x) {
33209 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
33210}
33211static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
33212 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
33213}
554f62e9
RD
33214static void *_p_wxFileSystemTo_p_wxObject(void *x) {
33215 return (void *)((wxObject *) ((wxFileSystem *) x));
33216}
33217static void *_p_wxBitmapTo_p_wxObject(void *x) {
33218 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
33219}
33220static void *_p_wxMaskTo_p_wxObject(void *x) {
33221 return (void *)((wxObject *) ((wxMask *) x));
33222}
33223static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
33224 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
33225}
33226static void *_p_wxMenuEventTo_p_wxObject(void *x) {
33227 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
33228}
33229static void *_p_wxPyAppTo_p_wxObject(void *x) {
33230 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
33231}
33232static void *_p_wxCloseEventTo_p_wxObject(void *x) {
33233 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
33234}
33235static void *_p_wxMouseEventTo_p_wxObject(void *x) {
33236 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
33237}
33238static void *_p_wxEraseEventTo_p_wxObject(void *x) {
33239 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
33240}
33241static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
33242 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
33243}
33244static void *_p_wxCommandEventTo_p_wxObject(void *x) {
33245 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
33246}
33247static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
33248 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
33249}
33250static void *_p_wxFocusEventTo_p_wxObject(void *x) {
33251 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
33252}
33253static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
33254 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
33255}
33256static void *_p_wxFontTo_p_wxObject(void *x) {
33257 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
33258}
33259static void *_p_wxBrushTo_p_wxObject(void *x) {
33260 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
33261}
33262static void *_p_wxMetaFileTo_p_wxObject(void *x) {
33263 return (void *)((wxObject *) ((wxMetaFile *) x));
33264}
33265static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
33266 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
33267}
33268static void *_p_wxColourTo_p_wxObject(void *x) {
33269 return (void *)((wxObject *) ((wxColour *) x));
33270}
554f62e9
RD
33271static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
33272 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
33273}
33274static void *_p_wxValidatorTo_p_wxObject(void *x) {
33275 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
33276}
33277static void *_p_wxControlTo_p_wxWindow(void *x) {
33278 return (void *)((wxWindow *) ((wxControl *) x));
33279}
33280static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
33281 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
33282}
33283static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
33284 return (void *)((wxWindow *) ((wxMenuBar *) x));
33285}
fc46b7f3
RD
33286static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
33287 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
33288}
33289static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
33290 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
33291}
33292static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
554f62e9
RD
33293static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
33294static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
33295static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
33296static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
33297static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
33298static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
33299static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
fc46b7f3
RD
33300static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
33301static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
554f62e9
RD
33302static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
33303static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
33304static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
33305static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
33306static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 33307static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
554f62e9
RD
33308static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
33309static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
33310static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
33311static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
33312static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
33313static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
33314static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
33315static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
33316static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
33317static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
33318static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
33319static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
50efceee 33320static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
554f62e9 33321static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
33d6fd3b 33322static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
554f62e9
RD
33323static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
33324static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
33325static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
33326static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
33327static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
33328static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
33329static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
33330static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
33331static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
33332static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
33333static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
33334static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
33335static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
33336static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
33337static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
33338static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
554f62e9
RD
33339static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
33340static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
554f62e9 33341static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
0f83f5da 33342static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
554f62e9
RD
33343static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
33344static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
33345static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
33346static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
33347static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
33348static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
33349static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
33350static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
33351static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
33352static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
33353static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
33354static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 33355static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
554f62e9
RD
33356static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
33357static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
33358static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
33359static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
33360static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
33361static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
33362static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
33363static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
33364static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
33365static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
33366static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
33367static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
33368static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
33369static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
33370static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
33371static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
33372static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
33373static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
33374static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
33375static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
33376static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
33377static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
33378static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
33379static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
33380static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
33381static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
33382static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
33383static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
33384static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
33385static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
33386static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
33387static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
27e45892 33388static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 33389static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
554f62e9
RD
33390static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
33391static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
33392static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
0f83f5da 33393static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
554f62e9
RD
33394static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
33395static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
33396static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
33397static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
33398static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
33399static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
33400static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
33401static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
33402static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
33403static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
33404static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
33405static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
33406static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
33407static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
33408static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
33409static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
33410static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
33411static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
33412static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
33413static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
33414static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
33415static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
33416static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
33417static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
33418static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
33419static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
33420static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 33421static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
554f62e9
RD
33422static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
33423static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
33424static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
33425static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 33426static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
554f62e9 33427static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 33428static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
554f62e9
RD
33429static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
33430static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
33431static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
33432static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
33433static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
33434static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
33435static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
33436static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
50efceee 33437static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
554f62e9
RD
33438static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
33439static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
33440static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
33441
33442static swig_type_info *swig_type_initial[] = {
fc46b7f3 33443 &_swigt__p_buffer,
554f62e9
RD
33444 &_swigt__p_char,
33445 &_swigt__p_double,
33446 &_swigt__p_form_ops_t,
33447 &_swigt__p_int,
33448 &_swigt__p_unsigned_char,
33449 &_swigt__p_unsigned_int,
33450 &_swigt__p_unsigned_long,
33451 &_swigt__p_wxANIHandler,
33452 &_swigt__p_wxAcceleratorTable,
33453 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
33454 &_swigt__p_wxAlphaPixelData,
33455 &_swigt__p_wxAlphaPixelData_Accessor,
554f62e9
RD
33456 &_swigt__p_wxBMPHandler,
33457 &_swigt__p_wxBitmap,
33458 &_swigt__p_wxBoxSizer,
33459 &_swigt__p_wxBrush,
33460 &_swigt__p_wxBrushList,
33461 &_swigt__p_wxBufferedDC,
33462 &_swigt__p_wxBufferedPaintDC,
33463 &_swigt__p_wxCURHandler,
fc46b7f3 33464 &_swigt__p_wxChar,
554f62e9
RD
33465 &_swigt__p_wxChildFocusEvent,
33466 &_swigt__p_wxClientDC,
2131d850 33467 &_swigt__p_wxClipboardTextEvent,
554f62e9
RD
33468 &_swigt__p_wxCloseEvent,
33469 &_swigt__p_wxColour,
33470 &_swigt__p_wxColourDatabase,
33471 &_swigt__p_wxCommandEvent,
33472 &_swigt__p_wxContextMenuEvent,
33473 &_swigt__p_wxControl,
33474 &_swigt__p_wxControlWithItems,
33475 &_swigt__p_wxCursor,
33476 &_swigt__p_wxDC,
33477 &_swigt__p_wxDash,
33478 &_swigt__p_wxDateEvent,
33479 &_swigt__p_wxDisplayChangedEvent,
33480 &_swigt__p_wxDropFilesEvent,
33481 &_swigt__p_wxDuplexMode,
33482 &_swigt__p_wxEffects,
33483 &_swigt__p_wxEncodingConverter,
33484 &_swigt__p_wxEraseEvent,
33485 &_swigt__p_wxEvent,
33486 &_swigt__p_wxEvtHandler,
33487 &_swigt__p_wxFSFile,
33488 &_swigt__p_wxFileSystem,
33489 &_swigt__p_wxFlexGridSizer,
33490 &_swigt__p_wxFocusEvent,
33491 &_swigt__p_wxFont,
33492 &_swigt__p_wxFontList,
33493 &_swigt__p_wxFontMapper,
33494 &_swigt__p_wxGBSizerItem,
50efceee 33495 &_swigt__p_wxGDIObjListBase,
554f62e9
RD
33496 &_swigt__p_wxGDIObject,
33497 &_swigt__p_wxGIFHandler,
33498 &_swigt__p_wxGridBagSizer,
33499 &_swigt__p_wxGridSizer,
33d6fd3b 33500 &_swigt__p_wxHeaderButtonParams,
554f62e9
RD
33501 &_swigt__p_wxICOHandler,
33502 &_swigt__p_wxIcon,
33503 &_swigt__p_wxIconBundle,
33504 &_swigt__p_wxIconLocation,
33505 &_swigt__p_wxIconizeEvent,
33506 &_swigt__p_wxIdleEvent,
33507 &_swigt__p_wxImage,
33508 &_swigt__p_wxImageHandler,
33509 &_swigt__p_wxImageList,
33510 &_swigt__p_wxIndividualLayoutConstraint,
33511 &_swigt__p_wxInitDialogEvent,
33512 &_swigt__p_wxJPEGHandler,
33513 &_swigt__p_wxKeyEvent,
33514 &_swigt__p_wxLanguageInfo,
33515 &_swigt__p_wxLayoutConstraints,
33516 &_swigt__p_wxLocale,
33517 &_swigt__p_wxMask,
33518 &_swigt__p_wxMaximizeEvent,
33519 &_swigt__p_wxMemoryDC,
33520 &_swigt__p_wxMenu,
33521 &_swigt__p_wxMenuBar,
33522 &_swigt__p_wxMenuEvent,
33523 &_swigt__p_wxMenuItem,
33524 &_swigt__p_wxMetaFile,
33525 &_swigt__p_wxMetaFileDC,
33526 &_swigt__p_wxMirrorDC,
33527 &_swigt__p_wxMouseCaptureChangedEvent,
0f83f5da 33528 &_swigt__p_wxMouseCaptureLostEvent,
554f62e9
RD
33529 &_swigt__p_wxMouseEvent,
33530 &_swigt__p_wxMoveEvent,
33531 &_swigt__p_wxNativeEncodingInfo,
33532 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
33533 &_swigt__p_wxNativePixelData,
33534 &_swigt__p_wxNativePixelData_Accessor,
554f62e9
RD
33535 &_swigt__p_wxNavigationKeyEvent,
33536 &_swigt__p_wxNcPaintEvent,
33537 &_swigt__p_wxNotifyEvent,
33538 &_swigt__p_wxObject,
33539 &_swigt__p_wxPCXHandler,
33540 &_swigt__p_wxPNGHandler,
33541 &_swigt__p_wxPNMHandler,
33542 &_swigt__p_wxPaintDC,
33543 &_swigt__p_wxPaintEvent,
33544 &_swigt__p_wxPalette,
33545 &_swigt__p_wxPaletteChangedEvent,
33546 &_swigt__p_wxPaperSize,
33547 &_swigt__p_wxPen,
33548 &_swigt__p_wxPenList,
fc46b7f3 33549 &_swigt__p_wxPixelDataBase,
554f62e9
RD
33550 &_swigt__p_wxPoint,
33551 &_swigt__p_wxPostScriptDC,
33552 &_swigt__p_wxPrintData,
33553 &_swigt__p_wxPrinterDC,
27e45892 33554 &_swigt__p_wxPseudoDC,
554f62e9
RD
33555 &_swigt__p_wxPyApp,
33556 &_swigt__p_wxPyCommandEvent,
33557 &_swigt__p_wxPyEvent,
33558 &_swigt__p_wxPyFontEnumerator,
33559 &_swigt__p_wxPyImageHandler,
fc46b7f3 33560 &_swigt__p_wxPyLocale,
554f62e9
RD
33561 &_swigt__p_wxPySizer,
33562 &_swigt__p_wxPyValidator,
33563 &_swigt__p_wxQueryNewPaletteEvent,
33564 &_swigt__p_wxRect,
33565 &_swigt__p_wxRegion,
33566 &_swigt__p_wxRegionIterator,
33567 &_swigt__p_wxRendererNative,
33568 &_swigt__p_wxRendererVersion,
33569 &_swigt__p_wxScreenDC,
33570 &_swigt__p_wxScrollEvent,
33571 &_swigt__p_wxScrollWinEvent,
33572 &_swigt__p_wxSetCursorEvent,
33573 &_swigt__p_wxShowEvent,
33574 &_swigt__p_wxSize,
33575 &_swigt__p_wxSizeEvent,
33576 &_swigt__p_wxSizer,
33577 &_swigt__p_wxSizerItem,
33578 &_swigt__p_wxSplitterRenderParams,
33579 &_swigt__p_wxStaticBoxSizer,
33580 &_swigt__p_wxStdDialogButtonSizer,
50efceee 33581 &_swigt__p_wxStockGDI,
554f62e9
RD
33582 &_swigt__p_wxString,
33583 &_swigt__p_wxSysColourChangedEvent,
33584 &_swigt__p_wxTIFFHandler,
33585 &_swigt__p_wxUpdateUIEvent,
33586 &_swigt__p_wxValidator,
33587 &_swigt__p_wxWindow,
33588 &_swigt__p_wxWindowCreateEvent,
33589 &_swigt__p_wxWindowDC,
33590 &_swigt__p_wxWindowDestroyEvent,
33591 &_swigt__p_wxXPMHandler,
33592};
33593
fc46b7f3 33594static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
33595static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
33596static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
33597static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
33598static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
33599static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
33600static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
33601static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
33602static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
33603static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
33604static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
33605static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
33606static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
33607static 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}};
33608static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 33609static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
33610static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
33611static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
33612static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
33613static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
33614static 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},{0, 0, 0, 0}};
33615static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
33616static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
33617static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
33618static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
33619static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
33620static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
33621static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
50efceee 33622static 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}};
554f62e9 33623static 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}};
33d6fd3b 33624static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
33625static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
33626static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
33627static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
33628static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
33629static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
33630static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 33631static 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}};
554f62e9
RD
33632static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
33633static 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}};
33634static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
33635static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
33636static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
33637static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
33638static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
33639static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
33640static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 33641static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 33642static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 33643static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
33644static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
33645static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
33646static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
33647static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
33648static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
33649static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
33650static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
33651static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
33652static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
33653static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
33654static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
33655static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 33656static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
33657static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
33658static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
33659static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
33660static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
33661static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
33662static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
33663static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
33664static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
33665static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
33666static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
33667static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
33668static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
33669static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
33670static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
33671static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
33672static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
33673static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
33674static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
33675static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
33676static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
33677static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
33678static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
33679static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
33680static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
33681static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
33682static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
33683static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
33684static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
33685static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
33686static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
33687static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
33688static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 33689static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 33690static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
33691static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
33692static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
33693static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 33694static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
33695static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
33696static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
33697static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
33698static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
33699static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
33700static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
33701static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
33702static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
33703static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
33704static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
33705static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
33706static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
33707static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
33708static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
33709static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
33710static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
33711static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
33712static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
33713static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
33714static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
33715static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
33716static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 33717static 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_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_wxANIHandler, _p_wxANIHandlerTo_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_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_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_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}};
554f62e9
RD
33718static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
33719static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
33720static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
33721static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
33722static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 33723static 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}};
554f62e9
RD
33724static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
33725static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
33726static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
33727static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 33728static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 33729static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 33730static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
33731static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
33732static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
33733static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
33734static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
33735static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
33736static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
33737static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
33738static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
50efceee 33739static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
33740static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
33741static 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}};
33742static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
33743
33744static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 33745 _swigc__p_buffer,
554f62e9
RD
33746 _swigc__p_char,
33747 _swigc__p_double,
33748 _swigc__p_form_ops_t,
33749 _swigc__p_int,
33750 _swigc__p_unsigned_char,
33751 _swigc__p_unsigned_int,
33752 _swigc__p_unsigned_long,
33753 _swigc__p_wxANIHandler,
33754 _swigc__p_wxAcceleratorTable,
33755 _swigc__p_wxActivateEvent,
fc46b7f3
RD
33756 _swigc__p_wxAlphaPixelData,
33757 _swigc__p_wxAlphaPixelData_Accessor,
554f62e9
RD
33758 _swigc__p_wxBMPHandler,
33759 _swigc__p_wxBitmap,
33760 _swigc__p_wxBoxSizer,
33761 _swigc__p_wxBrush,
33762 _swigc__p_wxBrushList,
33763 _swigc__p_wxBufferedDC,
33764 _swigc__p_wxBufferedPaintDC,
33765 _swigc__p_wxCURHandler,
fc46b7f3 33766 _swigc__p_wxChar,
554f62e9
RD
33767 _swigc__p_wxChildFocusEvent,
33768 _swigc__p_wxClientDC,
2131d850 33769 _swigc__p_wxClipboardTextEvent,
554f62e9
RD
33770 _swigc__p_wxCloseEvent,
33771 _swigc__p_wxColour,
33772 _swigc__p_wxColourDatabase,
33773 _swigc__p_wxCommandEvent,
33774 _swigc__p_wxContextMenuEvent,
33775 _swigc__p_wxControl,
33776 _swigc__p_wxControlWithItems,
33777 _swigc__p_wxCursor,
33778 _swigc__p_wxDC,
33779 _swigc__p_wxDash,
33780 _swigc__p_wxDateEvent,
33781 _swigc__p_wxDisplayChangedEvent,
33782 _swigc__p_wxDropFilesEvent,
33783 _swigc__p_wxDuplexMode,
33784 _swigc__p_wxEffects,
33785 _swigc__p_wxEncodingConverter,
33786 _swigc__p_wxEraseEvent,
33787 _swigc__p_wxEvent,
33788 _swigc__p_wxEvtHandler,
33789 _swigc__p_wxFSFile,
33790 _swigc__p_wxFileSystem,
33791 _swigc__p_wxFlexGridSizer,
33792 _swigc__p_wxFocusEvent,
33793 _swigc__p_wxFont,
33794 _swigc__p_wxFontList,
33795 _swigc__p_wxFontMapper,
33796 _swigc__p_wxGBSizerItem,
50efceee 33797 _swigc__p_wxGDIObjListBase,
554f62e9
RD
33798 _swigc__p_wxGDIObject,
33799 _swigc__p_wxGIFHandler,
33800 _swigc__p_wxGridBagSizer,
33801 _swigc__p_wxGridSizer,
33d6fd3b 33802 _swigc__p_wxHeaderButtonParams,
554f62e9
RD
33803 _swigc__p_wxICOHandler,
33804 _swigc__p_wxIcon,
33805 _swigc__p_wxIconBundle,
33806 _swigc__p_wxIconLocation,
33807 _swigc__p_wxIconizeEvent,
33808 _swigc__p_wxIdleEvent,
33809 _swigc__p_wxImage,
33810 _swigc__p_wxImageHandler,
33811 _swigc__p_wxImageList,
33812 _swigc__p_wxIndividualLayoutConstraint,
33813 _swigc__p_wxInitDialogEvent,
33814 _swigc__p_wxJPEGHandler,
33815 _swigc__p_wxKeyEvent,
33816 _swigc__p_wxLanguageInfo,
33817 _swigc__p_wxLayoutConstraints,
33818 _swigc__p_wxLocale,
33819 _swigc__p_wxMask,
33820 _swigc__p_wxMaximizeEvent,
33821 _swigc__p_wxMemoryDC,
33822 _swigc__p_wxMenu,
33823 _swigc__p_wxMenuBar,
33824 _swigc__p_wxMenuEvent,
33825 _swigc__p_wxMenuItem,
33826 _swigc__p_wxMetaFile,
33827 _swigc__p_wxMetaFileDC,
33828 _swigc__p_wxMirrorDC,
33829 _swigc__p_wxMouseCaptureChangedEvent,
0f83f5da 33830 _swigc__p_wxMouseCaptureLostEvent,
554f62e9
RD
33831 _swigc__p_wxMouseEvent,
33832 _swigc__p_wxMoveEvent,
33833 _swigc__p_wxNativeEncodingInfo,
33834 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
33835 _swigc__p_wxNativePixelData,
33836 _swigc__p_wxNativePixelData_Accessor,
554f62e9
RD
33837 _swigc__p_wxNavigationKeyEvent,
33838 _swigc__p_wxNcPaintEvent,
33839 _swigc__p_wxNotifyEvent,
33840 _swigc__p_wxObject,
33841 _swigc__p_wxPCXHandler,
33842 _swigc__p_wxPNGHandler,
33843 _swigc__p_wxPNMHandler,
33844 _swigc__p_wxPaintDC,
33845 _swigc__p_wxPaintEvent,
33846 _swigc__p_wxPalette,
33847 _swigc__p_wxPaletteChangedEvent,
33848 _swigc__p_wxPaperSize,
33849 _swigc__p_wxPen,
33850 _swigc__p_wxPenList,
fc46b7f3 33851 _swigc__p_wxPixelDataBase,
554f62e9
RD
33852 _swigc__p_wxPoint,
33853 _swigc__p_wxPostScriptDC,
33854 _swigc__p_wxPrintData,
33855 _swigc__p_wxPrinterDC,
27e45892 33856 _swigc__p_wxPseudoDC,
554f62e9
RD
33857 _swigc__p_wxPyApp,
33858 _swigc__p_wxPyCommandEvent,
33859 _swigc__p_wxPyEvent,
33860 _swigc__p_wxPyFontEnumerator,
33861 _swigc__p_wxPyImageHandler,
fc46b7f3 33862 _swigc__p_wxPyLocale,
554f62e9
RD
33863 _swigc__p_wxPySizer,
33864 _swigc__p_wxPyValidator,
33865 _swigc__p_wxQueryNewPaletteEvent,
33866 _swigc__p_wxRect,
33867 _swigc__p_wxRegion,
33868 _swigc__p_wxRegionIterator,
33869 _swigc__p_wxRendererNative,
33870 _swigc__p_wxRendererVersion,
33871 _swigc__p_wxScreenDC,
33872 _swigc__p_wxScrollEvent,
33873 _swigc__p_wxScrollWinEvent,
33874 _swigc__p_wxSetCursorEvent,
33875 _swigc__p_wxShowEvent,
33876 _swigc__p_wxSize,
33877 _swigc__p_wxSizeEvent,
33878 _swigc__p_wxSizer,
33879 _swigc__p_wxSizerItem,
33880 _swigc__p_wxSplitterRenderParams,
33881 _swigc__p_wxStaticBoxSizer,
33882 _swigc__p_wxStdDialogButtonSizer,
50efceee 33883 _swigc__p_wxStockGDI,
554f62e9
RD
33884 _swigc__p_wxString,
33885 _swigc__p_wxSysColourChangedEvent,
33886 _swigc__p_wxTIFFHandler,
33887 _swigc__p_wxUpdateUIEvent,
33888 _swigc__p_wxValidator,
33889 _swigc__p_wxWindow,
33890 _swigc__p_wxWindowCreateEvent,
33891 _swigc__p_wxWindowDC,
33892 _swigc__p_wxWindowDestroyEvent,
33893 _swigc__p_wxXPMHandler,
33894};
33895
33896
33897/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
33898
33899static swig_const_info swig_const_table[] = {
33900{0, 0, 0, 0.0, 0, 0}};
33901
33902#ifdef __cplusplus
33903}
33904#endif
33905/* -----------------------------------------------------------------------------
33906 * Type initialization:
33907 * This problem is tough by the requirement that no dynamic
33908 * memory is used. Also, since swig_type_info structures store pointers to
33909 * swig_cast_info structures and swig_cast_info structures store pointers back
33910 * to swig_type_info structures, we need some lookup code at initialization.
33911 * The idea is that swig generates all the structures that are needed.
33912 * The runtime then collects these partially filled structures.
33913 * The SWIG_InitializeModule function takes these initial arrays out of
33914 * swig_module, and does all the lookup, filling in the swig_module.types
33915 * array with the correct data and linking the correct swig_cast_info
33916 * structures together.
33917 *
33918 * The generated swig_type_info structures are assigned staticly to an initial
33919 * array. We just loop though that array, and handle each type individually.
33920 * First we lookup if this type has been already loaded, and if so, use the
33921 * loaded structure instead of the generated one. Then we have to fill in the
33922 * cast linked list. The cast data is initially stored in something like a
33923 * two-dimensional array. Each row corresponds to a type (there are the same
33924 * number of rows as there are in the swig_type_initial array). Each entry in
33925 * a column is one of the swig_cast_info structures for that type.
33926 * The cast_initial array is actually an array of arrays, because each row has
33927 * a variable number of columns. So to actually build the cast linked list,
33928 * we find the array of casts associated with the type, and loop through it
33929 * adding the casts to the list. The one last trick we need to do is making
33930 * sure the type pointer in the swig_cast_info struct is correct.
33931 *
33932 * First off, we lookup the cast->type name to see if it is already loaded.
33933 * There are three cases to handle:
33934 * 1) If the cast->type has already been loaded AND the type we are adding
33935 * casting info to has not been loaded (it is in this module), THEN we
33936 * replace the cast->type pointer with the type pointer that has already
33937 * been loaded.
33938 * 2) If BOTH types (the one we are adding casting info to, and the
33939 * cast->type) are loaded, THEN the cast info has already been loaded by
33940 * the previous module so we just ignore it.
33941 * 3) Finally, if cast->type has not already been loaded, then we add that
33942 * swig_cast_info to the linked list (because the cast->type) pointer will
33943 * be correct.
33944 * ----------------------------------------------------------------------------- */
33945
33946#ifdef __cplusplus
33947extern "C" {
33948#if 0
33949} /* c-mode */
33950#endif
33951#endif
33952
33953#if 0
33954#define SWIGRUNTIME_DEBUG
33955#endif
33956
33957SWIGRUNTIME void
33958SWIG_InitializeModule(void *clientdata) {
33959 size_t i;
33960 swig_module_info *module_head;
33961 static int init_run = 0;
33962
33963 clientdata = clientdata;
33964
33965 if (init_run) return;
33966 init_run = 1;
33967
33968 /* Initialize the swig_module */
33969 swig_module.type_initial = swig_type_initial;
33970 swig_module.cast_initial = swig_cast_initial;
33971
33972 /* Try and load any already created modules */
33973 module_head = SWIG_GetModule(clientdata);
33974 if (module_head) {
33975 swig_module.next = module_head->next;
33976 module_head->next = &swig_module;
33977 } else {
33978 /* This is the first module loaded */
33979 swig_module.next = &swig_module;
33980 SWIG_SetModule(clientdata, &swig_module);
33981 }
33982
33983 /* Now work on filling in swig_module.types */
33984#ifdef SWIGRUNTIME_DEBUG
33985 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
33986#endif
33987 for (i = 0; i < swig_module.size; ++i) {
33988 swig_type_info *type = 0;
33989 swig_type_info *ret;
33990 swig_cast_info *cast;
33991
33992#ifdef SWIGRUNTIME_DEBUG
33993 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
33994#endif
33995
33996 /* if there is another module already loaded */
33997 if (swig_module.next != &swig_module) {
33998 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 33999 }
554f62e9
RD
34000 if (type) {
34001 /* Overwrite clientdata field */
34002#ifdef SWIGRUNTIME_DEBUG
34003 printf("SWIG_InitializeModule: found type %s\n", type->name);
34004#endif
34005 if (swig_module.type_initial[i]->clientdata) {
34006 type->clientdata = swig_module.type_initial[i]->clientdata;
34007#ifdef SWIGRUNTIME_DEBUG
34008 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
34009#endif
34010 }
34011 } else {
34012 type = swig_module.type_initial[i];
be9b1dca 34013 }
554f62e9
RD
34014
34015 /* Insert casting types */
34016 cast = swig_module.cast_initial[i];
34017 while (cast->type) {
34018 /* Don't need to add information already in the list */
34019 ret = 0;
34020#ifdef SWIGRUNTIME_DEBUG
34021 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
34022#endif
34023 if (swig_module.next != &swig_module) {
34024 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
34025#ifdef SWIGRUNTIME_DEBUG
34026 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
34027#endif
34028 }
34029 if (ret) {
34030 if (type == swig_module.type_initial[i]) {
34031#ifdef SWIGRUNTIME_DEBUG
34032 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
34033#endif
34034 cast->type = ret;
34035 ret = 0;
34036 } else {
34037 /* Check for casting already in the list */
34038 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
34039#ifdef SWIGRUNTIME_DEBUG
34040 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
34041#endif
34042 if (!ocast) ret = 0;
34043 }
34044 }
34045
34046 if (!ret) {
34047#ifdef SWIGRUNTIME_DEBUG
34048 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
34049#endif
34050 if (type->cast) {
34051 type->cast->prev = cast;
34052 cast->next = type->cast;
34053 }
34054 type->cast = cast;
34055 }
34056 cast++;
be9b1dca 34057 }
554f62e9
RD
34058 /* Set entry in modules->types array equal to the type */
34059 swig_module.types[i] = type;
34060 }
34061 swig_module.types[i] = 0;
34062
34063#ifdef SWIGRUNTIME_DEBUG
34064 printf("**** SWIG_InitializeModule: Cast List ******\n");
34065 for (i = 0; i < swig_module.size; ++i) {
34066 int j = 0;
34067 swig_cast_info *cast = swig_module.cast_initial[i];
34068 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
34069 while (cast->type) {
34070 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
34071 cast++;
34072 ++j;
34073 }
34074 printf("---- Total casts: %d\n",j);
34075 }
34076 printf("**** SWIG_InitializeModule: Cast List ******\n");
34077#endif
34078}
34079
34080/* This function will propagate the clientdata field of type to
34081* any new swig_type_info structures that have been added into the list
34082* of equivalent types. It is like calling
34083* SWIG_TypeClientData(type, clientdata) a second time.
34084*/
34085SWIGRUNTIME void
34086SWIG_PropagateClientData(void) {
34087 size_t i;
34088 swig_cast_info *equiv;
34089 static int init_run = 0;
34090
34091 if (init_run) return;
34092 init_run = 1;
34093
34094 for (i = 0; i < swig_module.size; i++) {
34095 if (swig_module.types[i]->clientdata) {
34096 equiv = swig_module.types[i]->cast;
34097 while (equiv) {
34098 if (!equiv->converter) {
34099 if (equiv->type && !equiv->type->clientdata)
34100 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
34101 }
34102 equiv = equiv->next;
34103 }
be9b1dca 34104 }
554f62e9
RD
34105 }
34106}
34107
34108#ifdef __cplusplus
34109#if 0
34110{
34111 /* c-mode */
34112#endif
34113}
34114#endif
34115
34116
34117
34118#ifdef __cplusplus
34119extern "C" {
34120#endif
34121
34122 /* Python-specific SWIG API */
34123#define SWIG_newvarlink() SWIG_Python_newvarlink()
34124#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
34125#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
34126
34127 /* -----------------------------------------------------------------------------
34128 * global variable support code.
34129 * ----------------------------------------------------------------------------- */
34130
34131 typedef struct swig_globalvar {
34132 char *name; /* Name of global variable */
34133 PyObject *(*get_attr)(void); /* Return the current value */
34134 int (*set_attr)(PyObject *); /* Set the value */
34135 struct swig_globalvar *next;
34136 } swig_globalvar;
34137
34138 typedef struct swig_varlinkobject {
34139 PyObject_HEAD
34140 swig_globalvar *vars;
34141 } swig_varlinkobject;
34142
34143 SWIGINTERN PyObject *
34144 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
34145 return PyString_FromString("<Swig global variables>");
34146 }
34147
34148 SWIGINTERN PyObject *
34149 swig_varlink_str(swig_varlinkobject *v) {
34150 PyObject *str = PyString_FromString("(");
34151 swig_globalvar *var;
34152 for (var = v->vars; var; var=var->next) {
34153 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
34154 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
34155 }
34156 PyString_ConcatAndDel(&str,PyString_FromString(")"));
34157 return str;
34158 }
34159
34160 SWIGINTERN int
34161 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
34162 PyObject *str = swig_varlink_str(v);
34163 fprintf(fp,"Swig global variables ");
34164 fprintf(fp,"%s\n", PyString_AsString(str));
34165 Py_DECREF(str);
34166 return 0;
34167 }
34168
34169 SWIGINTERN void
34170 swig_varlink_dealloc(swig_varlinkobject *v) {
34171 swig_globalvar *var = v->vars;
34172 while (var) {
34173 swig_globalvar *n = var->next;
34174 free(var->name);
34175 free(var);
34176 var = n;
be9b1dca 34177 }
554f62e9
RD
34178 }
34179
34180 SWIGINTERN PyObject *
34181 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
34182 PyObject *res = NULL;
34183 swig_globalvar *var = v->vars;
34184 while (var) {
34185 if (strcmp(var->name,n) == 0) {
34186 res = (*var->get_attr)();
34187 break;
34188 }
34189 var = var->next;
be9b1dca 34190 }
554f62e9
RD
34191 if (res == NULL && !PyErr_Occurred()) {
34192 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 34193 }
554f62e9
RD
34194 return res;
34195 }
34196
34197 SWIGINTERN int
34198 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
34199 int res = 1;
34200 swig_globalvar *var = v->vars;
34201 while (var) {
34202 if (strcmp(var->name,n) == 0) {
34203 res = (*var->set_attr)(p);
34204 break;
34205 }
34206 var = var->next;
be9b1dca 34207 }
554f62e9
RD
34208 if (res == 1 && !PyErr_Occurred()) {
34209 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 34210 }
554f62e9
RD
34211 return res;
34212 }
34213
34214 SWIGINTERN PyTypeObject*
34215 swig_varlink_type(void) {
34216 static char varlink__doc__[] = "Swig var link object";
34217 static PyTypeObject varlink_type;
34218 static int type_init = 0;
34219 if (!type_init) {
34220 const PyTypeObject tmp
34221 = {
34222 PyObject_HEAD_INIT(NULL)
34223 0, /* Number of items in variable part (ob_size) */
34224 (char *)"swigvarlink", /* Type name (tp_name) */
34225 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
34226 0, /* Itemsize (tp_itemsize) */
34227 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
34228 (printfunc) swig_varlink_print, /* Print (tp_print) */
34229 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
34230 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
34231 0, /* tp_compare */
34232 (reprfunc) swig_varlink_repr, /* tp_repr */
34233 0, /* tp_as_number */
34234 0, /* tp_as_sequence */
34235 0, /* tp_as_mapping */
34236 0, /* tp_hash */
34237 0, /* tp_call */
34238 (reprfunc)swig_varlink_str, /* tp_str */
34239 0, /* tp_getattro */
34240 0, /* tp_setattro */
34241 0, /* tp_as_buffer */
34242 0, /* tp_flags */
34243 varlink__doc__, /* tp_doc */
34244 0, /* tp_traverse */
34245 0, /* tp_clear */
34246 0, /* tp_richcompare */
34247 0, /* tp_weaklistoffset */
34248#if PY_VERSION_HEX >= 0x02020000
34249 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
34250#endif
34251#if PY_VERSION_HEX >= 0x02030000
34252 0, /* tp_del */
34253#endif
34254#ifdef COUNT_ALLOCS
34255 0,0,0,0 /* tp_alloc -> tp_next */
34256#endif
34257 };
34258 varlink_type = tmp;
34259 varlink_type.ob_type = &PyType_Type;
34260 type_init = 1;
be9b1dca 34261 }
554f62e9
RD
34262 return &varlink_type;
34263 }
34264
34265 /* Create a variable linking object for use later */
34266 SWIGINTERN PyObject *
34267 SWIG_Python_newvarlink(void) {
34268 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
34269 if (result) {
34270 result->vars = 0;
34271 }
34272 return ((PyObject*) result);
34273 }
34274
34275 SWIGINTERN void
34276 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
34277 swig_varlinkobject *v = (swig_varlinkobject *) p;
34278 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
34279 if (gv) {
34280 size_t size = strlen(name)+1;
34281 gv->name = (char *)malloc(size);
34282 if (gv->name) {
34283 strncpy(gv->name,name,size);
34284 gv->get_attr = get_attr;
34285 gv->set_attr = set_attr;
34286 gv->next = v->vars;
34287 }
be9b1dca 34288 }
554f62e9
RD
34289 v->vars = gv;
34290 }
34291
34292 SWIGINTERN PyObject *
34293 SWIG_globals() {
34294 static PyObject *_SWIG_globals = 0;
34295 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
34296 return _SWIG_globals;
34297 }
34298
34299 /* -----------------------------------------------------------------------------
34300 * constants/methods manipulation
34301 * ----------------------------------------------------------------------------- */
34302
34303 /* Install Constants */
34304 SWIGINTERN void
34305 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
34306 PyObject *obj = 0;
34307 size_t i;
34308 for (i = 0; constants[i].type; ++i) {
34309 switch(constants[i].type) {
34310 case SWIG_PY_POINTER:
34311 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
34312 break;
34313 case SWIG_PY_BINARY:
34314 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
34315 break;
34316 default:
34317 obj = 0;
34318 break;
34319 }
34320 if (obj) {
34321 PyDict_SetItemString(d, constants[i].name, obj);
34322 Py_DECREF(obj);
34323 }
be9b1dca 34324 }
554f62e9
RD
34325 }
34326
34327 /* -----------------------------------------------------------------------------*/
34328 /* Fix SwigMethods to carry the callback ptrs when needed */
34329 /* -----------------------------------------------------------------------------*/
34330
34331 SWIGINTERN void
34332 SWIG_Python_FixMethods(PyMethodDef *methods,
34333 swig_const_info *const_table,
34334 swig_type_info **types,
34335 swig_type_info **types_initial) {
34336 size_t i;
34337 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 34338 const char *c = methods[i].ml_doc;
554f62e9
RD
34339 if (c && (c = strstr(c, "swig_ptr: "))) {
34340 int j;
34341 swig_const_info *ci = 0;
453fb36b 34342 const char *name = c + 10;
554f62e9
RD
34343 for (j = 0; const_table[j].type; ++j) {
34344 if (strncmp(const_table[j].name, name,
34345 strlen(const_table[j].name)) == 0) {
34346 ci = &(const_table[j]);
34347 break;
34348 }
34349 }
34350 if (ci) {
34351 size_t shift = (ci->ptype) - types;
34352 swig_type_info *ty = types_initial[shift];
34353 size_t ldoc = (c - methods[i].ml_doc);
34354 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
34355 char *ndoc = (char*)malloc(ldoc + lptr + 10);
34356 if (ndoc) {
34357 char *buff = ndoc;
34358 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
34359 if (ptr) {
34360 strncpy(buff, methods[i].ml_doc, ldoc);
34361 buff += ldoc;
34362 strncpy(buff, "swig_ptr: ", 10);
34363 buff += 10;
34364 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
34365 methods[i].ml_doc = ndoc;
34366 }
34367 }
34368 }
34369 }
be9b1dca 34370 }
554f62e9
RD
34371 }
34372
34373#ifdef __cplusplus
34374}
34375#endif
34376
34377/* -----------------------------------------------------------------------------*
34378 * Partial Init method
34379 * -----------------------------------------------------------------------------*/
34380
34381#ifdef __cplusplus
34382extern "C"
34383#endif
34384SWIGEXPORT void SWIG_init(void) {
34385 PyObject *m, *d;
34386
34387 /* Fix SwigMethods to carry the callback ptrs when needed */
34388 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
34389
34390 m = Py_InitModule((char *) SWIG_name, SwigMethods);
34391 d = PyModule_GetDict(m);
34392
34393 SWIG_InitializeModule(0);
34394 SWIG_InstallConstants(d,swig_const_table);
34395
34396
f460c29d
RD
34397 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
34398 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
34399 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
34400 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
34401 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
554f62e9
RD
34402 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
34403 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
34404 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
34405 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
34406 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
34407 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
34408 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
34409 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
34410 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
34411 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
34412 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
34413 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
34414 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
34415 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
34416 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
34417 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
34418 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
34419 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
34420 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
34421 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
34422 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
34423 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
34424 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
34425 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
34426 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
34427 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
34428 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
34429 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
34430 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
34431 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
34432 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
34433 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
34434 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
34435 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
34436 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
34437 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
34438 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
34439 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
34440 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
34441 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
34442 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
34443 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
34444 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
34445 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
34446 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
34447 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
34448 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
34449 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
34450 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
34451 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
34452 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
34453 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
34454 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
34455 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
34456 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
34457 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
34458 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
34459 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
34460 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
34461 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
34462 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
34463 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
34464 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
34465 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
34466 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
34467 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
34468 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
34469 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
34470 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
34471 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
34472 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
34473 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
34474 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
34475 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
34476 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
34477 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
34478 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
34479 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
34480 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
34481 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
34482 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
34483 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
34484 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
34485 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
34486 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
34487 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
34488 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
34489 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
34490 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
34491 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
34492 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
34493 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
34494 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
34495 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
34496 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
34497 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
34498 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
34499 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
34500 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
34501 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
34502 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
34503 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
34504 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
34505 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
34506 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
34507 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
34508 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
34509 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
34510 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
34511 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
34512 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
34513 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
34514 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
34515 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
34516 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
34517 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
34518 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
34519 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
34520 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
34521 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
34522 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
34523 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
34524 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
34525 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
34526 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
34527 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
34528 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
34529
34530 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
34531
34532 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
34533 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
34534 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
34535 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
34536 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
34537 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
34538 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
34539 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
34540 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
34541 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
34542 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
34543 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
34544 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
34545 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
34546 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
34547 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
34548 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
34549 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
34550 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
34551 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
34552 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
34553 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
34554 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
34555 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
34556 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
34557 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
34558 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
34559 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
34560 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
34561 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
34562 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
34563 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
34564 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
34565 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
34566 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
34567 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
34568 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
34569 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
34570 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
34571 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
34572 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
34573 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
34574 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
34575 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
34576 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
34577 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
34578 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
34579 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
34580 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
34581 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
34582 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
34583 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
34584 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
34585 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
34586 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
34587 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
34588 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
34589 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
34590 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
34591 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
34592 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
34593 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
34594 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
34595 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
34596 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
34597 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
34598 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
34599 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
34600 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
34601 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
34602 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
34603 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
34604 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
34605 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
34606 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
34607 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
34608 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
34609 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
34610 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
34611 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
34612 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
34613 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
34614 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
34615 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
34616 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
34617 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
34618 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
34619 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
34620 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
34621 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
34622 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
34623 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
34624 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
34625 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
34626 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
34627 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
34628 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
34629 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
34630 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
34631 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
34632 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
34633 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
34634 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
34635 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
34636 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
34637 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
34638 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
34639 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
34640 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
34641 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
34642 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
34643 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
34644 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
34645 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
34646 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
34647 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
34648 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
34649 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
34650 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
34651 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
34652 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
34653 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
34654 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
34655 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
34656 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
34657 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
34658 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
34659 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
34660 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
34661 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
34662 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
34663 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
34664 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
34665 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
34666 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
34667 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
34668 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
34669 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
34670 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
34671 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
34672 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
34673 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
34674 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
34675 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
34676 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
34677 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
34678 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
34679 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
34680 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
34681 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
34682 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
34683 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
34684 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
34685 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
34686 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
34687 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
34688 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
34689 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
34690 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
34691 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
34692 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
34693 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
34694 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
34695 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
34696 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
34697 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
34698 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
34699 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
34700 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
34701 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
34702 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
34703 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
34704 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
34705 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
34706 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
34707 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
34708 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
34709 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
34710 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
34711 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
34712 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
34713 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
34714 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
34715 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
34716 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
34717 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
34718 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
34719 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
34720 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
34721 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
34722 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
34723 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
34724 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
34725 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
34726 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
34727 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
34728 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
34729 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
34730 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
34731 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
34732 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
34733 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
34734 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
34735 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
34736 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
34737 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
34738 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
34739 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
34740 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
34741 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
34742 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
34743 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
34744 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
34745 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
34746 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
34747 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
34748 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
34749 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
34750 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
34751 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
34752 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
34753 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
34754 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
34755 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
34756 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
34757 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
34758 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
34759 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
34760 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
34761 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
34762 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
34763 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
34764 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
34765 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
34766 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
34767 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
34768 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
34769 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
34770 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
34771 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
34772 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
34773 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
34774 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
34775 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
34776 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
34777 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
34778 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
34779 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
34780 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
34781 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
34782 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
34783 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
34784 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
34785 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
34786 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
50efceee
RD
34787 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
34788 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
34789 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
34790 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
34791 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
34792 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
34793 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
34794 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
34795 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
34796 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
34797 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
34798 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
34799 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
34800 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
34801 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
34802 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
34803 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
34804 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
34805 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
34806 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
34807 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
34808 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
34809 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
34810 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
34811 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
34812 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
34813 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
34814 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
34815 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
34816 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
34817 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
34818 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
34819 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
34820 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
34821 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
554f62e9 34822 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
554f62e9
RD
34823 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
34824 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
34825 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
34826 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
34827 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
34828 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
34829 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
34830 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
554f62e9
RD
34831 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
34832 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
34833 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 34834 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
554f62e9
RD
34835 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
34836 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
34837 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 34838 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
554f62e9
RD
34839 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
34840 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
34841 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
34842 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
34843 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
34844 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
34845 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
34846 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
34847 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
34848 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
554f62e9
RD
34849 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
34850 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
34851
34852 // Work around a chicken/egg problem in drawlist.cpp
34853 wxPyDrawList_SetAPIPtr();
34854
d55e5bfc
RD
34855}
34856