]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/_gdi_wrap.cpp
Add wxPyTabArt
[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]
0a27f394
RD
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479#define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480#define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481#define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482#define SWIGTYPE_p_wxBitmap swig_types[16]
2483#define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484#define SWIGTYPE_p_wxBrush swig_types[18]
2485#define SWIGTYPE_p_wxBrushList swig_types[19]
2486#define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487#define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488#define SWIGTYPE_p_wxCURHandler swig_types[22]
2489#define SWIGTYPE_p_wxChar swig_types[23]
2490#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491#define SWIGTYPE_p_wxClientDC swig_types[25]
2492#define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493#define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494#define SWIGTYPE_p_wxColor swig_types[28]
2495#define SWIGTYPE_p_wxColour swig_types[29]
2496#define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497#define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498#define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499#define SWIGTYPE_p_wxControl swig_types[33]
2500#define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501#define SWIGTYPE_p_wxCursor swig_types[35]
2502#define SWIGTYPE_p_wxDC swig_types[36]
70d7cb34
RD
2503#define SWIGTYPE_p_wxDCBrushChanger swig_types[37]
2504#define SWIGTYPE_p_wxDCClipper swig_types[38]
2505#define SWIGTYPE_p_wxDCOverlay swig_types[39]
2506#define SWIGTYPE_p_wxDCPenChanger swig_types[40]
2507#define SWIGTYPE_p_wxDCTextColourChanger swig_types[41]
2508#define SWIGTYPE_p_wxDash swig_types[42]
2509#define SWIGTYPE_p_wxDateEvent swig_types[43]
2510#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2511#define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2512#define SWIGTYPE_p_wxDuplexMode swig_types[46]
2513#define SWIGTYPE_p_wxEffects swig_types[47]
2514#define SWIGTYPE_p_wxEncodingConverter swig_types[48]
2515#define SWIGTYPE_p_wxEraseEvent swig_types[49]
2516#define SWIGTYPE_p_wxEvent swig_types[50]
2517#define SWIGTYPE_p_wxEvtHandler swig_types[51]
2518#define SWIGTYPE_p_wxFSFile swig_types[52]
2519#define SWIGTYPE_p_wxFileSystem swig_types[53]
2520#define SWIGTYPE_p_wxFlexGridSizer swig_types[54]
2521#define SWIGTYPE_p_wxFocusEvent swig_types[55]
2522#define SWIGTYPE_p_wxFont swig_types[56]
2523#define SWIGTYPE_p_wxFontList swig_types[57]
2524#define SWIGTYPE_p_wxFontMapper swig_types[58]
2525#define SWIGTYPE_p_wxGBSizerItem swig_types[59]
2526#define SWIGTYPE_p_wxGCDC swig_types[60]
2527#define SWIGTYPE_p_wxGDIObjListBase swig_types[61]
2528#define SWIGTYPE_p_wxGDIObject swig_types[62]
2529#define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530#define SWIGTYPE_p_wxGraphicsBrush swig_types[64]
2531#define SWIGTYPE_p_wxGraphicsContext swig_types[65]
2532#define SWIGTYPE_p_wxGraphicsFont swig_types[66]
2533#define SWIGTYPE_p_wxGraphicsMatrix swig_types[67]
2534#define SWIGTYPE_p_wxGraphicsObject swig_types[68]
2535#define SWIGTYPE_p_wxGraphicsPath swig_types[69]
2536#define SWIGTYPE_p_wxGraphicsPen swig_types[70]
2537#define SWIGTYPE_p_wxGraphicsRenderer swig_types[71]
2538#define SWIGTYPE_p_wxGridBagSizer swig_types[72]
2539#define SWIGTYPE_p_wxGridSizer swig_types[73]
2540#define SWIGTYPE_p_wxHeaderButtonParams swig_types[74]
2541#define SWIGTYPE_p_wxICOHandler swig_types[75]
2542#define SWIGTYPE_p_wxIcon swig_types[76]
2543#define SWIGTYPE_p_wxIconBundle swig_types[77]
2544#define SWIGTYPE_p_wxIconLocation swig_types[78]
2545#define SWIGTYPE_p_wxIconizeEvent swig_types[79]
2546#define SWIGTYPE_p_wxIdleEvent swig_types[80]
2547#define SWIGTYPE_p_wxImage swig_types[81]
2548#define SWIGTYPE_p_wxImageHandler swig_types[82]
2549#define SWIGTYPE_p_wxImageList swig_types[83]
2550#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84]
2551#define SWIGTYPE_p_wxInitDialogEvent swig_types[85]
2552#define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553#define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554#define SWIGTYPE_p_wxLanguageInfo swig_types[88]
2555#define SWIGTYPE_p_wxLayoutConstraints swig_types[89]
2556#define SWIGTYPE_p_wxLocale swig_types[90]
2557#define SWIGTYPE_p_wxMask swig_types[91]
2558#define SWIGTYPE_p_wxMaximizeEvent swig_types[92]
2559#define SWIGTYPE_p_wxMemoryDC swig_types[93]
2560#define SWIGTYPE_p_wxMenu swig_types[94]
2561#define SWIGTYPE_p_wxMenuBar swig_types[95]
2562#define SWIGTYPE_p_wxMenuEvent swig_types[96]
2563#define SWIGTYPE_p_wxMenuItem swig_types[97]
2564#define SWIGTYPE_p_wxMetaFile swig_types[98]
2565#define SWIGTYPE_p_wxMetaFileDC swig_types[99]
2566#define SWIGTYPE_p_wxMirrorDC swig_types[100]
2567#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569#define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570#define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105]
2572#define SWIGTYPE_p_wxNativeFontInfo swig_types[106]
2573#define SWIGTYPE_p_wxNativePixelData swig_types[107]
2574#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108]
2575#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109]
2576#define SWIGTYPE_p_wxNcPaintEvent swig_types[110]
2577#define SWIGTYPE_p_wxNotifyEvent swig_types[111]
2578#define SWIGTYPE_p_wxObject swig_types[112]
2579#define SWIGTYPE_p_wxOverlay swig_types[113]
2580#define SWIGTYPE_p_wxPCXHandler swig_types[114]
2581#define SWIGTYPE_p_wxPNGHandler swig_types[115]
2582#define SWIGTYPE_p_wxPNMHandler swig_types[116]
2583#define SWIGTYPE_p_wxPaintDC swig_types[117]
2584#define SWIGTYPE_p_wxPaintEvent swig_types[118]
2585#define SWIGTYPE_p_wxPalette swig_types[119]
2586#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120]
2587#define SWIGTYPE_p_wxPaperSize swig_types[121]
2588#define SWIGTYPE_p_wxPen swig_types[122]
2589#define SWIGTYPE_p_wxPenList swig_types[123]
2590#define SWIGTYPE_p_wxPixelDataBase swig_types[124]
2591#define SWIGTYPE_p_wxPoint swig_types[125]
2592#define SWIGTYPE_p_wxPoint2D swig_types[126]
2593#define SWIGTYPE_p_wxPoint2DDouble swig_types[127]
2594#define SWIGTYPE_p_wxPostScriptDC swig_types[128]
2595#define SWIGTYPE_p_wxPrintData swig_types[129]
2596#define SWIGTYPE_p_wxPrinterDC swig_types[130]
2597#define SWIGTYPE_p_wxPseudoDC swig_types[131]
2598#define SWIGTYPE_p_wxPyApp swig_types[132]
2599#define SWIGTYPE_p_wxPyCommandEvent swig_types[133]
2600#define SWIGTYPE_p_wxPyEvent swig_types[134]
2601#define SWIGTYPE_p_wxPyFontEnumerator swig_types[135]
2602#define SWIGTYPE_p_wxPyImageHandler swig_types[136]
2603#define SWIGTYPE_p_wxPyLocale swig_types[137]
2604#define SWIGTYPE_p_wxPySizer swig_types[138]
2605#define SWIGTYPE_p_wxPyValidator swig_types[139]
2606#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140]
2607#define SWIGTYPE_p_wxRect swig_types[141]
2608#define SWIGTYPE_p_wxRect2DDouble swig_types[142]
2609#define SWIGTYPE_p_wxRegion swig_types[143]
2610#define SWIGTYPE_p_wxRegionIterator swig_types[144]
2611#define SWIGTYPE_p_wxRendererNative swig_types[145]
2612#define SWIGTYPE_p_wxRendererVersion swig_types[146]
2613#define SWIGTYPE_p_wxScreenDC swig_types[147]
2614#define SWIGTYPE_p_wxScrollEvent swig_types[148]
2615#define SWIGTYPE_p_wxScrollWinEvent swig_types[149]
2616#define SWIGTYPE_p_wxSetCursorEvent swig_types[150]
2617#define SWIGTYPE_p_wxShowEvent swig_types[151]
2618#define SWIGTYPE_p_wxSize swig_types[152]
2619#define SWIGTYPE_p_wxSizeEvent swig_types[153]
2620#define SWIGTYPE_p_wxSizer swig_types[154]
2621#define SWIGTYPE_p_wxSizerItem swig_types[155]
2622#define SWIGTYPE_p_wxSplitterRenderParams swig_types[156]
2623#define SWIGTYPE_p_wxStaticBoxSizer swig_types[157]
2624#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158]
2625#define SWIGTYPE_p_wxStockGDI swig_types[159]
2626#define SWIGTYPE_p_wxString swig_types[160]
2627#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161]
2628#define SWIGTYPE_p_wxTIFFHandler swig_types[162]
2629#define SWIGTYPE_p_wxUpdateUIEvent swig_types[163]
2630#define SWIGTYPE_p_wxValidator swig_types[164]
2631#define SWIGTYPE_p_wxWindow swig_types[165]
2632#define SWIGTYPE_p_wxWindowCreateEvent swig_types[166]
2633#define SWIGTYPE_p_wxWindowDC swig_types[167]
2634#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[168]
2635#define SWIGTYPE_p_wxXPMHandler swig_types[169]
2636static swig_type_info *swig_types[171];
2637static swig_module_info swig_module = {swig_types, 170, 0, 0, 0, 0};
7449af73
RD
2638#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2639#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2640
093d3ff1 2641/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2642
554f62e9
RD
2643#if (PY_VERSION_HEX <= 0x02000000)
2644# if !defined(SWIG_PYTHON_CLASSIC)
2645# error "This python version requires to use swig with the '-classic' option"
2646# endif
2647#endif
2648#if (PY_VERSION_HEX <= 0x02020000)
2649# error "This python version requires to use swig with the '-nomodern' option"
2650#endif
2651#if (PY_VERSION_HEX <= 0x02020000)
2652# error "This python version requires to use swig with the '-nomodernargs' option"
2653#endif
2654#ifndef METH_O
2655# error "This python version requires to use swig with the '-nofastunpack' option"
2656#endif
d55e5bfc 2657
093d3ff1
RD
2658/*-----------------------------------------------
2659 @(target):= _gdi_.so
2660 ------------------------------------------------*/
2661#define SWIG_init init_gdi_
d55e5bfc 2662
093d3ff1 2663#define SWIG_name "_gdi_"
d55e5bfc 2664
554f62e9 2665#define SWIGVERSION 0x010329
d55e5bfc 2666
d55e5bfc 2667
554f62e9
RD
2668#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2669#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2670
2671
554f62e9
RD
2672#include <stdexcept>
2673
2674
2675namespace swig {
2676 class PyObject_ptr {
2677 protected:
2678 PyObject *_obj;
2679
2680 public:
2681 PyObject_ptr() :_obj(0)
2682 {
093d3ff1 2683 }
554f62e9
RD
2684
2685 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2686 {
2687 Py_XINCREF(_obj);
093d3ff1 2688 }
554f62e9
RD
2689
2690 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2691 {
2692 if (initial_ref) Py_XINCREF(_obj);
2693 }
2694
2695 PyObject_ptr & operator=(const PyObject_ptr& item)
2696 {
2697 Py_XINCREF(item._obj);
2698 Py_XDECREF(_obj);
2699 _obj = item._obj;
2700 return *this;
2701 }
2702
2703 ~PyObject_ptr()
2704 {
2705 Py_XDECREF(_obj);
2706 }
2707
2708 operator PyObject *() const
2709 {
2710 return _obj;
2711 }
2712
2713 PyObject *operator->() const
2714 {
2715 return _obj;
2716 }
2717 };
093d3ff1 2718}
d55e5bfc 2719
d55e5bfc 2720
554f62e9
RD
2721namespace swig {
2722 struct PyObject_var : PyObject_ptr {
2723 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2724
2725 PyObject_var & operator = (PyObject* obj)
2726 {
2727 Py_XDECREF(_obj);
2728 _obj = obj;
2729 return *this;
d55e5bfc 2730 }
554f62e9 2731 };
d55e5bfc
RD
2732}
2733
2734
554f62e9
RD
2735#include "wx/wxPython/wxPython.h"
2736#include "wx/wxPython/pyclasses.h"
2737
2738
2739 static const wxString wxPyEmptyString(wxEmptyString);
2740
f460c29d
RD
2741 #define SWIG_From_long PyInt_FromLong
2742
2743
2744SWIGINTERNINLINE PyObject *
2745SWIG_From_int (int value)
2746{
2747 return SWIG_From_long (value);
2748}
2749
2750
554f62e9
RD
2751#include <limits.h>
2752#ifndef LLONG_MIN
2753# define LLONG_MIN LONG_LONG_MIN
2754#endif
2755#ifndef LLONG_MAX
2756# define LLONG_MAX LONG_LONG_MAX
2757#endif
2758#ifndef ULLONG_MAX
2759# define ULLONG_MAX ULONG_LONG_MAX
2760#endif
d55e5bfc 2761
c32bde28 2762
50efceee
RD
2763SWIGINTERN int
2764SWIG_AsVal_long (PyObject* obj, long* val)
2765{
2766 if (PyNumber_Check(obj)) {
2767 if (val) *val = PyInt_AsLong(obj);
2768 return SWIG_OK;
2769 }
2770 return SWIG_TypeError;
2771}
2772
2773
093d3ff1 2774SWIGINTERN int
554f62e9 2775SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
093d3ff1
RD
2776{
2777 long v = 0;
2778 if (SWIG_AsVal_long(obj, &v) && v < 0) {
554f62e9 2779 return SWIG_TypeError;
093d3ff1
RD
2780 }
2781 else if (val)
2782 *val = (unsigned long)v;
554f62e9 2783 return SWIG_OK;
093d3ff1 2784}
c32bde28 2785
d55e5bfc 2786
093d3ff1 2787SWIGINTERN int
554f62e9
RD
2788SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2789{
093d3ff1 2790 unsigned long v;
554f62e9
RD
2791 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2792 if (SWIG_IsOK(res)) {
2793 if ((v > UCHAR_MAX)) {
2794 return SWIG_OverflowError;
093d3ff1 2795 } else {
554f62e9 2796 if (val) *val = static_cast< unsigned char >(v);
093d3ff1 2797 }
554f62e9
RD
2798 }
2799 return res;
093d3ff1 2800}
d55e5bfc
RD
2801
2802
554f62e9
RD
2803SWIGINTERNINLINE PyObject*
2804SWIG_From_unsigned_SS_long (unsigned long value)
093d3ff1 2805{
554f62e9
RD
2806 return (value > LONG_MAX) ?
2807 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
093d3ff1 2808}
d55e5bfc
RD
2809
2810
554f62e9
RD
2811SWIGINTERNINLINE PyObject *
2812SWIG_From_unsigned_SS_char (unsigned char value)
2813{
2814 return SWIG_From_unsigned_SS_long (value);
2815}
d55e5bfc 2816
e9d6f3a4
RD
2817SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2818 wxColour temp, *obj = &temp;
2819 if ( other == Py_None ) return false;
2820 if ( ! wxColour_helper(other, &obj) ) {
2821 PyErr_Clear();
2822 return false;
2823 }
2824 return self->operator==(*obj);
2825 }
2826SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2827 wxColour temp, *obj = &temp;
2828 if ( other == Py_None ) return true;
2829 if ( ! wxColour_helper(other, &obj)) {
2830 PyErr_Clear();
2831 return true;
2832 }
2833 return self->operator!=(*obj);
2834 }
fc46b7f3
RD
2835
2836SWIGINTERN int
2837SWIG_AsVal_bool (PyObject *obj, bool *val)
2838{
2839 if (obj == Py_True) {
2840 if (val) *val = true;
2841 return SWIG_OK;
2842 } else if (obj == Py_False) {
2843 if (val) *val = false;
2844 return SWIG_OK;
2845 } else {
2846 long v = 0;
2847 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2848 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2849 return res;
2850 }
2851}
2852
2853SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2854 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
093d3ff1
RD
2855 int red = -1;
2856 int green = -1;
2857 int blue = -1;
fc46b7f3 2858 int alpha = wxALPHA_OPAQUE;
b39fe951 2859 if (self->IsOk()) {
093d3ff1
RD
2860 red = self->Red();
2861 green = self->Green();
2862 blue = self->Blue();
fc46b7f3 2863 alpha = self->Alpha();
093d3ff1
RD
2864 }
2865 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2866 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2867 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2868 if (includeAlpha)
2869 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
093d3ff1
RD
2870 return rv;
2871 }
554f62e9 2872SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
093d3ff1
RD
2873 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2874 }
2875
554f62e9
RD
2876SWIGINTERN int
2877SWIG_AsVal_int (PyObject * obj, int *val)
093d3ff1 2878{
554f62e9
RD
2879 long v;
2880 int res = SWIG_AsVal_long (obj, &v);
2881 if (SWIG_IsOK(res)) {
2882 if ((v < INT_MIN || v > INT_MAX)) {
2883 return SWIG_OverflowError;
2884 } else {
2885 if (val) *val = static_cast< int >(v);
2886 }
2887 }
2888 return res;
d55e5bfc
RD
2889}
2890
554f62e9 2891SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
093d3ff1
RD
2892 wxDash* dashes;
2893 int count = self->GetDashes(&dashes);
5a446332 2894 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2895 PyObject* retval = PyList_New(0);
2896 for (int x=0; x<count; x++) {
2897 PyObject* pyint = PyInt_FromLong(dashes[x]);
2898 PyList_Append(retval, pyint);
2899 Py_DECREF(pyint);
2900 }
2901 wxPyEndBlockThreads(blocked);
2902 return retval;
2903 }
554f62e9 2904SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2905 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2906 int size = PyList_Size(pyDashes);
2907 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2908
093d3ff1
RD
2909 // black magic warning! The array of wxDashes needs to exist as
2910 // long as the pen does because wxPen does not copy the array. So
2911 // stick a copy in a Python string object and attach it to _self,
2912 // and then call SetDashes with a pointer to that array. Then
2913 // when the Python pen object is destroyed the array will be
2914 // cleaned up too.
2915 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2916 PyObject_SetAttrString(_self, "_dashes", strDashes);
2917
2918 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2919 delete [] dashes;
2920 Py_DECREF(strDashes);
2921 wxPyEndBlockThreads(blocked);
2922 }
554f62e9
RD
2923SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2924SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2925
fc46b7f3
RD
2926#include <wx/rawbmp.h>
2927
2928
093d3ff1 2929#include <wx/image.h>
d55e5bfc 2930
093d3ff1
RD
2931 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2932 char** cArray = NULL;
2933 int count;
d55e5bfc 2934
093d3ff1
RD
2935 if (!PyList_Check(listOfStrings)) {
2936 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2937 return NULL;
2938 }
2939 count = PyList_Size(listOfStrings);
2940 cArray = new char*[count];
d55e5bfc 2941
093d3ff1
RD
2942 for(int x=0; x<count; x++) {
2943 // TODO: Need some validation and error checking here
2944 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2945 }
2946 return cArray;
d55e5bfc 2947 }
d55e5bfc
RD
2948
2949
554f62e9 2950SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2951 char** cArray = NULL;
2952 wxBitmap* bmp;
2953
2954 cArray = ConvertListOfStrings(listOfStrings);
2955 if (! cArray)
2956 return NULL;
2957 bmp = new wxBitmap(cArray);
2958 delete [] cArray;
2959 return bmp;
2960 }
554f62e9 2961SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2962 char* buf;
2963 Py_ssize_t length;
2964 PyString_AsStringAndSize(bits, &buf, &length);
2965 return new wxBitmap(buf, width, height, depth);
2966 }
554f62e9
RD
2967SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2968SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
093d3ff1
RD
2969 wxSize size(self->GetWidth(), self->GetHeight());
2970 return size;
2971 }
554f62e9 2972SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
093d3ff1
RD
2973 wxMask *mask = new wxMask(*self, colour);
2974 self->SetMask(mask);
2975 }
554f62e9 2976SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
093d3ff1
RD
2977 self->SetWidth(size.x);
2978 self->SetHeight(size.y);
2979 }
554f62e9
RD
2980SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2981SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
fc46b7f3
RD
2982
2983// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2984// appears to me that the other platforms are already doing it, so I'll just
2985// automatically do it for wxMSW here.
2986#ifdef __WXMSW__
195a89b4
RD
2987#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2988#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
fc46b7f3
RD
2989#else
2990#define wxPy_premultiply(p, a) (p)
2991#define wxPy_unpremultiply(p, a) (p)
2992#endif
2993
2994
2995 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2996 buffer data, int DATASIZE,
2997 buffer alpha, int ALPHASIZE)
2998 {
2999 if (DATASIZE != width*height*3) {
3000 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3001 return NULL;
3002 }
3003
3004 if (ALPHASIZE != width*height) {
3005 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3006 return NULL;
3007 }
3008
3009 wxBitmap* bmp = new wxBitmap(width, height, 32);
3010 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3011 if (! pixData) {
3012 // raise an exception...
3013 wxPyErr_SetString(PyExc_RuntimeError,
3014 "Failed to gain raw access to bitmap data.");
3015 return NULL;
3016 }
3017
3018 pixData.UseAlpha();
3019 wxAlphaPixelData::Iterator p(pixData);
3020 for (int y=0; y<height; y++) {
3021 wxAlphaPixelData::Iterator rowStart = p;
3022 for (int x=0; x<width; x++) {
3023 byte a = *(alpha++);
3024 p.Red() = wxPy_premultiply(*(data++), a);
3025 p.Green() = wxPy_premultiply(*(data++), a);
3026 p.Blue() = wxPy_premultiply(*(data++), a);
3027 p.Alpha() = a;
3028 ++p;
3029 }
3030 p = rowStart;
3031 p.OffsetY(pixData, 1);
3032 }
3033 return bmp;
3034 }
3035
3036 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3037 {
3038 if (DATASIZE != width*height*3) {
3039 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3040 return NULL;
3041 }
3042
3043 wxBitmap* bmp = new wxBitmap(width, height, 24);
3044 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3045 if (! pixData) {
3046 // raise an exception...
3047 wxPyErr_SetString(PyExc_RuntimeError,
3048 "Failed to gain raw access to bitmap data.");
3049 return NULL;
3050 }
3051
3052 wxNativePixelData::Iterator p(pixData);
3053 for (int y=0; y<height; y++) {
3054 wxNativePixelData::Iterator rowStart = p;
3055 for (int x=0; x<width; x++) {
3056 p.Red() = *(data++);
3057 p.Green() = *(data++);
3058 p.Blue() = *(data++);
3059 ++p;
3060 }
3061 p = rowStart;
3062 p.OffsetY(pixData, 1);
3063 }
3064 return bmp;
3065 }
3066
3067
3068 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3069 {
3070 if (DATASIZE != width*height*4) {
3071 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3072 return NULL;
3073 }
3074
3075 wxBitmap* bmp = new wxBitmap(width, height, 32);
3076 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3077 if (! pixData) {
3078 // raise an exception...
3079 wxPyErr_SetString(PyExc_RuntimeError,
3080 "Failed to gain raw access to bitmap data.");
3081 return NULL;
3082 }
3083
3084 pixData.UseAlpha();
3085 wxAlphaPixelData::Iterator p(pixData);
3086 for (int y=0; y<height; y++) {
3087 wxAlphaPixelData::Iterator rowStart = p;
3088 for (int x=0; x<width; x++) {
3089 byte a = data[3];
3090 p.Red() = wxPy_premultiply(*(data++), a);
3091 p.Green() = wxPy_premultiply(*(data++), a);
3092 p.Blue() = wxPy_premultiply(*(data++), a);
3093 p.Alpha() = a; data++;
3094 ++p;
3095 }
3096 p = rowStart;
3097 p.OffsetY(pixData, 1);
3098 }
3099 return bmp;
3100 }
3101
3102
3103 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3104
3105SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3106SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3107SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3108 self->Red() = red;
3109 self->Green() = green;
3110 self->Blue() = blue;
3111 }
3112SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3113 PyObject* rv = PyTuple_New(3);
3114 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3115 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3116 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3117 return rv;
3118 }
3119
3120 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3121
3122SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3123SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3124SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3125 self->Red() = wxPy_premultiply(red, alpha);
3126 self->Green() = wxPy_premultiply(green, alpha);
3127 self->Blue() = wxPy_premultiply(blue, alpha);
3128 self->Alpha() = alpha;
3129 }
3130SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3131 PyObject* rv = PyTuple_New(4);
3132 int red = self->Red();
3133 int green = self->Green();
3134 int blue = self->Blue();
3135 int alpha = self->Alpha();
3136
3137 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3138 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3139 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3140 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3141 return rv;
3142 }
554f62e9 3143SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3144 if ( !colour.IsOk() )
093d3ff1
RD
3145 return new wxMask(bitmap, *wxBLACK);
3146 else
3147 return new wxMask(bitmap, colour);
3148 }
d55e5bfc 3149
093d3ff1 3150#include <wx/iconbndl.h>
d55e5bfc 3151
554f62e9 3152SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
093d3ff1
RD
3153 wxIcon* icon = new wxIcon();
3154 icon->CopyFromBitmap(bmp);
3155 return icon;
3156 }
554f62e9 3157SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
093d3ff1
RD
3158 char** cArray = NULL;
3159 wxIcon* icon;
d55e5bfc 3160
093d3ff1
RD
3161 cArray = ConvertListOfStrings(listOfStrings);
3162 if (! cArray)
3163 return NULL;
3164 icon = new wxIcon(cArray);
3165 delete [] cArray;
3166 return icon;
3167 }
554f62e9
RD
3168SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3169SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc 3170
093d3ff1 3171 return new wxIconLocation(*filename, num);
d55e5bfc
RD
3172
3173
d55e5bfc 3174
093d3ff1 3175 }
554f62e9 3176SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc 3177
093d3ff1 3178 self->SetIndex(num);
d55e5bfc
RD
3179
3180
d55e5bfc 3181
093d3ff1 3182 }
554f62e9 3183SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
d55e5bfc 3184
093d3ff1 3185 return self->GetIndex();
d55e5bfc
RD
3186
3187
d55e5bfc 3188
093d3ff1 3189 }
554f62e9 3190SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
093d3ff1 3191#ifdef __WXGTK__
fef4c27a
RD
3192 wxImage img(cursorName, type);
3193 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3194 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3195 return new wxCursor(img);
093d3ff1 3196#else
fef4c27a 3197 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
093d3ff1
RD
3198#endif
3199 }
554f62e9 3200SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
d55e5bfc 3201
093d3ff1 3202
554f62e9 3203SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
093d3ff1
RD
3204 (*self) ++;
3205 }
554f62e9 3206SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
093d3ff1
RD
3207 return self->operator bool();
3208 }
3209
3210#include <wx/fontutil.h>
3211#include <wx/fontmap.h>
3212#include <wx/fontenum.h>
3213
554f62e9 3214SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
093d3ff1
RD
3215 return self->ToString();
3216 }
3217
3218 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3219 { wxPyRaiseNotImplemented(); return NULL; }
3220
3221 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3222 { wxPyRaiseNotImplemented(); return false; }
3223
554f62e9
RD
3224
3225SWIGINTERNINLINE PyObject *
3226SWIG_From_size_t (size_t value)
3227{
3228 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3229}
3230
3231
3232SWIGINTERNINLINE int
3233SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3234{
3235 unsigned long v;
3236 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3237 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3238 return res;
3239}
3240
3241SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
093d3ff1
RD
3242 wxFontEncoding alt_enc;
3243 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3244 return PyInt_FromLong(alt_enc);
3245 else {
3246 Py_INCREF(Py_None);
3247 return Py_None;
3248 }
3249 }
554f62e9 3250SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3251 wxNativeFontInfo nfi;
3252 nfi.FromString(info);
3253 return new wxFont(nfi);
3254 }
554f62e9 3255SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3256 return wxFont::New(pointSize, family, flags, face, encoding);
3257 }
554f62e9 3258SWIGINTERN 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
3259 return wxFontBase::New(pixelSize, family,
3260 style, weight, underlined,
3261 face, encoding);
3262 }
554f62e9 3263SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3264 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3265 }
554f62e9
RD
3266SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3267SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
093d3ff1
RD
3268
3269class wxPyFontEnumerator : public wxFontEnumerator {
3270public:
3271 wxPyFontEnumerator() {}
3272 ~wxPyFontEnumerator() {}
3273
3274 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3275 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3276
3277 PYPRIVATE;
3278};
3279
3280IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3281IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3282
3283
704eda0c 3284SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3285 PyObject* ret;
704eda0c 3286 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3287 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3288 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3289 wxPyEndBlockThreads(blocked);
3290 return ret;
093d3ff1 3291 }
704eda0c 3292SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3293 PyObject* ret;
704eda0c 3294 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3295 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3296 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3297 wxPyEndBlockThreads(blocked);
3298 return ret;
093d3ff1
RD
3299 }
3300
3301#include <locale.h>
3302
554f62e9 3303SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3304 wxLocale* loc;
3305 if (language == -1)
3306 loc = new wxLocale();
3307 else
3308 loc = new wxLocale(language, flags);
3309 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3310 // for the floating point conversions and such to work right.
3311#if PY_VERSION_HEX < 0x02040000
3312 setlocale(LC_NUMERIC, "C");
3313#endif
3314 return loc;
3315 }
554f62e9 3316SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
093d3ff1
RD
3317 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3318 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3319 // for the floating point conversions and such to work right.
3320#if PY_VERSION_HEX < 0x02040000
3321 setlocale(LC_NUMERIC, "C");
3322#endif
3323 return rc;
3324 }
554f62e9 3325SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3326 bool rc = self->Init(language, flags);
3327 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3328 // for the floating point conversions and such to work right.
3329#if PY_VERSION_HEX < 0x02040000
3330 setlocale(LC_NUMERIC, "C");
3331#endif
3332 return rc;
3333 }
3334
fc46b7f3
RD
3335class wxPyLocale : public wxLocale
3336{
3337public:
3338 wxPyLocale();
3339
3340 wxPyLocale(const wxChar *szName, // name (for messages)
3341 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3342 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3343 bool bLoadDefault = true, // preload wxstd.mo?
3344 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3345
3346 wxPyLocale(int language, // wxLanguage id or custom language
3347 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3348
3349 ~wxPyLocale();
3350
3351 virtual const wxChar *GetString(const wxChar *szOrigString,
3352 const wxChar *szDomain = NULL) const;
3353 virtual const wxChar *GetString(const wxChar *szOrigString,
3354 const wxChar *szOrigString2, size_t n,
3355 const wxChar *szDomain = NULL) const;
3356
3357 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3358 const wxChar *szDomain = NULL) const;
3359 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3360 const wxChar *szOrigString2, size_t n,
3361 const wxChar *szDomain = NULL) const;
3362
3363 PYPRIVATE;
3364private:
3365 DECLARE_NO_COPY_CLASS(wxPyLocale)
3366};
3367
3368wxPyLocale::wxPyLocale() : wxLocale()
3369{
3370}
3371
3372wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3373 const wxChar *szShort, // dir prefix (for msg files)
3374 const wxChar *szLocale, // locale (for setlocale)
3375 bool bLoadDefault, // preload wxstd.mo?
3376 bool bConvertEncoding) // convert Win<->Unix if necessary?
3377 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3378{
3379}
3380
3381wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3382 int flags) : wxLocale(language, flags)
3383{
3384}
3385
3386wxPyLocale::~wxPyLocale()
3387{
3388}
3389
3390const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3391 const wxChar *szDomain) const
3392{
3393 wxChar *str = GetSingularString(szOrigString, szDomain);
3394 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3395}
3396
3397const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3398 const wxChar *szOrigString2, size_t n,
3399 const wxChar *szDomain) const
3400{
3401 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3402 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3403}
3404
3405wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3406 const wxChar *szDomain) const
3407{
3408 bool found;
3409 static wxString str;
3410 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.
3411 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3412 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3413 PyObject* param1 = wx2PyString(szOrigString);
3414 PyObject* param2 = wx2PyString(szDomain);
3415 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3416 Py_DECREF(param1);
3417 Py_DECREF(param2);
3418 if (ret) {
3419 str = Py2wxString(ret);
3420 Py_DECREF(ret);
3421 }
3422 }
3423 wxPyEndBlockThreads(blocked);
3424 return (found ? (wxChar*)str.c_str() : NULL);
3425}
3426
3427wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3428 const wxChar *szOrigString2, size_t n,
3429 const wxChar *szDomain) const
3430{
3431 bool found;
3432 static wxString str;
3433 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.
3434 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3435 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3436 PyObject* param1 = wx2PyString(szOrigString);
3437 PyObject* param2 = wx2PyString(szOrigString2);
3438 PyObject* param4 = wx2PyString(szDomain);
3439 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3440 Py_DECREF(param1);
3441 Py_DECREF(param2);
3442 Py_DECREF(param4);
3443 if( ret) {
3444 str = Py2wxString(ret);
3445 Py_DECREF(ret);
3446 }
3447 }
3448 wxPyEndBlockThreads(blocked);
3449 return (found ? (wxChar*)str.c_str() : NULL);
3450}
3451
3452SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3453 wxPyLocale* loc;
3454 if (language == -1)
3455 loc = new wxPyLocale();
3456 else
3457 loc = new wxPyLocale(language, flags);
3458 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3459 // for the floating point conversions and such to work right.
3460#if PY_VERSION_HEX < 0x02040000
3461 setlocale(LC_NUMERIC, "C");
3462#endif
3463 return loc;
3464 }
3465
093d3ff1
RD
3466#include "wx/wxPython/pydrawxxx.h"
3467
554f62e9 3468SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
093d3ff1
RD
3469 wxColour col;
3470 self->GetPixel(x, y, &col);
3471 return col;
3472 }
554f62e9 3473SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
093d3ff1
RD
3474 wxColour col;
3475 self->GetPixel(pt, &col);
3476 return col;
3477 }
3478
3479SWIGINTERN int
554f62e9 3480SWIG_AsVal_double (PyObject *obj, double* val)
093d3ff1
RD
3481{
3482 if (PyNumber_Check(obj)) {
3483 if (val) *val = PyFloat_AsDouble(obj);
554f62e9 3484 return SWIG_OK;
093d3ff1 3485 }
554f62e9 3486 return SWIG_TypeError;
093d3ff1
RD
3487}
3488
554f62e9 3489SWIGINTERN 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
3490 wxRect rv;
3491 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3492 return rv;
3493 }
554f62e9 3494SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
093d3ff1
RD
3495 wxRect rect;
3496 self->GetClippingBox(rect);
3497 return rect;
3498 }
554f62e9 3499SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
093d3ff1
RD
3500 wxArrayInt widths;
3501 self->GetPartialTextExtents(text, widths);
3502 return widths;
3503 }
3504
554f62e9 3505 #define SWIG_From_double PyFloat_FromDouble
093d3ff1 3506
554f62e9 3507SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3508 self->SetLogicalOrigin(point.x, point.y);
3509 }
554f62e9 3510SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3511 self->SetDeviceOrigin(point.x, point.y);
3512 }
554f62e9 3513SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3514 self->CalcBoundingBox(point.x, point.y);
3515 }
554f62e9 3516SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3517 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3518 }
554f62e9 3519SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3520 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3521 }
554f62e9 3522SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3523 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3524 }
554f62e9 3525SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3526 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3527 }
554f62e9 3528SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3529 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3530 }
554f62e9 3531SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
093d3ff1
RD
3532 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3533 }
3534
3535static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3536 *x1 = dc->MinX();
3537 *y1 = dc->MinY();
3538 *x2 = dc->MaxX();
3539 *y2 = dc->MaxY();
3540}
3541
3542
3543#include <wx/dcbuffer.h>
3544
3545
3546#include <wx/dcps.h>
3547
3548
3549#include <wx/metafile.h>
3550
3551
72ef6efb
RD
3552#include <wx/graphics.h>
3553
3554
3555#if !wxUSE_GRAPHICS_CONTEXT
70d7cb34
RD
3556// C++ stub classes for platforms or build configurations that don't have
3557// wxGraphicsContext yet.
72ef6efb 3558
70d7cb34
RD
3559
3560class wxGraphicsObject : public wxObject
72ef6efb
RD
3561{
3562public :
70d7cb34 3563 wxGraphicsObject( wxGraphicsRenderer* ) {
72ef6efb 3564 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3565 "wx.GraphicsObject is not available on this platform.");
3566 }
3567 wxGraphicsObject( const wxGraphicsObject& ) {}
3568 virtual ~wxGraphicsObject() {}
3569 bool IsNull() const { return false; }
3570 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3571} ;
3572
3573
3574
3575class wxGraphicsPen : public wxGraphicsObject
3576{
3577 wxGraphicsPen() {}
3578 virtual ~wxGraphicsPen() {}
3579} ;
3580wxGraphicsPen wxNullGraphicsPen;
3581
3582
3583
3584class wxGraphicsBrush : public wxGraphicsObject
3585{
3586public :
3587 wxGraphicsBrush() {}
3588 virtual ~wxGraphicsBrush() {}
3589} ;
3590wxGraphicsBrush wxNullGraphicsBrush;
3591
3592
3593
3594class wxGraphicsFont : public wxGraphicsObject
3595{
3596public :
3597 wxGraphicsFont() {}
3598 virtual ~wxGraphicsFont() {}
3599} ;
3600wxGraphicsFont wxNullGraphicsFont;
3601
3602
3603
3604class wxGraphicsPath : public wxGraphicsObject
3605{
3606public :
3607 wxGraphicsPath(wxGraphicsRenderer* ) {
3608 PyErr_SetString(PyExc_NotImplementedError,
3609 "wx.GraphicsPath is not available on this platform.");
72ef6efb
RD
3610 }
3611 virtual ~wxGraphicsPath() {}
70d7cb34
RD
3612
3613 virtual wxGraphicsPath *Clone() const { return NULL; }
3614
72ef6efb 3615 void MoveToPoint( wxDouble, wxDouble ) {}
70d7cb34
RD
3616 void MoveToPoint( const wxPoint2DDouble& ) {}
3617 void AddLineToPoint( wxDouble, wxDouble ) {}
3618 void AddLineToPoint( const wxPoint2DDouble& ) {}
72ef6efb 3619 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
70d7cb34
RD
3620 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3621 void AddPath( const wxGraphicsPath* ) {}
72ef6efb
RD
3622 void CloseSubpath() {}
3623 void GetCurrentPoint( wxDouble&, wxDouble&) {}
70d7cb34 3624 wxPoint2DDouble GetCurrentPoint() { reutrn wxPoint2D(0,0); }
72ef6efb 3625 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
70d7cb34 3626 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
72ef6efb
RD
3627
3628 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3629 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3630 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3631 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3632
70d7cb34
RD
3633 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3634 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3635 void * GetNativePath() const { return NULL; }
3636 void UnGetNativePath(void *) {}
3637 void Transform( wxGraphicsMatrix* ) {}
3638 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) {}
3639 wxRect2D GetBox() { return wxRect2D(0,0,0,0); }
3640
3641 bool Contains( wxDouble , wxDouble , int ) { return false; }
3642 bool Contains( const wxPoint2DDouble& , int ) { return false; }
3643};
3644
3645
3646class wxGraphicsMatrix : public wxGraphicsObject
3647{
3648public :
3649 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3650 PyErr_SetString(PyExc_NotImplementedError,
3651 "wx.GraphicsMatrix is not available on this platform.");
3652 }
3653 virtual ~wxGraphicsMatrix() {}
3654 virtual wxGraphicsMatrix *Clone() const { return NULL; }
3655 virtual void Concat( const wxGraphicsMatrix * ) {}
3656 virtual void Copy( const wxGraphicsMatrix * ) {}
3657 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3658 wxDouble , wxDouble ) {}
3659 virtual void Invert() {}
3660 virtual bool IsEqual( const wxGraphicsMatrix* t) const {}
3661 virtual bool IsIdentity() { return false; }
3662 virtual void Translate( wxDouble , wxDouble ) {}
3663 virtual void Scale( wxDouble , wxDouble ) {}
3664 virtual void Rotate( wxDouble ) {}
3665 virtual void TransformPoint( wxDouble *, wxDouble * ) {}
3666 virtual void TransformDistance( wxDouble *, wxDouble * ) {}
3667 virtual void * GetNativeMatrix() const { return NULL; }
72ef6efb
RD
3668};
3669
3670
70d7cb34
RD
3671
3672class wxGraphicsContext : public wxGraphicsObject
72ef6efb
RD
3673{
3674public:
70d7cb34
RD
3675
3676 wxGraphicsContext(wxGraphicsRenderer* ) {
72ef6efb 3677 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3678 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3679 }
70d7cb34 3680
72ef6efb 3681 virtual ~wxGraphicsContext() {}
70d7cb34
RD
3682
3683 static wxGraphicsContext* Create( const wxWindowDC& ) {
72ef6efb 3684 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3685 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3686 }
b876c1e4 3687
70d7cb34 3688 static wxGraphicsContext* CreateFromNative( void * ) {
b876c1e4 3689 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3690 "wx.GraphicsContext is not available on this platform.");
3691 }
b876c1e4 3692
70d7cb34
RD
3693 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3694 PyErr_SetString(PyExc_NotImplementedError,
3695 "wx.GraphicsContext is not available on this platform.");
3696 }
3697
3698 static wxGraphicsContext* Create( wxWindow* ) {
3699 PyErr_SetString(PyExc_NotImplementedError,
3700 "wx.GraphicsContext is not available on this platform.");
3701 }
3702
3703 wxGraphicsPath * CreatePath() { return NULL; }
3704
3705 virtual wxGraphicsPen CreatePen(const wxPen& ) { return NULL; }
3706
3707 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return NULL; }
3708
3709 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3710 const wxColour&, const wxColour&) { return NULL; }
3711
3712 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3713 wxDouble xc, wxDouble yc, wxDouble radius,
3714 const wxColour &oColor, const wxColour &cColor) { return NULL; }
3715
3716 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return NULL; }
3717
3718 virtual wxGraphicsMatrix* CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3719 wxDouble, wxDouble) { return NULL; }
3720
3721 virtual void PushState() {}
3722 virtual void PopState() {}
3723 virtual void Clip( const wxRegion & ) {}
3724 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3725 virtual void ResetClip() {}
3726 virtual void * GetNativeContext() { return NULL; }
3727 virtual void Translate( wxDouble , wxDouble ) {}
3728 virtual void Scale( wxDouble , wxDouble ) {}
3729 virtual void Rotate( wxDouble ) {}
3730 virtual void ConcatTransform( const wxGraphicsMatrix* ) {}
3731 virtual void SetTransform( const wxGraphicsMatrix* ) {}
3732 virtual void GetTransform( wxGraphicsMatrix* ) {}
3733
3734 virtual void SetPen( const wxGraphicsPen& ) {}
3735 void SetPen( const wxPen& ) {}
3736
3737 virtual void SetBrush( const wxGraphicsBrush& ) {}
3738 void SetBrush( const wxBrush& ) {}
3739
3740 virtual void SetFont( const wxGraphicsFont& ) {}
3741 void SetFont( const wxFont&, const wxColour& ) {}
3742
3743 virtual void StrokePath( const wxGraphicsPath * ) {}
3744 virtual void FillPath( const wxGraphicsPath *, int ) {}
3745 virtual void DrawPath( const wxGraphicsPath *, int ) {}
3746
3747 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3748 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3749 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3750 wxDouble *, wxDouble * ) const {}
3751 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3752
3753 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3754 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3755
3756 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3757 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3758 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3759 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3760 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3761 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3762 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3763 virtual bool ShouldOffset() const { return false; }
3764};
3765
3766
3767class wxGraphicsRenderer : public wxObject
3768{
3769public :
3770 wxGraphicsRenderer() {
3771 PyErr_SetString(PyExc_NotImplementedError,
3772 "wx.GraphicsRenderer is not available on this platform.");
3773 }
3774
3775 virtual ~wxGraphicsRenderer() {}
3776
3777 static wxGraphicsRenderer* GetDefaultRenderer(
3778 PyErr_SetString(PyExc_NotImplementedError,
3779 "wx.GraphicsRenderer is not available on this platform.");
3780 );
3781
3782 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3783 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3784 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3785 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3786
3787 virtual wxGraphicsPath * CreatePath() { return NULL; }
3788
3789 virtual wxGraphicsMatrix * CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3790 wxDouble , wxDouble ) { return NULL; }
3791
3792 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGaphicsPen; }
3793 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGaphicsBrush; }
3794 virtual wxGraphicsBrush CreateLinearGradientBrush(xDouble , wxDouble , wxDouble , wxDouble ,
3795 const wxColour&, const wxColour&) { return wxNullGaphicsBrush; }
3796 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3797 const wxColour &, const wxColour &) { return wxNullGaphicsBrush; }
3798 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGaphicsFont; }
72ef6efb
RD
3799};
3800
3801
70d7cb34 3802
72ef6efb
RD
3803class wxGCDC: public wxWindowDC
3804{
3805public:
3806 wxGCDC(const wxWindowDC&) {
3807 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3808 PyErr_SetString(PyExc_NotImplementedError,
3809 "wxGCDC is not available on this platform.");
3810 wxPyEndBlockThreads(blocked);
3811 }
70d7cb34 3812
72ef6efb
RD
3813 wxGCDC() {
3814 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3815 PyErr_SetString(PyExc_NotImplementedError,
3816 "wxGCDC is not available on this platform.");
3817 wxPyEndBlockThreads(blocked);
3818 }
70d7cb34 3819
72ef6efb
RD
3820 virtual ~wxGCDC() {}
3821
b876c1e4
RD
3822 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3823 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3824};
3825
3826#endif
3827
be68621e
RD
3828SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3829 wxDouble width = 0.0,
3830 height = 0.0;
3831 self->GetTextExtent(text, &width, &height, NULL, NULL);
3832 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3833 PyObject* rv = PyTuple_New(2);
3834 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3835 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3836 return rv;
3837 }
b39fe951
RD
3838SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3839 wxArrayDouble widths;
3840 self->GetPartialTextExtents(text, widths);
3841 return widths;
3842 }
f8eb59b9 3843SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3844 size_t c1, c2, count;
3845 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3846 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3847
3848 if ( beginP != NULL && endP != NULL )
3849 {
3850 count = wxMin(c1, c2);
3851 self->StrokeLines(count, beginP, endP);
3852 }
3853 delete [] beginP;
3854 delete [] endP;
3855 }
72ef6efb 3856
0a27f394
RD
3857#include "wx/dcgraph.h"
3858
3859
66493fc7
RD
3860#include <wx/overlay.h>
3861
3862
093d3ff1 3863
554f62e9 3864SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
093d3ff1
RD
3865 self->AddColour(name, wxColour(red, green, blue));
3866 }
3867
50efceee
RD
3868 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3869 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3870 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3871 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3872
3873
093d3ff1
RD
3874#include <wx/effects.h>
3875
be9b1dca
RD
3876
3877#include "wx/renderer.h"
3878
3879
7449af73 3880SWIGINTERNINLINE PyObject*
554f62e9 3881 SWIG_From_bool (bool value)
be9b1dca 3882{
554f62e9 3883 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
3884}
3885
27e45892
RD
3886
3887#include "wx/wxPython/pseudodc.h"
3888
3889SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3890 wxRect rect;
3891 self->GetIdBounds(id, rect);
3892 return rect;
3893 }
093d3ff1
RD
3894#ifdef __cplusplus
3895extern "C" {
3896#endif
554f62e9
RD
3897SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3898 PyObject *resultobj = 0;
3899 wxGDIObject *result = 0 ;
3900
3901 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3902 {
3903 if (!wxPyCheckForApp()) SWIG_fail;
3904 PyThreadState* __tstate = wxPyBeginAllowThreads();
3905 result = (wxGDIObject *)new wxGDIObject();
3906 wxPyEndAllowThreads(__tstate);
3907 if (PyErr_Occurred()) SWIG_fail;
3908 }
3909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3910 return resultobj;
3911fail:
3912 return NULL;
d55e5bfc
RD
3913}
3914
3915
554f62e9
RD
3916SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3917 PyObject *resultobj = 0;
3918 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3919 void *argp1 = 0 ;
3920 int res1 = 0 ;
3921 PyObject *swig_obj[1] ;
3922
3923 if (!args) SWIG_fail;
3924 swig_obj[0] = args;
3925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3926 if (!SWIG_IsOK(res1)) {
3927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3928 }
3929 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3930 {
3931 PyThreadState* __tstate = wxPyBeginAllowThreads();
3932 delete arg1;
d55e5bfc 3933
554f62e9
RD
3934 wxPyEndAllowThreads(__tstate);
3935 if (PyErr_Occurred()) SWIG_fail;
3936 }
3937 resultobj = SWIG_Py_Void();
3938 return resultobj;
3939fail:
3940 return NULL;
d55e5bfc
RD
3941}
3942
3943
554f62e9
RD
3944SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3945 PyObject *resultobj = 0;
3946 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3947 bool result;
3948 void *argp1 = 0 ;
3949 int res1 = 0 ;
3950 PyObject *swig_obj[1] ;
3951
3952 if (!args) SWIG_fail;
3953 swig_obj[0] = args;
3954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3955 if (!SWIG_IsOK(res1)) {
3956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3957 }
3958 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3959 {
3960 PyThreadState* __tstate = wxPyBeginAllowThreads();
3961 result = (bool)(arg1)->IsNull();
3962 wxPyEndAllowThreads(__tstate);
3963 if (PyErr_Occurred()) SWIG_fail;
3964 }
3965 {
3966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3967 }
3968 return resultobj;
3969fail:
3970 return NULL;
3971}
3972
3973
3974SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3975 PyObject *obj;
3976 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3977 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3978 return SWIG_Py_Void();
3979}
3980
3981SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3982 return SWIG_Python_InitShadowInstance(args);
3983}
3984
3985SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3986 PyObject *resultobj = 0;
3987 byte arg1 = (byte) 0 ;
3988 byte arg2 = (byte) 0 ;
3989 byte arg3 = (byte) 0 ;
fc46b7f3 3990 byte arg4 = (byte) wxALPHA_OPAQUE ;
554f62e9
RD
3991 wxColour *result = 0 ;
3992 unsigned char val1 ;
3993 int ecode1 = 0 ;
3994 unsigned char val2 ;
3995 int ecode2 = 0 ;
3996 unsigned char val3 ;
3997 int ecode3 = 0 ;
fc46b7f3
RD
3998 unsigned char val4 ;
3999 int ecode4 = 0 ;
554f62e9
RD
4000 PyObject * obj0 = 0 ;
4001 PyObject * obj1 = 0 ;
4002 PyObject * obj2 = 0 ;
fc46b7f3 4003 PyObject * obj3 = 0 ;
554f62e9 4004 char * kwnames[] = {
fc46b7f3 4005 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
554f62e9
RD
4006 };
4007
fc46b7f3 4008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
554f62e9
RD
4009 if (obj0) {
4010 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4011 if (!SWIG_IsOK(ecode1)) {
4012 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4013 }
4014 arg1 = static_cast< byte >(val1);
4015 }
4016 if (obj1) {
4017 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4018 if (!SWIG_IsOK(ecode2)) {
4019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4020 }
4021 arg2 = static_cast< byte >(val2);
4022 }
4023 if (obj2) {
4024 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4025 if (!SWIG_IsOK(ecode3)) {
4026 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4027 }
4028 arg3 = static_cast< byte >(val3);
4029 }
fc46b7f3
RD
4030 if (obj3) {
4031 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4032 if (!SWIG_IsOK(ecode4)) {
4033 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4034 }
4035 arg4 = static_cast< byte >(val4);
4036 }
554f62e9
RD
4037 {
4038 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4039 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
554f62e9
RD
4040 wxPyEndAllowThreads(__tstate);
4041 if (PyErr_Occurred()) SWIG_fail;
4042 }
4043 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4044 return resultobj;
4045fail:
4046 return NULL;
d55e5bfc
RD
4047}
4048
4049
554f62e9
RD
4050SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4051 PyObject *resultobj = 0;
4052 wxString *arg1 = 0 ;
4053 wxColour *result = 0 ;
4054 bool temp1 = false ;
4055 PyObject * obj0 = 0 ;
4056 char * kwnames[] = {
4057 (char *) "colorName", NULL
4058 };
4059
4060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4061 {
4062 arg1 = wxString_in_helper(obj0);
4063 if (arg1 == NULL) SWIG_fail;
4064 temp1 = true;
4065 }
4066 {
4067 if (!wxPyCheckForApp()) SWIG_fail;
4068 PyThreadState* __tstate = wxPyBeginAllowThreads();
4069 result = (wxColour *)new wxColour((wxString const &)*arg1);
4070 wxPyEndAllowThreads(__tstate);
4071 if (PyErr_Occurred()) SWIG_fail;
4072 }
4073 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4074 {
4075 if (temp1)
4076 delete arg1;
4077 }
4078 return resultobj;
4079fail:
4080 {
4081 if (temp1)
4082 delete arg1;
4083 }
4084 return NULL;
b519803b
RD
4085}
4086
4087
554f62e9
RD
4088SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4089 PyObject *resultobj = 0;
4090 unsigned long arg1 ;
4091 wxColour *result = 0 ;
4092 unsigned long val1 ;
4093 int ecode1 = 0 ;
4094 PyObject * obj0 = 0 ;
4095 char * kwnames[] = {
4096 (char *) "colRGB", NULL
4097 };
4098
4099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4100 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4101 if (!SWIG_IsOK(ecode1)) {
4102 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4103 }
4104 arg1 = static_cast< unsigned long >(val1);
4105 {
4106 PyThreadState* __tstate = wxPyBeginAllowThreads();
4107 result = (wxColour *)new wxColour(arg1);
4108 wxPyEndAllowThreads(__tstate);
4109 if (PyErr_Occurred()) SWIG_fail;
4110 }
4111 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4112 return resultobj;
4113fail:
4114 return NULL;
d55e5bfc
RD
4115}
4116
4117
554f62e9
RD
4118SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4119 PyObject *resultobj = 0;
4120 wxColour *arg1 = (wxColour *) 0 ;
4121 void *argp1 = 0 ;
4122 int res1 = 0 ;
4123 PyObject *swig_obj[1] ;
4124
4125 if (!args) SWIG_fail;
4126 swig_obj[0] = args;
4127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4128 if (!SWIG_IsOK(res1)) {
4129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4130 }
4131 arg1 = reinterpret_cast< wxColour * >(argp1);
4132 {
4133 PyThreadState* __tstate = wxPyBeginAllowThreads();
4134 delete arg1;
d55e5bfc 4135
554f62e9
RD
4136 wxPyEndAllowThreads(__tstate);
4137 if (PyErr_Occurred()) SWIG_fail;
4138 }
4139 resultobj = SWIG_Py_Void();
4140 return resultobj;
4141fail:
4142 return NULL;
d55e5bfc
RD
4143}
4144
4145
554f62e9
RD
4146SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4147 PyObject *resultobj = 0;
4148 wxColour *arg1 = (wxColour *) 0 ;
4149 byte result;
4150 void *argp1 = 0 ;
4151 int res1 = 0 ;
4152 PyObject *swig_obj[1] ;
4153
4154 if (!args) SWIG_fail;
4155 swig_obj[0] = args;
4156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4157 if (!SWIG_IsOK(res1)) {
4158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4159 }
4160 arg1 = reinterpret_cast< wxColour * >(argp1);
4161 {
4162 PyThreadState* __tstate = wxPyBeginAllowThreads();
4163 result = (byte)(arg1)->Red();
4164 wxPyEndAllowThreads(__tstate);
4165 if (PyErr_Occurred()) SWIG_fail;
4166 }
4167 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4168 return resultobj;
4169fail:
4170 return NULL;
d55e5bfc
RD
4171}
4172
4173
554f62e9
RD
4174SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4175 PyObject *resultobj = 0;
4176 wxColour *arg1 = (wxColour *) 0 ;
4177 byte result;
4178 void *argp1 = 0 ;
4179 int res1 = 0 ;
4180 PyObject *swig_obj[1] ;
4181
4182 if (!args) SWIG_fail;
4183 swig_obj[0] = args;
4184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4185 if (!SWIG_IsOK(res1)) {
4186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4187 }
4188 arg1 = reinterpret_cast< wxColour * >(argp1);
4189 {
4190 PyThreadState* __tstate = wxPyBeginAllowThreads();
4191 result = (byte)(arg1)->Green();
4192 wxPyEndAllowThreads(__tstate);
4193 if (PyErr_Occurred()) SWIG_fail;
4194 }
4195 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4196 return resultobj;
4197fail:
4198 return NULL;
d55e5bfc
RD
4199}
4200
4201
554f62e9
RD
4202SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4203 PyObject *resultobj = 0;
4204 wxColour *arg1 = (wxColour *) 0 ;
4205 byte result;
4206 void *argp1 = 0 ;
4207 int res1 = 0 ;
4208 PyObject *swig_obj[1] ;
4209
4210 if (!args) SWIG_fail;
4211 swig_obj[0] = args;
4212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4213 if (!SWIG_IsOK(res1)) {
4214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4215 }
4216 arg1 = reinterpret_cast< wxColour * >(argp1);
4217 {
4218 PyThreadState* __tstate = wxPyBeginAllowThreads();
4219 result = (byte)(arg1)->Blue();
4220 wxPyEndAllowThreads(__tstate);
4221 if (PyErr_Occurred()) SWIG_fail;
4222 }
4223 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4224 return resultobj;
4225fail:
4226 return NULL;
d55e5bfc
RD
4227}
4228
4229
fc46b7f3
RD
4230SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4231 PyObject *resultobj = 0;
4232 wxColour *arg1 = (wxColour *) 0 ;
4233 byte result;
4234 void *argp1 = 0 ;
4235 int res1 = 0 ;
4236 PyObject *swig_obj[1] ;
4237
4238 if (!args) SWIG_fail;
4239 swig_obj[0] = args;
4240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4241 if (!SWIG_IsOK(res1)) {
4242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4243 }
4244 arg1 = reinterpret_cast< wxColour * >(argp1);
4245 {
4246 PyThreadState* __tstate = wxPyBeginAllowThreads();
4247 result = (byte)(arg1)->Alpha();
4248 wxPyEndAllowThreads(__tstate);
4249 if (PyErr_Occurred()) SWIG_fail;
4250 }
4251 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4252 return resultobj;
4253fail:
4254 return NULL;
4255}
4256
4257
b39fe951 4258SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
4259 PyObject *resultobj = 0;
4260 wxColour *arg1 = (wxColour *) 0 ;
4261 bool result;
4262 void *argp1 = 0 ;
4263 int res1 = 0 ;
4264 PyObject *swig_obj[1] ;
4265
4266 if (!args) SWIG_fail;
4267 swig_obj[0] = args;
4268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4269 if (!SWIG_IsOK(res1)) {
b39fe951 4270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
4271 }
4272 arg1 = reinterpret_cast< wxColour * >(argp1);
4273 {
4274 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4275 result = (bool)(arg1)->IsOk();
554f62e9
RD
4276 wxPyEndAllowThreads(__tstate);
4277 if (PyErr_Occurred()) SWIG_fail;
4278 }
4279 {
4280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4281 }
4282 return resultobj;
4283fail:
4284 return NULL;
4285}
4286
4287
4288SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4289 PyObject *resultobj = 0;
4290 wxColour *arg1 = (wxColour *) 0 ;
4291 byte arg2 ;
4292 byte arg3 ;
4293 byte arg4 ;
fc46b7f3 4294 byte arg5 = (byte) wxALPHA_OPAQUE ;
554f62e9
RD
4295 void *argp1 = 0 ;
4296 int res1 = 0 ;
4297 unsigned char val2 ;
4298 int ecode2 = 0 ;
4299 unsigned char val3 ;
4300 int ecode3 = 0 ;
4301 unsigned char val4 ;
4302 int ecode4 = 0 ;
fc46b7f3
RD
4303 unsigned char val5 ;
4304 int ecode5 = 0 ;
554f62e9
RD
4305 PyObject * obj0 = 0 ;
4306 PyObject * obj1 = 0 ;
4307 PyObject * obj2 = 0 ;
4308 PyObject * obj3 = 0 ;
fc46b7f3 4309 PyObject * obj4 = 0 ;
554f62e9 4310 char * kwnames[] = {
fc46b7f3 4311 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
554f62e9
RD
4312 };
4313
fc46b7f3 4314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
554f62e9
RD
4315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4316 if (!SWIG_IsOK(res1)) {
4317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4318 }
4319 arg1 = reinterpret_cast< wxColour * >(argp1);
4320 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4321 if (!SWIG_IsOK(ecode2)) {
4322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4323 }
4324 arg2 = static_cast< byte >(val2);
4325 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4326 if (!SWIG_IsOK(ecode3)) {
4327 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4328 }
4329 arg3 = static_cast< byte >(val3);
4330 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4331 if (!SWIG_IsOK(ecode4)) {
4332 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4333 }
4334 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4335 if (obj4) {
4336 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4337 if (!SWIG_IsOK(ecode5)) {
4338 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4339 }
4340 arg5 = static_cast< byte >(val5);
4341 }
554f62e9
RD
4342 {
4343 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4344 (arg1)->Set(arg2,arg3,arg4,arg5);
554f62e9
RD
4345 wxPyEndAllowThreads(__tstate);
4346 if (PyErr_Occurred()) SWIG_fail;
4347 }
4348 resultobj = SWIG_Py_Void();
4349 return resultobj;
4350fail:
4351 return NULL;
4352}
4353
4354
4355SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4356 PyObject *resultobj = 0;
4357 wxColour *arg1 = (wxColour *) 0 ;
4358 unsigned long arg2 ;
4359 void *argp1 = 0 ;
4360 int res1 = 0 ;
4361 unsigned long val2 ;
4362 int ecode2 = 0 ;
4363 PyObject * obj0 = 0 ;
4364 PyObject * obj1 = 0 ;
4365 char * kwnames[] = {
4366 (char *) "self",(char *) "colRGB", NULL
4367 };
4368
4369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4371 if (!SWIG_IsOK(res1)) {
4372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4373 }
4374 arg1 = reinterpret_cast< wxColour * >(argp1);
4375 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4376 if (!SWIG_IsOK(ecode2)) {
4377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4378 }
4379 arg2 = static_cast< unsigned long >(val2);
4380 {
4381 PyThreadState* __tstate = wxPyBeginAllowThreads();
4382 (arg1)->Set(arg2);
4383 wxPyEndAllowThreads(__tstate);
4384 if (PyErr_Occurred()) SWIG_fail;
4385 }
4386 resultobj = SWIG_Py_Void();
4387 return resultobj;
4388fail:
4389 return NULL;
4390}
4391
4392
4393SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4394 PyObject *resultobj = 0;
4395 wxColour *arg1 = (wxColour *) 0 ;
4396 wxString *arg2 = 0 ;
4397 void *argp1 = 0 ;
4398 int res1 = 0 ;
4399 bool temp2 = false ;
4400 PyObject * obj0 = 0 ;
4401 PyObject * obj1 = 0 ;
4402 char * kwnames[] = {
4403 (char *) "self",(char *) "colourName", NULL
4404 };
4405
4406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4408 if (!SWIG_IsOK(res1)) {
4409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4410 }
4411 arg1 = reinterpret_cast< wxColour * >(argp1);
4412 {
4413 arg2 = wxString_in_helper(obj1);
4414 if (arg2 == NULL) SWIG_fail;
4415 temp2 = true;
4416 }
4417 {
4418 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4419 (arg1)->Set((wxString const &)*arg2);
554f62e9
RD
4420 wxPyEndAllowThreads(__tstate);
4421 if (PyErr_Occurred()) SWIG_fail;
4422 }
4423 resultobj = SWIG_Py_Void();
4424 {
4425 if (temp2)
4426 delete arg2;
4427 }
4428 return resultobj;
4429fail:
4430 {
4431 if (temp2)
4432 delete arg2;
4433 }
4434 return NULL;
d55e5bfc
RD
4435}
4436
4437
f460c29d
RD
4438SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4439 PyObject *resultobj = 0;
4440 wxColour *arg1 = (wxColour *) 0 ;
4441 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4442 wxString result;
4443 void *argp1 = 0 ;
4444 int res1 = 0 ;
4445 long val2 ;
4446 int ecode2 = 0 ;
4447 PyObject * obj0 = 0 ;
4448 PyObject * obj1 = 0 ;
4449 char * kwnames[] = {
4450 (char *) "self",(char *) "flags", NULL
4451 };
4452
4453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4455 if (!SWIG_IsOK(res1)) {
4456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4457 }
4458 arg1 = reinterpret_cast< wxColour * >(argp1);
4459 if (obj1) {
4460 ecode2 = SWIG_AsVal_long(obj1, &val2);
4461 if (!SWIG_IsOK(ecode2)) {
4462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4463 }
4464 arg2 = static_cast< long >(val2);
4465 }
4466 {
4467 PyThreadState* __tstate = wxPyBeginAllowThreads();
4468 result = ((wxColour const *)arg1)->GetAsString(arg2);
4469 wxPyEndAllowThreads(__tstate);
4470 if (PyErr_Occurred()) SWIG_fail;
4471 }
4472 {
4473#if wxUSE_UNICODE
4474 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4475#else
4476 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4477#endif
4478 }
4479 return resultobj;
4480fail:
4481 return NULL;
4482}
4483
4484
554f62e9
RD
4485SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4486 PyObject *resultobj = 0;
4487 wxColour *arg1 = (wxColour *) 0 ;
4488 long result;
4489 void *argp1 = 0 ;
4490 int res1 = 0 ;
4491 PyObject *swig_obj[1] ;
4492
4493 if (!args) SWIG_fail;
4494 swig_obj[0] = args;
4495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4496 if (!SWIG_IsOK(res1)) {
4497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4498 }
4499 arg1 = reinterpret_cast< wxColour * >(argp1);
4500 {
4501 PyThreadState* __tstate = wxPyBeginAllowThreads();
4502 result = (long)((wxColour const *)arg1)->GetPixel();
4503 wxPyEndAllowThreads(__tstate);
4504 if (PyErr_Occurred()) SWIG_fail;
4505 }
4506 resultobj = SWIG_From_long(static_cast< long >(result));
4507 return resultobj;
4508fail:
4509 return NULL;
4510}
4511
4512
4513SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4514 PyObject *resultobj = 0;
4515 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4516 PyObject *arg2 = (PyObject *) 0 ;
554f62e9
RD
4517 bool result;
4518 void *argp1 = 0 ;
4519 int res1 = 0 ;
554f62e9
RD
4520 PyObject * obj0 = 0 ;
4521 PyObject * obj1 = 0 ;
4522 char * kwnames[] = {
e9d6f3a4 4523 (char *) "self",(char *) "other", NULL
554f62e9
RD
4524 };
4525
4526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4528 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
4530 }
4531 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4532 arg2 = obj1;
554f62e9 4533 {
e9d6f3a4 4534 result = (bool)wxColour___eq__(arg1,arg2);
554f62e9
RD
4535 if (PyErr_Occurred()) SWIG_fail;
4536 }
4537 {
4538 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4539 }
4540 return resultobj;
4541fail:
4542 return NULL;
4543}
4544
4545
4546SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4547 PyObject *resultobj = 0;
4548 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4549 PyObject *arg2 = (PyObject *) 0 ;
554f62e9
RD
4550 bool result;
4551 void *argp1 = 0 ;
4552 int res1 = 0 ;
554f62e9
RD
4553 PyObject * obj0 = 0 ;
4554 PyObject * obj1 = 0 ;
4555 char * kwnames[] = {
e9d6f3a4 4556 (char *) "self",(char *) "other", NULL
554f62e9
RD
4557 };
4558
4559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4561 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
4563 }
4564 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4565 arg2 = obj1;
554f62e9 4566 {
e9d6f3a4 4567 result = (bool)wxColour___ne__(arg1,arg2);
554f62e9
RD
4568 if (PyErr_Occurred()) SWIG_fail;
4569 }
4570 {
4571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4572 }
4573 return resultobj;
4574fail:
4575 return NULL;
d55e5bfc
RD
4576}
4577
4578
fc46b7f3 4579SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
4580 PyObject *resultobj = 0;
4581 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4582 bool arg2 = (bool) false ;
554f62e9
RD
4583 PyObject *result = 0 ;
4584 void *argp1 = 0 ;
4585 int res1 = 0 ;
fc46b7f3
RD
4586 bool val2 ;
4587 int ecode2 = 0 ;
4588 PyObject * obj0 = 0 ;
4589 PyObject * obj1 = 0 ;
4590 char * kwnames[] = {
4591 (char *) "self",(char *) "includeAlpha", NULL
4592 };
554f62e9 4593
fc46b7f3
RD
4594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
554f62e9
RD
4596 if (!SWIG_IsOK(res1)) {
4597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4598 }
4599 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4600 if (obj1) {
4601 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4602 if (!SWIG_IsOK(ecode2)) {
4603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4604 }
4605 arg2 = static_cast< bool >(val2);
4606 }
554f62e9 4607 {
fc46b7f3 4608 result = (PyObject *)wxColour_Get(arg1,arg2);
554f62e9
RD
4609 if (PyErr_Occurred()) SWIG_fail;
4610 }
4611 resultobj = result;
4612 return resultobj;
4613fail:
4614 return NULL;
d55e5bfc
RD
4615}
4616
4617
554f62e9
RD
4618SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4619 PyObject *resultobj = 0;
4620 wxColour *arg1 = (wxColour *) 0 ;
4621 unsigned long result;
4622 void *argp1 = 0 ;
4623 int res1 = 0 ;
4624 PyObject *swig_obj[1] ;
4625
4626 if (!args) SWIG_fail;
4627 swig_obj[0] = args;
4628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4629 if (!SWIG_IsOK(res1)) {
4630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4631 }
4632 arg1 = reinterpret_cast< wxColour * >(argp1);
4633 {
554f62e9 4634 result = (unsigned long)wxColour_GetRGB(arg1);
554f62e9
RD
4635 if (PyErr_Occurred()) SWIG_fail;
4636 }
4637 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4638 return resultobj;
4639fail:
4640 return NULL;
4641}
4642
4643
4644SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4645 PyObject *obj;
4646 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4647 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4648 return SWIG_Py_Void();
4649}
4650
4651SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4652 return SWIG_Python_InitShadowInstance(args);
4653}
4654
4655SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4656 PyObject *resultobj = 0;
4657 int arg1 ;
4658 unsigned char *arg2 = (unsigned char *) 0 ;
4659 unsigned char *arg3 = (unsigned char *) 0 ;
4660 unsigned char *arg4 = (unsigned char *) 0 ;
4661 wxPalette *result = 0 ;
4662 int val1 ;
4663 int ecode1 = 0 ;
4664 void *argp2 = 0 ;
4665 int res2 = 0 ;
4666 void *argp3 = 0 ;
4667 int res3 = 0 ;
4668 void *argp4 = 0 ;
4669 int res4 = 0 ;
4670 PyObject * obj0 = 0 ;
4671 PyObject * obj1 = 0 ;
4672 PyObject * obj2 = 0 ;
4673 PyObject * obj3 = 0 ;
4674 char * kwnames[] = {
4675 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4676 };
4677
4678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4679 ecode1 = SWIG_AsVal_int(obj0, &val1);
4680 if (!SWIG_IsOK(ecode1)) {
4681 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4682 }
4683 arg1 = static_cast< int >(val1);
4684 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4685 if (!SWIG_IsOK(res2)) {
4686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4687 }
4688 arg2 = reinterpret_cast< unsigned char * >(argp2);
4689 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4690 if (!SWIG_IsOK(res3)) {
4691 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4692 }
4693 arg3 = reinterpret_cast< unsigned char * >(argp3);
4694 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4695 if (!SWIG_IsOK(res4)) {
4696 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4697 }
4698 arg4 = reinterpret_cast< unsigned char * >(argp4);
4699 {
4700 if (!wxPyCheckForApp()) SWIG_fail;
4701 PyThreadState* __tstate = wxPyBeginAllowThreads();
4702 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4703 wxPyEndAllowThreads(__tstate);
4704 if (PyErr_Occurred()) SWIG_fail;
4705 }
4706 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4707 return resultobj;
4708fail:
4709 return NULL;
093d3ff1
RD
4710}
4711
4712
554f62e9
RD
4713SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4714 PyObject *resultobj = 0;
4715 wxPalette *arg1 = (wxPalette *) 0 ;
4716 void *argp1 = 0 ;
4717 int res1 = 0 ;
4718 PyObject *swig_obj[1] ;
4719
4720 if (!args) SWIG_fail;
4721 swig_obj[0] = args;
4722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4723 if (!SWIG_IsOK(res1)) {
4724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4725 }
4726 arg1 = reinterpret_cast< wxPalette * >(argp1);
4727 {
4728 PyThreadState* __tstate = wxPyBeginAllowThreads();
4729 delete arg1;
093d3ff1 4730
554f62e9
RD
4731 wxPyEndAllowThreads(__tstate);
4732 if (PyErr_Occurred()) SWIG_fail;
4733 }
4734 resultobj = SWIG_Py_Void();
4735 return resultobj;
4736fail:
4737 return NULL;
4738}
4739
4740
4741SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4742 PyObject *resultobj = 0;
4743 wxPalette *arg1 = (wxPalette *) 0 ;
4744 byte arg2 ;
4745 byte arg3 ;
4746 byte arg4 ;
4747 int result;
4748 void *argp1 = 0 ;
4749 int res1 = 0 ;
4750 unsigned char val2 ;
4751 int ecode2 = 0 ;
4752 unsigned char val3 ;
4753 int ecode3 = 0 ;
4754 unsigned char val4 ;
4755 int ecode4 = 0 ;
4756 PyObject * obj0 = 0 ;
4757 PyObject * obj1 = 0 ;
4758 PyObject * obj2 = 0 ;
4759 PyObject * obj3 = 0 ;
4760 char * kwnames[] = {
4761 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4762 };
4763
4764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4766 if (!SWIG_IsOK(res1)) {
4767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4768 }
4769 arg1 = reinterpret_cast< wxPalette * >(argp1);
4770 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4771 if (!SWIG_IsOK(ecode2)) {
4772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4773 }
4774 arg2 = static_cast< byte >(val2);
4775 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4776 if (!SWIG_IsOK(ecode3)) {
4777 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4778 }
4779 arg3 = static_cast< byte >(val3);
4780 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4781 if (!SWIG_IsOK(ecode4)) {
4782 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4783 }
4784 arg4 = static_cast< byte >(val4);
4785 {
4786 PyThreadState* __tstate = wxPyBeginAllowThreads();
4787 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4788 wxPyEndAllowThreads(__tstate);
4789 if (PyErr_Occurred()) SWIG_fail;
4790 }
4791 resultobj = SWIG_From_int(static_cast< int >(result));
4792 return resultobj;
4793fail:
4794 return NULL;
4795}
4796
4797
4798SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4799 PyObject *resultobj = 0;
4800 wxPalette *arg1 = (wxPalette *) 0 ;
4801 int arg2 ;
4802 byte *arg3 = (byte *) 0 ;
4803 byte *arg4 = (byte *) 0 ;
4804 byte *arg5 = (byte *) 0 ;
4805 bool result;
4806 void *argp1 = 0 ;
4807 int res1 = 0 ;
4808 int val2 ;
4809 int ecode2 = 0 ;
4810 byte temp3 ;
4811 int res3 = SWIG_TMPOBJ ;
4812 byte temp4 ;
4813 int res4 = SWIG_TMPOBJ ;
4814 byte temp5 ;
4815 int res5 = SWIG_TMPOBJ ;
4816 PyObject * obj0 = 0 ;
4817 PyObject * obj1 = 0 ;
4818 char * kwnames[] = {
4819 (char *) "self",(char *) "pixel", NULL
4820 };
4821
4822 arg3 = &temp3;
4823 arg4 = &temp4;
4824 arg5 = &temp5;
4825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4827 if (!SWIG_IsOK(res1)) {
4828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4829 }
4830 arg1 = reinterpret_cast< wxPalette * >(argp1);
4831 ecode2 = SWIG_AsVal_int(obj1, &val2);
4832 if (!SWIG_IsOK(ecode2)) {
4833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4834 }
4835 arg2 = static_cast< int >(val2);
4836 {
4837 PyThreadState* __tstate = wxPyBeginAllowThreads();
4838 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4839 wxPyEndAllowThreads(__tstate);
4840 if (PyErr_Occurred()) SWIG_fail;
4841 }
4842 {
4843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4844 }
4845 if (SWIG_IsTmpObj(res3)) {
4846 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4847 } else {
4848 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4849 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4850 }
4851 if (SWIG_IsTmpObj(res4)) {
4852 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4853 } else {
4854 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4855 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4856 }
4857 if (SWIG_IsTmpObj(res5)) {
4858 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4859 } else {
4860 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4861 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4862 }
4863 return resultobj;
4864fail:
4865 return NULL;
d55e5bfc
RD
4866}
4867
4868
554f62e9
RD
4869SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4870 PyObject *resultobj = 0;
4871 wxPalette *arg1 = (wxPalette *) 0 ;
4872 int result;
4873 void *argp1 = 0 ;
4874 int res1 = 0 ;
4875 PyObject *swig_obj[1] ;
4876
4877 if (!args) SWIG_fail;
4878 swig_obj[0] = args;
4879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4880 if (!SWIG_IsOK(res1)) {
4881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4882 }
4883 arg1 = reinterpret_cast< wxPalette * >(argp1);
4884 {
4885 PyThreadState* __tstate = wxPyBeginAllowThreads();
4886 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4887 wxPyEndAllowThreads(__tstate);
4888 if (PyErr_Occurred()) SWIG_fail;
4889 }
4890 resultobj = SWIG_From_int(static_cast< int >(result));
4891 return resultobj;
4892fail:
4893 return NULL;
d55e5bfc
RD
4894}
4895
4896
b39fe951 4897SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
4898 PyObject *resultobj = 0;
4899 wxPalette *arg1 = (wxPalette *) 0 ;
4900 bool result;
4901 void *argp1 = 0 ;
4902 int res1 = 0 ;
4903 PyObject *swig_obj[1] ;
4904
4905 if (!args) SWIG_fail;
4906 swig_obj[0] = args;
4907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4908 if (!SWIG_IsOK(res1)) {
b39fe951 4909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
554f62e9
RD
4910 }
4911 arg1 = reinterpret_cast< wxPalette * >(argp1);
4912 {
4913 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4914 result = (bool)(arg1)->IsOk();
554f62e9
RD
4915 wxPyEndAllowThreads(__tstate);
4916 if (PyErr_Occurred()) SWIG_fail;
4917 }
4918 {
4919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4920 }
4921 return resultobj;
4922fail:
4923 return NULL;
4924}
4925
4926
4927SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4928 PyObject *obj;
4929 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4930 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4931 return SWIG_Py_Void();
4932}
4933
4934SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4935 return SWIG_Python_InitShadowInstance(args);
4936}
4937
4938SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4939 PyObject *resultobj = 0;
4940 wxColour *arg1 = 0 ;
4941 int arg2 = (int) 1 ;
4942 int arg3 = (int) wxSOLID ;
4943 wxPen *result = 0 ;
4944 wxColour temp1 ;
4945 int val2 ;
4946 int ecode2 = 0 ;
4947 int val3 ;
4948 int ecode3 = 0 ;
4949 PyObject * obj0 = 0 ;
4950 PyObject * obj1 = 0 ;
4951 PyObject * obj2 = 0 ;
4952 char * kwnames[] = {
4953 (char *) "colour",(char *) "width",(char *) "style", NULL
4954 };
4955
4956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4957 {
4958 arg1 = &temp1;
4959 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4960 }
4961 if (obj1) {
4962 ecode2 = SWIG_AsVal_int(obj1, &val2);
4963 if (!SWIG_IsOK(ecode2)) {
4964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4965 }
4966 arg2 = static_cast< int >(val2);
4967 }
4968 if (obj2) {
4969 ecode3 = SWIG_AsVal_int(obj2, &val3);
4970 if (!SWIG_IsOK(ecode3)) {
4971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4972 }
4973 arg3 = static_cast< int >(val3);
4974 }
4975 {
4976 if (!wxPyCheckForApp()) SWIG_fail;
4977 PyThreadState* __tstate = wxPyBeginAllowThreads();
4978 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4979 wxPyEndAllowThreads(__tstate);
4980 if (PyErr_Occurred()) SWIG_fail;
4981 }
4982 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4983 return resultobj;
4984fail:
4985 return NULL;
d55e5bfc
RD
4986}
4987
4988
554f62e9
RD
4989SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4990 PyObject *resultobj = 0;
4991 wxPen *arg1 = (wxPen *) 0 ;
4992 void *argp1 = 0 ;
4993 int res1 = 0 ;
4994 PyObject *swig_obj[1] ;
4995
4996 if (!args) SWIG_fail;
4997 swig_obj[0] = args;
4998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4999 if (!SWIG_IsOK(res1)) {
5000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5001 }
5002 arg1 = reinterpret_cast< wxPen * >(argp1);
5003 {
5004 PyThreadState* __tstate = wxPyBeginAllowThreads();
5005 delete arg1;
d55e5bfc 5006
554f62e9
RD
5007 wxPyEndAllowThreads(__tstate);
5008 if (PyErr_Occurred()) SWIG_fail;
5009 }
5010 resultobj = SWIG_Py_Void();
5011 return resultobj;
5012fail:
5013 return NULL;
d55e5bfc
RD
5014}
5015
5016
554f62e9
RD
5017SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5018 PyObject *resultobj = 0;
5019 wxPen *arg1 = (wxPen *) 0 ;
5020 int result;
5021 void *argp1 = 0 ;
5022 int res1 = 0 ;
5023 PyObject *swig_obj[1] ;
5024
5025 if (!args) SWIG_fail;
5026 swig_obj[0] = args;
5027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5028 if (!SWIG_IsOK(res1)) {
5029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5030 }
5031 arg1 = reinterpret_cast< wxPen * >(argp1);
5032 {
5033 PyThreadState* __tstate = wxPyBeginAllowThreads();
5034 result = (int)(arg1)->GetCap();
5035 wxPyEndAllowThreads(__tstate);
5036 if (PyErr_Occurred()) SWIG_fail;
5037 }
5038 resultobj = SWIG_From_int(static_cast< int >(result));
5039 return resultobj;
5040fail:
5041 return NULL;
d55e5bfc
RD
5042}
5043
5044
554f62e9
RD
5045SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5046 PyObject *resultobj = 0;
5047 wxPen *arg1 = (wxPen *) 0 ;
5048 wxColour result;
5049 void *argp1 = 0 ;
5050 int res1 = 0 ;
5051 PyObject *swig_obj[1] ;
5052
5053 if (!args) SWIG_fail;
5054 swig_obj[0] = args;
5055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5056 if (!SWIG_IsOK(res1)) {
5057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5058 }
5059 arg1 = reinterpret_cast< wxPen * >(argp1);
5060 {
5061 PyThreadState* __tstate = wxPyBeginAllowThreads();
5062 result = (arg1)->GetColour();
5063 wxPyEndAllowThreads(__tstate);
5064 if (PyErr_Occurred()) SWIG_fail;
5065 }
5066 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5067 return resultobj;
5068fail:
5069 return NULL;
d55e5bfc
RD
5070}
5071
5072
554f62e9
RD
5073SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5074 PyObject *resultobj = 0;
5075 wxPen *arg1 = (wxPen *) 0 ;
5076 int result;
5077 void *argp1 = 0 ;
5078 int res1 = 0 ;
5079 PyObject *swig_obj[1] ;
5080
5081 if (!args) SWIG_fail;
5082 swig_obj[0] = args;
5083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5084 if (!SWIG_IsOK(res1)) {
5085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5086 }
5087 arg1 = reinterpret_cast< wxPen * >(argp1);
5088 {
5089 PyThreadState* __tstate = wxPyBeginAllowThreads();
5090 result = (int)(arg1)->GetJoin();
5091 wxPyEndAllowThreads(__tstate);
5092 if (PyErr_Occurred()) SWIG_fail;
5093 }
5094 resultobj = SWIG_From_int(static_cast< int >(result));
5095 return resultobj;
5096fail:
5097 return NULL;
d55e5bfc
RD
5098}
5099
5100
554f62e9
RD
5101SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5102 PyObject *resultobj = 0;
5103 wxPen *arg1 = (wxPen *) 0 ;
5104 int result;
5105 void *argp1 = 0 ;
5106 int res1 = 0 ;
5107 PyObject *swig_obj[1] ;
5108
5109 if (!args) SWIG_fail;
5110 swig_obj[0] = args;
5111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5112 if (!SWIG_IsOK(res1)) {
5113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5114 }
5115 arg1 = reinterpret_cast< wxPen * >(argp1);
5116 {
5117 PyThreadState* __tstate = wxPyBeginAllowThreads();
5118 result = (int)(arg1)->GetStyle();
5119 wxPyEndAllowThreads(__tstate);
5120 if (PyErr_Occurred()) SWIG_fail;
5121 }
5122 resultobj = SWIG_From_int(static_cast< int >(result));
5123 return resultobj;
5124fail:
5125 return NULL;
d55e5bfc
RD
5126}
5127
5128
554f62e9
RD
5129SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5130 PyObject *resultobj = 0;
5131 wxPen *arg1 = (wxPen *) 0 ;
5132 int result;
5133 void *argp1 = 0 ;
5134 int res1 = 0 ;
5135 PyObject *swig_obj[1] ;
5136
5137 if (!args) SWIG_fail;
5138 swig_obj[0] = args;
5139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5140 if (!SWIG_IsOK(res1)) {
5141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5142 }
5143 arg1 = reinterpret_cast< wxPen * >(argp1);
5144 {
5145 PyThreadState* __tstate = wxPyBeginAllowThreads();
5146 result = (int)(arg1)->GetWidth();
5147 wxPyEndAllowThreads(__tstate);
5148 if (PyErr_Occurred()) SWIG_fail;
5149 }
5150 resultobj = SWIG_From_int(static_cast< int >(result));
5151 return resultobj;
5152fail:
5153 return NULL;
d55e5bfc
RD
5154}
5155
5156
b39fe951 5157SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
5158 PyObject *resultobj = 0;
5159 wxPen *arg1 = (wxPen *) 0 ;
5160 bool result;
5161 void *argp1 = 0 ;
5162 int res1 = 0 ;
5163 PyObject *swig_obj[1] ;
5164
5165 if (!args) SWIG_fail;
5166 swig_obj[0] = args;
5167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5168 if (!SWIG_IsOK(res1)) {
b39fe951 5169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
554f62e9
RD
5170 }
5171 arg1 = reinterpret_cast< wxPen * >(argp1);
5172 {
5173 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5174 result = (bool)(arg1)->IsOk();
554f62e9
RD
5175 wxPyEndAllowThreads(__tstate);
5176 if (PyErr_Occurred()) SWIG_fail;
5177 }
5178 {
5179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5180 }
5181 return resultobj;
5182fail:
5183 return NULL;
5184}
5185
5186
5187SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5188 PyObject *resultobj = 0;
5189 wxPen *arg1 = (wxPen *) 0 ;
5190 int arg2 ;
5191 void *argp1 = 0 ;
5192 int res1 = 0 ;
5193 int val2 ;
5194 int ecode2 = 0 ;
5195 PyObject * obj0 = 0 ;
5196 PyObject * obj1 = 0 ;
5197 char * kwnames[] = {
5198 (char *) "self",(char *) "cap_style", NULL
5199 };
5200
5201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5203 if (!SWIG_IsOK(res1)) {
5204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5205 }
5206 arg1 = reinterpret_cast< wxPen * >(argp1);
5207 ecode2 = SWIG_AsVal_int(obj1, &val2);
5208 if (!SWIG_IsOK(ecode2)) {
5209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5210 }
5211 arg2 = static_cast< int >(val2);
5212 {
5213 PyThreadState* __tstate = wxPyBeginAllowThreads();
5214 (arg1)->SetCap(arg2);
5215 wxPyEndAllowThreads(__tstate);
5216 if (PyErr_Occurred()) SWIG_fail;
5217 }
5218 resultobj = SWIG_Py_Void();
5219 return resultobj;
5220fail:
5221 return NULL;
5222}
5223
5224
5225SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5226 PyObject *resultobj = 0;
5227 wxPen *arg1 = (wxPen *) 0 ;
5228 wxColour *arg2 = 0 ;
5229 void *argp1 = 0 ;
5230 int res1 = 0 ;
5231 wxColour temp2 ;
5232 PyObject * obj0 = 0 ;
5233 PyObject * obj1 = 0 ;
5234 char * kwnames[] = {
5235 (char *) "self",(char *) "colour", NULL
5236 };
5237
5238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5240 if (!SWIG_IsOK(res1)) {
5241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5242 }
5243 arg1 = reinterpret_cast< wxPen * >(argp1);
5244 {
5245 arg2 = &temp2;
5246 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5247 }
5248 {
5249 PyThreadState* __tstate = wxPyBeginAllowThreads();
5250 (arg1)->SetColour(*arg2);
5251 wxPyEndAllowThreads(__tstate);
5252 if (PyErr_Occurred()) SWIG_fail;
5253 }
5254 resultobj = SWIG_Py_Void();
5255 return resultobj;
5256fail:
5257 return NULL;
5258}
5259
5260
5261SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5262 PyObject *resultobj = 0;
5263 wxPen *arg1 = (wxPen *) 0 ;
5264 int arg2 ;
5265 void *argp1 = 0 ;
5266 int res1 = 0 ;
5267 int val2 ;
5268 int ecode2 = 0 ;
5269 PyObject * obj0 = 0 ;
5270 PyObject * obj1 = 0 ;
5271 char * kwnames[] = {
5272 (char *) "self",(char *) "join_style", NULL
5273 };
5274
5275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5277 if (!SWIG_IsOK(res1)) {
5278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5279 }
5280 arg1 = reinterpret_cast< wxPen * >(argp1);
5281 ecode2 = SWIG_AsVal_int(obj1, &val2);
5282 if (!SWIG_IsOK(ecode2)) {
5283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5284 }
5285 arg2 = static_cast< int >(val2);
5286 {
5287 PyThreadState* __tstate = wxPyBeginAllowThreads();
5288 (arg1)->SetJoin(arg2);
5289 wxPyEndAllowThreads(__tstate);
5290 if (PyErr_Occurred()) SWIG_fail;
5291 }
5292 resultobj = SWIG_Py_Void();
5293 return resultobj;
5294fail:
5295 return NULL;
5296}
5297
5298
5299SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5300 PyObject *resultobj = 0;
5301 wxPen *arg1 = (wxPen *) 0 ;
5302 int arg2 ;
5303 void *argp1 = 0 ;
5304 int res1 = 0 ;
5305 int val2 ;
5306 int ecode2 = 0 ;
5307 PyObject * obj0 = 0 ;
5308 PyObject * obj1 = 0 ;
5309 char * kwnames[] = {
5310 (char *) "self",(char *) "style", NULL
5311 };
5312
5313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5315 if (!SWIG_IsOK(res1)) {
5316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5317 }
5318 arg1 = reinterpret_cast< wxPen * >(argp1);
5319 ecode2 = SWIG_AsVal_int(obj1, &val2);
5320 if (!SWIG_IsOK(ecode2)) {
5321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5322 }
5323 arg2 = static_cast< int >(val2);
5324 {
5325 PyThreadState* __tstate = wxPyBeginAllowThreads();
5326 (arg1)->SetStyle(arg2);
5327 wxPyEndAllowThreads(__tstate);
5328 if (PyErr_Occurred()) SWIG_fail;
5329 }
5330 resultobj = SWIG_Py_Void();
5331 return resultobj;
5332fail:
5333 return NULL;
5334}
5335
5336
5337SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5338 PyObject *resultobj = 0;
5339 wxPen *arg1 = (wxPen *) 0 ;
5340 int arg2 ;
5341 void *argp1 = 0 ;
5342 int res1 = 0 ;
5343 int val2 ;
5344 int ecode2 = 0 ;
5345 PyObject * obj0 = 0 ;
5346 PyObject * obj1 = 0 ;
5347 char * kwnames[] = {
5348 (char *) "self",(char *) "width", NULL
5349 };
5350
5351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5353 if (!SWIG_IsOK(res1)) {
5354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5355 }
5356 arg1 = reinterpret_cast< wxPen * >(argp1);
5357 ecode2 = SWIG_AsVal_int(obj1, &val2);
5358 if (!SWIG_IsOK(ecode2)) {
5359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5360 }
5361 arg2 = static_cast< int >(val2);
5362 {
5363 PyThreadState* __tstate = wxPyBeginAllowThreads();
5364 (arg1)->SetWidth(arg2);
5365 wxPyEndAllowThreads(__tstate);
5366 if (PyErr_Occurred()) SWIG_fail;
5367 }
5368 resultobj = SWIG_Py_Void();
5369 return resultobj;
5370fail:
5371 return NULL;
5372}
5373
5374
5375SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5376 PyObject *resultobj = 0;
5377 wxPen *arg1 = (wxPen *) 0 ;
5378 int arg2 ;
5379 wxDash *arg3 = (wxDash *) 0 ;
5380 void *argp1 = 0 ;
5381 int res1 = 0 ;
5382 PyObject * obj0 = 0 ;
5383 PyObject * obj1 = 0 ;
5384 char * kwnames[] = {
5385 (char *) "self",(char *) "dashes", NULL
5386 };
5387
5388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5390 if (!SWIG_IsOK(res1)) {
5391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5392 }
5393 arg1 = reinterpret_cast< wxPen * >(argp1);
5394 {
5395 arg2 = PyList_Size(obj1);
5396 arg3 = (wxDash*)byte_LIST_helper(obj1);
5397 if (arg3 == NULL) SWIG_fail;
5398 }
5399 {
5400 PyThreadState* __tstate = wxPyBeginAllowThreads();
5401 (arg1)->SetDashes(arg2,arg3);
5402 wxPyEndAllowThreads(__tstate);
5403 if (PyErr_Occurred()) SWIG_fail;
5404 }
5405 resultobj = SWIG_Py_Void();
5406 {
5407 if (arg3) delete [] arg3;
5408 }
5409 return resultobj;
5410fail:
5411 {
5412 if (arg3) delete [] arg3;
5413 }
5414 return NULL;
d55e5bfc
RD
5415}
5416
5417
554f62e9
RD
5418SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5419 PyObject *resultobj = 0;
5420 wxPen *arg1 = (wxPen *) 0 ;
5421 PyObject *result = 0 ;
5422 void *argp1 = 0 ;
5423 int res1 = 0 ;
5424 PyObject *swig_obj[1] ;
5425
5426 if (!args) SWIG_fail;
5427 swig_obj[0] = args;
5428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5429 if (!SWIG_IsOK(res1)) {
5430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5431 }
5432 arg1 = reinterpret_cast< wxPen * >(argp1);
5433 {
5434 PyThreadState* __tstate = wxPyBeginAllowThreads();
5435 result = (PyObject *)wxPen_GetDashes(arg1);
5436 wxPyEndAllowThreads(__tstate);
5437 if (PyErr_Occurred()) SWIG_fail;
5438 }
5439 resultobj = result;
5440 return resultobj;
5441fail:
5442 return NULL;
5443}
5444
5445
5446SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5447 PyObject *resultobj = 0;
5448 wxPen *arg1 = (wxPen *) 0 ;
5449 PyObject *arg2 = (PyObject *) 0 ;
5450 PyObject *arg3 = (PyObject *) 0 ;
5451 void *argp1 = 0 ;
5452 int res1 = 0 ;
5453 PyObject * obj0 = 0 ;
5454 PyObject * obj1 = 0 ;
5455 PyObject * obj2 = 0 ;
5456 char * kwnames[] = {
5457 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5458 };
5459
5460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5462 if (!SWIG_IsOK(res1)) {
5463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5464 }
5465 arg1 = reinterpret_cast< wxPen * >(argp1);
5466 arg2 = obj1;
5467 arg3 = obj2;
5468 {
5469 PyThreadState* __tstate = wxPyBeginAllowThreads();
5470 wxPen__SetDashes(arg1,arg2,arg3);
5471 wxPyEndAllowThreads(__tstate);
5472 if (PyErr_Occurred()) SWIG_fail;
5473 }
5474 resultobj = SWIG_Py_Void();
5475 return resultobj;
5476fail:
5477 return NULL;
d55e5bfc
RD
5478}
5479
5480
554f62e9
RD
5481SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5482 PyObject *resultobj = 0;
5483 wxPen *arg1 = (wxPen *) 0 ;
5484 int result;
5485 void *argp1 = 0 ;
5486 int res1 = 0 ;
5487 PyObject *swig_obj[1] ;
5488
5489 if (!args) SWIG_fail;
5490 swig_obj[0] = args;
5491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5492 if (!SWIG_IsOK(res1)) {
5493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5494 }
5495 arg1 = reinterpret_cast< wxPen * >(argp1);
5496 {
5497 PyThreadState* __tstate = wxPyBeginAllowThreads();
5498 result = (int)((wxPen const *)arg1)->GetDashCount();
5499 wxPyEndAllowThreads(__tstate);
5500 if (PyErr_Occurred()) SWIG_fail;
5501 }
5502 resultobj = SWIG_From_int(static_cast< int >(result));
5503 return resultobj;
5504fail:
5505 return NULL;
d55e5bfc
RD
5506}
5507
5508
554f62e9
RD
5509SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5510 PyObject *resultobj = 0;
5511 wxPen *arg1 = (wxPen *) 0 ;
5512 wxBitmap *result = 0 ;
5513 void *argp1 = 0 ;
5514 int res1 = 0 ;
5515 PyObject *swig_obj[1] ;
5516
5517 if (!args) SWIG_fail;
5518 swig_obj[0] = args;
5519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5520 if (!SWIG_IsOK(res1)) {
5521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5522 }
5523 arg1 = reinterpret_cast< wxPen * >(argp1);
5524 {
5525 PyThreadState* __tstate = wxPyBeginAllowThreads();
5526 result = (wxBitmap *)(arg1)->GetStipple();
5527 wxPyEndAllowThreads(__tstate);
5528 if (PyErr_Occurred()) SWIG_fail;
5529 }
5530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5531 return resultobj;
5532fail:
5533 return NULL;
5534}
5535
5536
5537SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5538 PyObject *resultobj = 0;
5539 wxPen *arg1 = (wxPen *) 0 ;
5540 wxBitmap *arg2 = 0 ;
5541 void *argp1 = 0 ;
5542 int res1 = 0 ;
5543 void *argp2 = 0 ;
5544 int res2 = 0 ;
5545 PyObject * obj0 = 0 ;
5546 PyObject * obj1 = 0 ;
5547 char * kwnames[] = {
5548 (char *) "self",(char *) "stipple", NULL
5549 };
5550
5551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5553 if (!SWIG_IsOK(res1)) {
5554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5555 }
5556 arg1 = reinterpret_cast< wxPen * >(argp1);
5557 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5558 if (!SWIG_IsOK(res2)) {
5559 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5560 }
5561 if (!argp2) {
5562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5563 }
5564 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5565 {
5566 PyThreadState* __tstate = wxPyBeginAllowThreads();
5567 (arg1)->SetStipple(*arg2);
5568 wxPyEndAllowThreads(__tstate);
5569 if (PyErr_Occurred()) SWIG_fail;
5570 }
5571 resultobj = SWIG_Py_Void();
5572 return resultobj;
5573fail:
5574 return NULL;
5575}
5576
5577
5578SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5579 PyObject *resultobj = 0;
5580 wxPen *arg1 = (wxPen *) 0 ;
5581 wxPen *arg2 = (wxPen *) 0 ;
5582 bool result;
5583 void *argp1 = 0 ;
5584 int res1 = 0 ;
5585 void *argp2 = 0 ;
5586 int res2 = 0 ;
5587 PyObject * obj0 = 0 ;
5588 PyObject * obj1 = 0 ;
5589 char * kwnames[] = {
5590 (char *) "self",(char *) "other", NULL
5591 };
5592
5593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5595 if (!SWIG_IsOK(res1)) {
5596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5597 }
5598 arg1 = reinterpret_cast< wxPen * >(argp1);
5599 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5600 if (!SWIG_IsOK(res2)) {
5601 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5602 }
5603 arg2 = reinterpret_cast< wxPen * >(argp2);
5604 {
5605 PyThreadState* __tstate = wxPyBeginAllowThreads();
5606 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5607 wxPyEndAllowThreads(__tstate);
5608 if (PyErr_Occurred()) SWIG_fail;
5609 }
5610 {
5611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5612 }
5613 return resultobj;
5614fail:
5615 return NULL;
5616}
5617
5618
5619SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5620 PyObject *resultobj = 0;
5621 wxPen *arg1 = (wxPen *) 0 ;
5622 wxPen *arg2 = (wxPen *) 0 ;
5623 bool result;
5624 void *argp1 = 0 ;
5625 int res1 = 0 ;
5626 void *argp2 = 0 ;
5627 int res2 = 0 ;
5628 PyObject * obj0 = 0 ;
5629 PyObject * obj1 = 0 ;
5630 char * kwnames[] = {
5631 (char *) "self",(char *) "other", NULL
5632 };
5633
5634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5636 if (!SWIG_IsOK(res1)) {
5637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5638 }
5639 arg1 = reinterpret_cast< wxPen * >(argp1);
5640 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5641 if (!SWIG_IsOK(res2)) {
5642 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5643 }
5644 arg2 = reinterpret_cast< wxPen * >(argp2);
5645 {
5646 PyThreadState* __tstate = wxPyBeginAllowThreads();
5647 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5648 wxPyEndAllowThreads(__tstate);
5649 if (PyErr_Occurred()) SWIG_fail;
5650 }
5651 {
5652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5653 }
5654 return resultobj;
5655fail:
5656 return NULL;
d55e5bfc
RD
5657}
5658
5659
554f62e9
RD
5660SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5661 PyObject *obj;
5662 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5663 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5664 return SWIG_Py_Void();
d55e5bfc
RD
5665}
5666
554f62e9
RD
5667SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5668 return SWIG_Python_InitShadowInstance(args);
5669}
d55e5bfc 5670
554f62e9
RD
5671SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5672 PyObject *resultobj = 0;
5673 wxColour *arg1 = 0 ;
5674 int arg2 = (int) wxSOLID ;
5675 wxBrush *result = 0 ;
5676 wxColour temp1 ;
5677 int val2 ;
5678 int ecode2 = 0 ;
5679 PyObject * obj0 = 0 ;
5680 PyObject * obj1 = 0 ;
5681 char * kwnames[] = {
5682 (char *) "colour",(char *) "style", NULL
5683 };
5684
5685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5686 {
5687 arg1 = &temp1;
5688 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5689 }
5690 if (obj1) {
5691 ecode2 = SWIG_AsVal_int(obj1, &val2);
5692 if (!SWIG_IsOK(ecode2)) {
5693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5694 }
5695 arg2 = static_cast< int >(val2);
5696 }
5697 {
5698 if (!wxPyCheckForApp()) SWIG_fail;
5699 PyThreadState* __tstate = wxPyBeginAllowThreads();
5700 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5701 wxPyEndAllowThreads(__tstate);
5702 if (PyErr_Occurred()) SWIG_fail;
5703 }
5704 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5705 return resultobj;
5706fail:
5707 return NULL;
5708}
5709
5710
5711SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5712 PyObject *resultobj = 0;
5713 wxBitmap *arg1 = 0 ;
5714 wxBrush *result = 0 ;
5715 void *argp1 = 0 ;
5716 int res1 = 0 ;
5717 PyObject * obj0 = 0 ;
5718 char * kwnames[] = {
5719 (char *) "stippleBitmap", NULL
5720 };
5721
5722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5723 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5724 if (!SWIG_IsOK(res1)) {
5725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5726 }
5727 if (!argp1) {
5728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5729 }
5730 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5731 {
5732 if (!wxPyCheckForApp()) SWIG_fail;
5733 PyThreadState* __tstate = wxPyBeginAllowThreads();
5734 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5735 wxPyEndAllowThreads(__tstate);
5736 if (PyErr_Occurred()) SWIG_fail;
5737 }
5738 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5739 return resultobj;
5740fail:
5741 return NULL;
d55e5bfc
RD
5742}
5743
5744
554f62e9
RD
5745SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5746 PyObject *resultobj = 0;
5747 wxBrush *arg1 = (wxBrush *) 0 ;
5748 void *argp1 = 0 ;
5749 int res1 = 0 ;
5750 PyObject *swig_obj[1] ;
5751
5752 if (!args) SWIG_fail;
5753 swig_obj[0] = args;
5754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5755 if (!SWIG_IsOK(res1)) {
5756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5757 }
5758 arg1 = reinterpret_cast< wxBrush * >(argp1);
5759 {
5760 PyThreadState* __tstate = wxPyBeginAllowThreads();
5761 delete arg1;
d55e5bfc 5762
554f62e9
RD
5763 wxPyEndAllowThreads(__tstate);
5764 if (PyErr_Occurred()) SWIG_fail;
5765 }
5766 resultobj = SWIG_Py_Void();
5767 return resultobj;
5768fail:
5769 return NULL;
5770}
5771
5772
5773SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5774 PyObject *resultobj = 0;
5775 wxBrush *arg1 = (wxBrush *) 0 ;
5776 wxColour *arg2 = 0 ;
5777 void *argp1 = 0 ;
5778 int res1 = 0 ;
5779 wxColour temp2 ;
5780 PyObject * obj0 = 0 ;
5781 PyObject * obj1 = 0 ;
5782 char * kwnames[] = {
5783 (char *) "self",(char *) "col", NULL
5784 };
5785
5786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5788 if (!SWIG_IsOK(res1)) {
5789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5790 }
5791 arg1 = reinterpret_cast< wxBrush * >(argp1);
5792 {
5793 arg2 = &temp2;
5794 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5795 }
5796 {
5797 PyThreadState* __tstate = wxPyBeginAllowThreads();
5798 (arg1)->SetColour((wxColour const &)*arg2);
5799 wxPyEndAllowThreads(__tstate);
5800 if (PyErr_Occurred()) SWIG_fail;
5801 }
5802 resultobj = SWIG_Py_Void();
5803 return resultobj;
5804fail:
5805 return NULL;
5806}
5807
5808
5809SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5810 PyObject *resultobj = 0;
5811 wxBrush *arg1 = (wxBrush *) 0 ;
5812 int arg2 ;
5813 void *argp1 = 0 ;
5814 int res1 = 0 ;
5815 int val2 ;
5816 int ecode2 = 0 ;
5817 PyObject * obj0 = 0 ;
5818 PyObject * obj1 = 0 ;
5819 char * kwnames[] = {
5820 (char *) "self",(char *) "style", NULL
5821 };
5822
5823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5825 if (!SWIG_IsOK(res1)) {
5826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5827 }
5828 arg1 = reinterpret_cast< wxBrush * >(argp1);
5829 ecode2 = SWIG_AsVal_int(obj1, &val2);
5830 if (!SWIG_IsOK(ecode2)) {
5831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5832 }
5833 arg2 = static_cast< int >(val2);
5834 {
5835 PyThreadState* __tstate = wxPyBeginAllowThreads();
5836 (arg1)->SetStyle(arg2);
5837 wxPyEndAllowThreads(__tstate);
5838 if (PyErr_Occurred()) SWIG_fail;
5839 }
5840 resultobj = SWIG_Py_Void();
5841 return resultobj;
5842fail:
5843 return NULL;
5844}
5845
5846
5847SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5848 PyObject *resultobj = 0;
5849 wxBrush *arg1 = (wxBrush *) 0 ;
5850 wxBitmap *arg2 = 0 ;
5851 void *argp1 = 0 ;
5852 int res1 = 0 ;
5853 void *argp2 = 0 ;
5854 int res2 = 0 ;
5855 PyObject * obj0 = 0 ;
5856 PyObject * obj1 = 0 ;
5857 char * kwnames[] = {
5858 (char *) "self",(char *) "stipple", NULL
5859 };
5860
5861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5863 if (!SWIG_IsOK(res1)) {
5864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5865 }
5866 arg1 = reinterpret_cast< wxBrush * >(argp1);
5867 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5868 if (!SWIG_IsOK(res2)) {
5869 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5870 }
5871 if (!argp2) {
5872 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5873 }
5874 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5875 {
5876 PyThreadState* __tstate = wxPyBeginAllowThreads();
5877 (arg1)->SetStipple((wxBitmap const &)*arg2);
5878 wxPyEndAllowThreads(__tstate);
5879 if (PyErr_Occurred()) SWIG_fail;
5880 }
5881 resultobj = SWIG_Py_Void();
5882 return resultobj;
5883fail:
5884 return NULL;
d55e5bfc
RD
5885}
5886
5887
554f62e9
RD
5888SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5889 PyObject *resultobj = 0;
5890 wxBrush *arg1 = (wxBrush *) 0 ;
5891 wxColour result;
5892 void *argp1 = 0 ;
5893 int res1 = 0 ;
5894 PyObject *swig_obj[1] ;
5895
5896 if (!args) SWIG_fail;
5897 swig_obj[0] = args;
5898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5899 if (!SWIG_IsOK(res1)) {
5900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5901 }
5902 arg1 = reinterpret_cast< wxBrush * >(argp1);
5903 {
5904 PyThreadState* __tstate = wxPyBeginAllowThreads();
5905 result = ((wxBrush const *)arg1)->GetColour();
5906 wxPyEndAllowThreads(__tstate);
5907 if (PyErr_Occurred()) SWIG_fail;
5908 }
5909 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5910 return resultobj;
5911fail:
5912 return NULL;
d55e5bfc
RD
5913}
5914
5915
554f62e9
RD
5916SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5917 PyObject *resultobj = 0;
5918 wxBrush *arg1 = (wxBrush *) 0 ;
5919 int result;
5920 void *argp1 = 0 ;
5921 int res1 = 0 ;
5922 PyObject *swig_obj[1] ;
5923
5924 if (!args) SWIG_fail;
5925 swig_obj[0] = args;
5926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5927 if (!SWIG_IsOK(res1)) {
5928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5929 }
5930 arg1 = reinterpret_cast< wxBrush * >(argp1);
5931 {
5932 PyThreadState* __tstate = wxPyBeginAllowThreads();
5933 result = (int)((wxBrush const *)arg1)->GetStyle();
5934 wxPyEndAllowThreads(__tstate);
5935 if (PyErr_Occurred()) SWIG_fail;
5936 }
5937 resultobj = SWIG_From_int(static_cast< int >(result));
5938 return resultobj;
5939fail:
5940 return NULL;
d55e5bfc
RD
5941}
5942
5943
554f62e9
RD
5944SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5945 PyObject *resultobj = 0;
5946 wxBrush *arg1 = (wxBrush *) 0 ;
5947 wxBitmap *result = 0 ;
5948 void *argp1 = 0 ;
5949 int res1 = 0 ;
5950 PyObject *swig_obj[1] ;
5951
5952 if (!args) SWIG_fail;
5953 swig_obj[0] = args;
5954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5955 if (!SWIG_IsOK(res1)) {
5956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5957 }
5958 arg1 = reinterpret_cast< wxBrush * >(argp1);
5959 {
5960 PyThreadState* __tstate = wxPyBeginAllowThreads();
5961 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5962 wxPyEndAllowThreads(__tstate);
5963 if (PyErr_Occurred()) SWIG_fail;
5964 }
5965 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5966 return resultobj;
5967fail:
5968 return NULL;
d55e5bfc
RD
5969}
5970
5971
554f62e9
RD
5972SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5973 PyObject *resultobj = 0;
5974 wxBrush *arg1 = (wxBrush *) 0 ;
5975 bool result;
5976 void *argp1 = 0 ;
5977 int res1 = 0 ;
5978 PyObject *swig_obj[1] ;
5979
5980 if (!args) SWIG_fail;
5981 swig_obj[0] = args;
5982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5983 if (!SWIG_IsOK(res1)) {
5984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5985 }
5986 arg1 = reinterpret_cast< wxBrush * >(argp1);
5987 {
5988 PyThreadState* __tstate = wxPyBeginAllowThreads();
5989 result = (bool)((wxBrush const *)arg1)->IsHatch();
5990 wxPyEndAllowThreads(__tstate);
5991 if (PyErr_Occurred()) SWIG_fail;
5992 }
5993 {
5994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5995 }
5996 return resultobj;
5997fail:
5998 return NULL;
f78cc896
RD
5999}
6000
6001
b39fe951 6002SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
6003 PyObject *resultobj = 0;
6004 wxBrush *arg1 = (wxBrush *) 0 ;
6005 bool result;
6006 void *argp1 = 0 ;
6007 int res1 = 0 ;
6008 PyObject *swig_obj[1] ;
6009
6010 if (!args) SWIG_fail;
6011 swig_obj[0] = args;
6012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6013 if (!SWIG_IsOK(res1)) {
b39fe951 6014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
554f62e9
RD
6015 }
6016 arg1 = reinterpret_cast< wxBrush * >(argp1);
6017 {
6018 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 6019 result = (bool)(arg1)->IsOk();
554f62e9
RD
6020 wxPyEndAllowThreads(__tstate);
6021 if (PyErr_Occurred()) SWIG_fail;
6022 }
6023 {
6024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6025 }
6026 return resultobj;
6027fail:
6028 return NULL;
d55e5bfc
RD
6029}
6030
6031
554f62e9
RD
6032SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6033 PyObject *obj;
6034 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6035 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6036 return SWIG_Py_Void();
d55e5bfc
RD
6037}
6038
554f62e9
RD
6039SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6040 return SWIG_Python_InitShadowInstance(args);
6041}
d55e5bfc 6042
554f62e9
RD
6043SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6044 PyObject *resultobj = 0;
6045 wxString *arg1 = 0 ;
6046 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6047 wxBitmap *result = 0 ;
6048 bool temp1 = false ;
6049 int val2 ;
6050 int ecode2 = 0 ;
6051 PyObject * obj0 = 0 ;
6052 PyObject * obj1 = 0 ;
6053 char * kwnames[] = {
6054 (char *) "name",(char *) "type", NULL
6055 };
6056
6057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6058 {
6059 arg1 = wxString_in_helper(obj0);
6060 if (arg1 == NULL) SWIG_fail;
6061 temp1 = true;
6062 }
6063 if (obj1) {
6064 ecode2 = SWIG_AsVal_int(obj1, &val2);
6065 if (!SWIG_IsOK(ecode2)) {
6066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6067 }
6068 arg2 = static_cast< wxBitmapType >(val2);
6069 }
6070 {
6071 if (!wxPyCheckForApp()) SWIG_fail;
6072 PyThreadState* __tstate = wxPyBeginAllowThreads();
6073 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6074 wxPyEndAllowThreads(__tstate);
6075 if (PyErr_Occurred()) SWIG_fail;
6076 }
6077 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6078 {
6079 if (temp1)
6080 delete arg1;
6081 }
6082 return resultobj;
6083fail:
6084 {
6085 if (temp1)
6086 delete arg1;
6087 }
6088 return NULL;
d55e5bfc
RD
6089}
6090
6091
554f62e9
RD
6092SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6093 PyObject *resultobj = 0;
6094 wxBitmap *arg1 = (wxBitmap *) 0 ;
6095 void *argp1 = 0 ;
6096 int res1 = 0 ;
6097 PyObject *swig_obj[1] ;
6098
6099 if (!args) SWIG_fail;
6100 swig_obj[0] = args;
6101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6102 if (!SWIG_IsOK(res1)) {
6103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6104 }
6105 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6106 {
554f62e9 6107 delete arg1;
c24da6d6 6108
554f62e9
RD
6109 if (PyErr_Occurred()) SWIG_fail;
6110 }
6111 resultobj = SWIG_Py_Void();
6112 return resultobj;
6113fail:
6114 return NULL;
6115}
6116
6117
6118SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6119 PyObject *resultobj = 0;
6120 int arg1 ;
6121 int arg2 ;
6122 int arg3 = (int) -1 ;
6123 wxBitmap *result = 0 ;
6124 int val1 ;
6125 int ecode1 = 0 ;
6126 int val2 ;
6127 int ecode2 = 0 ;
6128 int val3 ;
6129 int ecode3 = 0 ;
6130 PyObject * obj0 = 0 ;
6131 PyObject * obj1 = 0 ;
6132 PyObject * obj2 = 0 ;
6133 char * kwnames[] = {
6134 (char *) "width",(char *) "height",(char *) "depth", NULL
6135 };
6136
6137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6138 ecode1 = SWIG_AsVal_int(obj0, &val1);
6139 if (!SWIG_IsOK(ecode1)) {
6140 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6141 }
6142 arg1 = static_cast< int >(val1);
6143 ecode2 = SWIG_AsVal_int(obj1, &val2);
6144 if (!SWIG_IsOK(ecode2)) {
6145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6146 }
6147 arg2 = static_cast< int >(val2);
6148 if (obj2) {
6149 ecode3 = SWIG_AsVal_int(obj2, &val3);
6150 if (!SWIG_IsOK(ecode3)) {
6151 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6152 }
6153 arg3 = static_cast< int >(val3);
6154 }
6155 {
6156 if (!wxPyCheckForApp()) SWIG_fail;
6157 PyThreadState* __tstate = wxPyBeginAllowThreads();
6158 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6159 wxPyEndAllowThreads(__tstate);
6160 if (PyErr_Occurred()) SWIG_fail;
6161 }
6162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6163 return resultobj;
6164fail:
6165 return NULL;
6166}
6167
6168
6169SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6170 PyObject *resultobj = 0;
6171 wxIcon *arg1 = 0 ;
6172 wxBitmap *result = 0 ;
6173 void *argp1 = 0 ;
6174 int res1 = 0 ;
6175 PyObject * obj0 = 0 ;
6176 char * kwnames[] = {
6177 (char *) "icon", NULL
6178 };
6179
6180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6181 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6182 if (!SWIG_IsOK(res1)) {
6183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6184 }
6185 if (!argp1) {
6186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6187 }
6188 arg1 = reinterpret_cast< wxIcon * >(argp1);
6189 {
6190 if (!wxPyCheckForApp()) SWIG_fail;
6191 PyThreadState* __tstate = wxPyBeginAllowThreads();
6192 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6193 wxPyEndAllowThreads(__tstate);
6194 if (PyErr_Occurred()) SWIG_fail;
6195 }
6196 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6197 return resultobj;
6198fail:
6199 return NULL;
6200}
6201
6202
6203SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6204 PyObject *resultobj = 0;
6205 wxImage *arg1 = 0 ;
6206 int arg2 = (int) -1 ;
6207 wxBitmap *result = 0 ;
6208 void *argp1 = 0 ;
6209 int res1 = 0 ;
6210 int val2 ;
6211 int ecode2 = 0 ;
6212 PyObject * obj0 = 0 ;
6213 PyObject * obj1 = 0 ;
6214 char * kwnames[] = {
6215 (char *) "image",(char *) "depth", NULL
6216 };
6217
6218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6219 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6220 if (!SWIG_IsOK(res1)) {
6221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6222 }
6223 if (!argp1) {
6224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6225 }
6226 arg1 = reinterpret_cast< wxImage * >(argp1);
6227 if (obj1) {
6228 ecode2 = SWIG_AsVal_int(obj1, &val2);
6229 if (!SWIG_IsOK(ecode2)) {
6230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6231 }
6232 arg2 = static_cast< int >(val2);
6233 }
6234 {
6235 if (!wxPyCheckForApp()) SWIG_fail;
6236 PyThreadState* __tstate = wxPyBeginAllowThreads();
6237 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6238 wxPyEndAllowThreads(__tstate);
6239 if (PyErr_Occurred()) SWIG_fail;
6240 }
6241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6242 return resultobj;
6243fail:
6244 return NULL;
c24da6d6
RD
6245}
6246
6247
554f62e9
RD
6248SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6249 PyObject *resultobj = 0;
6250 PyObject *arg1 = (PyObject *) 0 ;
6251 wxBitmap *result = 0 ;
6252 PyObject * obj0 = 0 ;
6253 char * kwnames[] = {
6254 (char *) "listOfStrings", NULL
6255 };
6256
6257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6258 arg1 = obj0;
6259 {
6260 if (!wxPyCheckForApp()) SWIG_fail;
6261 PyThreadState* __tstate = wxPyBeginAllowThreads();
6262 result = (wxBitmap *)new_wxBitmap(arg1);
6263 wxPyEndAllowThreads(__tstate);
6264 if (PyErr_Occurred()) SWIG_fail;
6265 }
6266 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6267 return resultobj;
6268fail:
6269 return NULL;
6270}
6271
6272
6273SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6274 PyObject *resultobj = 0;
6275 PyObject *arg1 = (PyObject *) 0 ;
6276 int arg2 ;
6277 int arg3 ;
6278 int arg4 = (int) 1 ;
6279 wxBitmap *result = 0 ;
6280 int val2 ;
6281 int ecode2 = 0 ;
6282 int val3 ;
6283 int ecode3 = 0 ;
6284 int val4 ;
6285 int ecode4 = 0 ;
6286 PyObject * obj0 = 0 ;
6287 PyObject * obj1 = 0 ;
6288 PyObject * obj2 = 0 ;
6289 PyObject * obj3 = 0 ;
6290 char * kwnames[] = {
6291 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6292 };
6293
6294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6295 arg1 = obj0;
6296 ecode2 = SWIG_AsVal_int(obj1, &val2);
6297 if (!SWIG_IsOK(ecode2)) {
6298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6299 }
6300 arg2 = static_cast< int >(val2);
6301 ecode3 = SWIG_AsVal_int(obj2, &val3);
6302 if (!SWIG_IsOK(ecode3)) {
6303 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6304 }
6305 arg3 = static_cast< int >(val3);
6306 if (obj3) {
6307 ecode4 = SWIG_AsVal_int(obj3, &val4);
6308 if (!SWIG_IsOK(ecode4)) {
6309 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6310 }
6311 arg4 = static_cast< int >(val4);
6312 }
6313 {
6314 if (!wxPyCheckForApp()) SWIG_fail;
6315 PyThreadState* __tstate = wxPyBeginAllowThreads();
6316 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6317 wxPyEndAllowThreads(__tstate);
6318 if (PyErr_Occurred()) SWIG_fail;
6319 }
6320 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6321 return resultobj;
6322fail:
6323 return NULL;
d55e5bfc
RD
6324}
6325
6326
554f62e9
RD
6327SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6328 PyObject *resultobj = 0;
6329 wxBitmap *arg1 = (wxBitmap *) 0 ;
6330 long result;
6331 void *argp1 = 0 ;
6332 int res1 = 0 ;
6333 PyObject *swig_obj[1] ;
6334
6335 if (!args) SWIG_fail;
6336 swig_obj[0] = args;
6337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6338 if (!SWIG_IsOK(res1)) {
6339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6340 }
6341 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6342 {
554f62e9 6343 result = (long)(arg1)->GetHandle();
554f62e9
RD
6344 if (PyErr_Occurred()) SWIG_fail;
6345 }
6346 resultobj = SWIG_From_long(static_cast< long >(result));
6347 return resultobj;
6348fail:
6349 return NULL;
6350}
6351
6352
6353SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6354 PyObject *resultobj = 0;
6355 wxBitmap *arg1 = (wxBitmap *) 0 ;
6356 long arg2 ;
6357 void *argp1 = 0 ;
6358 int res1 = 0 ;
6359 long val2 ;
6360 int ecode2 = 0 ;
6361 PyObject * obj0 = 0 ;
6362 PyObject * obj1 = 0 ;
6363 char * kwnames[] = {
6364 (char *) "self",(char *) "handle", NULL
6365 };
6366
6367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6369 if (!SWIG_IsOK(res1)) {
6370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6371 }
6372 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6373 ecode2 = SWIG_AsVal_long(obj1, &val2);
6374 if (!SWIG_IsOK(ecode2)) {
6375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6376 }
6377 arg2 = static_cast< long >(val2);
6378 {
554f62e9 6379 wxBitmap_SetHandle(arg1,arg2);
554f62e9
RD
6380 if (PyErr_Occurred()) SWIG_fail;
6381 }
6382 resultobj = SWIG_Py_Void();
6383 return resultobj;
6384fail:
6385 return NULL;
d55e5bfc
RD
6386}
6387
6388
b39fe951 6389SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
6390 PyObject *resultobj = 0;
6391 wxBitmap *arg1 = (wxBitmap *) 0 ;
6392 bool result;
6393 void *argp1 = 0 ;
6394 int res1 = 0 ;
6395 PyObject *swig_obj[1] ;
6396
6397 if (!args) SWIG_fail;
6398 swig_obj[0] = args;
6399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6400 if (!SWIG_IsOK(res1)) {
b39fe951 6401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
554f62e9
RD
6402 }
6403 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6404 {
b39fe951 6405 result = (bool)(arg1)->IsOk();
554f62e9
RD
6406 if (PyErr_Occurred()) SWIG_fail;
6407 }
6408 {
6409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6410 }
6411 return resultobj;
6412fail:
6413 return NULL;
d55e5bfc
RD
6414}
6415
6416
554f62e9
RD
6417SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6418 PyObject *resultobj = 0;
6419 wxBitmap *arg1 = (wxBitmap *) 0 ;
6420 int result;
6421 void *argp1 = 0 ;
6422 int res1 = 0 ;
6423 PyObject *swig_obj[1] ;
6424
6425 if (!args) SWIG_fail;
6426 swig_obj[0] = args;
6427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6428 if (!SWIG_IsOK(res1)) {
6429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6430 }
6431 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6432 {
554f62e9 6433 result = (int)(arg1)->GetWidth();
554f62e9
RD
6434 if (PyErr_Occurred()) SWIG_fail;
6435 }
6436 resultobj = SWIG_From_int(static_cast< int >(result));
6437 return resultobj;
6438fail:
6439 return NULL;
d55e5bfc
RD
6440}
6441
6442
554f62e9
RD
6443SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6444 PyObject *resultobj = 0;
6445 wxBitmap *arg1 = (wxBitmap *) 0 ;
6446 int result;
6447 void *argp1 = 0 ;
6448 int res1 = 0 ;
6449 PyObject *swig_obj[1] ;
6450
6451 if (!args) SWIG_fail;
6452 swig_obj[0] = args;
6453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6454 if (!SWIG_IsOK(res1)) {
6455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6456 }
6457 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6458 {
554f62e9 6459 result = (int)(arg1)->GetHeight();
554f62e9
RD
6460 if (PyErr_Occurred()) SWIG_fail;
6461 }
6462 resultobj = SWIG_From_int(static_cast< int >(result));
6463 return resultobj;
6464fail:
6465 return NULL;
c24da6d6
RD
6466}
6467
6468
554f62e9
RD
6469SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6470 PyObject *resultobj = 0;
6471 wxBitmap *arg1 = (wxBitmap *) 0 ;
6472 int result;
6473 void *argp1 = 0 ;
6474 int res1 = 0 ;
6475 PyObject *swig_obj[1] ;
6476
6477 if (!args) SWIG_fail;
6478 swig_obj[0] = args;
6479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6480 if (!SWIG_IsOK(res1)) {
6481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6482 }
6483 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6484 {
554f62e9 6485 result = (int)(arg1)->GetDepth();
554f62e9
RD
6486 if (PyErr_Occurred()) SWIG_fail;
6487 }
6488 resultobj = SWIG_From_int(static_cast< int >(result));
6489 return resultobj;
6490fail:
6491 return NULL;
d55e5bfc
RD
6492}
6493
6494
554f62e9
RD
6495SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6496 PyObject *resultobj = 0;
6497 wxBitmap *arg1 = (wxBitmap *) 0 ;
6498 wxSize result;
6499 void *argp1 = 0 ;
6500 int res1 = 0 ;
6501 PyObject *swig_obj[1] ;
6502
6503 if (!args) SWIG_fail;
6504 swig_obj[0] = args;
6505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6506 if (!SWIG_IsOK(res1)) {
6507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6508 }
6509 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6510 {
554f62e9 6511 result = wxBitmap_GetSize(arg1);
554f62e9
RD
6512 if (PyErr_Occurred()) SWIG_fail;
6513 }
6514 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6515 return resultobj;
6516fail:
6517 return NULL;
d55e5bfc
RD
6518}
6519
6520
554f62e9
RD
6521SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6522 PyObject *resultobj = 0;
6523 wxBitmap *arg1 = (wxBitmap *) 0 ;
6524 SwigValueWrapper<wxImage > result;
6525 void *argp1 = 0 ;
6526 int res1 = 0 ;
6527 PyObject *swig_obj[1] ;
6528
6529 if (!args) SWIG_fail;
6530 swig_obj[0] = args;
6531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6532 if (!SWIG_IsOK(res1)) {
6533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6534 }
6535 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6536 {
554f62e9 6537 result = ((wxBitmap const *)arg1)->ConvertToImage();
554f62e9
RD
6538 if (PyErr_Occurred()) SWIG_fail;
6539 }
6540 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6541 return resultobj;
6542fail:
6543 return NULL;
d55e5bfc
RD
6544}
6545
6546
554f62e9
RD
6547SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6548 PyObject *resultobj = 0;
6549 wxBitmap *arg1 = (wxBitmap *) 0 ;
6550 wxMask *result = 0 ;
6551 void *argp1 = 0 ;
6552 int res1 = 0 ;
6553 PyObject *swig_obj[1] ;
6554
6555 if (!args) SWIG_fail;
6556 swig_obj[0] = args;
6557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6558 if (!SWIG_IsOK(res1)) {
6559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6560 }
6561 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6562 {
554f62e9 6563 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
554f62e9
RD
6564 if (PyErr_Occurred()) SWIG_fail;
6565 }
6566 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6567 return resultobj;
6568fail:
6569 return NULL;
6570}
6571
6572
6573SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6574 PyObject *resultobj = 0;
6575 wxBitmap *arg1 = (wxBitmap *) 0 ;
6576 wxMask *arg2 = (wxMask *) 0 ;
6577 void *argp1 = 0 ;
6578 int res1 = 0 ;
6579 int res2 = 0 ;
6580 PyObject * obj0 = 0 ;
6581 PyObject * obj1 = 0 ;
6582 char * kwnames[] = {
6583 (char *) "self",(char *) "mask", NULL
6584 };
6585
6586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",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_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6590 }
6591 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6592 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6593 if (!SWIG_IsOK(res2)) {
6594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6595 }
6596 {
554f62e9 6597 (arg1)->SetMask(arg2);
554f62e9
RD
6598 if (PyErr_Occurred()) SWIG_fail;
6599 }
6600 resultobj = SWIG_Py_Void();
6601 return resultobj;
6602fail:
6603 return NULL;
6604}
6605
6606
6607SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6608 PyObject *resultobj = 0;
6609 wxBitmap *arg1 = (wxBitmap *) 0 ;
6610 wxColour *arg2 = 0 ;
6611 void *argp1 = 0 ;
6612 int res1 = 0 ;
6613 wxColour temp2 ;
6614 PyObject * obj0 = 0 ;
6615 PyObject * obj1 = 0 ;
6616 char * kwnames[] = {
6617 (char *) "self",(char *) "colour", NULL
6618 };
6619
6620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6622 if (!SWIG_IsOK(res1)) {
6623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6624 }
6625 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6626 {
6627 arg2 = &temp2;
6628 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6629 }
6630 {
554f62e9 6631 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
554f62e9
RD
6632 if (PyErr_Occurred()) SWIG_fail;
6633 }
6634 resultobj = SWIG_Py_Void();
6635 return resultobj;
6636fail:
6637 return NULL;
6638}
6639
6640
6641SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6642 PyObject *resultobj = 0;
6643 wxBitmap *arg1 = (wxBitmap *) 0 ;
6644 wxRect *arg2 = 0 ;
6645 SwigValueWrapper<wxBitmap > result;
6646 void *argp1 = 0 ;
6647 int res1 = 0 ;
6648 wxRect temp2 ;
6649 PyObject * obj0 = 0 ;
6650 PyObject * obj1 = 0 ;
6651 char * kwnames[] = {
6652 (char *) "self",(char *) "rect", NULL
6653 };
6654
6655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6657 if (!SWIG_IsOK(res1)) {
6658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6659 }
6660 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6661 {
6662 arg2 = &temp2;
6663 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6664 }
6665 {
554f62e9 6666 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
554f62e9
RD
6667 if (PyErr_Occurred()) SWIG_fail;
6668 }
6669 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6670 return resultobj;
6671fail:
6672 return NULL;
6673}
6674
6675
6676SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6677 PyObject *resultobj = 0;
6678 wxBitmap *arg1 = (wxBitmap *) 0 ;
6679 wxString *arg2 = 0 ;
6680 wxBitmapType arg3 ;
6681 wxPalette *arg4 = (wxPalette *) NULL ;
6682 bool result;
6683 void *argp1 = 0 ;
6684 int res1 = 0 ;
6685 bool temp2 = false ;
6686 int val3 ;
6687 int ecode3 = 0 ;
6688 void *argp4 = 0 ;
6689 int res4 = 0 ;
6690 PyObject * obj0 = 0 ;
6691 PyObject * obj1 = 0 ;
6692 PyObject * obj2 = 0 ;
6693 PyObject * obj3 = 0 ;
6694 char * kwnames[] = {
6695 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6696 };
6697
6698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6700 if (!SWIG_IsOK(res1)) {
6701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6702 }
6703 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6704 {
6705 arg2 = wxString_in_helper(obj1);
6706 if (arg2 == NULL) SWIG_fail;
6707 temp2 = true;
6708 }
6709 ecode3 = SWIG_AsVal_int(obj2, &val3);
6710 if (!SWIG_IsOK(ecode3)) {
6711 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6712 }
6713 arg3 = static_cast< wxBitmapType >(val3);
6714 if (obj3) {
6715 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6716 if (!SWIG_IsOK(res4)) {
6717 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6718 }
554f62e9
RD
6719 arg4 = reinterpret_cast< wxPalette * >(argp4);
6720 }
6721 {
554f62e9 6722 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
554f62e9
RD
6723 if (PyErr_Occurred()) SWIG_fail;
6724 }
6725 {
6726 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6727 }
6728 {
6729 if (temp2)
6730 delete arg2;
6731 }
6732 return resultobj;
6733fail:
6734 {
6735 if (temp2)
6736 delete arg2;
6737 }
6738 return NULL;
6739}
6740
6741
6742SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6743 PyObject *resultobj = 0;
6744 wxBitmap *arg1 = (wxBitmap *) 0 ;
6745 wxString *arg2 = 0 ;
6746 wxBitmapType arg3 ;
6747 bool result;
6748 void *argp1 = 0 ;
6749 int res1 = 0 ;
6750 bool temp2 = false ;
6751 int val3 ;
6752 int ecode3 = 0 ;
6753 PyObject * obj0 = 0 ;
6754 PyObject * obj1 = 0 ;
6755 PyObject * obj2 = 0 ;
6756 char * kwnames[] = {
6757 (char *) "self",(char *) "name",(char *) "type", NULL
6758 };
6759
6760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6762 if (!SWIG_IsOK(res1)) {
6763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6764 }
6765 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6766 {
6767 arg2 = wxString_in_helper(obj1);
6768 if (arg2 == NULL) SWIG_fail;
6769 temp2 = true;
6770 }
6771 ecode3 = SWIG_AsVal_int(obj2, &val3);
6772 if (!SWIG_IsOK(ecode3)) {
6773 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6774 }
6775 arg3 = static_cast< wxBitmapType >(val3);
6776 {
554f62e9 6777 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
554f62e9
RD
6778 if (PyErr_Occurred()) SWIG_fail;
6779 }
6780 {
6781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6782 }
6783 {
6784 if (temp2)
6785 delete arg2;
6786 }
6787 return resultobj;
6788fail:
6789 {
6790 if (temp2)
6791 delete arg2;
6792 }
6793 return NULL;
d04418a7
RD
6794}
6795
6796
554f62e9
RD
6797SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6798 PyObject *resultobj = 0;
6799 wxBitmap *arg1 = (wxBitmap *) 0 ;
6800 wxPalette *result = 0 ;
6801 void *argp1 = 0 ;
6802 int res1 = 0 ;
6803 PyObject *swig_obj[1] ;
6804
6805 if (!args) SWIG_fail;
6806 swig_obj[0] = args;
6807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6808 if (!SWIG_IsOK(res1)) {
6809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6810 }
6811 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6812 {
554f62e9 6813 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
554f62e9
RD
6814 if (PyErr_Occurred()) SWIG_fail;
6815 }
6816 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6817 return resultobj;
6818fail:
6819 return NULL;
6820}
6821
6822
6823SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6824 PyObject *resultobj = 0;
6825 wxBitmap *arg1 = (wxBitmap *) 0 ;
6826 wxPalette *arg2 = 0 ;
6827 void *argp1 = 0 ;
6828 int res1 = 0 ;
6829 void *argp2 = 0 ;
6830 int res2 = 0 ;
6831 PyObject * obj0 = 0 ;
6832 PyObject * obj1 = 0 ;
6833 char * kwnames[] = {
6834 (char *) "self",(char *) "palette", NULL
6835 };
6836
6837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6839 if (!SWIG_IsOK(res1)) {
6840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6841 }
6842 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6843 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6844 if (!SWIG_IsOK(res2)) {
6845 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6846 }
6847 if (!argp2) {
6848 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6849 }
6850 arg2 = reinterpret_cast< wxPalette * >(argp2);
6851 {
554f62e9 6852 (arg1)->SetPalette((wxPalette const &)*arg2);
554f62e9
RD
6853 if (PyErr_Occurred()) SWIG_fail;
6854 }
6855 resultobj = SWIG_Py_Void();
6856 return resultobj;
6857fail:
6858 return NULL;
6859}
6860
6861
6862SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6863 PyObject *resultobj = 0;
6864 wxBitmap *arg1 = (wxBitmap *) 0 ;
6865 wxIcon *arg2 = 0 ;
6866 bool result;
6867 void *argp1 = 0 ;
6868 int res1 = 0 ;
6869 void *argp2 = 0 ;
6870 int res2 = 0 ;
6871 PyObject * obj0 = 0 ;
6872 PyObject * obj1 = 0 ;
6873 char * kwnames[] = {
6874 (char *) "self",(char *) "icon", NULL
6875 };
6876
6877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6879 if (!SWIG_IsOK(res1)) {
6880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6881 }
6882 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6883 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6884 if (!SWIG_IsOK(res2)) {
6885 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6886 }
6887 if (!argp2) {
6888 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6889 }
6890 arg2 = reinterpret_cast< wxIcon * >(argp2);
6891 {
554f62e9 6892 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
554f62e9
RD
6893 if (PyErr_Occurred()) SWIG_fail;
6894 }
6895 {
6896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6897 }
6898 return resultobj;
6899fail:
6900 return NULL;
6901}
6902
6903
6904SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6905 PyObject *resultobj = 0;
6906 wxBitmap *arg1 = (wxBitmap *) 0 ;
6907 int arg2 ;
6908 void *argp1 = 0 ;
6909 int res1 = 0 ;
6910 int val2 ;
6911 int ecode2 = 0 ;
6912 PyObject * obj0 = 0 ;
6913 PyObject * obj1 = 0 ;
6914 char * kwnames[] = {
6915 (char *) "self",(char *) "height", NULL
6916 };
6917
6918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6920 if (!SWIG_IsOK(res1)) {
6921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6922 }
6923 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6924 ecode2 = SWIG_AsVal_int(obj1, &val2);
6925 if (!SWIG_IsOK(ecode2)) {
6926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6927 }
6928 arg2 = static_cast< int >(val2);
6929 {
554f62e9 6930 (arg1)->SetHeight(arg2);
554f62e9
RD
6931 if (PyErr_Occurred()) SWIG_fail;
6932 }
6933 resultobj = SWIG_Py_Void();
6934 return resultobj;
6935fail:
6936 return NULL;
6937}
6938
6939
6940SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6941 PyObject *resultobj = 0;
6942 wxBitmap *arg1 = (wxBitmap *) 0 ;
6943 int arg2 ;
6944 void *argp1 = 0 ;
6945 int res1 = 0 ;
6946 int val2 ;
6947 int ecode2 = 0 ;
6948 PyObject * obj0 = 0 ;
6949 PyObject * obj1 = 0 ;
6950 char * kwnames[] = {
6951 (char *) "self",(char *) "width", NULL
6952 };
6953
6954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6956 if (!SWIG_IsOK(res1)) {
6957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6958 }
6959 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6960 ecode2 = SWIG_AsVal_int(obj1, &val2);
6961 if (!SWIG_IsOK(ecode2)) {
6962 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6963 }
6964 arg2 = static_cast< int >(val2);
6965 {
554f62e9 6966 (arg1)->SetWidth(arg2);
554f62e9
RD
6967 if (PyErr_Occurred()) SWIG_fail;
6968 }
6969 resultobj = SWIG_Py_Void();
6970 return resultobj;
6971fail:
6972 return NULL;
6973}
6974
6975
6976SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6977 PyObject *resultobj = 0;
6978 wxBitmap *arg1 = (wxBitmap *) 0 ;
6979 int arg2 ;
6980 void *argp1 = 0 ;
6981 int res1 = 0 ;
6982 int val2 ;
6983 int ecode2 = 0 ;
6984 PyObject * obj0 = 0 ;
6985 PyObject * obj1 = 0 ;
6986 char * kwnames[] = {
6987 (char *) "self",(char *) "depth", NULL
6988 };
6989
6990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6992 if (!SWIG_IsOK(res1)) {
6993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6994 }
6995 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6996 ecode2 = SWIG_AsVal_int(obj1, &val2);
6997 if (!SWIG_IsOK(ecode2)) {
6998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6999 }
7000 arg2 = static_cast< int >(val2);
7001 {
554f62e9 7002 (arg1)->SetDepth(arg2);
554f62e9
RD
7003 if (PyErr_Occurred()) SWIG_fail;
7004 }
7005 resultobj = SWIG_Py_Void();
7006 return resultobj;
7007fail:
7008 return NULL;
7009}
7010
7011
7012SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7013 PyObject *resultobj = 0;
7014 wxBitmap *arg1 = (wxBitmap *) 0 ;
7015 wxSize *arg2 = 0 ;
7016 void *argp1 = 0 ;
7017 int res1 = 0 ;
7018 wxSize temp2 ;
7019 PyObject * obj0 = 0 ;
7020 PyObject * obj1 = 0 ;
7021 char * kwnames[] = {
7022 (char *) "self",(char *) "size", NULL
7023 };
7024
7025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7027 if (!SWIG_IsOK(res1)) {
7028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
7029 }
7030 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7031 {
7032 arg2 = &temp2;
7033 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7034 }
7035 {
554f62e9 7036 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
554f62e9
RD
7037 if (PyErr_Occurred()) SWIG_fail;
7038 }
7039 resultobj = SWIG_Py_Void();
7040 return resultobj;
7041fail:
7042 return NULL;
7043}
7044
7045
7046SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7047 PyObject *resultobj = 0;
7048 wxBitmap *arg1 = (wxBitmap *) 0 ;
7049 wxCursor *arg2 = 0 ;
7050 bool result;
7051 void *argp1 = 0 ;
7052 int res1 = 0 ;
7053 void *argp2 = 0 ;
7054 int res2 = 0 ;
7055 PyObject * obj0 = 0 ;
7056 PyObject * obj1 = 0 ;
7057 char * kwnames[] = {
7058 (char *) "self",(char *) "cursor", NULL
7059 };
7060
7061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
7062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7063 if (!SWIG_IsOK(res1)) {
7064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
7065 }
7066 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7067 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
7068 if (!SWIG_IsOK(res2)) {
7069 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7070 }
7071 if (!argp2) {
7072 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7073 }
7074 arg2 = reinterpret_cast< wxCursor * >(argp2);
7075 {
554f62e9 7076 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
554f62e9
RD
7077 if (PyErr_Occurred()) SWIG_fail;
7078 }
7079 {
7080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7081 }
7082 return resultobj;
7083fail:
7084 return NULL;
7085}
7086
7087
7088SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7089 PyObject *resultobj = 0;
7090 wxBitmap *arg1 = (wxBitmap *) 0 ;
7091 wxBitmap *arg2 = (wxBitmap *) 0 ;
7092 bool result;
7093 void *argp1 = 0 ;
7094 int res1 = 0 ;
7095 void *argp2 = 0 ;
7096 int res2 = 0 ;
7097 PyObject * obj0 = 0 ;
7098 PyObject * obj1 = 0 ;
7099 char * kwnames[] = {
7100 (char *) "self",(char *) "other", NULL
7101 };
7102
7103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7105 if (!SWIG_IsOK(res1)) {
7106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7107 }
7108 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7109 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7110 if (!SWIG_IsOK(res2)) {
7111 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7112 }
7113 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7114 {
554f62e9 7115 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
554f62e9
RD
7116 if (PyErr_Occurred()) SWIG_fail;
7117 }
7118 {
fc46b7f3
RD
7119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7120 }
7121 return resultobj;
7122fail:
7123 return NULL;
7124}
7125
7126
7127SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7128 PyObject *resultobj = 0;
7129 wxBitmap *arg1 = (wxBitmap *) 0 ;
7130 wxBitmap *arg2 = (wxBitmap *) 0 ;
7131 bool result;
7132 void *argp1 = 0 ;
7133 int res1 = 0 ;
7134 void *argp2 = 0 ;
7135 int res2 = 0 ;
7136 PyObject * obj0 = 0 ;
7137 PyObject * obj1 = 0 ;
7138 char * kwnames[] = {
7139 (char *) "self",(char *) "other", NULL
7140 };
7141
7142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7144 if (!SWIG_IsOK(res1)) {
7145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7146 }
7147 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7148 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7149 if (!SWIG_IsOK(res2)) {
7150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7151 }
7152 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7153 {
7154 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7155 if (PyErr_Occurred()) SWIG_fail;
7156 }
7157 {
7158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7159 }
7160 return resultobj;
7161fail:
7162 return NULL;
7163}
7164
7165
7166SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7167 PyObject *obj;
7168 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7169 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7170 return SWIG_Py_Void();
7171}
7172
7173SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7174 return SWIG_Python_InitShadowInstance(args);
7175}
7176
7177SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7178 PyObject *resultobj = 0;
7179 int arg1 ;
7180 int arg2 ;
7181 buffer arg3 ;
7182 int arg4 ;
7183 buffer arg5 ;
7184 int arg6 ;
7185 wxBitmap *result = 0 ;
7186 int val1 ;
7187 int ecode1 = 0 ;
7188 int val2 ;
7189 int ecode2 = 0 ;
e46e7e0d
RD
7190 Py_ssize_t temp3 ;
7191 Py_ssize_t temp5 ;
fc46b7f3
RD
7192 PyObject * obj0 = 0 ;
7193 PyObject * obj1 = 0 ;
7194 PyObject * obj2 = 0 ;
7195 PyObject * obj3 = 0 ;
7196 char * kwnames[] = {
7197 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7198 };
7199
7200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7201 ecode1 = SWIG_AsVal_int(obj0, &val1);
7202 if (!SWIG_IsOK(ecode1)) {
7203 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7204 }
7205 arg1 = static_cast< int >(val1);
7206 ecode2 = SWIG_AsVal_int(obj1, &val2);
7207 if (!SWIG_IsOK(ecode2)) {
7208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7209 }
7210 arg2 = static_cast< int >(val2);
7211 {
e46e7e0d
RD
7212 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7213 arg4 = (int)temp3;
fc46b7f3
RD
7214 }
7215 {
7216 if (obj3 != Py_None) {
e46e7e0d
RD
7217 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7218 arg6 = (int)temp5;
fc46b7f3
RD
7219 }
7220 }
7221 {
7222 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7223 if (PyErr_Occurred()) SWIG_fail;
7224 }
7225 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7226 return resultobj;
7227fail:
7228 return NULL;
7229}
7230
7231
7232SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7233 PyObject *resultobj = 0;
7234 int arg1 ;
7235 int arg2 ;
7236 buffer arg3 ;
7237 int arg4 ;
7238 wxBitmap *result = 0 ;
7239 int val1 ;
7240 int ecode1 = 0 ;
7241 int val2 ;
7242 int ecode2 = 0 ;
e46e7e0d 7243 Py_ssize_t temp3 ;
fc46b7f3
RD
7244 PyObject * obj0 = 0 ;
7245 PyObject * obj1 = 0 ;
7246 PyObject * obj2 = 0 ;
7247 char * kwnames[] = {
7248 (char *) "width",(char *) "height",(char *) "data", NULL
7249 };
7250
7251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7252 ecode1 = SWIG_AsVal_int(obj0, &val1);
7253 if (!SWIG_IsOK(ecode1)) {
7254 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7255 }
7256 arg1 = static_cast< int >(val1);
7257 ecode2 = SWIG_AsVal_int(obj1, &val2);
7258 if (!SWIG_IsOK(ecode2)) {
7259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7260 }
7261 arg2 = static_cast< int >(val2);
7262 {
e46e7e0d
RD
7263 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7264 arg4 = (int)temp3;
fc46b7f3
RD
7265 }
7266 {
7267 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7268 if (PyErr_Occurred()) SWIG_fail;
7269 }
7270 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7271 return resultobj;
7272fail:
7273 return NULL;
7274}
7275
7276
7277SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7278 PyObject *resultobj = 0;
7279 int arg1 ;
7280 int arg2 ;
7281 buffer arg3 ;
7282 int arg4 ;
7283 wxBitmap *result = 0 ;
7284 int val1 ;
7285 int ecode1 = 0 ;
7286 int val2 ;
7287 int ecode2 = 0 ;
e46e7e0d 7288 Py_ssize_t temp3 ;
fc46b7f3
RD
7289 PyObject * obj0 = 0 ;
7290 PyObject * obj1 = 0 ;
7291 PyObject * obj2 = 0 ;
7292 char * kwnames[] = {
7293 (char *) "width",(char *) "height",(char *) "data", NULL
7294 };
7295
7296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7297 ecode1 = SWIG_AsVal_int(obj0, &val1);
7298 if (!SWIG_IsOK(ecode1)) {
7299 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7300 }
7301 arg1 = static_cast< int >(val1);
7302 ecode2 = SWIG_AsVal_int(obj1, &val2);
7303 if (!SWIG_IsOK(ecode2)) {
7304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7305 }
7306 arg2 = static_cast< int >(val2);
7307 {
e46e7e0d
RD
7308 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7309 arg4 = (int)temp3;
fc46b7f3
RD
7310 }
7311 {
7312 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7313 if (PyErr_Occurred()) SWIG_fail;
7314 }
7315 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7316 return resultobj;
7317fail:
7318 return NULL;
7319}
7320
7321
7322SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7323 PyObject *resultobj = 0;
7324 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7325 wxPoint result;
7326 void *argp1 = 0 ;
7327 int res1 = 0 ;
7328 PyObject *swig_obj[1] ;
7329
7330 if (!args) SWIG_fail;
7331 swig_obj[0] = args;
7332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7333 if (!SWIG_IsOK(res1)) {
7334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7335 }
7336 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7337 {
7338 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7339 if (PyErr_Occurred()) SWIG_fail;
7340 }
7341 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7342 return resultobj;
7343fail:
7344 return NULL;
7345}
7346
7347
7348SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7349 PyObject *resultobj = 0;
7350 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7351 int result;
7352 void *argp1 = 0 ;
7353 int res1 = 0 ;
7354 PyObject *swig_obj[1] ;
7355
7356 if (!args) SWIG_fail;
7357 swig_obj[0] = args;
7358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7359 if (!SWIG_IsOK(res1)) {
7360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7361 }
7362 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7363 {
7364 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7365 if (PyErr_Occurred()) SWIG_fail;
7366 }
7367 resultobj = SWIG_From_int(static_cast< int >(result));
7368 return resultobj;
7369fail:
7370 return NULL;
7371}
7372
7373
7374SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7375 PyObject *resultobj = 0;
7376 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7377 int result;
7378 void *argp1 = 0 ;
7379 int res1 = 0 ;
7380 PyObject *swig_obj[1] ;
7381
7382 if (!args) SWIG_fail;
7383 swig_obj[0] = args;
7384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7385 if (!SWIG_IsOK(res1)) {
7386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7387 }
7388 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7389 {
7390 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7391 if (PyErr_Occurred()) SWIG_fail;
7392 }
7393 resultobj = SWIG_From_int(static_cast< int >(result));
7394 return resultobj;
7395fail:
7396 return NULL;
7397}
7398
7399
7400SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7401 PyObject *resultobj = 0;
7402 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7403 wxSize result;
7404 void *argp1 = 0 ;
7405 int res1 = 0 ;
7406 PyObject *swig_obj[1] ;
7407
7408 if (!args) SWIG_fail;
7409 swig_obj[0] = args;
7410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7411 if (!SWIG_IsOK(res1)) {
7412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7413 }
7414 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7415 {
7416 result = ((wxPixelDataBase const *)arg1)->GetSize();
7417 if (PyErr_Occurred()) SWIG_fail;
7418 }
7419 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7420 return resultobj;
7421fail:
7422 return NULL;
7423}
7424
7425
7426SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7427 PyObject *resultobj = 0;
7428 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7429 int result;
7430 void *argp1 = 0 ;
7431 int res1 = 0 ;
7432 PyObject *swig_obj[1] ;
7433
7434 if (!args) SWIG_fail;
7435 swig_obj[0] = args;
7436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7437 if (!SWIG_IsOK(res1)) {
7438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7439 }
7440 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7441 {
7442 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7443 if (PyErr_Occurred()) SWIG_fail;
7444 }
7445 resultobj = SWIG_From_int(static_cast< int >(result));
7446 return resultobj;
7447fail:
7448 return NULL;
7449}
7450
7451
7452SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7453 PyObject *obj;
7454 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7455 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7456 return SWIG_Py_Void();
7457}
7458
7459SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7460 PyObject *resultobj = 0;
7461 wxBitmap *arg1 = 0 ;
7462 wxNativePixelData *result = 0 ;
7463 void *argp1 = 0 ;
7464 int res1 = 0 ;
7465
7466 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7468 if (!SWIG_IsOK(res1)) {
7469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7470 }
7471 if (!argp1) {
7472 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7473 }
7474 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7475 {
7476 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7477 if (PyErr_Occurred()) SWIG_fail;
7478 }
7479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7480 return resultobj;
7481fail:
7482 return NULL;
7483}
7484
7485
7486SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7487 PyObject *resultobj = 0;
7488 wxBitmap *arg1 = 0 ;
7489 wxRect *arg2 = 0 ;
7490 wxNativePixelData *result = 0 ;
7491 void *argp1 = 0 ;
7492 int res1 = 0 ;
7493 wxRect temp2 ;
7494
7495 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7497 if (!SWIG_IsOK(res1)) {
7498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7499 }
7500 if (!argp1) {
7501 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7502 }
7503 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7504 {
7505 arg2 = &temp2;
7506 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7507 }
7508 {
7509 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7510 if (PyErr_Occurred()) SWIG_fail;
7511 }
7512 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7513 return resultobj;
7514fail:
7515 return NULL;
7516}
7517
7518
7519SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7520 PyObject *resultobj = 0;
7521 wxBitmap *arg1 = 0 ;
7522 wxPoint *arg2 = 0 ;
7523 wxSize *arg3 = 0 ;
7524 wxNativePixelData *result = 0 ;
7525 void *argp1 = 0 ;
7526 int res1 = 0 ;
7527 wxPoint temp2 ;
7528 wxSize temp3 ;
7529
7530 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7532 if (!SWIG_IsOK(res1)) {
7533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7534 }
7535 if (!argp1) {
7536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7537 }
7538 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7539 {
7540 arg2 = &temp2;
7541 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7542 }
7543 {
7544 arg3 = &temp3;
7545 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7546 }
7547 {
7548 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7549 if (PyErr_Occurred()) SWIG_fail;
7550 }
7551 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7552 return resultobj;
7553fail:
7554 return NULL;
7555}
7556
7557
7558SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7559 int argc;
7560 PyObject *argv[4];
7561
7562 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7563 --argc;
7564 if (argc == 1) {
7565 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7566 }
7567 if (argc == 2) {
7568 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7569 }
7570 if (argc == 3) {
7571 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7572 }
7573
7574fail:
7575 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7576 return NULL;
7577}
7578
7579
7580SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7581 PyObject *resultobj = 0;
7582 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7583 void *argp1 = 0 ;
7584 int res1 = 0 ;
7585 PyObject *swig_obj[1] ;
7586
7587 if (!args) SWIG_fail;
7588 swig_obj[0] = args;
7589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7590 if (!SWIG_IsOK(res1)) {
7591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7592 }
7593 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7594 {
7595 delete arg1;
7596
7597 if (PyErr_Occurred()) SWIG_fail;
7598 }
7599 resultobj = SWIG_Py_Void();
7600 return resultobj;
7601fail:
7602 return NULL;
7603}
7604
7605
7606SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7607 PyObject *resultobj = 0;
7608 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7609 wxNativePixelData_Accessor result;
7610 void *argp1 = 0 ;
7611 int res1 = 0 ;
7612 PyObject *swig_obj[1] ;
7613
7614 if (!args) SWIG_fail;
7615 swig_obj[0] = args;
7616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7617 if (!SWIG_IsOK(res1)) {
7618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7619 }
7620 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7621 {
7622 result = ((wxNativePixelData const *)arg1)->GetPixels();
7623 if (PyErr_Occurred()) SWIG_fail;
7624 }
7625 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7626 return resultobj;
7627fail:
7628 return NULL;
7629}
7630
7631
7632SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7633 PyObject *resultobj = 0;
7634 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7635 void *argp1 = 0 ;
7636 int res1 = 0 ;
7637 PyObject *swig_obj[1] ;
7638
7639 if (!args) SWIG_fail;
7640 swig_obj[0] = args;
7641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7642 if (!SWIG_IsOK(res1)) {
7643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7644 }
7645 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7646 {
7647 (arg1)->UseAlpha();
7648 if (PyErr_Occurred()) SWIG_fail;
7649 }
7650 resultobj = SWIG_Py_Void();
7651 return resultobj;
7652fail:
7653 return NULL;
7654}
7655
7656
7657SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7658 PyObject *resultobj = 0;
7659 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7660 bool result;
7661 void *argp1 = 0 ;
7662 int res1 = 0 ;
7663 PyObject *swig_obj[1] ;
7664
7665 if (!args) SWIG_fail;
7666 swig_obj[0] = args;
7667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7668 if (!SWIG_IsOK(res1)) {
7669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7670 }
7671 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7672 {
7673 result = (bool)wxNativePixelData___nonzero__(arg1);
7674 if (PyErr_Occurred()) SWIG_fail;
7675 }
7676 {
7677 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7678 }
7679 return resultobj;
7680fail:
7681 return NULL;
7682}
7683
7684
7685SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7686 PyObject *obj;
7687 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7688 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7689 return SWIG_Py_Void();
7690}
7691
7692SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7693 return SWIG_Python_InitShadowInstance(args);
7694}
7695
7696SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7697 PyObject *resultobj = 0;
7698 wxNativePixelData *arg1 = 0 ;
7699 wxNativePixelData_Accessor *result = 0 ;
7700 void *argp1 = 0 ;
7701 int res1 = 0 ;
7702
7703 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7705 if (!SWIG_IsOK(res1)) {
7706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7707 }
7708 if (!argp1) {
7709 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7710 }
7711 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7712 {
7713 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7714 if (PyErr_Occurred()) SWIG_fail;
7715 }
7716 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7717 return resultobj;
7718fail:
7719 return NULL;
7720}
7721
7722
7723SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7724 PyObject *resultobj = 0;
7725 wxBitmap *arg1 = 0 ;
7726 wxNativePixelData *arg2 = 0 ;
7727 wxNativePixelData_Accessor *result = 0 ;
7728 void *argp1 = 0 ;
7729 int res1 = 0 ;
7730 void *argp2 = 0 ;
7731 int res2 = 0 ;
7732
7733 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7735 if (!SWIG_IsOK(res1)) {
7736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7737 }
7738 if (!argp1) {
7739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7740 }
7741 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7742 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7743 if (!SWIG_IsOK(res2)) {
7744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7745 }
7746 if (!argp2) {
7747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7748 }
7749 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7750 {
7751 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7752 if (PyErr_Occurred()) SWIG_fail;
7753 }
7754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7755 return resultobj;
7756fail:
7757 return NULL;
7758}
7759
7760
7761SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7762 PyObject *resultobj = 0;
7763 wxNativePixelData_Accessor *result = 0 ;
7764
7765 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7766 {
7767 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7768 if (PyErr_Occurred()) SWIG_fail;
7769 }
7770 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7771 return resultobj;
7772fail:
7773 return NULL;
7774}
7775
7776
7777SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7778 int argc;
7779 PyObject *argv[3];
7780
7781 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7782 --argc;
7783 if (argc == 0) {
7784 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7785 }
7786 if (argc == 1) {
7787 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7788 }
7789 if (argc == 2) {
7790 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7791 }
7792
7793fail:
7794 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7795 return NULL;
7796}
7797
7798
7799SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7800 PyObject *resultobj = 0;
7801 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7802 void *argp1 = 0 ;
7803 int res1 = 0 ;
7804 PyObject *swig_obj[1] ;
7805
7806 if (!args) SWIG_fail;
7807 swig_obj[0] = args;
7808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7809 if (!SWIG_IsOK(res1)) {
7810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7811 }
7812 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7813 {
7814 delete arg1;
7815
7816 if (PyErr_Occurred()) SWIG_fail;
7817 }
7818 resultobj = SWIG_Py_Void();
7819 return resultobj;
7820fail:
7821 return NULL;
7822}
7823
7824
7825SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7826 PyObject *resultobj = 0;
7827 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7828 wxNativePixelData *arg2 = 0 ;
7829 void *argp1 = 0 ;
7830 int res1 = 0 ;
7831 void *argp2 = 0 ;
7832 int res2 = 0 ;
7833 PyObject * obj0 = 0 ;
7834 PyObject * obj1 = 0 ;
7835 char * kwnames[] = {
7836 (char *) "self",(char *) "data", NULL
7837 };
7838
7839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7841 if (!SWIG_IsOK(res1)) {
7842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7843 }
7844 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7845 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7846 if (!SWIG_IsOK(res2)) {
7847 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7848 }
7849 if (!argp2) {
7850 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7851 }
7852 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7853 {
7854 (arg1)->Reset((wxNativePixelData const &)*arg2);
7855 if (PyErr_Occurred()) SWIG_fail;
7856 }
7857 resultobj = SWIG_Py_Void();
7858 return resultobj;
7859fail:
7860 return NULL;
7861}
7862
7863
7864SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7865 PyObject *resultobj = 0;
7866 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7867 bool result;
7868 void *argp1 = 0 ;
7869 int res1 = 0 ;
7870 PyObject *swig_obj[1] ;
7871
7872 if (!args) SWIG_fail;
7873 swig_obj[0] = args;
7874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7875 if (!SWIG_IsOK(res1)) {
7876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7877 }
7878 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7879 {
7880 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7881 if (PyErr_Occurred()) SWIG_fail;
7882 }
7883 {
7884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7885 }
7886 return resultobj;
7887fail:
7888 return NULL;
7889}
7890
7891
7892SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7893 PyObject *resultobj = 0;
7894 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7895 void *argp1 = 0 ;
7896 int res1 = 0 ;
7897 PyObject *swig_obj[1] ;
7898
7899 if (!args) SWIG_fail;
7900 swig_obj[0] = args;
7901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7902 if (!SWIG_IsOK(res1)) {
7903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7904 }
7905 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7906 {
7907 wxNativePixelData_Accessor_nextPixel(arg1);
7908 if (PyErr_Occurred()) SWIG_fail;
7909 }
7910 resultobj = SWIG_Py_Void();
7911 return resultobj;
7912fail:
7913 return NULL;
7914}
7915
7916
7917SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7918 PyObject *resultobj = 0;
7919 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7920 wxNativePixelData *arg2 = 0 ;
7921 int arg3 ;
7922 int arg4 ;
7923 void *argp1 = 0 ;
7924 int res1 = 0 ;
7925 void *argp2 = 0 ;
7926 int res2 = 0 ;
7927 int val3 ;
7928 int ecode3 = 0 ;
7929 int val4 ;
7930 int ecode4 = 0 ;
7931 PyObject * obj0 = 0 ;
7932 PyObject * obj1 = 0 ;
7933 PyObject * obj2 = 0 ;
7934 PyObject * obj3 = 0 ;
7935 char * kwnames[] = {
7936 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7937 };
7938
7939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7941 if (!SWIG_IsOK(res1)) {
7942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7943 }
7944 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7945 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7946 if (!SWIG_IsOK(res2)) {
7947 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7948 }
7949 if (!argp2) {
7950 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7951 }
7952 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7953 ecode3 = SWIG_AsVal_int(obj2, &val3);
7954 if (!SWIG_IsOK(ecode3)) {
7955 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7956 }
7957 arg3 = static_cast< int >(val3);
7958 ecode4 = SWIG_AsVal_int(obj3, &val4);
7959 if (!SWIG_IsOK(ecode4)) {
7960 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7961 }
7962 arg4 = static_cast< int >(val4);
7963 {
7964 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7965 if (PyErr_Occurred()) SWIG_fail;
7966 }
7967 resultobj = SWIG_Py_Void();
7968 return resultobj;
7969fail:
7970 return NULL;
7971}
7972
7973
7974SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7975 PyObject *resultobj = 0;
7976 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7977 wxNativePixelData *arg2 = 0 ;
7978 int arg3 ;
7979 void *argp1 = 0 ;
7980 int res1 = 0 ;
7981 void *argp2 = 0 ;
7982 int res2 = 0 ;
7983 int val3 ;
7984 int ecode3 = 0 ;
7985 PyObject * obj0 = 0 ;
7986 PyObject * obj1 = 0 ;
7987 PyObject * obj2 = 0 ;
7988 char * kwnames[] = {
7989 (char *) "self",(char *) "data",(char *) "x", NULL
7990 };
7991
7992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7994 if (!SWIG_IsOK(res1)) {
7995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7996 }
7997 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7998 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7999 if (!SWIG_IsOK(res2)) {
8000 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8001 }
8002 if (!argp2) {
8003 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8004 }
8005 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8006 ecode3 = SWIG_AsVal_int(obj2, &val3);
8007 if (!SWIG_IsOK(ecode3)) {
8008 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8009 }
8010 arg3 = static_cast< int >(val3);
8011 {
8012 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
8013 if (PyErr_Occurred()) SWIG_fail;
8014 }
8015 resultobj = SWIG_Py_Void();
8016 return resultobj;
8017fail:
8018 return NULL;
8019}
8020
8021
8022SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8023 PyObject *resultobj = 0;
8024 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8025 wxNativePixelData *arg2 = 0 ;
8026 int arg3 ;
8027 void *argp1 = 0 ;
8028 int res1 = 0 ;
8029 void *argp2 = 0 ;
8030 int res2 = 0 ;
8031 int val3 ;
8032 int ecode3 = 0 ;
8033 PyObject * obj0 = 0 ;
8034 PyObject * obj1 = 0 ;
8035 PyObject * obj2 = 0 ;
8036 char * kwnames[] = {
8037 (char *) "self",(char *) "data",(char *) "y", NULL
8038 };
8039
8040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8042 if (!SWIG_IsOK(res1)) {
8043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8044 }
8045 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8046 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8047 if (!SWIG_IsOK(res2)) {
8048 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8049 }
8050 if (!argp2) {
8051 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8052 }
8053 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8054 ecode3 = SWIG_AsVal_int(obj2, &val3);
8055 if (!SWIG_IsOK(ecode3)) {
8056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8057 }
8058 arg3 = static_cast< int >(val3);
8059 {
8060 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8061 if (PyErr_Occurred()) SWIG_fail;
8062 }
8063 resultobj = SWIG_Py_Void();
8064 return resultobj;
8065fail:
8066 return NULL;
8067}
8068
8069
8070SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8071 PyObject *resultobj = 0;
8072 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8073 wxNativePixelData *arg2 = 0 ;
8074 int arg3 ;
8075 int arg4 ;
8076 void *argp1 = 0 ;
8077 int res1 = 0 ;
8078 void *argp2 = 0 ;
8079 int res2 = 0 ;
8080 int val3 ;
8081 int ecode3 = 0 ;
8082 int val4 ;
8083 int ecode4 = 0 ;
8084 PyObject * obj0 = 0 ;
8085 PyObject * obj1 = 0 ;
8086 PyObject * obj2 = 0 ;
8087 PyObject * obj3 = 0 ;
8088 char * kwnames[] = {
8089 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8090 };
8091
8092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8094 if (!SWIG_IsOK(res1)) {
8095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8096 }
8097 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8098 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8099 if (!SWIG_IsOK(res2)) {
8100 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8101 }
8102 if (!argp2) {
8103 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8104 }
8105 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8106 ecode3 = SWIG_AsVal_int(obj2, &val3);
8107 if (!SWIG_IsOK(ecode3)) {
8108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8109 }
8110 arg3 = static_cast< int >(val3);
8111 ecode4 = SWIG_AsVal_int(obj3, &val4);
8112 if (!SWIG_IsOK(ecode4)) {
8113 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8114 }
8115 arg4 = static_cast< int >(val4);
8116 {
8117 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8118 if (PyErr_Occurred()) SWIG_fail;
8119 }
8120 resultobj = SWIG_Py_Void();
8121 return resultobj;
8122fail:
8123 return NULL;
8124}
8125
8126
8127SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8128 PyObject *resultobj = 0;
8129 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8130 byte arg2 ;
8131 byte arg3 ;
8132 byte arg4 ;
8133 void *argp1 = 0 ;
8134 int res1 = 0 ;
8135 unsigned char val2 ;
8136 int ecode2 = 0 ;
8137 unsigned char val3 ;
8138 int ecode3 = 0 ;
8139 unsigned char val4 ;
8140 int ecode4 = 0 ;
8141 PyObject * obj0 = 0 ;
8142 PyObject * obj1 = 0 ;
8143 PyObject * obj2 = 0 ;
8144 PyObject * obj3 = 0 ;
8145 char * kwnames[] = {
8146 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8147 };
8148
8149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8151 if (!SWIG_IsOK(res1)) {
8152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8153 }
8154 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8155 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8156 if (!SWIG_IsOK(ecode2)) {
8157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8158 }
8159 arg2 = static_cast< byte >(val2);
8160 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8161 if (!SWIG_IsOK(ecode3)) {
8162 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8163 }
8164 arg3 = static_cast< byte >(val3);
8165 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8166 if (!SWIG_IsOK(ecode4)) {
8167 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8168 }
8169 arg4 = static_cast< byte >(val4);
8170 {
8171 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8172 if (PyErr_Occurred()) SWIG_fail;
8173 }
8174 resultobj = SWIG_Py_Void();
8175 return resultobj;
8176fail:
8177 return NULL;
8178}
8179
8180
8181SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8182 PyObject *resultobj = 0;
8183 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8184 PyObject *result = 0 ;
8185 void *argp1 = 0 ;
8186 int res1 = 0 ;
8187 PyObject *swig_obj[1] ;
8188
8189 if (!args) SWIG_fail;
8190 swig_obj[0] = args;
8191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8192 if (!SWIG_IsOK(res1)) {
8193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8194 }
8195 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8196 {
8197 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8198 if (PyErr_Occurred()) SWIG_fail;
8199 }
8200 resultobj = result;
8201 return resultobj;
8202fail:
8203 return NULL;
8204}
8205
8206
8207SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8208 PyObject *obj;
8209 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8210 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8211 return SWIG_Py_Void();
8212}
8213
8214SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8215 return SWIG_Python_InitShadowInstance(args);
8216}
8217
8218SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8219 PyObject *resultobj = 0;
8220 wxBitmap *arg1 = 0 ;
8221 wxAlphaPixelData *result = 0 ;
8222 void *argp1 = 0 ;
8223 int res1 = 0 ;
8224
8225 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8227 if (!SWIG_IsOK(res1)) {
8228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8229 }
8230 if (!argp1) {
8231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8232 }
8233 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8234 {
8235 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8236 if (PyErr_Occurred()) SWIG_fail;
8237 }
8238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8239 return resultobj;
8240fail:
8241 return NULL;
8242}
8243
8244
8245SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8246 PyObject *resultobj = 0;
8247 wxBitmap *arg1 = 0 ;
8248 wxRect *arg2 = 0 ;
8249 wxAlphaPixelData *result = 0 ;
8250 void *argp1 = 0 ;
8251 int res1 = 0 ;
8252 wxRect temp2 ;
8253
8254 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8256 if (!SWIG_IsOK(res1)) {
8257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8258 }
8259 if (!argp1) {
8260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8261 }
8262 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8263 {
8264 arg2 = &temp2;
8265 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8266 }
8267 {
8268 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8269 if (PyErr_Occurred()) SWIG_fail;
8270 }
8271 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8272 return resultobj;
8273fail:
8274 return NULL;
8275}
8276
8277
8278SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8279 PyObject *resultobj = 0;
8280 wxBitmap *arg1 = 0 ;
8281 wxPoint *arg2 = 0 ;
8282 wxSize *arg3 = 0 ;
8283 wxAlphaPixelData *result = 0 ;
8284 void *argp1 = 0 ;
8285 int res1 = 0 ;
8286 wxPoint temp2 ;
8287 wxSize temp3 ;
8288
8289 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8291 if (!SWIG_IsOK(res1)) {
8292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8293 }
8294 if (!argp1) {
8295 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8296 }
8297 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8298 {
8299 arg2 = &temp2;
8300 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8301 }
8302 {
8303 arg3 = &temp3;
8304 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8305 }
8306 {
8307 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8308 if (PyErr_Occurred()) SWIG_fail;
8309 }
8310 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8311 return resultobj;
8312fail:
8313 return NULL;
8314}
8315
8316
8317SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8318 int argc;
8319 PyObject *argv[4];
8320
8321 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8322 --argc;
8323 if (argc == 1) {
8324 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8325 }
8326 if (argc == 2) {
8327 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8328 }
8329 if (argc == 3) {
8330 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8331 }
8332
8333fail:
8334 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8335 return NULL;
8336}
8337
8338
8339SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8340 PyObject *resultobj = 0;
8341 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8342 void *argp1 = 0 ;
8343 int res1 = 0 ;
8344 PyObject *swig_obj[1] ;
8345
8346 if (!args) SWIG_fail;
8347 swig_obj[0] = args;
8348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8349 if (!SWIG_IsOK(res1)) {
8350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8351 }
8352 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8353 {
8354 delete arg1;
8355
8356 if (PyErr_Occurred()) SWIG_fail;
8357 }
8358 resultobj = SWIG_Py_Void();
8359 return resultobj;
8360fail:
8361 return NULL;
8362}
8363
8364
8365SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8366 PyObject *resultobj = 0;
8367 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8368 wxAlphaPixelData_Accessor result;
8369 void *argp1 = 0 ;
8370 int res1 = 0 ;
8371 PyObject *swig_obj[1] ;
8372
8373 if (!args) SWIG_fail;
8374 swig_obj[0] = args;
8375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8376 if (!SWIG_IsOK(res1)) {
8377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8378 }
8379 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8380 {
8381 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8382 if (PyErr_Occurred()) SWIG_fail;
8383 }
8384 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8385 return resultobj;
8386fail:
8387 return NULL;
8388}
8389
8390
8391SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8392 PyObject *resultobj = 0;
8393 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8394 void *argp1 = 0 ;
8395 int res1 = 0 ;
8396 PyObject *swig_obj[1] ;
8397
8398 if (!args) SWIG_fail;
8399 swig_obj[0] = args;
8400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8401 if (!SWIG_IsOK(res1)) {
8402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8403 }
8404 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8405 {
8406 (arg1)->UseAlpha();
8407 if (PyErr_Occurred()) SWIG_fail;
8408 }
8409 resultobj = SWIG_Py_Void();
8410 return resultobj;
8411fail:
8412 return NULL;
8413}
8414
8415
8416SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8417 PyObject *resultobj = 0;
8418 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8419 bool result;
8420 void *argp1 = 0 ;
8421 int res1 = 0 ;
8422 PyObject *swig_obj[1] ;
8423
8424 if (!args) SWIG_fail;
8425 swig_obj[0] = args;
8426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8427 if (!SWIG_IsOK(res1)) {
8428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8429 }
8430 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8431 {
8432 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8433 if (PyErr_Occurred()) SWIG_fail;
8434 }
8435 {
8436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8437 }
8438 return resultobj;
8439fail:
8440 return NULL;
8441}
8442
8443
8444SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8445 PyObject *obj;
8446 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8447 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8448 return SWIG_Py_Void();
8449}
8450
8451SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8452 return SWIG_Python_InitShadowInstance(args);
8453}
8454
8455SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8456 PyObject *resultobj = 0;
8457 wxAlphaPixelData *arg1 = 0 ;
8458 wxAlphaPixelData_Accessor *result = 0 ;
8459 void *argp1 = 0 ;
8460 int res1 = 0 ;
8461
8462 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8464 if (!SWIG_IsOK(res1)) {
8465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8466 }
8467 if (!argp1) {
8468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8469 }
8470 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8471 {
8472 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8473 if (PyErr_Occurred()) SWIG_fail;
8474 }
8475 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8476 return resultobj;
8477fail:
8478 return NULL;
8479}
8480
8481
8482SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8483 PyObject *resultobj = 0;
8484 wxBitmap *arg1 = 0 ;
8485 wxAlphaPixelData *arg2 = 0 ;
8486 wxAlphaPixelData_Accessor *result = 0 ;
8487 void *argp1 = 0 ;
8488 int res1 = 0 ;
8489 void *argp2 = 0 ;
8490 int res2 = 0 ;
8491
8492 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8494 if (!SWIG_IsOK(res1)) {
8495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8496 }
8497 if (!argp1) {
8498 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8499 }
8500 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8501 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8502 if (!SWIG_IsOK(res2)) {
8503 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8504 }
8505 if (!argp2) {
8506 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8507 }
8508 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8509 {
8510 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8511 if (PyErr_Occurred()) SWIG_fail;
8512 }
8513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8514 return resultobj;
8515fail:
8516 return NULL;
8517}
8518
8519
8520SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8521 PyObject *resultobj = 0;
8522 wxAlphaPixelData_Accessor *result = 0 ;
8523
8524 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8525 {
8526 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8527 if (PyErr_Occurred()) SWIG_fail;
8528 }
8529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8530 return resultobj;
8531fail:
8532 return NULL;
8533}
8534
8535
8536SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8537 int argc;
8538 PyObject *argv[3];
8539
8540 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8541 --argc;
8542 if (argc == 0) {
8543 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8544 }
8545 if (argc == 1) {
8546 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8547 }
8548 if (argc == 2) {
8549 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8550 }
8551
8552fail:
8553 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8554 return NULL;
8555}
8556
8557
8558SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8559 PyObject *resultobj = 0;
8560 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8561 void *argp1 = 0 ;
8562 int res1 = 0 ;
8563 PyObject *swig_obj[1] ;
8564
8565 if (!args) SWIG_fail;
8566 swig_obj[0] = args;
8567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8568 if (!SWIG_IsOK(res1)) {
8569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8570 }
8571 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8572 {
8573 delete arg1;
8574
8575 if (PyErr_Occurred()) SWIG_fail;
8576 }
8577 resultobj = SWIG_Py_Void();
8578 return resultobj;
8579fail:
8580 return NULL;
8581}
8582
8583
8584SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8585 PyObject *resultobj = 0;
8586 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8587 wxAlphaPixelData *arg2 = 0 ;
8588 void *argp1 = 0 ;
8589 int res1 = 0 ;
8590 void *argp2 = 0 ;
8591 int res2 = 0 ;
8592 PyObject * obj0 = 0 ;
8593 PyObject * obj1 = 0 ;
8594 char * kwnames[] = {
8595 (char *) "self",(char *) "data", NULL
8596 };
8597
8598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8600 if (!SWIG_IsOK(res1)) {
8601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8602 }
8603 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8604 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8605 if (!SWIG_IsOK(res2)) {
8606 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8607 }
8608 if (!argp2) {
8609 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8610 }
8611 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8612 {
8613 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8614 if (PyErr_Occurred()) SWIG_fail;
8615 }
8616 resultobj = SWIG_Py_Void();
8617 return resultobj;
8618fail:
8619 return NULL;
8620}
8621
8622
8623SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8624 PyObject *resultobj = 0;
8625 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8626 bool result;
8627 void *argp1 = 0 ;
8628 int res1 = 0 ;
8629 PyObject *swig_obj[1] ;
8630
8631 if (!args) SWIG_fail;
8632 swig_obj[0] = args;
8633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8634 if (!SWIG_IsOK(res1)) {
8635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8636 }
8637 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8638 {
8639 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8640 if (PyErr_Occurred()) SWIG_fail;
8641 }
8642 {
8643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8644 }
8645 return resultobj;
8646fail:
8647 return NULL;
8648}
8649
8650
8651SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8652 PyObject *resultobj = 0;
8653 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8654 void *argp1 = 0 ;
8655 int res1 = 0 ;
8656 PyObject *swig_obj[1] ;
8657
8658 if (!args) SWIG_fail;
8659 swig_obj[0] = args;
8660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8661 if (!SWIG_IsOK(res1)) {
8662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8663 }
8664 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8665 {
8666 wxAlphaPixelData_Accessor_nextPixel(arg1);
8667 if (PyErr_Occurred()) SWIG_fail;
8668 }
8669 resultobj = SWIG_Py_Void();
8670 return resultobj;
8671fail:
8672 return NULL;
8673}
8674
8675
8676SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8677 PyObject *resultobj = 0;
8678 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8679 wxAlphaPixelData *arg2 = 0 ;
8680 int arg3 ;
8681 int arg4 ;
8682 void *argp1 = 0 ;
8683 int res1 = 0 ;
8684 void *argp2 = 0 ;
8685 int res2 = 0 ;
8686 int val3 ;
8687 int ecode3 = 0 ;
8688 int val4 ;
8689 int ecode4 = 0 ;
8690 PyObject * obj0 = 0 ;
8691 PyObject * obj1 = 0 ;
8692 PyObject * obj2 = 0 ;
8693 PyObject * obj3 = 0 ;
8694 char * kwnames[] = {
8695 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8696 };
8697
8698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8700 if (!SWIG_IsOK(res1)) {
8701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8702 }
8703 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8704 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8705 if (!SWIG_IsOK(res2)) {
8706 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8707 }
8708 if (!argp2) {
8709 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8710 }
8711 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8712 ecode3 = SWIG_AsVal_int(obj2, &val3);
8713 if (!SWIG_IsOK(ecode3)) {
8714 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8715 }
8716 arg3 = static_cast< int >(val3);
8717 ecode4 = SWIG_AsVal_int(obj3, &val4);
8718 if (!SWIG_IsOK(ecode4)) {
8719 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8720 }
8721 arg4 = static_cast< int >(val4);
8722 {
8723 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8724 if (PyErr_Occurred()) SWIG_fail;
8725 }
8726 resultobj = SWIG_Py_Void();
8727 return resultobj;
8728fail:
8729 return NULL;
8730}
8731
8732
8733SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8734 PyObject *resultobj = 0;
8735 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8736 wxAlphaPixelData *arg2 = 0 ;
8737 int arg3 ;
8738 void *argp1 = 0 ;
8739 int res1 = 0 ;
8740 void *argp2 = 0 ;
8741 int res2 = 0 ;
8742 int val3 ;
8743 int ecode3 = 0 ;
8744 PyObject * obj0 = 0 ;
8745 PyObject * obj1 = 0 ;
8746 PyObject * obj2 = 0 ;
8747 char * kwnames[] = {
8748 (char *) "self",(char *) "data",(char *) "x", NULL
8749 };
8750
8751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8753 if (!SWIG_IsOK(res1)) {
8754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8755 }
8756 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8757 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8758 if (!SWIG_IsOK(res2)) {
8759 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8760 }
8761 if (!argp2) {
8762 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8763 }
8764 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8765 ecode3 = SWIG_AsVal_int(obj2, &val3);
8766 if (!SWIG_IsOK(ecode3)) {
8767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8768 }
8769 arg3 = static_cast< int >(val3);
8770 {
8771 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8772 if (PyErr_Occurred()) SWIG_fail;
8773 }
8774 resultobj = SWIG_Py_Void();
8775 return resultobj;
8776fail:
8777 return NULL;
8778}
8779
8780
8781SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8782 PyObject *resultobj = 0;
8783 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8784 wxAlphaPixelData *arg2 = 0 ;
8785 int arg3 ;
8786 void *argp1 = 0 ;
8787 int res1 = 0 ;
8788 void *argp2 = 0 ;
8789 int res2 = 0 ;
8790 int val3 ;
8791 int ecode3 = 0 ;
8792 PyObject * obj0 = 0 ;
8793 PyObject * obj1 = 0 ;
8794 PyObject * obj2 = 0 ;
8795 char * kwnames[] = {
8796 (char *) "self",(char *) "data",(char *) "y", NULL
8797 };
8798
8799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8801 if (!SWIG_IsOK(res1)) {
8802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8803 }
8804 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8805 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8806 if (!SWIG_IsOK(res2)) {
8807 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8808 }
8809 if (!argp2) {
8810 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8811 }
8812 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8813 ecode3 = SWIG_AsVal_int(obj2, &val3);
8814 if (!SWIG_IsOK(ecode3)) {
8815 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8816 }
8817 arg3 = static_cast< int >(val3);
8818 {
8819 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8820 if (PyErr_Occurred()) SWIG_fail;
8821 }
8822 resultobj = SWIG_Py_Void();
8823 return resultobj;
8824fail:
8825 return NULL;
8826}
8827
8828
8829SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8830 PyObject *resultobj = 0;
8831 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8832 wxAlphaPixelData *arg2 = 0 ;
8833 int arg3 ;
8834 int arg4 ;
8835 void *argp1 = 0 ;
8836 int res1 = 0 ;
8837 void *argp2 = 0 ;
8838 int res2 = 0 ;
8839 int val3 ;
8840 int ecode3 = 0 ;
8841 int val4 ;
8842 int ecode4 = 0 ;
8843 PyObject * obj0 = 0 ;
8844 PyObject * obj1 = 0 ;
8845 PyObject * obj2 = 0 ;
8846 PyObject * obj3 = 0 ;
8847 char * kwnames[] = {
8848 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8849 };
8850
8851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8853 if (!SWIG_IsOK(res1)) {
8854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8855 }
8856 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8857 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8858 if (!SWIG_IsOK(res2)) {
8859 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8860 }
8861 if (!argp2) {
8862 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8863 }
8864 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8865 ecode3 = SWIG_AsVal_int(obj2, &val3);
8866 if (!SWIG_IsOK(ecode3)) {
8867 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8868 }
8869 arg3 = static_cast< int >(val3);
8870 ecode4 = SWIG_AsVal_int(obj3, &val4);
8871 if (!SWIG_IsOK(ecode4)) {
8872 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8873 }
8874 arg4 = static_cast< int >(val4);
8875 {
8876 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8877 if (PyErr_Occurred()) SWIG_fail;
8878 }
8879 resultobj = SWIG_Py_Void();
8880 return resultobj;
8881fail:
8882 return NULL;
8883}
8884
8885
8886SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8887 PyObject *resultobj = 0;
8888 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8889 byte arg2 ;
8890 byte arg3 ;
8891 byte arg4 ;
8892 byte arg5 ;
8893 void *argp1 = 0 ;
8894 int res1 = 0 ;
8895 unsigned char val2 ;
8896 int ecode2 = 0 ;
8897 unsigned char val3 ;
8898 int ecode3 = 0 ;
8899 unsigned char val4 ;
8900 int ecode4 = 0 ;
8901 unsigned char val5 ;
8902 int ecode5 = 0 ;
8903 PyObject * obj0 = 0 ;
8904 PyObject * obj1 = 0 ;
8905 PyObject * obj2 = 0 ;
8906 PyObject * obj3 = 0 ;
8907 PyObject * obj4 = 0 ;
8908 char * kwnames[] = {
8909 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8910 };
8911
8912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8914 if (!SWIG_IsOK(res1)) {
8915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8916 }
8917 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8918 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8919 if (!SWIG_IsOK(ecode2)) {
8920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8921 }
8922 arg2 = static_cast< byte >(val2);
8923 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8924 if (!SWIG_IsOK(ecode3)) {
8925 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8926 }
8927 arg3 = static_cast< byte >(val3);
8928 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8929 if (!SWIG_IsOK(ecode4)) {
8930 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8931 }
8932 arg4 = static_cast< byte >(val4);
8933 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8934 if (!SWIG_IsOK(ecode5)) {
8935 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8936 }
8937 arg5 = static_cast< byte >(val5);
8938 {
8939 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8940 if (PyErr_Occurred()) SWIG_fail;
554f62e9 8941 }
fc46b7f3 8942 resultobj = SWIG_Py_Void();
554f62e9
RD
8943 return resultobj;
8944fail:
8945 return NULL;
8946}
8947
8948
fc46b7f3 8949SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 8950 PyObject *resultobj = 0;
fc46b7f3
RD
8951 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8952 PyObject *result = 0 ;
554f62e9
RD
8953 void *argp1 = 0 ;
8954 int res1 = 0 ;
fc46b7f3 8955 PyObject *swig_obj[1] ;
554f62e9 8956
fc46b7f3
RD
8957 if (!args) SWIG_fail;
8958 swig_obj[0] = args;
8959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
554f62e9 8960 if (!SWIG_IsOK(res1)) {
fc46b7f3 8961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
554f62e9 8962 }
fc46b7f3 8963 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
554f62e9 8964 {
fc46b7f3 8965 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
554f62e9
RD
8966 if (PyErr_Occurred()) SWIG_fail;
8967 }
fc46b7f3 8968 resultobj = result;
554f62e9
RD
8969 return resultobj;
8970fail:
8971 return NULL;
d55e5bfc
RD
8972}
8973
8974
fc46b7f3 8975SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
8976 PyObject *obj;
8977 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8978 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
554f62e9 8979 return SWIG_Py_Void();
d55e5bfc
RD
8980}
8981
fc46b7f3 8982SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 8983 return SWIG_Python_InitShadowInstance(args);
093d3ff1
RD
8984}
8985
554f62e9
RD
8986SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8987 PyObject *resultobj = 0;
8988 wxBitmap *arg1 = 0 ;
8989 wxColour const &arg2_defvalue = wxNullColour ;
8990 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8991 wxMask *result = 0 ;
8992 void *argp1 = 0 ;
8993 int res1 = 0 ;
8994 wxColour temp2 ;
8995 PyObject * obj0 = 0 ;
8996 PyObject * obj1 = 0 ;
8997 char * kwnames[] = {
8998 (char *) "bitmap",(char *) "colour", NULL
8999 };
9000
9001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
9002 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9003 if (!SWIG_IsOK(res1)) {
9004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9005 }
9006 if (!argp1) {
9007 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9008 }
9009 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9010 if (obj1) {
d55e5bfc 9011 {
554f62e9
RD
9012 arg2 = &temp2;
9013 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 9014 }
554f62e9
RD
9015 }
9016 {
9017 if (!wxPyCheckForApp()) SWIG_fail;
9018 PyThreadState* __tstate = wxPyBeginAllowThreads();
9019 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
9020 wxPyEndAllowThreads(__tstate);
9021 if (PyErr_Occurred()) SWIG_fail;
9022 }
9023 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9024 return resultobj;
9025fail:
9026 return NULL;
d55e5bfc
RD
9027}
9028
9029
554f62e9
RD
9030SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9031 PyObject *resultobj = 0;
9032 wxMask *arg1 = (wxMask *) 0 ;
9033 void *argp1 = 0 ;
9034 int res1 = 0 ;
9035 PyObject *swig_obj[1] ;
9036
9037 if (!args) SWIG_fail;
9038 swig_obj[0] = args;
9039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9040 if (!SWIG_IsOK(res1)) {
9041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9042 }
9043 arg1 = reinterpret_cast< wxMask * >(argp1);
9044 {
554f62e9 9045 delete arg1;
d55e5bfc 9046
554f62e9
RD
9047 if (PyErr_Occurred()) SWIG_fail;
9048 }
9049 resultobj = SWIG_Py_Void();
9050 return resultobj;
9051fail:
9052 return NULL;
9053}
9054
9055
9056SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9057 PyObject *obj;
9058 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9059 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9060 return SWIG_Py_Void();
9061}
9062
9063SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9064 return SWIG_Python_InitShadowInstance(args);
9065}
9066
9067SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9068 PyObject *resultobj = 0;
9069 wxString *arg1 = 0 ;
9070 wxBitmapType arg2 ;
9071 int arg3 = (int) -1 ;
9072 int arg4 = (int) -1 ;
9073 wxIcon *result = 0 ;
9074 bool temp1 = false ;
9075 int val2 ;
9076 int ecode2 = 0 ;
9077 int val3 ;
9078 int ecode3 = 0 ;
9079 int val4 ;
9080 int ecode4 = 0 ;
9081 PyObject * obj0 = 0 ;
9082 PyObject * obj1 = 0 ;
9083 PyObject * obj2 = 0 ;
9084 PyObject * obj3 = 0 ;
9085 char * kwnames[] = {
9086 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9087 };
9088
9089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9090 {
9091 arg1 = wxString_in_helper(obj0);
9092 if (arg1 == NULL) SWIG_fail;
9093 temp1 = true;
9094 }
9095 ecode2 = SWIG_AsVal_int(obj1, &val2);
9096 if (!SWIG_IsOK(ecode2)) {
9097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9098 }
9099 arg2 = static_cast< wxBitmapType >(val2);
9100 if (obj2) {
9101 ecode3 = SWIG_AsVal_int(obj2, &val3);
9102 if (!SWIG_IsOK(ecode3)) {
9103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9104 }
9105 arg3 = static_cast< int >(val3);
9106 }
9107 if (obj3) {
9108 ecode4 = SWIG_AsVal_int(obj3, &val4);
9109 if (!SWIG_IsOK(ecode4)) {
9110 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9111 }
9112 arg4 = static_cast< int >(val4);
9113 }
9114 {
9115 if (!wxPyCheckForApp()) SWIG_fail;
9116 PyThreadState* __tstate = wxPyBeginAllowThreads();
9117 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9118 wxPyEndAllowThreads(__tstate);
9119 if (PyErr_Occurred()) SWIG_fail;
9120 }
9121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9122 {
9123 if (temp1)
9124 delete arg1;
9125 }
9126 return resultobj;
9127fail:
9128 {
9129 if (temp1)
9130 delete arg1;
9131 }
9132 return NULL;
d55e5bfc
RD
9133}
9134
9135
554f62e9
RD
9136SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9137 PyObject *resultobj = 0;
9138 wxIcon *arg1 = (wxIcon *) 0 ;
9139 void *argp1 = 0 ;
9140 int res1 = 0 ;
9141 PyObject *swig_obj[1] ;
9142
9143 if (!args) SWIG_fail;
9144 swig_obj[0] = args;
9145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9146 if (!SWIG_IsOK(res1)) {
9147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9148 }
9149 arg1 = reinterpret_cast< wxIcon * >(argp1);
9150 {
9151 PyThreadState* __tstate = wxPyBeginAllowThreads();
9152 delete arg1;
d55e5bfc 9153
554f62e9
RD
9154 wxPyEndAllowThreads(__tstate);
9155 if (PyErr_Occurred()) SWIG_fail;
9156 }
9157 resultobj = SWIG_Py_Void();
9158 return resultobj;
9159fail:
9160 return NULL;
d55e5bfc
RD
9161}
9162
9163
554f62e9
RD
9164SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9165 PyObject *resultobj = 0;
9166 wxIcon *result = 0 ;
9167
9168 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9169 {
9170 if (!wxPyCheckForApp()) SWIG_fail;
9171 PyThreadState* __tstate = wxPyBeginAllowThreads();
9172 result = (wxIcon *)new wxIcon();
9173 wxPyEndAllowThreads(__tstate);
9174 if (PyErr_Occurred()) SWIG_fail;
9175 }
9176 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9177 return resultobj;
9178fail:
9179 return NULL;
9180}
9181
9182
9183SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9184 PyObject *resultobj = 0;
9185 wxIconLocation *arg1 = 0 ;
9186 wxIcon *result = 0 ;
9187 void *argp1 = 0 ;
9188 int res1 = 0 ;
9189 PyObject * obj0 = 0 ;
9190 char * kwnames[] = {
9191 (char *) "loc", NULL
9192 };
9193
9194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9195 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9196 if (!SWIG_IsOK(res1)) {
9197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9198 }
9199 if (!argp1) {
9200 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9201 }
9202 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9203 {
9204 if (!wxPyCheckForApp()) SWIG_fail;
9205 PyThreadState* __tstate = wxPyBeginAllowThreads();
9206 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9207 wxPyEndAllowThreads(__tstate);
9208 if (PyErr_Occurred()) SWIG_fail;
9209 }
9210 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9211 return resultobj;
9212fail:
9213 return NULL;
9214}
9215
9216
9217SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9218 PyObject *resultobj = 0;
9219 wxBitmap *arg1 = 0 ;
9220 wxIcon *result = 0 ;
9221 void *argp1 = 0 ;
9222 int res1 = 0 ;
9223 PyObject * obj0 = 0 ;
9224 char * kwnames[] = {
9225 (char *) "bmp", NULL
9226 };
9227
9228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9229 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9230 if (!SWIG_IsOK(res1)) {
9231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9232 }
9233 if (!argp1) {
9234 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9235 }
9236 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9237 {
9238 if (!wxPyCheckForApp()) SWIG_fail;
9239 PyThreadState* __tstate = wxPyBeginAllowThreads();
9240 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9241 wxPyEndAllowThreads(__tstate);
9242 if (PyErr_Occurred()) SWIG_fail;
9243 }
9244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9245 return resultobj;
9246fail:
9247 return NULL;
d55e5bfc
RD
9248}
9249
9250
554f62e9
RD
9251SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9252 PyObject *resultobj = 0;
9253 PyObject *arg1 = (PyObject *) 0 ;
9254 wxIcon *result = 0 ;
9255 PyObject * obj0 = 0 ;
9256 char * kwnames[] = {
9257 (char *) "listOfStrings", NULL
9258 };
9259
9260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9261 arg1 = obj0;
9262 {
9263 if (!wxPyCheckForApp()) SWIG_fail;
9264 PyThreadState* __tstate = wxPyBeginAllowThreads();
9265 result = (wxIcon *)new_wxIcon(arg1);
9266 wxPyEndAllowThreads(__tstate);
9267 if (PyErr_Occurred()) SWIG_fail;
9268 }
9269 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9270 return resultobj;
9271fail:
9272 return NULL;
9273}
9274
9275
9276SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9277 PyObject *resultobj = 0;
9278 wxIcon *arg1 = (wxIcon *) 0 ;
9279 wxString *arg2 = 0 ;
9280 wxBitmapType arg3 ;
9281 bool result;
9282 void *argp1 = 0 ;
9283 int res1 = 0 ;
9284 bool temp2 = false ;
9285 int val3 ;
9286 int ecode3 = 0 ;
9287 PyObject * obj0 = 0 ;
9288 PyObject * obj1 = 0 ;
9289 PyObject * obj2 = 0 ;
9290 char * kwnames[] = {
9291 (char *) "self",(char *) "name",(char *) "type", NULL
9292 };
9293
9294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9296 if (!SWIG_IsOK(res1)) {
9297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9298 }
9299 arg1 = reinterpret_cast< wxIcon * >(argp1);
9300 {
9301 arg2 = wxString_in_helper(obj1);
9302 if (arg2 == NULL) SWIG_fail;
9303 temp2 = true;
9304 }
9305 ecode3 = SWIG_AsVal_int(obj2, &val3);
9306 if (!SWIG_IsOK(ecode3)) {
9307 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9308 }
9309 arg3 = static_cast< wxBitmapType >(val3);
9310 {
9311 PyThreadState* __tstate = wxPyBeginAllowThreads();
9312 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9313 wxPyEndAllowThreads(__tstate);
9314 if (PyErr_Occurred()) SWIG_fail;
9315 }
9316 {
9317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9318 }
9319 {
9320 if (temp2)
9321 delete arg2;
9322 }
9323 return resultobj;
9324fail:
9325 {
9326 if (temp2)
9327 delete arg2;
9328 }
9329 return NULL;
d55e5bfc
RD
9330}
9331
9332
554f62e9
RD
9333SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9334 PyObject *resultobj = 0;
9335 wxIcon *arg1 = (wxIcon *) 0 ;
9336 long result;
9337 void *argp1 = 0 ;
9338 int res1 = 0 ;
9339 PyObject *swig_obj[1] ;
9340
9341 if (!args) SWIG_fail;
9342 swig_obj[0] = args;
9343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9344 if (!SWIG_IsOK(res1)) {
9345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9346 }
9347 arg1 = reinterpret_cast< wxIcon * >(argp1);
9348 {
9349 PyThreadState* __tstate = wxPyBeginAllowThreads();
9350 result = (long)(arg1)->GetHandle();
9351 wxPyEndAllowThreads(__tstate);
9352 if (PyErr_Occurred()) SWIG_fail;
9353 }
9354 resultobj = SWIG_From_long(static_cast< long >(result));
9355 return resultobj;
9356fail:
9357 return NULL;
9358}
9359
9360
9361SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9362 PyObject *resultobj = 0;
9363 wxIcon *arg1 = (wxIcon *) 0 ;
9364 long arg2 ;
9365 void *argp1 = 0 ;
9366 int res1 = 0 ;
9367 long val2 ;
9368 int ecode2 = 0 ;
9369 PyObject * obj0 = 0 ;
9370 PyObject * obj1 = 0 ;
9371 char * kwnames[] = {
9372 (char *) "self",(char *) "handle", NULL
9373 };
9374
9375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9377 if (!SWIG_IsOK(res1)) {
9378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9379 }
9380 arg1 = reinterpret_cast< wxIcon * >(argp1);
9381 ecode2 = SWIG_AsVal_long(obj1, &val2);
9382 if (!SWIG_IsOK(ecode2)) {
9383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9384 }
9385 arg2 = static_cast< long >(val2);
9386 {
9387 PyThreadState* __tstate = wxPyBeginAllowThreads();
9388 wxIcon_SetHandle(arg1,arg2);
9389 wxPyEndAllowThreads(__tstate);
9390 if (PyErr_Occurred()) SWIG_fail;
9391 }
9392 resultobj = SWIG_Py_Void();
9393 return resultobj;
9394fail:
9395 return NULL;
d55e5bfc
RD
9396}
9397
9398
b39fe951 9399SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
9400 PyObject *resultobj = 0;
9401 wxIcon *arg1 = (wxIcon *) 0 ;
9402 bool result;
9403 void *argp1 = 0 ;
9404 int res1 = 0 ;
9405 PyObject *swig_obj[1] ;
9406
9407 if (!args) SWIG_fail;
9408 swig_obj[0] = args;
9409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9410 if (!SWIG_IsOK(res1)) {
b39fe951 9411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
554f62e9
RD
9412 }
9413 arg1 = reinterpret_cast< wxIcon * >(argp1);
9414 {
9415 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9416 result = (bool)(arg1)->IsOk();
554f62e9
RD
9417 wxPyEndAllowThreads(__tstate);
9418 if (PyErr_Occurred()) SWIG_fail;
9419 }
9420 {
9421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9422 }
9423 return resultobj;
9424fail:
9425 return NULL;
d55e5bfc
RD
9426}
9427
9428
554f62e9
RD
9429SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9430 PyObject *resultobj = 0;
9431 wxIcon *arg1 = (wxIcon *) 0 ;
9432 int result;
9433 void *argp1 = 0 ;
9434 int res1 = 0 ;
9435 PyObject *swig_obj[1] ;
9436
9437 if (!args) SWIG_fail;
9438 swig_obj[0] = args;
9439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9440 if (!SWIG_IsOK(res1)) {
9441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9442 }
9443 arg1 = reinterpret_cast< wxIcon * >(argp1);
9444 {
9445 PyThreadState* __tstate = wxPyBeginAllowThreads();
9446 result = (int)(arg1)->GetWidth();
9447 wxPyEndAllowThreads(__tstate);
9448 if (PyErr_Occurred()) SWIG_fail;
9449 }
9450 resultobj = SWIG_From_int(static_cast< int >(result));
9451 return resultobj;
9452fail:
9453 return NULL;
c1cb24a4
RD
9454}
9455
9456
554f62e9
RD
9457SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9458 PyObject *resultobj = 0;
9459 wxIcon *arg1 = (wxIcon *) 0 ;
9460 int result;
9461 void *argp1 = 0 ;
9462 int res1 = 0 ;
9463 PyObject *swig_obj[1] ;
9464
9465 if (!args) SWIG_fail;
9466 swig_obj[0] = args;
9467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9468 if (!SWIG_IsOK(res1)) {
9469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9470 }
9471 arg1 = reinterpret_cast< wxIcon * >(argp1);
9472 {
9473 PyThreadState* __tstate = wxPyBeginAllowThreads();
9474 result = (int)(arg1)->GetHeight();
9475 wxPyEndAllowThreads(__tstate);
9476 if (PyErr_Occurred()) SWIG_fail;
9477 }
9478 resultobj = SWIG_From_int(static_cast< int >(result));
9479 return resultobj;
9480fail:
9481 return NULL;
c1cb24a4
RD
9482}
9483
9484
554f62e9
RD
9485SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9486 PyObject *resultobj = 0;
9487 wxIcon *arg1 = (wxIcon *) 0 ;
9488 int result;
9489 void *argp1 = 0 ;
9490 int res1 = 0 ;
9491 PyObject *swig_obj[1] ;
9492
9493 if (!args) SWIG_fail;
9494 swig_obj[0] = args;
9495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9496 if (!SWIG_IsOK(res1)) {
9497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9498 }
9499 arg1 = reinterpret_cast< wxIcon * >(argp1);
9500 {
9501 PyThreadState* __tstate = wxPyBeginAllowThreads();
9502 result = (int)(arg1)->GetDepth();
9503 wxPyEndAllowThreads(__tstate);
9504 if (PyErr_Occurred()) SWIG_fail;
9505 }
9506 resultobj = SWIG_From_int(static_cast< int >(result));
9507 return resultobj;
9508fail:
9509 return NULL;
9510}
9511
9512
9513SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9514 PyObject *resultobj = 0;
9515 wxIcon *arg1 = (wxIcon *) 0 ;
9516 int arg2 ;
9517 void *argp1 = 0 ;
9518 int res1 = 0 ;
9519 int val2 ;
9520 int ecode2 = 0 ;
9521 PyObject * obj0 = 0 ;
9522 PyObject * obj1 = 0 ;
9523 char * kwnames[] = {
9524 (char *) "self",(char *) "w", NULL
9525 };
9526
9527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9529 if (!SWIG_IsOK(res1)) {
9530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9531 }
9532 arg1 = reinterpret_cast< wxIcon * >(argp1);
9533 ecode2 = SWIG_AsVal_int(obj1, &val2);
9534 if (!SWIG_IsOK(ecode2)) {
9535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9536 }
9537 arg2 = static_cast< int >(val2);
9538 {
9539 PyThreadState* __tstate = wxPyBeginAllowThreads();
9540 (arg1)->SetWidth(arg2);
9541 wxPyEndAllowThreads(__tstate);
9542 if (PyErr_Occurred()) SWIG_fail;
9543 }
9544 resultobj = SWIG_Py_Void();
9545 return resultobj;
9546fail:
9547 return NULL;
9548}
9549
9550
9551SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9552 PyObject *resultobj = 0;
9553 wxIcon *arg1 = (wxIcon *) 0 ;
9554 int arg2 ;
9555 void *argp1 = 0 ;
9556 int res1 = 0 ;
9557 int val2 ;
9558 int ecode2 = 0 ;
9559 PyObject * obj0 = 0 ;
9560 PyObject * obj1 = 0 ;
9561 char * kwnames[] = {
9562 (char *) "self",(char *) "h", NULL
9563 };
9564
9565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9567 if (!SWIG_IsOK(res1)) {
9568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9569 }
9570 arg1 = reinterpret_cast< wxIcon * >(argp1);
9571 ecode2 = SWIG_AsVal_int(obj1, &val2);
9572 if (!SWIG_IsOK(ecode2)) {
9573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9574 }
9575 arg2 = static_cast< int >(val2);
9576 {
9577 PyThreadState* __tstate = wxPyBeginAllowThreads();
9578 (arg1)->SetHeight(arg2);
9579 wxPyEndAllowThreads(__tstate);
9580 if (PyErr_Occurred()) SWIG_fail;
9581 }
9582 resultobj = SWIG_Py_Void();
9583 return resultobj;
9584fail:
9585 return NULL;
9586}
9587
9588
9589SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9590 PyObject *resultobj = 0;
9591 wxIcon *arg1 = (wxIcon *) 0 ;
9592 int arg2 ;
9593 void *argp1 = 0 ;
9594 int res1 = 0 ;
9595 int val2 ;
9596 int ecode2 = 0 ;
9597 PyObject * obj0 = 0 ;
9598 PyObject * obj1 = 0 ;
9599 char * kwnames[] = {
9600 (char *) "self",(char *) "d", NULL
9601 };
9602
9603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9605 if (!SWIG_IsOK(res1)) {
9606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9607 }
9608 arg1 = reinterpret_cast< wxIcon * >(argp1);
9609 ecode2 = SWIG_AsVal_int(obj1, &val2);
9610 if (!SWIG_IsOK(ecode2)) {
9611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9612 }
9613 arg2 = static_cast< int >(val2);
9614 {
9615 PyThreadState* __tstate = wxPyBeginAllowThreads();
9616 (arg1)->SetDepth(arg2);
9617 wxPyEndAllowThreads(__tstate);
9618 if (PyErr_Occurred()) SWIG_fail;
9619 }
9620 resultobj = SWIG_Py_Void();
9621 return resultobj;
9622fail:
9623 return NULL;
9624}
9625
9626
9627SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9628 PyObject *resultobj = 0;
9629 wxIcon *arg1 = (wxIcon *) 0 ;
9630 wxSize *arg2 = 0 ;
9631 void *argp1 = 0 ;
9632 int res1 = 0 ;
9633 wxSize temp2 ;
9634 PyObject * obj0 = 0 ;
9635 PyObject * obj1 = 0 ;
9636 char * kwnames[] = {
9637 (char *) "self",(char *) "size", NULL
9638 };
9639
9640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9642 if (!SWIG_IsOK(res1)) {
9643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9644 }
9645 arg1 = reinterpret_cast< wxIcon * >(argp1);
9646 {
9647 arg2 = &temp2;
9648 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9649 }
9650 {
9651 PyThreadState* __tstate = wxPyBeginAllowThreads();
9652 (arg1)->SetSize((wxSize const &)*arg2);
9653 wxPyEndAllowThreads(__tstate);
9654 if (PyErr_Occurred()) SWIG_fail;
9655 }
9656 resultobj = SWIG_Py_Void();
9657 return resultobj;
9658fail:
9659 return NULL;
9660}
9661
9662
9663SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9664 PyObject *resultobj = 0;
9665 wxIcon *arg1 = (wxIcon *) 0 ;
9666 wxBitmap *arg2 = 0 ;
9667 void *argp1 = 0 ;
9668 int res1 = 0 ;
9669 void *argp2 = 0 ;
9670 int res2 = 0 ;
9671 PyObject * obj0 = 0 ;
9672 PyObject * obj1 = 0 ;
9673 char * kwnames[] = {
9674 (char *) "self",(char *) "bmp", NULL
9675 };
9676
9677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9679 if (!SWIG_IsOK(res1)) {
9680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9681 }
9682 arg1 = reinterpret_cast< wxIcon * >(argp1);
9683 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9684 if (!SWIG_IsOK(res2)) {
9685 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9686 }
9687 if (!argp2) {
9688 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9689 }
9690 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9691 {
9692 PyThreadState* __tstate = wxPyBeginAllowThreads();
9693 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9694 wxPyEndAllowThreads(__tstate);
9695 if (PyErr_Occurred()) SWIG_fail;
9696 }
9697 resultobj = SWIG_Py_Void();
9698 return resultobj;
9699fail:
9700 return NULL;
d55e5bfc
RD
9701}
9702
9703
554f62e9
RD
9704SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9705 PyObject *obj;
9706 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9707 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9708 return SWIG_Py_Void();
d55e5bfc
RD
9709}
9710
554f62e9
RD
9711SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9712 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9713}
9714
554f62e9
RD
9715SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9716 PyObject *resultobj = 0;
9717 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9718 int arg2 = (int) 0 ;
9719 wxIconLocation *result = 0 ;
9720 bool temp1 = false ;
9721 int val2 ;
9722 int ecode2 = 0 ;
9723 PyObject * obj0 = 0 ;
9724 PyObject * obj1 = 0 ;
9725 char * kwnames[] = {
9726 (char *) "filename",(char *) "num", NULL
9727 };
9728
9729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9730 if (obj0) {
d55e5bfc 9731 {
554f62e9
RD
9732 arg1 = wxString_in_helper(obj0);
9733 if (arg1 == NULL) SWIG_fail;
9734 temp1 = true;
d55e5bfc 9735 }
554f62e9
RD
9736 }
9737 if (obj1) {
9738 ecode2 = SWIG_AsVal_int(obj1, &val2);
9739 if (!SWIG_IsOK(ecode2)) {
9740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9741 }
9742 arg2 = static_cast< int >(val2);
9743 }
9744 {
9745 PyThreadState* __tstate = wxPyBeginAllowThreads();
9746 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9747 wxPyEndAllowThreads(__tstate);
9748 if (PyErr_Occurred()) SWIG_fail;
9749 }
9750 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9751 {
9752 if (temp1)
9753 delete arg1;
9754 }
9755 return resultobj;
9756fail:
9757 {
9758 if (temp1)
9759 delete arg1;
9760 }
9761 return NULL;
d55e5bfc
RD
9762}
9763
9764
554f62e9
RD
9765SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9766 PyObject *resultobj = 0;
9767 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9768 void *argp1 = 0 ;
9769 int res1 = 0 ;
9770 PyObject *swig_obj[1] ;
9771
9772 if (!args) SWIG_fail;
9773 swig_obj[0] = args;
9774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9775 if (!SWIG_IsOK(res1)) {
9776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9777 }
9778 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9779 {
9780 PyThreadState* __tstate = wxPyBeginAllowThreads();
9781 delete arg1;
d55e5bfc 9782
554f62e9
RD
9783 wxPyEndAllowThreads(__tstate);
9784 if (PyErr_Occurred()) SWIG_fail;
9785 }
9786 resultobj = SWIG_Py_Void();
9787 return resultobj;
9788fail:
9789 return NULL;
d55e5bfc
RD
9790}
9791
9792
554f62e9
RD
9793SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9794 PyObject *resultobj = 0;
9795 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9796 bool result;
9797 void *argp1 = 0 ;
9798 int res1 = 0 ;
9799 PyObject *swig_obj[1] ;
9800
9801 if (!args) SWIG_fail;
9802 swig_obj[0] = args;
9803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9804 if (!SWIG_IsOK(res1)) {
9805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9806 }
9807 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9808 {
9809 PyThreadState* __tstate = wxPyBeginAllowThreads();
9810 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9811 wxPyEndAllowThreads(__tstate);
9812 if (PyErr_Occurred()) SWIG_fail;
9813 }
9814 {
9815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9816 }
9817 return resultobj;
9818fail:
9819 return NULL;
9820}
9821
9822
9823SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9824 PyObject *resultobj = 0;
9825 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9826 wxString *arg2 = 0 ;
9827 void *argp1 = 0 ;
9828 int res1 = 0 ;
9829 bool temp2 = false ;
9830 PyObject * obj0 = 0 ;
9831 PyObject * obj1 = 0 ;
9832 char * kwnames[] = {
9833 (char *) "self",(char *) "filename", NULL
9834 };
9835
9836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9838 if (!SWIG_IsOK(res1)) {
9839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9840 }
9841 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9842 {
9843 arg2 = wxString_in_helper(obj1);
9844 if (arg2 == NULL) SWIG_fail;
9845 temp2 = true;
9846 }
9847 {
9848 PyThreadState* __tstate = wxPyBeginAllowThreads();
9849 (arg1)->SetFileName((wxString const &)*arg2);
9850 wxPyEndAllowThreads(__tstate);
9851 if (PyErr_Occurred()) SWIG_fail;
9852 }
9853 resultobj = SWIG_Py_Void();
9854 {
9855 if (temp2)
9856 delete arg2;
9857 }
9858 return resultobj;
9859fail:
9860 {
9861 if (temp2)
9862 delete arg2;
9863 }
9864 return NULL;
d55e5bfc
RD
9865}
9866
9867
554f62e9
RD
9868SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9869 PyObject *resultobj = 0;
9870 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9871 wxString *result = 0 ;
9872 void *argp1 = 0 ;
9873 int res1 = 0 ;
9874 PyObject *swig_obj[1] ;
9875
9876 if (!args) SWIG_fail;
9877 swig_obj[0] = args;
9878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9879 if (!SWIG_IsOK(res1)) {
9880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9881 }
9882 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9883 {
9884 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9885 {
554f62e9
RD
9886 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9887 result = (wxString *) &_result_ref;
093d3ff1 9888 }
554f62e9
RD
9889 wxPyEndAllowThreads(__tstate);
9890 if (PyErr_Occurred()) SWIG_fail;
9891 }
9892 {
9893#if wxUSE_UNICODE
9894 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9895#else
9896 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9897#endif
9898 }
9899 return resultobj;
9900fail:
9901 return NULL;
9902}
9903
9904
9905SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9906 PyObject *resultobj = 0;
9907 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9908 int arg2 ;
9909 void *argp1 = 0 ;
9910 int res1 = 0 ;
9911 int val2 ;
9912 int ecode2 = 0 ;
9913 PyObject * obj0 = 0 ;
9914 PyObject * obj1 = 0 ;
9915 char * kwnames[] = {
9916 (char *) "self",(char *) "num", NULL
9917 };
9918
9919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9921 if (!SWIG_IsOK(res1)) {
9922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9923 }
9924 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9925 ecode2 = SWIG_AsVal_int(obj1, &val2);
9926 if (!SWIG_IsOK(ecode2)) {
9927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9928 }
9929 arg2 = static_cast< int >(val2);
9930 {
9931 PyThreadState* __tstate = wxPyBeginAllowThreads();
9932 wxIconLocation_SetIndex(arg1,arg2);
9933 wxPyEndAllowThreads(__tstate);
9934 if (PyErr_Occurred()) SWIG_fail;
9935 }
9936 resultobj = SWIG_Py_Void();
9937 return resultobj;
9938fail:
9939 return NULL;
d55e5bfc
RD
9940}
9941
9942
554f62e9
RD
9943SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9944 PyObject *resultobj = 0;
9945 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9946 int result;
9947 void *argp1 = 0 ;
9948 int res1 = 0 ;
9949 PyObject *swig_obj[1] ;
9950
9951 if (!args) SWIG_fail;
9952 swig_obj[0] = args;
9953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9954 if (!SWIG_IsOK(res1)) {
9955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9956 }
9957 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9958 {
9959 PyThreadState* __tstate = wxPyBeginAllowThreads();
9960 result = (int)wxIconLocation_GetIndex(arg1);
9961 wxPyEndAllowThreads(__tstate);
9962 if (PyErr_Occurred()) SWIG_fail;
9963 }
9964 resultobj = SWIG_From_int(static_cast< int >(result));
9965 return resultobj;
9966fail:
9967 return NULL;
d55e5bfc
RD
9968}
9969
9970
554f62e9
RD
9971SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9972 PyObject *obj;
9973 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9974 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9975 return SWIG_Py_Void();
d55e5bfc
RD
9976}
9977
554f62e9
RD
9978SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9979 return SWIG_Python_InitShadowInstance(args);
9980}
d55e5bfc 9981
554f62e9
RD
9982SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9983 PyObject *resultobj = 0;
9984 wxIconBundle *result = 0 ;
9985
9986 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9987 {
9988 PyThreadState* __tstate = wxPyBeginAllowThreads();
9989 result = (wxIconBundle *)new wxIconBundle();
9990 wxPyEndAllowThreads(__tstate);
9991 if (PyErr_Occurred()) SWIG_fail;
9992 }
9993 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9994 return resultobj;
9995fail:
9996 return NULL;
9997}
9998
9999
10000SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10001 PyObject *resultobj = 0;
10002 wxString *arg1 = 0 ;
10003 long arg2 ;
10004 wxIconBundle *result = 0 ;
10005 bool temp1 = false ;
10006 long val2 ;
10007 int ecode2 = 0 ;
10008 PyObject * obj0 = 0 ;
10009 PyObject * obj1 = 0 ;
10010 char * kwnames[] = {
10011 (char *) "file",(char *) "type", NULL
10012 };
10013
10014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
10015 {
10016 arg1 = wxString_in_helper(obj0);
10017 if (arg1 == NULL) SWIG_fail;
10018 temp1 = true;
10019 }
10020 ecode2 = SWIG_AsVal_long(obj1, &val2);
10021 if (!SWIG_IsOK(ecode2)) {
10022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
10023 }
10024 arg2 = static_cast< long >(val2);
10025 {
10026 PyThreadState* __tstate = wxPyBeginAllowThreads();
10027 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
10028 wxPyEndAllowThreads(__tstate);
10029 if (PyErr_Occurred()) SWIG_fail;
10030 }
10031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10032 {
10033 if (temp1)
10034 delete arg1;
10035 }
10036 return resultobj;
10037fail:
10038 {
10039 if (temp1)
10040 delete arg1;
10041 }
10042 return NULL;
d55e5bfc
RD
10043}
10044
10045
554f62e9
RD
10046SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10047 PyObject *resultobj = 0;
10048 wxIcon *arg1 = 0 ;
10049 wxIconBundle *result = 0 ;
10050 void *argp1 = 0 ;
10051 int res1 = 0 ;
10052 PyObject * obj0 = 0 ;
10053 char * kwnames[] = {
10054 (char *) "icon", NULL
10055 };
10056
10057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
10058 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
10059 if (!SWIG_IsOK(res1)) {
10060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10061 }
10062 if (!argp1) {
10063 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10064 }
10065 arg1 = reinterpret_cast< wxIcon * >(argp1);
10066 {
10067 PyThreadState* __tstate = wxPyBeginAllowThreads();
10068 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
10069 wxPyEndAllowThreads(__tstate);
10070 if (PyErr_Occurred()) SWIG_fail;
10071 }
10072 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10073 return resultobj;
10074fail:
10075 return NULL;
d55e5bfc
RD
10076}
10077
10078
554f62e9
RD
10079SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10080 PyObject *resultobj = 0;
10081 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10082 void *argp1 = 0 ;
10083 int res1 = 0 ;
10084 PyObject *swig_obj[1] ;
10085
10086 if (!args) SWIG_fail;
10087 swig_obj[0] = args;
10088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
10089 if (!SWIG_IsOK(res1)) {
10090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10091 }
10092 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10093 {
10094 PyThreadState* __tstate = wxPyBeginAllowThreads();
10095 delete arg1;
d55e5bfc 10096
554f62e9
RD
10097 wxPyEndAllowThreads(__tstate);
10098 if (PyErr_Occurred()) SWIG_fail;
10099 }
10100 resultobj = SWIG_Py_Void();
10101 return resultobj;
10102fail:
10103 return NULL;
10104}
10105
10106
10107SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10108 PyObject *resultobj = 0;
10109 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10110 wxIcon *arg2 = 0 ;
10111 void *argp1 = 0 ;
10112 int res1 = 0 ;
10113 void *argp2 = 0 ;
10114 int res2 = 0 ;
10115 PyObject * obj0 = 0 ;
10116 PyObject * obj1 = 0 ;
10117 char * kwnames[] = {
10118 (char *) "self",(char *) "icon", NULL
10119 };
10120
10121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10123 if (!SWIG_IsOK(res1)) {
10124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10125 }
10126 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10127 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
10128 if (!SWIG_IsOK(res2)) {
10129 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10130 }
10131 if (!argp2) {
10132 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10133 }
10134 arg2 = reinterpret_cast< wxIcon * >(argp2);
10135 {
10136 PyThreadState* __tstate = wxPyBeginAllowThreads();
10137 (arg1)->AddIcon((wxIcon const &)*arg2);
10138 wxPyEndAllowThreads(__tstate);
10139 if (PyErr_Occurred()) SWIG_fail;
10140 }
10141 resultobj = SWIG_Py_Void();
10142 return resultobj;
10143fail:
10144 return NULL;
10145}
10146
10147
10148SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10149 PyObject *resultobj = 0;
10150 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10151 wxString *arg2 = 0 ;
10152 long arg3 ;
10153 void *argp1 = 0 ;
10154 int res1 = 0 ;
10155 bool temp2 = false ;
10156 long val3 ;
10157 int ecode3 = 0 ;
10158 PyObject * obj0 = 0 ;
10159 PyObject * obj1 = 0 ;
10160 PyObject * obj2 = 0 ;
10161 char * kwnames[] = {
10162 (char *) "self",(char *) "file",(char *) "type", NULL
10163 };
10164
10165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10167 if (!SWIG_IsOK(res1)) {
10168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10169 }
10170 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10171 {
10172 arg2 = wxString_in_helper(obj1);
10173 if (arg2 == NULL) SWIG_fail;
10174 temp2 = true;
10175 }
10176 ecode3 = SWIG_AsVal_long(obj2, &val3);
10177 if (!SWIG_IsOK(ecode3)) {
10178 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10179 }
10180 arg3 = static_cast< long >(val3);
10181 {
10182 PyThreadState* __tstate = wxPyBeginAllowThreads();
10183 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10184 wxPyEndAllowThreads(__tstate);
10185 if (PyErr_Occurred()) SWIG_fail;
10186 }
10187 resultobj = SWIG_Py_Void();
10188 {
10189 if (temp2)
10190 delete arg2;
10191 }
10192 return resultobj;
10193fail:
10194 {
10195 if (temp2)
10196 delete arg2;
10197 }
10198 return NULL;
10199}
10200
10201
10202SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10203 PyObject *resultobj = 0;
10204 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10205 wxSize *arg2 = 0 ;
10206 wxIcon *result = 0 ;
10207 void *argp1 = 0 ;
10208 int res1 = 0 ;
10209 wxSize temp2 ;
10210 PyObject * obj0 = 0 ;
10211 PyObject * obj1 = 0 ;
10212 char * kwnames[] = {
10213 (char *) "self",(char *) "size", NULL
10214 };
10215
10216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10218 if (!SWIG_IsOK(res1)) {
10219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10220 }
10221 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10222 {
10223 arg2 = &temp2;
10224 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10225 }
10226 {
10227 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 10228 {
554f62e9
RD
10229 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10230 result = (wxIcon *) &_result_ref;
d55e5bfc 10231 }
554f62e9
RD
10232 wxPyEndAllowThreads(__tstate);
10233 if (PyErr_Occurred()) SWIG_fail;
10234 }
10235 {
10236 wxIcon* resultptr = new wxIcon(*result);
10237 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10238 }
10239 return resultobj;
10240fail:
10241 return NULL;
10242}
10243
10244
10245SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10246 PyObject *obj;
10247 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10248 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10249 return SWIG_Py_Void();
10250}
10251
10252SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10253 return SWIG_Python_InitShadowInstance(args);
10254}
10255
10256SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10257 PyObject *resultobj = 0;
10258 wxString *arg1 = 0 ;
10259 long arg2 ;
10260 int arg3 = (int) 0 ;
10261 int arg4 = (int) 0 ;
10262 wxCursor *result = 0 ;
10263 bool temp1 = false ;
10264 long val2 ;
10265 int ecode2 = 0 ;
10266 int val3 ;
10267 int ecode3 = 0 ;
10268 int val4 ;
10269 int ecode4 = 0 ;
10270 PyObject * obj0 = 0 ;
10271 PyObject * obj1 = 0 ;
10272 PyObject * obj2 = 0 ;
10273 PyObject * obj3 = 0 ;
10274 char * kwnames[] = {
10275 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10276 };
10277
10278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10279 {
10280 arg1 = wxString_in_helper(obj0);
10281 if (arg1 == NULL) SWIG_fail;
10282 temp1 = true;
10283 }
10284 ecode2 = SWIG_AsVal_long(obj1, &val2);
10285 if (!SWIG_IsOK(ecode2)) {
10286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10287 }
10288 arg2 = static_cast< long >(val2);
10289 if (obj2) {
10290 ecode3 = SWIG_AsVal_int(obj2, &val3);
10291 if (!SWIG_IsOK(ecode3)) {
10292 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10293 }
10294 arg3 = static_cast< int >(val3);
10295 }
10296 if (obj3) {
10297 ecode4 = SWIG_AsVal_int(obj3, &val4);
10298 if (!SWIG_IsOK(ecode4)) {
10299 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10300 }
10301 arg4 = static_cast< int >(val4);
10302 }
10303 {
10304 if (!wxPyCheckForApp()) SWIG_fail;
10305 PyThreadState* __tstate = wxPyBeginAllowThreads();
10306 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10307 wxPyEndAllowThreads(__tstate);
10308 if (PyErr_Occurred()) SWIG_fail;
10309 }
10310 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10311 {
10312 if (temp1)
10313 delete arg1;
10314 }
10315 return resultobj;
10316fail:
10317 {
10318 if (temp1)
10319 delete arg1;
10320 }
10321 return NULL;
d55e5bfc
RD
10322}
10323
10324
554f62e9
RD
10325SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10326 PyObject *resultobj = 0;
10327 wxCursor *arg1 = (wxCursor *) 0 ;
10328 void *argp1 = 0 ;
10329 int res1 = 0 ;
10330 PyObject *swig_obj[1] ;
10331
10332 if (!args) SWIG_fail;
10333 swig_obj[0] = args;
10334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10335 if (!SWIG_IsOK(res1)) {
10336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10337 }
10338 arg1 = reinterpret_cast< wxCursor * >(argp1);
10339 {
10340 PyThreadState* __tstate = wxPyBeginAllowThreads();
10341 delete arg1;
d55e5bfc 10342
554f62e9
RD
10343 wxPyEndAllowThreads(__tstate);
10344 if (PyErr_Occurred()) SWIG_fail;
10345 }
10346 resultobj = SWIG_Py_Void();
10347 return resultobj;
10348fail:
10349 return NULL;
10350}
10351
10352
10353SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10354 PyObject *resultobj = 0;
10355 int arg1 ;
10356 wxCursor *result = 0 ;
10357 int val1 ;
10358 int ecode1 = 0 ;
10359 PyObject * obj0 = 0 ;
10360 char * kwnames[] = {
10361 (char *) "id", NULL
10362 };
10363
10364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10365 ecode1 = SWIG_AsVal_int(obj0, &val1);
10366 if (!SWIG_IsOK(ecode1)) {
10367 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10368 }
10369 arg1 = static_cast< int >(val1);
10370 {
10371 if (!wxPyCheckForApp()) SWIG_fail;
10372 PyThreadState* __tstate = wxPyBeginAllowThreads();
10373 result = (wxCursor *)new wxCursor(arg1);
10374 wxPyEndAllowThreads(__tstate);
10375 if (PyErr_Occurred()) SWIG_fail;
10376 }
10377 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10378 return resultobj;
10379fail:
10380 return NULL;
10381}
10382
10383
10384SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10385 PyObject *resultobj = 0;
10386 wxImage *arg1 = 0 ;
10387 wxCursor *result = 0 ;
10388 void *argp1 = 0 ;
10389 int res1 = 0 ;
10390 PyObject * obj0 = 0 ;
10391 char * kwnames[] = {
10392 (char *) "image", NULL
10393 };
10394
10395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10396 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10397 if (!SWIG_IsOK(res1)) {
10398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10399 }
10400 if (!argp1) {
10401 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10402 }
10403 arg1 = reinterpret_cast< wxImage * >(argp1);
10404 {
10405 if (!wxPyCheckForApp()) SWIG_fail;
10406 PyThreadState* __tstate = wxPyBeginAllowThreads();
10407 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10408 wxPyEndAllowThreads(__tstate);
10409 if (PyErr_Occurred()) SWIG_fail;
10410 }
10411 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10412 return resultobj;
10413fail:
10414 return NULL;
d55e5bfc
RD
10415}
10416
10417
554f62e9
RD
10418SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10419 PyObject *resultobj = 0;
10420 wxCursor *arg1 = (wxCursor *) 0 ;
10421 long result;
10422 void *argp1 = 0 ;
10423 int res1 = 0 ;
10424 PyObject *swig_obj[1] ;
10425
10426 if (!args) SWIG_fail;
10427 swig_obj[0] = args;
10428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10429 if (!SWIG_IsOK(res1)) {
10430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10431 }
10432 arg1 = reinterpret_cast< wxCursor * >(argp1);
10433 {
10434 PyThreadState* __tstate = wxPyBeginAllowThreads();
10435 result = (long)(arg1)->GetHandle();
10436 wxPyEndAllowThreads(__tstate);
10437 if (PyErr_Occurred()) SWIG_fail;
10438 }
10439 resultobj = SWIG_From_long(static_cast< long >(result));
10440 return resultobj;
10441fail:
10442 return NULL;
10443}
10444
10445
10446SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10447 PyObject *resultobj = 0;
10448 wxCursor *arg1 = (wxCursor *) 0 ;
10449 long arg2 ;
10450 void *argp1 = 0 ;
10451 int res1 = 0 ;
10452 long val2 ;
10453 int ecode2 = 0 ;
10454 PyObject * obj0 = 0 ;
10455 PyObject * obj1 = 0 ;
10456 char * kwnames[] = {
10457 (char *) "self",(char *) "handle", NULL
10458 };
10459
10460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10462 if (!SWIG_IsOK(res1)) {
10463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10464 }
10465 arg1 = reinterpret_cast< wxCursor * >(argp1);
10466 ecode2 = SWIG_AsVal_long(obj1, &val2);
10467 if (!SWIG_IsOK(ecode2)) {
10468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10469 }
10470 arg2 = static_cast< long >(val2);
10471 {
10472 PyThreadState* __tstate = wxPyBeginAllowThreads();
10473 wxCursor_SetHandle(arg1,arg2);
10474 wxPyEndAllowThreads(__tstate);
10475 if (PyErr_Occurred()) SWIG_fail;
10476 }
10477 resultobj = SWIG_Py_Void();
10478 return resultobj;
10479fail:
10480 return NULL;
d55e5bfc
RD
10481}
10482
10483
b39fe951 10484SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
10485 PyObject *resultobj = 0;
10486 wxCursor *arg1 = (wxCursor *) 0 ;
10487 bool result;
10488 void *argp1 = 0 ;
10489 int res1 = 0 ;
10490 PyObject *swig_obj[1] ;
10491
10492 if (!args) SWIG_fail;
10493 swig_obj[0] = args;
10494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10495 if (!SWIG_IsOK(res1)) {
b39fe951 10496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
554f62e9
RD
10497 }
10498 arg1 = reinterpret_cast< wxCursor * >(argp1);
10499 {
10500 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 10501 result = (bool)(arg1)->IsOk();
554f62e9
RD
10502 wxPyEndAllowThreads(__tstate);
10503 if (PyErr_Occurred()) SWIG_fail;
10504 }
10505 {
10506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10507 }
10508 return resultobj;
10509fail:
10510 return NULL;
d55e5bfc
RD
10511}
10512
10513
554f62e9
RD
10514SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10515 PyObject *resultobj = 0;
10516 wxCursor *arg1 = (wxCursor *) 0 ;
10517 int result;
10518 void *argp1 = 0 ;
10519 int res1 = 0 ;
10520 PyObject *swig_obj[1] ;
10521
10522 if (!args) SWIG_fail;
10523 swig_obj[0] = args;
10524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10525 if (!SWIG_IsOK(res1)) {
10526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10527 }
10528 arg1 = reinterpret_cast< wxCursor * >(argp1);
10529 {
10530 PyThreadState* __tstate = wxPyBeginAllowThreads();
10531 result = (int)(arg1)->GetWidth();
10532 wxPyEndAllowThreads(__tstate);
10533 if (PyErr_Occurred()) SWIG_fail;
10534 }
10535 resultobj = SWIG_From_int(static_cast< int >(result));
10536 return resultobj;
10537fail:
10538 return NULL;
d55e5bfc
RD
10539}
10540
10541
554f62e9
RD
10542SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10543 PyObject *resultobj = 0;
10544 wxCursor *arg1 = (wxCursor *) 0 ;
10545 int result;
10546 void *argp1 = 0 ;
10547 int res1 = 0 ;
10548 PyObject *swig_obj[1] ;
10549
10550 if (!args) SWIG_fail;
10551 swig_obj[0] = args;
10552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10553 if (!SWIG_IsOK(res1)) {
10554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10555 }
10556 arg1 = reinterpret_cast< wxCursor * >(argp1);
10557 {
10558 PyThreadState* __tstate = wxPyBeginAllowThreads();
10559 result = (int)(arg1)->GetHeight();
10560 wxPyEndAllowThreads(__tstate);
10561 if (PyErr_Occurred()) SWIG_fail;
10562 }
10563 resultobj = SWIG_From_int(static_cast< int >(result));
10564 return resultobj;
10565fail:
10566 return NULL;
d55e5bfc
RD
10567}
10568
10569
554f62e9
RD
10570SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10571 PyObject *resultobj = 0;
10572 wxCursor *arg1 = (wxCursor *) 0 ;
10573 int result;
10574 void *argp1 = 0 ;
10575 int res1 = 0 ;
10576 PyObject *swig_obj[1] ;
10577
10578 if (!args) SWIG_fail;
10579 swig_obj[0] = args;
10580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10581 if (!SWIG_IsOK(res1)) {
10582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10583 }
10584 arg1 = reinterpret_cast< wxCursor * >(argp1);
10585 {
10586 PyThreadState* __tstate = wxPyBeginAllowThreads();
10587 result = (int)(arg1)->GetDepth();
10588 wxPyEndAllowThreads(__tstate);
10589 if (PyErr_Occurred()) SWIG_fail;
10590 }
10591 resultobj = SWIG_From_int(static_cast< int >(result));
10592 return resultobj;
10593fail:
10594 return NULL;
10595}
10596
10597
10598SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10599 PyObject *resultobj = 0;
10600 wxCursor *arg1 = (wxCursor *) 0 ;
10601 int arg2 ;
10602 void *argp1 = 0 ;
10603 int res1 = 0 ;
10604 int val2 ;
10605 int ecode2 = 0 ;
10606 PyObject * obj0 = 0 ;
10607 PyObject * obj1 = 0 ;
10608 char * kwnames[] = {
10609 (char *) "self",(char *) "w", NULL
10610 };
10611
10612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10614 if (!SWIG_IsOK(res1)) {
10615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10616 }
10617 arg1 = reinterpret_cast< wxCursor * >(argp1);
10618 ecode2 = SWIG_AsVal_int(obj1, &val2);
10619 if (!SWIG_IsOK(ecode2)) {
10620 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10621 }
10622 arg2 = static_cast< int >(val2);
10623 {
10624 PyThreadState* __tstate = wxPyBeginAllowThreads();
10625 (arg1)->SetWidth(arg2);
10626 wxPyEndAllowThreads(__tstate);
10627 if (PyErr_Occurred()) SWIG_fail;
10628 }
10629 resultobj = SWIG_Py_Void();
10630 return resultobj;
10631fail:
10632 return NULL;
10633}
10634
10635
10636SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10637 PyObject *resultobj = 0;
10638 wxCursor *arg1 = (wxCursor *) 0 ;
10639 int arg2 ;
10640 void *argp1 = 0 ;
10641 int res1 = 0 ;
10642 int val2 ;
10643 int ecode2 = 0 ;
10644 PyObject * obj0 = 0 ;
10645 PyObject * obj1 = 0 ;
10646 char * kwnames[] = {
10647 (char *) "self",(char *) "h", NULL
10648 };
10649
10650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10652 if (!SWIG_IsOK(res1)) {
10653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10654 }
10655 arg1 = reinterpret_cast< wxCursor * >(argp1);
10656 ecode2 = SWIG_AsVal_int(obj1, &val2);
10657 if (!SWIG_IsOK(ecode2)) {
10658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10659 }
10660 arg2 = static_cast< int >(val2);
10661 {
10662 PyThreadState* __tstate = wxPyBeginAllowThreads();
10663 (arg1)->SetHeight(arg2);
10664 wxPyEndAllowThreads(__tstate);
10665 if (PyErr_Occurred()) SWIG_fail;
10666 }
10667 resultobj = SWIG_Py_Void();
10668 return resultobj;
10669fail:
10670 return NULL;
10671}
10672
10673
10674SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10675 PyObject *resultobj = 0;
10676 wxCursor *arg1 = (wxCursor *) 0 ;
10677 int arg2 ;
10678 void *argp1 = 0 ;
10679 int res1 = 0 ;
10680 int val2 ;
10681 int ecode2 = 0 ;
10682 PyObject * obj0 = 0 ;
10683 PyObject * obj1 = 0 ;
10684 char * kwnames[] = {
10685 (char *) "self",(char *) "d", NULL
10686 };
10687
10688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
10689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10690 if (!SWIG_IsOK(res1)) {
10691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10692 }
10693 arg1 = reinterpret_cast< wxCursor * >(argp1);
10694 ecode2 = SWIG_AsVal_int(obj1, &val2);
10695 if (!SWIG_IsOK(ecode2)) {
10696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
10697 }
10698 arg2 = static_cast< int >(val2);
10699 {
10700 PyThreadState* __tstate = wxPyBeginAllowThreads();
10701 (arg1)->SetDepth(arg2);
10702 wxPyEndAllowThreads(__tstate);
10703 if (PyErr_Occurred()) SWIG_fail;
10704 }
10705 resultobj = SWIG_Py_Void();
10706 return resultobj;
10707fail:
10708 return NULL;
10709}
10710
10711
10712SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10713 PyObject *resultobj = 0;
10714 wxCursor *arg1 = (wxCursor *) 0 ;
10715 wxSize *arg2 = 0 ;
10716 void *argp1 = 0 ;
10717 int res1 = 0 ;
10718 wxSize temp2 ;
10719 PyObject * obj0 = 0 ;
10720 PyObject * obj1 = 0 ;
10721 char * kwnames[] = {
10722 (char *) "self",(char *) "size", NULL
10723 };
10724
10725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
10726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10727 if (!SWIG_IsOK(res1)) {
10728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
10729 }
10730 arg1 = reinterpret_cast< wxCursor * >(argp1);
10731 {
10732 arg2 = &temp2;
10733 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10734 }
10735 {
10736 PyThreadState* __tstate = wxPyBeginAllowThreads();
10737 (arg1)->SetSize((wxSize const &)*arg2);
10738 wxPyEndAllowThreads(__tstate);
10739 if (PyErr_Occurred()) SWIG_fail;
10740 }
10741 resultobj = SWIG_Py_Void();
10742 return resultobj;
10743fail:
10744 return NULL;
10745}
10746
10747
10748SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10749 PyObject *obj;
10750 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10751 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10752 return SWIG_Py_Void();
10753}
10754
10755SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10756 return SWIG_Python_InitShadowInstance(args);
10757}
10758
10759SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10760 PyObject *resultobj = 0;
10761 int arg1 = (int) 0 ;
10762 int arg2 = (int) 0 ;
10763 int arg3 = (int) 0 ;
10764 int arg4 = (int) 0 ;
10765 wxRegion *result = 0 ;
10766 int val1 ;
10767 int ecode1 = 0 ;
10768 int val2 ;
10769 int ecode2 = 0 ;
10770 int val3 ;
10771 int ecode3 = 0 ;
10772 int val4 ;
10773 int ecode4 = 0 ;
10774 PyObject * obj0 = 0 ;
10775 PyObject * obj1 = 0 ;
10776 PyObject * obj2 = 0 ;
10777 PyObject * obj3 = 0 ;
10778 char * kwnames[] = {
10779 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10780 };
10781
10782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10783 if (obj0) {
10784 ecode1 = SWIG_AsVal_int(obj0, &val1);
10785 if (!SWIG_IsOK(ecode1)) {
10786 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10787 }
10788 arg1 = static_cast< int >(val1);
10789 }
10790 if (obj1) {
10791 ecode2 = SWIG_AsVal_int(obj1, &val2);
10792 if (!SWIG_IsOK(ecode2)) {
10793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10794 }
10795 arg2 = static_cast< int >(val2);
10796 }
10797 if (obj2) {
10798 ecode3 = SWIG_AsVal_int(obj2, &val3);
10799 if (!SWIG_IsOK(ecode3)) {
10800 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10801 }
10802 arg3 = static_cast< int >(val3);
10803 }
10804 if (obj3) {
10805 ecode4 = SWIG_AsVal_int(obj3, &val4);
10806 if (!SWIG_IsOK(ecode4)) {
10807 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10808 }
10809 arg4 = static_cast< int >(val4);
10810 }
10811 {
10812 if (!wxPyCheckForApp()) SWIG_fail;
10813 PyThreadState* __tstate = wxPyBeginAllowThreads();
10814 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10815 wxPyEndAllowThreads(__tstate);
10816 if (PyErr_Occurred()) SWIG_fail;
10817 }
10818 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10819 return resultobj;
10820fail:
10821 return NULL;
10822}
10823
10824
10825SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10826 PyObject *resultobj = 0;
10827 wxBitmap *arg1 = 0 ;
10828 wxRegion *result = 0 ;
10829 void *argp1 = 0 ;
10830 int res1 = 0 ;
10831 PyObject * obj0 = 0 ;
10832 char * kwnames[] = {
10833 (char *) "bmp", NULL
10834 };
10835
10836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10837 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10838 if (!SWIG_IsOK(res1)) {
10839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10840 }
10841 if (!argp1) {
10842 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10843 }
10844 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10845 {
10846 if (!wxPyCheckForApp()) SWIG_fail;
10847 PyThreadState* __tstate = wxPyBeginAllowThreads();
10848 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10849 wxPyEndAllowThreads(__tstate);
10850 if (PyErr_Occurred()) SWIG_fail;
10851 }
10852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10853 return resultobj;
10854fail:
10855 return NULL;
10856}
10857
10858
10859SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10860 PyObject *resultobj = 0;
10861 wxBitmap *arg1 = 0 ;
10862 wxColour *arg2 = 0 ;
10863 int arg3 = (int) 0 ;
10864 wxRegion *result = 0 ;
10865 void *argp1 = 0 ;
10866 int res1 = 0 ;
10867 wxColour temp2 ;
10868 int val3 ;
10869 int ecode3 = 0 ;
10870 PyObject * obj0 = 0 ;
10871 PyObject * obj1 = 0 ;
10872 PyObject * obj2 = 0 ;
10873 char * kwnames[] = {
10874 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10875 };
10876
10877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10878 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10879 if (!SWIG_IsOK(res1)) {
10880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10881 }
10882 if (!argp1) {
10883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10884 }
10885 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10886 {
10887 arg2 = &temp2;
10888 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10889 }
10890 if (obj2) {
10891 ecode3 = SWIG_AsVal_int(obj2, &val3);
10892 if (!SWIG_IsOK(ecode3)) {
10893 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10894 }
10895 arg3 = static_cast< int >(val3);
10896 }
10897 {
10898 if (!wxPyCheckForApp()) SWIG_fail;
10899 PyThreadState* __tstate = wxPyBeginAllowThreads();
10900 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10901 wxPyEndAllowThreads(__tstate);
10902 if (PyErr_Occurred()) SWIG_fail;
10903 }
10904 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10905 return resultobj;
10906fail:
10907 return NULL;
10908}
10909
10910
10911SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10912 PyObject *resultobj = 0;
10913 int arg1 ;
10914 wxPoint *arg2 = (wxPoint *) 0 ;
10915 int arg3 = (int) wxWINDING_RULE ;
10916 wxRegion *result = 0 ;
10917 int val3 ;
10918 int ecode3 = 0 ;
10919 PyObject * obj0 = 0 ;
10920 PyObject * obj1 = 0 ;
10921 char * kwnames[] = {
10922 (char *) "points",(char *) "fillStyle", NULL
10923 };
10924
10925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10926 {
10927 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10928 if (arg2 == NULL) SWIG_fail;
10929 }
10930 if (obj1) {
10931 ecode3 = SWIG_AsVal_int(obj1, &val3);
10932 if (!SWIG_IsOK(ecode3)) {
10933 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10934 }
10935 arg3 = static_cast< int >(val3);
10936 }
10937 {
10938 if (!wxPyCheckForApp()) SWIG_fail;
10939 PyThreadState* __tstate = wxPyBeginAllowThreads();
10940 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10941 wxPyEndAllowThreads(__tstate);
10942 if (PyErr_Occurred()) SWIG_fail;
10943 }
10944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10945 {
10946 if (arg2) delete [] arg2;
10947 }
10948 return resultobj;
10949fail:
10950 {
10951 if (arg2) delete [] arg2;
10952 }
10953 return NULL;
d55e5bfc
RD
10954}
10955
10956
554f62e9
RD
10957SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10958 PyObject *resultobj = 0;
10959 wxRegion *arg1 = (wxRegion *) 0 ;
10960 void *argp1 = 0 ;
10961 int res1 = 0 ;
10962 PyObject *swig_obj[1] ;
10963
10964 if (!args) SWIG_fail;
10965 swig_obj[0] = args;
10966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10967 if (!SWIG_IsOK(res1)) {
10968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10969 }
10970 arg1 = reinterpret_cast< wxRegion * >(argp1);
10971 {
10972 PyThreadState* __tstate = wxPyBeginAllowThreads();
10973 delete arg1;
d55e5bfc 10974
554f62e9
RD
10975 wxPyEndAllowThreads(__tstate);
10976 if (PyErr_Occurred()) SWIG_fail;
10977 }
10978 resultobj = SWIG_Py_Void();
10979 return resultobj;
10980fail:
10981 return NULL;
d55e5bfc
RD
10982}
10983
10984
554f62e9
RD
10985SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10986 PyObject *resultobj = 0;
10987 wxRegion *arg1 = (wxRegion *) 0 ;
10988 void *argp1 = 0 ;
10989 int res1 = 0 ;
10990 PyObject *swig_obj[1] ;
10991
10992 if (!args) SWIG_fail;
10993 swig_obj[0] = args;
10994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10995 if (!SWIG_IsOK(res1)) {
10996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10997 }
10998 arg1 = reinterpret_cast< wxRegion * >(argp1);
10999 {
11000 PyThreadState* __tstate = wxPyBeginAllowThreads();
11001 (arg1)->Clear();
11002 wxPyEndAllowThreads(__tstate);
11003 if (PyErr_Occurred()) SWIG_fail;
11004 }
11005 resultobj = SWIG_Py_Void();
11006 return resultobj;
11007fail:
11008 return NULL;
11009}
11010
11011
11012SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11013 PyObject *resultobj = 0;
11014 wxRegion *arg1 = (wxRegion *) 0 ;
11015 int arg2 ;
11016 int arg3 ;
11017 bool result;
11018 void *argp1 = 0 ;
11019 int res1 = 0 ;
11020 int val2 ;
11021 int ecode2 = 0 ;
11022 int val3 ;
11023 int ecode3 = 0 ;
11024 PyObject * obj0 = 0 ;
11025 PyObject * obj1 = 0 ;
11026 PyObject * obj2 = 0 ;
11027 char * kwnames[] = {
11028 (char *) "self",(char *) "x",(char *) "y", NULL
11029 };
11030
11031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11033 if (!SWIG_IsOK(res1)) {
11034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
11035 }
11036 arg1 = reinterpret_cast< wxRegion * >(argp1);
11037 ecode2 = SWIG_AsVal_int(obj1, &val2);
11038 if (!SWIG_IsOK(ecode2)) {
11039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
11040 }
11041 arg2 = static_cast< int >(val2);
11042 ecode3 = SWIG_AsVal_int(obj2, &val3);
11043 if (!SWIG_IsOK(ecode3)) {
11044 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
11045 }
11046 arg3 = static_cast< int >(val3);
11047 {
11048 PyThreadState* __tstate = wxPyBeginAllowThreads();
11049 result = (bool)(arg1)->Offset(arg2,arg3);
11050 wxPyEndAllowThreads(__tstate);
11051 if (PyErr_Occurred()) SWIG_fail;
11052 }
11053 {
11054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11055 }
11056 return resultobj;
11057fail:
11058 return NULL;
11059}
11060
11061
11062SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11063 PyObject *resultobj = 0;
11064 wxRegion *arg1 = (wxRegion *) 0 ;
11065 int arg2 ;
11066 int arg3 ;
11067 wxRegionContain result;
11068 void *argp1 = 0 ;
11069 int res1 = 0 ;
11070 int val2 ;
11071 int ecode2 = 0 ;
11072 int val3 ;
11073 int ecode3 = 0 ;
11074 PyObject * obj0 = 0 ;
11075 PyObject * obj1 = 0 ;
11076 PyObject * obj2 = 0 ;
11077 char * kwnames[] = {
11078 (char *) "self",(char *) "x",(char *) "y", NULL
11079 };
11080
11081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11083 if (!SWIG_IsOK(res1)) {
11084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
11085 }
11086 arg1 = reinterpret_cast< wxRegion * >(argp1);
11087 ecode2 = SWIG_AsVal_int(obj1, &val2);
11088 if (!SWIG_IsOK(ecode2)) {
11089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
11090 }
11091 arg2 = static_cast< int >(val2);
11092 ecode3 = SWIG_AsVal_int(obj2, &val3);
11093 if (!SWIG_IsOK(ecode3)) {
11094 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
11095 }
11096 arg3 = static_cast< int >(val3);
11097 {
11098 PyThreadState* __tstate = wxPyBeginAllowThreads();
11099 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
11100 wxPyEndAllowThreads(__tstate);
11101 if (PyErr_Occurred()) SWIG_fail;
11102 }
11103 resultobj = SWIG_From_int(static_cast< int >(result));
11104 return resultobj;
11105fail:
11106 return NULL;
11107}
11108
11109
11110SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11111 PyObject *resultobj = 0;
11112 wxRegion *arg1 = (wxRegion *) 0 ;
11113 wxPoint *arg2 = 0 ;
11114 wxRegionContain result;
11115 void *argp1 = 0 ;
11116 int res1 = 0 ;
11117 wxPoint temp2 ;
11118 PyObject * obj0 = 0 ;
11119 PyObject * obj1 = 0 ;
11120 char * kwnames[] = {
11121 (char *) "self",(char *) "pt", NULL
11122 };
11123
11124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
11125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11126 if (!SWIG_IsOK(res1)) {
11127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
11128 }
11129 arg1 = reinterpret_cast< wxRegion * >(argp1);
11130 {
11131 arg2 = &temp2;
11132 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11133 }
11134 {
11135 PyThreadState* __tstate = wxPyBeginAllowThreads();
11136 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
11137 wxPyEndAllowThreads(__tstate);
11138 if (PyErr_Occurred()) SWIG_fail;
11139 }
11140 resultobj = SWIG_From_int(static_cast< int >(result));
11141 return resultobj;
11142fail:
11143 return NULL;
11144}
11145
11146
11147SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11148 PyObject *resultobj = 0;
11149 wxRegion *arg1 = (wxRegion *) 0 ;
11150 wxRect *arg2 = 0 ;
11151 wxRegionContain result;
11152 void *argp1 = 0 ;
11153 int res1 = 0 ;
11154 wxRect temp2 ;
11155 PyObject * obj0 = 0 ;
11156 PyObject * obj1 = 0 ;
11157 char * kwnames[] = {
11158 (char *) "self",(char *) "rect", NULL
11159 };
11160
11161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
11162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11163 if (!SWIG_IsOK(res1)) {
11164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11165 }
11166 arg1 = reinterpret_cast< wxRegion * >(argp1);
11167 {
11168 arg2 = &temp2;
11169 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11170 }
11171 {
11172 PyThreadState* __tstate = wxPyBeginAllowThreads();
11173 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
11174 wxPyEndAllowThreads(__tstate);
11175 if (PyErr_Occurred()) SWIG_fail;
11176 }
11177 resultobj = SWIG_From_int(static_cast< int >(result));
11178 return resultobj;
11179fail:
11180 return NULL;
11181}
11182
11183
11184SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11185 PyObject *resultobj = 0;
11186 wxRegion *arg1 = (wxRegion *) 0 ;
11187 int arg2 ;
11188 int arg3 ;
11189 int arg4 ;
11190 int arg5 ;
11191 wxRegionContain result;
11192 void *argp1 = 0 ;
11193 int res1 = 0 ;
11194 int val2 ;
11195 int ecode2 = 0 ;
11196 int val3 ;
11197 int ecode3 = 0 ;
11198 int val4 ;
11199 int ecode4 = 0 ;
11200 int val5 ;
11201 int ecode5 = 0 ;
11202 PyObject * obj0 = 0 ;
11203 PyObject * obj1 = 0 ;
11204 PyObject * obj2 = 0 ;
11205 PyObject * obj3 = 0 ;
11206 PyObject * obj4 = 0 ;
11207 char * kwnames[] = {
11208 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
11209 };
11210
11211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11213 if (!SWIG_IsOK(res1)) {
11214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
11215 }
11216 arg1 = reinterpret_cast< wxRegion * >(argp1);
11217 ecode2 = SWIG_AsVal_int(obj1, &val2);
11218 if (!SWIG_IsOK(ecode2)) {
11219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
11220 }
11221 arg2 = static_cast< int >(val2);
11222 ecode3 = SWIG_AsVal_int(obj2, &val3);
11223 if (!SWIG_IsOK(ecode3)) {
11224 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
11225 }
11226 arg3 = static_cast< int >(val3);
11227 ecode4 = SWIG_AsVal_int(obj3, &val4);
11228 if (!SWIG_IsOK(ecode4)) {
11229 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
11230 }
11231 arg4 = static_cast< int >(val4);
11232 ecode5 = SWIG_AsVal_int(obj4, &val5);
11233 if (!SWIG_IsOK(ecode5)) {
11234 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
11235 }
11236 arg5 = static_cast< int >(val5);
11237 {
11238 PyThreadState* __tstate = wxPyBeginAllowThreads();
11239 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
11240 wxPyEndAllowThreads(__tstate);
11241 if (PyErr_Occurred()) SWIG_fail;
11242 }
11243 resultobj = SWIG_From_int(static_cast< int >(result));
11244 return resultobj;
11245fail:
11246 return NULL;
d55e5bfc
RD
11247}
11248
11249
554f62e9
RD
11250SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11251 PyObject *resultobj = 0;
11252 wxRegion *arg1 = (wxRegion *) 0 ;
11253 wxRect result;
11254 void *argp1 = 0 ;
11255 int res1 = 0 ;
11256 PyObject *swig_obj[1] ;
11257
11258 if (!args) SWIG_fail;
11259 swig_obj[0] = args;
11260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11261 if (!SWIG_IsOK(res1)) {
11262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
11263 }
11264 arg1 = reinterpret_cast< wxRegion * >(argp1);
11265 {
11266 PyThreadState* __tstate = wxPyBeginAllowThreads();
11267 result = (arg1)->GetBox();
11268 wxPyEndAllowThreads(__tstate);
11269 if (PyErr_Occurred()) SWIG_fail;
11270 }
11271 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11272 return resultobj;
11273fail:
11274 return NULL;
11275}
11276
11277
11278SWIGINTERN PyObject *_wrap_Region_Intersect(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_Intersect",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_Intersect" "', 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_Intersect" "', 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_Intersect" "', 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_Intersect" "', 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_Intersect" "', expected argument " "5"" of type '" "int""'");
11329 }
11330 arg5 = static_cast< int >(val5);
11331 {
11332 PyThreadState* __tstate = wxPyBeginAllowThreads();
11333 result = (bool)(arg1)->Intersect(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_IntersectRect(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_IntersectRect",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_IntersectRect" "', 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)->Intersect((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_IntersectRegion(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_IntersectRegion",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_IntersectRegion" "', 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_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11409 }
11410 if (!argp2) {
11411 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11412 }
11413 arg2 = reinterpret_cast< wxRegion * >(argp2);
11414 {
11415 PyThreadState* __tstate = wxPyBeginAllowThreads();
11416 result = (bool)(arg1)->Intersect((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;
d55e5bfc
RD
11426}
11427
11428
554f62e9
RD
11429SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11430 PyObject *resultobj = 0;
11431 wxRegion *arg1 = (wxRegion *) 0 ;
11432 bool result;
11433 void *argp1 = 0 ;
11434 int res1 = 0 ;
11435 PyObject *swig_obj[1] ;
11436
11437 if (!args) SWIG_fail;
11438 swig_obj[0] = args;
11439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11440 if (!SWIG_IsOK(res1)) {
11441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11442 }
11443 arg1 = reinterpret_cast< wxRegion * >(argp1);
11444 {
11445 PyThreadState* __tstate = wxPyBeginAllowThreads();
11446 result = (bool)(arg1)->IsEmpty();
11447 wxPyEndAllowThreads(__tstate);
11448 if (PyErr_Occurred()) SWIG_fail;
11449 }
11450 {
11451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11452 }
11453 return resultobj;
11454fail:
11455 return NULL;
11456}
11457
11458
f5263701
RD
11459SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11460 PyObject *resultobj = 0;
11461 wxRegion *arg1 = (wxRegion *) 0 ;
11462 wxRegion *arg2 = 0 ;
11463 bool result;
11464 void *argp1 = 0 ;
11465 int res1 = 0 ;
11466 void *argp2 = 0 ;
11467 int res2 = 0 ;
11468 PyObject * obj0 = 0 ;
11469 PyObject * obj1 = 0 ;
11470 char * kwnames[] = {
11471 (char *) "self",(char *) "region", NULL
11472 };
11473
11474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11476 if (!SWIG_IsOK(res1)) {
11477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11478 }
11479 arg1 = reinterpret_cast< wxRegion * >(argp1);
11480 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11481 if (!SWIG_IsOK(res2)) {
11482 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11483 }
11484 if (!argp2) {
11485 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11486 }
11487 arg2 = reinterpret_cast< wxRegion * >(argp2);
11488 {
11489 PyThreadState* __tstate = wxPyBeginAllowThreads();
11490 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11491 wxPyEndAllowThreads(__tstate);
11492 if (PyErr_Occurred()) SWIG_fail;
11493 }
11494 {
11495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11496 }
11497 return resultobj;
11498fail:
11499 return NULL;
11500}
11501
11502
554f62e9
RD
11503SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11504 PyObject *resultobj = 0;
11505 wxRegion *arg1 = (wxRegion *) 0 ;
11506 int arg2 ;
11507 int arg3 ;
11508 int arg4 ;
11509 int arg5 ;
11510 bool result;
11511 void *argp1 = 0 ;
11512 int res1 = 0 ;
11513 int val2 ;
11514 int ecode2 = 0 ;
11515 int val3 ;
11516 int ecode3 = 0 ;
11517 int val4 ;
11518 int ecode4 = 0 ;
11519 int val5 ;
11520 int ecode5 = 0 ;
11521 PyObject * obj0 = 0 ;
11522 PyObject * obj1 = 0 ;
11523 PyObject * obj2 = 0 ;
11524 PyObject * obj3 = 0 ;
11525 PyObject * obj4 = 0 ;
11526 char * kwnames[] = {
11527 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11528 };
11529
11530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11532 if (!SWIG_IsOK(res1)) {
11533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11534 }
11535 arg1 = reinterpret_cast< wxRegion * >(argp1);
11536 ecode2 = SWIG_AsVal_int(obj1, &val2);
11537 if (!SWIG_IsOK(ecode2)) {
11538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11539 }
11540 arg2 = static_cast< int >(val2);
11541 ecode3 = SWIG_AsVal_int(obj2, &val3);
11542 if (!SWIG_IsOK(ecode3)) {
11543 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11544 }
11545 arg3 = static_cast< int >(val3);
11546 ecode4 = SWIG_AsVal_int(obj3, &val4);
11547 if (!SWIG_IsOK(ecode4)) {
11548 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11549 }
11550 arg4 = static_cast< int >(val4);
11551 ecode5 = SWIG_AsVal_int(obj4, &val5);
11552 if (!SWIG_IsOK(ecode5)) {
11553 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11554 }
11555 arg5 = static_cast< int >(val5);
11556 {
11557 PyThreadState* __tstate = wxPyBeginAllowThreads();
11558 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11559 wxPyEndAllowThreads(__tstate);
11560 if (PyErr_Occurred()) SWIG_fail;
11561 }
11562 {
11563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11564 }
11565 return resultobj;
11566fail:
11567 return NULL;
11568}
11569
11570
11571SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11572 PyObject *resultobj = 0;
11573 wxRegion *arg1 = (wxRegion *) 0 ;
11574 wxRect *arg2 = 0 ;
11575 bool result;
11576 void *argp1 = 0 ;
11577 int res1 = 0 ;
11578 wxRect temp2 ;
11579 PyObject * obj0 = 0 ;
11580 PyObject * obj1 = 0 ;
11581 char * kwnames[] = {
11582 (char *) "self",(char *) "rect", NULL
11583 };
11584
11585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11587 if (!SWIG_IsOK(res1)) {
11588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11589 }
11590 arg1 = reinterpret_cast< wxRegion * >(argp1);
11591 {
11592 arg2 = &temp2;
11593 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11594 }
11595 {
11596 PyThreadState* __tstate = wxPyBeginAllowThreads();
11597 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11598 wxPyEndAllowThreads(__tstate);
11599 if (PyErr_Occurred()) SWIG_fail;
11600 }
11601 {
11602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11603 }
11604 return resultobj;
11605fail:
11606 return NULL;
11607}
11608
11609
11610SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11611 PyObject *resultobj = 0;
11612 wxRegion *arg1 = (wxRegion *) 0 ;
11613 wxRegion *arg2 = 0 ;
11614 bool result;
11615 void *argp1 = 0 ;
11616 int res1 = 0 ;
11617 void *argp2 = 0 ;
11618 int res2 = 0 ;
11619 PyObject * obj0 = 0 ;
11620 PyObject * obj1 = 0 ;
11621 char * kwnames[] = {
11622 (char *) "self",(char *) "region", NULL
11623 };
11624
11625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11627 if (!SWIG_IsOK(res1)) {
11628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11629 }
11630 arg1 = reinterpret_cast< wxRegion * >(argp1);
11631 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11632 if (!SWIG_IsOK(res2)) {
11633 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11634 }
11635 if (!argp2) {
11636 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11637 }
11638 arg2 = reinterpret_cast< wxRegion * >(argp2);
11639 {
11640 PyThreadState* __tstate = wxPyBeginAllowThreads();
11641 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11642 wxPyEndAllowThreads(__tstate);
11643 if (PyErr_Occurred()) SWIG_fail;
11644 }
11645 {
11646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11647 }
11648 return resultobj;
11649fail:
11650 return NULL;
11651}
11652
11653
11654SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11655 PyObject *resultobj = 0;
11656 wxRegion *arg1 = (wxRegion *) 0 ;
11657 int arg2 ;
11658 int arg3 ;
11659 int arg4 ;
11660 int arg5 ;
11661 bool result;
11662 void *argp1 = 0 ;
11663 int res1 = 0 ;
11664 int val2 ;
11665 int ecode2 = 0 ;
11666 int val3 ;
11667 int ecode3 = 0 ;
11668 int val4 ;
11669 int ecode4 = 0 ;
11670 int val5 ;
11671 int ecode5 = 0 ;
11672 PyObject * obj0 = 0 ;
11673 PyObject * obj1 = 0 ;
11674 PyObject * obj2 = 0 ;
11675 PyObject * obj3 = 0 ;
11676 PyObject * obj4 = 0 ;
11677 char * kwnames[] = {
11678 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11679 };
11680
11681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11683 if (!SWIG_IsOK(res1)) {
11684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11685 }
11686 arg1 = reinterpret_cast< wxRegion * >(argp1);
11687 ecode2 = SWIG_AsVal_int(obj1, &val2);
11688 if (!SWIG_IsOK(ecode2)) {
11689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11690 }
11691 arg2 = static_cast< int >(val2);
11692 ecode3 = SWIG_AsVal_int(obj2, &val3);
11693 if (!SWIG_IsOK(ecode3)) {
11694 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11695 }
11696 arg3 = static_cast< int >(val3);
11697 ecode4 = SWIG_AsVal_int(obj3, &val4);
11698 if (!SWIG_IsOK(ecode4)) {
11699 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11700 }
11701 arg4 = static_cast< int >(val4);
11702 ecode5 = SWIG_AsVal_int(obj4, &val5);
11703 if (!SWIG_IsOK(ecode5)) {
11704 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11705 }
11706 arg5 = static_cast< int >(val5);
11707 {
11708 PyThreadState* __tstate = wxPyBeginAllowThreads();
11709 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11710 wxPyEndAllowThreads(__tstate);
11711 if (PyErr_Occurred()) SWIG_fail;
11712 }
11713 {
11714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11715 }
11716 return resultobj;
11717fail:
11718 return NULL;
11719}
11720
11721
11722SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11723 PyObject *resultobj = 0;
11724 wxRegion *arg1 = (wxRegion *) 0 ;
11725 wxRect *arg2 = 0 ;
11726 bool result;
11727 void *argp1 = 0 ;
11728 int res1 = 0 ;
11729 wxRect temp2 ;
11730 PyObject * obj0 = 0 ;
11731 PyObject * obj1 = 0 ;
11732 char * kwnames[] = {
11733 (char *) "self",(char *) "rect", NULL
11734 };
11735
11736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) 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 '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11740 }
11741 arg1 = reinterpret_cast< wxRegion * >(argp1);
11742 {
11743 arg2 = &temp2;
11744 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11745 }
11746 {
11747 PyThreadState* __tstate = wxPyBeginAllowThreads();
11748 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11749 wxPyEndAllowThreads(__tstate);
11750 if (PyErr_Occurred()) SWIG_fail;
11751 }
11752 {
11753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11754 }
11755 return resultobj;
11756fail:
11757 return NULL;
11758}
11759
11760
11761SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11762 PyObject *resultobj = 0;
11763 wxRegion *arg1 = (wxRegion *) 0 ;
11764 wxRegion *arg2 = 0 ;
11765 bool result;
11766 void *argp1 = 0 ;
11767 int res1 = 0 ;
11768 void *argp2 = 0 ;
11769 int res2 = 0 ;
11770 PyObject * obj0 = 0 ;
11771 PyObject * obj1 = 0 ;
11772 char * kwnames[] = {
11773 (char *) "self",(char *) "region", NULL
11774 };
11775
11776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11778 if (!SWIG_IsOK(res1)) {
11779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11780 }
11781 arg1 = reinterpret_cast< wxRegion * >(argp1);
11782 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11783 if (!SWIG_IsOK(res2)) {
11784 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11785 }
11786 if (!argp2) {
11787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11788 }
11789 arg2 = reinterpret_cast< wxRegion * >(argp2);
11790 {
11791 PyThreadState* __tstate = wxPyBeginAllowThreads();
11792 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11793 wxPyEndAllowThreads(__tstate);
11794 if (PyErr_Occurred()) SWIG_fail;
11795 }
11796 {
11797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11798 }
11799 return resultobj;
11800fail:
11801 return NULL;
11802}
11803
11804
11805SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11806 PyObject *resultobj = 0;
11807 wxRegion *arg1 = (wxRegion *) 0 ;
11808 int arg2 ;
11809 int arg3 ;
11810 int arg4 ;
11811 int arg5 ;
11812 bool result;
11813 void *argp1 = 0 ;
11814 int res1 = 0 ;
11815 int val2 ;
11816 int ecode2 = 0 ;
11817 int val3 ;
11818 int ecode3 = 0 ;
11819 int val4 ;
11820 int ecode4 = 0 ;
11821 int val5 ;
11822 int ecode5 = 0 ;
11823 PyObject * obj0 = 0 ;
11824 PyObject * obj1 = 0 ;
11825 PyObject * obj2 = 0 ;
11826 PyObject * obj3 = 0 ;
11827 PyObject * obj4 = 0 ;
11828 char * kwnames[] = {
11829 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11830 };
11831
11832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11834 if (!SWIG_IsOK(res1)) {
11835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11836 }
11837 arg1 = reinterpret_cast< wxRegion * >(argp1);
11838 ecode2 = SWIG_AsVal_int(obj1, &val2);
11839 if (!SWIG_IsOK(ecode2)) {
11840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11841 }
11842 arg2 = static_cast< int >(val2);
11843 ecode3 = SWIG_AsVal_int(obj2, &val3);
11844 if (!SWIG_IsOK(ecode3)) {
11845 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11846 }
11847 arg3 = static_cast< int >(val3);
11848 ecode4 = SWIG_AsVal_int(obj3, &val4);
11849 if (!SWIG_IsOK(ecode4)) {
11850 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11851 }
11852 arg4 = static_cast< int >(val4);
11853 ecode5 = SWIG_AsVal_int(obj4, &val5);
11854 if (!SWIG_IsOK(ecode5)) {
11855 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11856 }
11857 arg5 = static_cast< int >(val5);
11858 {
11859 PyThreadState* __tstate = wxPyBeginAllowThreads();
11860 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11861 wxPyEndAllowThreads(__tstate);
11862 if (PyErr_Occurred()) SWIG_fail;
11863 }
11864 {
11865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11866 }
11867 return resultobj;
11868fail:
11869 return NULL;
11870}
11871
11872
11873SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11874 PyObject *resultobj = 0;
11875 wxRegion *arg1 = (wxRegion *) 0 ;
11876 wxRect *arg2 = 0 ;
11877 bool result;
11878 void *argp1 = 0 ;
11879 int res1 = 0 ;
11880 wxRect temp2 ;
11881 PyObject * obj0 = 0 ;
11882 PyObject * obj1 = 0 ;
11883 char * kwnames[] = {
11884 (char *) "self",(char *) "rect", NULL
11885 };
11886
11887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11889 if (!SWIG_IsOK(res1)) {
11890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11891 }
11892 arg1 = reinterpret_cast< wxRegion * >(argp1);
11893 {
11894 arg2 = &temp2;
11895 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11896 }
11897 {
11898 PyThreadState* __tstate = wxPyBeginAllowThreads();
11899 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11900 wxPyEndAllowThreads(__tstate);
11901 if (PyErr_Occurred()) SWIG_fail;
11902 }
11903 {
11904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11905 }
11906 return resultobj;
11907fail:
11908 return NULL;
11909}
11910
11911
11912SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11913 PyObject *resultobj = 0;
11914 wxRegion *arg1 = (wxRegion *) 0 ;
11915 wxRegion *arg2 = 0 ;
11916 bool result;
11917 void *argp1 = 0 ;
11918 int res1 = 0 ;
11919 void *argp2 = 0 ;
11920 int res2 = 0 ;
11921 PyObject * obj0 = 0 ;
11922 PyObject * obj1 = 0 ;
11923 char * kwnames[] = {
11924 (char *) "self",(char *) "region", NULL
11925 };
11926
11927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11929 if (!SWIG_IsOK(res1)) {
11930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11931 }
11932 arg1 = reinterpret_cast< wxRegion * >(argp1);
11933 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11934 if (!SWIG_IsOK(res2)) {
11935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11936 }
11937 if (!argp2) {
11938 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11939 }
11940 arg2 = reinterpret_cast< wxRegion * >(argp2);
11941 {
11942 PyThreadState* __tstate = wxPyBeginAllowThreads();
11943 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11944 wxPyEndAllowThreads(__tstate);
11945 if (PyErr_Occurred()) SWIG_fail;
11946 }
11947 {
11948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11949 }
11950 return resultobj;
11951fail:
11952 return NULL;
d55e5bfc
RD
11953}
11954
11955
554f62e9
RD
11956SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11957 PyObject *resultobj = 0;
11958 wxRegion *arg1 = (wxRegion *) 0 ;
11959 SwigValueWrapper<wxBitmap > result;
11960 void *argp1 = 0 ;
11961 int res1 = 0 ;
11962 PyObject *swig_obj[1] ;
11963
11964 if (!args) SWIG_fail;
11965 swig_obj[0] = args;
11966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11967 if (!SWIG_IsOK(res1)) {
11968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11969 }
11970 arg1 = reinterpret_cast< wxRegion * >(argp1);
11971 {
11972 PyThreadState* __tstate = wxPyBeginAllowThreads();
11973 result = (arg1)->ConvertToBitmap();
11974 wxPyEndAllowThreads(__tstate);
11975 if (PyErr_Occurred()) SWIG_fail;
11976 }
11977 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11978 return resultobj;
11979fail:
11980 return NULL;
11981}
11982
11983
11984SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11985 PyObject *resultobj = 0;
11986 wxRegion *arg1 = (wxRegion *) 0 ;
11987 wxBitmap *arg2 = 0 ;
11988 bool result;
11989 void *argp1 = 0 ;
11990 int res1 = 0 ;
11991 void *argp2 = 0 ;
11992 int res2 = 0 ;
11993 PyObject * obj0 = 0 ;
11994 PyObject * obj1 = 0 ;
11995 char * kwnames[] = {
11996 (char *) "self",(char *) "bmp", NULL
11997 };
11998
11999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
12000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12001 if (!SWIG_IsOK(res1)) {
12002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12003 }
12004 arg1 = reinterpret_cast< wxRegion * >(argp1);
12005 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12006 if (!SWIG_IsOK(res2)) {
12007 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12008 }
12009 if (!argp2) {
12010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12011 }
12012 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12013 {
12014 PyThreadState* __tstate = wxPyBeginAllowThreads();
12015 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
12016 wxPyEndAllowThreads(__tstate);
12017 if (PyErr_Occurred()) SWIG_fail;
12018 }
12019 {
12020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12021 }
12022 return resultobj;
12023fail:
12024 return NULL;
12025}
12026
12027
12028SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12029 PyObject *resultobj = 0;
12030 wxRegion *arg1 = (wxRegion *) 0 ;
12031 wxBitmap *arg2 = 0 ;
12032 wxColour *arg3 = 0 ;
12033 int arg4 = (int) 0 ;
12034 bool result;
12035 void *argp1 = 0 ;
12036 int res1 = 0 ;
12037 void *argp2 = 0 ;
12038 int res2 = 0 ;
12039 wxColour temp3 ;
12040 int val4 ;
12041 int ecode4 = 0 ;
12042 PyObject * obj0 = 0 ;
12043 PyObject * obj1 = 0 ;
12044 PyObject * obj2 = 0 ;
12045 PyObject * obj3 = 0 ;
12046 char * kwnames[] = {
12047 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
12048 };
12049
12050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12052 if (!SWIG_IsOK(res1)) {
12053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
12054 }
12055 arg1 = reinterpret_cast< wxRegion * >(argp1);
12056 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12057 if (!SWIG_IsOK(res2)) {
12058 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12059 }
12060 if (!argp2) {
12061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12062 }
12063 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12064 {
12065 arg3 = &temp3;
12066 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
12067 }
12068 if (obj3) {
12069 ecode4 = SWIG_AsVal_int(obj3, &val4);
12070 if (!SWIG_IsOK(ecode4)) {
12071 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
12072 }
12073 arg4 = static_cast< int >(val4);
12074 }
12075 {
12076 PyThreadState* __tstate = wxPyBeginAllowThreads();
12077 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
12078 wxPyEndAllowThreads(__tstate);
12079 if (PyErr_Occurred()) SWIG_fail;
12080 }
12081 {
12082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12083 }
12084 return resultobj;
12085fail:
12086 return NULL;
d55e5bfc
RD
12087}
12088
12089
554f62e9
RD
12090SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12091 PyObject *obj;
12092 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12093 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
12094 return SWIG_Py_Void();
d55e5bfc
RD
12095}
12096
554f62e9
RD
12097SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12098 return SWIG_Python_InitShadowInstance(args);
12099}
d55e5bfc 12100
554f62e9
RD
12101SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12102 PyObject *resultobj = 0;
12103 wxRegion *arg1 = 0 ;
12104 wxRegionIterator *result = 0 ;
12105 void *argp1 = 0 ;
12106 int res1 = 0 ;
12107 PyObject * obj0 = 0 ;
12108 char * kwnames[] = {
12109 (char *) "region", NULL
12110 };
12111
12112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
12113 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
12114 if (!SWIG_IsOK(res1)) {
12115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12116 }
12117 if (!argp1) {
12118 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12119 }
12120 arg1 = reinterpret_cast< wxRegion * >(argp1);
12121 {
12122 if (!wxPyCheckForApp()) SWIG_fail;
12123 PyThreadState* __tstate = wxPyBeginAllowThreads();
12124 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
12125 wxPyEndAllowThreads(__tstate);
12126 if (PyErr_Occurred()) SWIG_fail;
12127 }
12128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
12129 return resultobj;
12130fail:
12131 return NULL;
d55e5bfc
RD
12132}
12133
12134
554f62e9
RD
12135SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12136 PyObject *resultobj = 0;
12137 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12138 void *argp1 = 0 ;
12139 int res1 = 0 ;
12140 PyObject *swig_obj[1] ;
12141
12142 if (!args) SWIG_fail;
12143 swig_obj[0] = args;
12144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
12145 if (!SWIG_IsOK(res1)) {
12146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12147 }
12148 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12149 {
12150 PyThreadState* __tstate = wxPyBeginAllowThreads();
12151 delete arg1;
d55e5bfc 12152
554f62e9
RD
12153 wxPyEndAllowThreads(__tstate);
12154 if (PyErr_Occurred()) SWIG_fail;
12155 }
12156 resultobj = SWIG_Py_Void();
12157 return resultobj;
12158fail:
12159 return NULL;
d55e5bfc
RD
12160}
12161
12162
554f62e9
RD
12163SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12164 PyObject *resultobj = 0;
12165 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12166 int result;
12167 void *argp1 = 0 ;
12168 int res1 = 0 ;
12169 PyObject *swig_obj[1] ;
12170
12171 if (!args) SWIG_fail;
12172 swig_obj[0] = args;
12173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12174 if (!SWIG_IsOK(res1)) {
12175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12176 }
12177 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12178 {
12179 PyThreadState* __tstate = wxPyBeginAllowThreads();
12180 result = (int)(arg1)->GetX();
12181 wxPyEndAllowThreads(__tstate);
12182 if (PyErr_Occurred()) SWIG_fail;
12183 }
12184 resultobj = SWIG_From_int(static_cast< int >(result));
12185 return resultobj;
12186fail:
12187 return NULL;
d55e5bfc
RD
12188}
12189
12190
554f62e9
RD
12191SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12192 PyObject *resultobj = 0;
12193 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12194 int result;
12195 void *argp1 = 0 ;
12196 int res1 = 0 ;
12197 PyObject *swig_obj[1] ;
12198
12199 if (!args) SWIG_fail;
12200 swig_obj[0] = args;
12201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12202 if (!SWIG_IsOK(res1)) {
12203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12204 }
12205 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12206 {
12207 PyThreadState* __tstate = wxPyBeginAllowThreads();
12208 result = (int)(arg1)->GetY();
12209 wxPyEndAllowThreads(__tstate);
12210 if (PyErr_Occurred()) SWIG_fail;
12211 }
12212 resultobj = SWIG_From_int(static_cast< int >(result));
12213 return resultobj;
12214fail:
12215 return NULL;
d55e5bfc
RD
12216}
12217
12218
554f62e9
RD
12219SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12220 PyObject *resultobj = 0;
12221 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12222 int result;
12223 void *argp1 = 0 ;
12224 int res1 = 0 ;
12225 PyObject *swig_obj[1] ;
12226
12227 if (!args) SWIG_fail;
12228 swig_obj[0] = args;
12229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12230 if (!SWIG_IsOK(res1)) {
12231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12232 }
12233 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12234 {
12235 PyThreadState* __tstate = wxPyBeginAllowThreads();
12236 result = (int)(arg1)->GetW();
12237 wxPyEndAllowThreads(__tstate);
12238 if (PyErr_Occurred()) SWIG_fail;
12239 }
12240 resultobj = SWIG_From_int(static_cast< int >(result));
12241 return resultobj;
12242fail:
12243 return NULL;
d55e5bfc
RD
12244}
12245
12246
554f62e9
RD
12247SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12248 PyObject *resultobj = 0;
12249 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12250 int result;
12251 void *argp1 = 0 ;
12252 int res1 = 0 ;
12253 PyObject *swig_obj[1] ;
12254
12255 if (!args) SWIG_fail;
12256 swig_obj[0] = args;
12257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12258 if (!SWIG_IsOK(res1)) {
12259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12260 }
12261 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12262 {
12263 PyThreadState* __tstate = wxPyBeginAllowThreads();
12264 result = (int)(arg1)->GetWidth();
12265 wxPyEndAllowThreads(__tstate);
12266 if (PyErr_Occurred()) SWIG_fail;
12267 }
12268 resultobj = SWIG_From_int(static_cast< int >(result));
12269 return resultobj;
12270fail:
12271 return NULL;
d55e5bfc
RD
12272}
12273
12274
554f62e9
RD
12275SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12276 PyObject *resultobj = 0;
12277 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12278 int result;
12279 void *argp1 = 0 ;
12280 int res1 = 0 ;
12281 PyObject *swig_obj[1] ;
12282
12283 if (!args) SWIG_fail;
12284 swig_obj[0] = args;
12285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12286 if (!SWIG_IsOK(res1)) {
12287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12288 }
12289 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12290 {
12291 PyThreadState* __tstate = wxPyBeginAllowThreads();
12292 result = (int)(arg1)->GetH();
12293 wxPyEndAllowThreads(__tstate);
12294 if (PyErr_Occurred()) SWIG_fail;
12295 }
12296 resultobj = SWIG_From_int(static_cast< int >(result));
12297 return resultobj;
12298fail:
12299 return NULL;
d55e5bfc
RD
12300}
12301
12302
554f62e9
RD
12303SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12304 PyObject *resultobj = 0;
12305 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12306 int result;
12307 void *argp1 = 0 ;
12308 int res1 = 0 ;
12309 PyObject *swig_obj[1] ;
12310
12311 if (!args) SWIG_fail;
12312 swig_obj[0] = args;
12313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12314 if (!SWIG_IsOK(res1)) {
12315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12316 }
12317 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12318 {
12319 PyThreadState* __tstate = wxPyBeginAllowThreads();
12320 result = (int)(arg1)->GetHeight();
12321 wxPyEndAllowThreads(__tstate);
12322 if (PyErr_Occurred()) SWIG_fail;
12323 }
12324 resultobj = SWIG_From_int(static_cast< int >(result));
12325 return resultobj;
12326fail:
12327 return NULL;
d55e5bfc
RD
12328}
12329
12330
554f62e9
RD
12331SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12332 PyObject *resultobj = 0;
12333 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12334 wxRect result;
12335 void *argp1 = 0 ;
12336 int res1 = 0 ;
12337 PyObject *swig_obj[1] ;
12338
12339 if (!args) SWIG_fail;
12340 swig_obj[0] = args;
12341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12342 if (!SWIG_IsOK(res1)) {
12343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12344 }
12345 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12346 {
12347 PyThreadState* __tstate = wxPyBeginAllowThreads();
12348 result = (arg1)->GetRect();
12349 wxPyEndAllowThreads(__tstate);
12350 if (PyErr_Occurred()) SWIG_fail;
12351 }
12352 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12353 return resultobj;
12354fail:
12355 return NULL;
d55e5bfc
RD
12356}
12357
12358
554f62e9
RD
12359SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12360 PyObject *resultobj = 0;
12361 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12362 bool result;
12363 void *argp1 = 0 ;
12364 int res1 = 0 ;
12365 PyObject *swig_obj[1] ;
12366
12367 if (!args) SWIG_fail;
12368 swig_obj[0] = args;
12369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12370 if (!SWIG_IsOK(res1)) {
12371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12372 }
12373 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12374 {
12375 PyThreadState* __tstate = wxPyBeginAllowThreads();
12376 result = (bool)(arg1)->HaveRects();
12377 wxPyEndAllowThreads(__tstate);
12378 if (PyErr_Occurred()) SWIG_fail;
12379 }
12380 {
12381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12382 }
12383 return resultobj;
12384fail:
12385 return NULL;
d55e5bfc
RD
12386}
12387
12388
554f62e9
RD
12389SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12390 PyObject *resultobj = 0;
12391 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12392 void *argp1 = 0 ;
12393 int res1 = 0 ;
12394 PyObject *swig_obj[1] ;
12395
12396 if (!args) SWIG_fail;
12397 swig_obj[0] = args;
12398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12399 if (!SWIG_IsOK(res1)) {
12400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12401 }
12402 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12403 {
12404 PyThreadState* __tstate = wxPyBeginAllowThreads();
12405 (arg1)->Reset();
12406 wxPyEndAllowThreads(__tstate);
12407 if (PyErr_Occurred()) SWIG_fail;
12408 }
12409 resultobj = SWIG_Py_Void();
12410 return resultobj;
12411fail:
12412 return NULL;
d55e5bfc
RD
12413}
12414
12415
554f62e9
RD
12416SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12417 PyObject *resultobj = 0;
12418 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12419 void *argp1 = 0 ;
12420 int res1 = 0 ;
12421 PyObject *swig_obj[1] ;
12422
12423 if (!args) SWIG_fail;
12424 swig_obj[0] = args;
12425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12426 if (!SWIG_IsOK(res1)) {
12427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12428 }
12429 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12430 {
12431 PyThreadState* __tstate = wxPyBeginAllowThreads();
12432 wxRegionIterator_Next(arg1);
12433 wxPyEndAllowThreads(__tstate);
12434 if (PyErr_Occurred()) SWIG_fail;
12435 }
12436 resultobj = SWIG_Py_Void();
12437 return resultobj;
12438fail:
12439 return NULL;
d55e5bfc
RD
12440}
12441
12442
554f62e9
RD
12443SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12444 PyObject *resultobj = 0;
12445 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12446 bool result;
12447 void *argp1 = 0 ;
12448 int res1 = 0 ;
12449 PyObject *swig_obj[1] ;
12450
12451 if (!args) SWIG_fail;
12452 swig_obj[0] = args;
12453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12454 if (!SWIG_IsOK(res1)) {
12455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12456 }
12457 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12458 {
12459 PyThreadState* __tstate = wxPyBeginAllowThreads();
12460 result = (bool)wxRegionIterator___nonzero__(arg1);
12461 wxPyEndAllowThreads(__tstate);
12462 if (PyErr_Occurred()) SWIG_fail;
12463 }
12464 {
12465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12466 }
12467 return resultobj;
12468fail:
12469 return NULL;
d55e5bfc
RD
12470}
12471
12472
554f62e9
RD
12473SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12474 PyObject *obj;
12475 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12476 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12477 return SWIG_Py_Void();
d55e5bfc
RD
12478}
12479
554f62e9
RD
12480SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12481 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
12482}
12483
554f62e9
RD
12484SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12485 PyObject *resultobj = 0;
12486 wxNativeFontInfo *result = 0 ;
12487
12488 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12489 {
12490 PyThreadState* __tstate = wxPyBeginAllowThreads();
12491 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12492 wxPyEndAllowThreads(__tstate);
12493 if (PyErr_Occurred()) SWIG_fail;
12494 }
12495 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12496 return resultobj;
12497fail:
12498 return NULL;
d55e5bfc
RD
12499}
12500
12501
554f62e9
RD
12502SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12503 PyObject *resultobj = 0;
12504 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12505 void *argp1 = 0 ;
12506 int res1 = 0 ;
12507 PyObject *swig_obj[1] ;
12508
12509 if (!args) SWIG_fail;
12510 swig_obj[0] = args;
12511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12512 if (!SWIG_IsOK(res1)) {
12513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12514 }
12515 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12516 {
12517 PyThreadState* __tstate = wxPyBeginAllowThreads();
12518 delete arg1;
d55e5bfc 12519
554f62e9
RD
12520 wxPyEndAllowThreads(__tstate);
12521 if (PyErr_Occurred()) SWIG_fail;
12522 }
12523 resultobj = SWIG_Py_Void();
12524 return resultobj;
12525fail:
12526 return NULL;
d55e5bfc
RD
12527}
12528
12529
554f62e9
RD
12530SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12531 PyObject *resultobj = 0;
12532 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12533 void *argp1 = 0 ;
12534 int res1 = 0 ;
12535 PyObject *swig_obj[1] ;
12536
12537 if (!args) SWIG_fail;
12538 swig_obj[0] = args;
12539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12540 if (!SWIG_IsOK(res1)) {
12541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12542 }
12543 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12544 {
12545 PyThreadState* __tstate = wxPyBeginAllowThreads();
12546 (arg1)->Init();
12547 wxPyEndAllowThreads(__tstate);
12548 if (PyErr_Occurred()) SWIG_fail;
12549 }
12550 resultobj = SWIG_Py_Void();
12551 return resultobj;
12552fail:
12553 return NULL;
12554}
12555
12556
12557SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12558 PyObject *resultobj = 0;
12559 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12560 wxFont *arg2 = 0 ;
12561 void *argp1 = 0 ;
12562 int res1 = 0 ;
12563 void *argp2 = 0 ;
12564 int res2 = 0 ;
12565 PyObject * obj0 = 0 ;
12566 PyObject * obj1 = 0 ;
12567 char * kwnames[] = {
12568 (char *) "self",(char *) "font", NULL
12569 };
12570
12571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12573 if (!SWIG_IsOK(res1)) {
12574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12575 }
12576 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12577 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12578 if (!SWIG_IsOK(res2)) {
12579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12580 }
12581 if (!argp2) {
12582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12583 }
12584 arg2 = reinterpret_cast< wxFont * >(argp2);
12585 {
12586 PyThreadState* __tstate = wxPyBeginAllowThreads();
12587 (arg1)->InitFromFont((wxFont const &)*arg2);
12588 wxPyEndAllowThreads(__tstate);
12589 if (PyErr_Occurred()) SWIG_fail;
12590 }
12591 resultobj = SWIG_Py_Void();
12592 return resultobj;
12593fail:
12594 return NULL;
d55e5bfc
RD
12595}
12596
12597
554f62e9
RD
12598SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12599 PyObject *resultobj = 0;
12600 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12601 int result;
12602 void *argp1 = 0 ;
12603 int res1 = 0 ;
12604 PyObject *swig_obj[1] ;
12605
12606 if (!args) SWIG_fail;
12607 swig_obj[0] = args;
12608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12609 if (!SWIG_IsOK(res1)) {
12610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12611 }
12612 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12613 {
12614 PyThreadState* __tstate = wxPyBeginAllowThreads();
12615 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12616 wxPyEndAllowThreads(__tstate);
12617 if (PyErr_Occurred()) SWIG_fail;
12618 }
12619 resultobj = SWIG_From_int(static_cast< int >(result));
12620 return resultobj;
12621fail:
12622 return NULL;
d55e5bfc
RD
12623}
12624
12625
554f62e9
RD
12626SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12627 PyObject *resultobj = 0;
12628 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12629 wxSize result;
12630 void *argp1 = 0 ;
12631 int res1 = 0 ;
12632 PyObject *swig_obj[1] ;
12633
12634 if (!args) SWIG_fail;
12635 swig_obj[0] = args;
12636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12637 if (!SWIG_IsOK(res1)) {
12638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12639 }
12640 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12641 {
12642 PyThreadState* __tstate = wxPyBeginAllowThreads();
12643 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12644 wxPyEndAllowThreads(__tstate);
12645 if (PyErr_Occurred()) SWIG_fail;
12646 }
12647 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12648 return resultobj;
12649fail:
12650 return NULL;
d55e5bfc
RD
12651}
12652
12653
554f62e9
RD
12654SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12655 PyObject *resultobj = 0;
12656 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12657 wxFontStyle result;
12658 void *argp1 = 0 ;
12659 int res1 = 0 ;
12660 PyObject *swig_obj[1] ;
12661
12662 if (!args) SWIG_fail;
12663 swig_obj[0] = args;
12664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12665 if (!SWIG_IsOK(res1)) {
12666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12667 }
12668 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12669 {
12670 PyThreadState* __tstate = wxPyBeginAllowThreads();
12671 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12672 wxPyEndAllowThreads(__tstate);
12673 if (PyErr_Occurred()) SWIG_fail;
12674 }
12675 resultobj = SWIG_From_int(static_cast< int >(result));
12676 return resultobj;
12677fail:
12678 return NULL;
d55e5bfc
RD
12679}
12680
12681
554f62e9
RD
12682SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12683 PyObject *resultobj = 0;
12684 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12685 wxFontWeight result;
12686 void *argp1 = 0 ;
12687 int res1 = 0 ;
12688 PyObject *swig_obj[1] ;
12689
12690 if (!args) SWIG_fail;
12691 swig_obj[0] = args;
12692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12693 if (!SWIG_IsOK(res1)) {
12694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12695 }
12696 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12697 {
12698 PyThreadState* __tstate = wxPyBeginAllowThreads();
12699 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12700 wxPyEndAllowThreads(__tstate);
12701 if (PyErr_Occurred()) SWIG_fail;
12702 }
12703 resultobj = SWIG_From_int(static_cast< int >(result));
12704 return resultobj;
12705fail:
12706 return NULL;
d55e5bfc
RD
12707}
12708
12709
554f62e9
RD
12710SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12711 PyObject *resultobj = 0;
12712 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12713 bool result;
12714 void *argp1 = 0 ;
12715 int res1 = 0 ;
12716 PyObject *swig_obj[1] ;
12717
12718 if (!args) SWIG_fail;
12719 swig_obj[0] = args;
12720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12721 if (!SWIG_IsOK(res1)) {
12722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12723 }
12724 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12725 {
12726 PyThreadState* __tstate = wxPyBeginAllowThreads();
12727 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12728 wxPyEndAllowThreads(__tstate);
12729 if (PyErr_Occurred()) SWIG_fail;
12730 }
12731 {
12732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12733 }
12734 return resultobj;
12735fail:
12736 return NULL;
d55e5bfc
RD
12737}
12738
12739
554f62e9
RD
12740SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12741 PyObject *resultobj = 0;
12742 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12743 wxString result;
12744 void *argp1 = 0 ;
12745 int res1 = 0 ;
12746 PyObject *swig_obj[1] ;
12747
12748 if (!args) SWIG_fail;
12749 swig_obj[0] = args;
12750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12751 if (!SWIG_IsOK(res1)) {
12752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12753 }
12754 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12755 {
12756 PyThreadState* __tstate = wxPyBeginAllowThreads();
12757 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12758 wxPyEndAllowThreads(__tstate);
12759 if (PyErr_Occurred()) SWIG_fail;
12760 }
12761 {
093d3ff1 12762#if wxUSE_UNICODE
554f62e9 12763 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 12764#else
554f62e9 12765 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 12766#endif
554f62e9
RD
12767 }
12768 return resultobj;
12769fail:
12770 return NULL;
d55e5bfc
RD
12771}
12772
12773
554f62e9
RD
12774SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12775 PyObject *resultobj = 0;
12776 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12777 wxFontFamily result;
12778 void *argp1 = 0 ;
12779 int res1 = 0 ;
12780 PyObject *swig_obj[1] ;
12781
12782 if (!args) SWIG_fail;
12783 swig_obj[0] = args;
12784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12785 if (!SWIG_IsOK(res1)) {
12786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12787 }
12788 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12789 {
12790 PyThreadState* __tstate = wxPyBeginAllowThreads();
12791 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12792 wxPyEndAllowThreads(__tstate);
12793 if (PyErr_Occurred()) SWIG_fail;
12794 }
12795 resultobj = SWIG_From_int(static_cast< int >(result));
12796 return resultobj;
12797fail:
12798 return NULL;
d55e5bfc
RD
12799}
12800
12801
554f62e9
RD
12802SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12803 PyObject *resultobj = 0;
12804 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12805 wxFontEncoding result;
12806 void *argp1 = 0 ;
12807 int res1 = 0 ;
12808 PyObject *swig_obj[1] ;
12809
12810 if (!args) SWIG_fail;
12811 swig_obj[0] = args;
12812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12813 if (!SWIG_IsOK(res1)) {
12814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12815 }
12816 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12817 {
12818 PyThreadState* __tstate = wxPyBeginAllowThreads();
12819 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12820 wxPyEndAllowThreads(__tstate);
12821 if (PyErr_Occurred()) SWIG_fail;
12822 }
12823 resultobj = SWIG_From_int(static_cast< int >(result));
12824 return resultobj;
12825fail:
12826 return NULL;
12827}
12828
12829
12830SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12831 PyObject *resultobj = 0;
12832 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12833 int arg2 ;
12834 void *argp1 = 0 ;
12835 int res1 = 0 ;
12836 int val2 ;
12837 int ecode2 = 0 ;
12838 PyObject * obj0 = 0 ;
12839 PyObject * obj1 = 0 ;
12840 char * kwnames[] = {
12841 (char *) "self",(char *) "pointsize", NULL
12842 };
12843
12844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12846 if (!SWIG_IsOK(res1)) {
12847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12848 }
12849 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12850 ecode2 = SWIG_AsVal_int(obj1, &val2);
12851 if (!SWIG_IsOK(ecode2)) {
12852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12853 }
12854 arg2 = static_cast< int >(val2);
12855 {
12856 PyThreadState* __tstate = wxPyBeginAllowThreads();
12857 (arg1)->SetPointSize(arg2);
12858 wxPyEndAllowThreads(__tstate);
12859 if (PyErr_Occurred()) SWIG_fail;
12860 }
12861 resultobj = SWIG_Py_Void();
12862 return resultobj;
12863fail:
12864 return NULL;
12865}
12866
12867
12868SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12869 PyObject *resultobj = 0;
12870 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12871 wxSize *arg2 = 0 ;
12872 void *argp1 = 0 ;
12873 int res1 = 0 ;
12874 wxSize temp2 ;
12875 PyObject * obj0 = 0 ;
12876 PyObject * obj1 = 0 ;
12877 char * kwnames[] = {
12878 (char *) "self",(char *) "pixelSize", NULL
12879 };
12880
12881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12883 if (!SWIG_IsOK(res1)) {
12884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12885 }
12886 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12887 {
12888 arg2 = &temp2;
12889 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12890 }
12891 {
12892 PyThreadState* __tstate = wxPyBeginAllowThreads();
12893 (arg1)->SetPixelSize((wxSize const &)*arg2);
12894 wxPyEndAllowThreads(__tstate);
12895 if (PyErr_Occurred()) SWIG_fail;
12896 }
12897 resultobj = SWIG_Py_Void();
12898 return resultobj;
12899fail:
12900 return NULL;
12901}
12902
12903
12904SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12905 PyObject *resultobj = 0;
12906 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12907 wxFontStyle arg2 ;
12908 void *argp1 = 0 ;
12909 int res1 = 0 ;
12910 int val2 ;
12911 int ecode2 = 0 ;
12912 PyObject * obj0 = 0 ;
12913 PyObject * obj1 = 0 ;
12914 char * kwnames[] = {
12915 (char *) "self",(char *) "style", NULL
12916 };
12917
12918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12920 if (!SWIG_IsOK(res1)) {
12921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12922 }
12923 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12924 ecode2 = SWIG_AsVal_int(obj1, &val2);
12925 if (!SWIG_IsOK(ecode2)) {
12926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12927 }
12928 arg2 = static_cast< wxFontStyle >(val2);
12929 {
12930 PyThreadState* __tstate = wxPyBeginAllowThreads();
12931 (arg1)->SetStyle(arg2);
12932 wxPyEndAllowThreads(__tstate);
12933 if (PyErr_Occurred()) SWIG_fail;
12934 }
12935 resultobj = SWIG_Py_Void();
12936 return resultobj;
12937fail:
12938 return NULL;
12939}
12940
12941
12942SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12943 PyObject *resultobj = 0;
12944 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12945 wxFontWeight arg2 ;
12946 void *argp1 = 0 ;
12947 int res1 = 0 ;
12948 int val2 ;
12949 int ecode2 = 0 ;
12950 PyObject * obj0 = 0 ;
12951 PyObject * obj1 = 0 ;
12952 char * kwnames[] = {
12953 (char *) "self",(char *) "weight", NULL
12954 };
12955
12956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12958 if (!SWIG_IsOK(res1)) {
12959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12960 }
12961 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12962 ecode2 = SWIG_AsVal_int(obj1, &val2);
12963 if (!SWIG_IsOK(ecode2)) {
12964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12965 }
12966 arg2 = static_cast< wxFontWeight >(val2);
12967 {
12968 PyThreadState* __tstate = wxPyBeginAllowThreads();
12969 (arg1)->SetWeight(arg2);
12970 wxPyEndAllowThreads(__tstate);
12971 if (PyErr_Occurred()) SWIG_fail;
12972 }
12973 resultobj = SWIG_Py_Void();
12974 return resultobj;
12975fail:
12976 return NULL;
12977}
12978
12979
12980SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12981 PyObject *resultobj = 0;
12982 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12983 bool arg2 ;
12984 void *argp1 = 0 ;
12985 int res1 = 0 ;
12986 bool val2 ;
12987 int ecode2 = 0 ;
12988 PyObject * obj0 = 0 ;
12989 PyObject * obj1 = 0 ;
12990 char * kwnames[] = {
12991 (char *) "self",(char *) "underlined", NULL
12992 };
12993
12994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12996 if (!SWIG_IsOK(res1)) {
12997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12998 }
12999 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13000 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13001 if (!SWIG_IsOK(ecode2)) {
13002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
13003 }
13004 arg2 = static_cast< bool >(val2);
13005 {
13006 PyThreadState* __tstate = wxPyBeginAllowThreads();
13007 (arg1)->SetUnderlined(arg2);
13008 wxPyEndAllowThreads(__tstate);
13009 if (PyErr_Occurred()) SWIG_fail;
13010 }
13011 resultobj = SWIG_Py_Void();
13012 return resultobj;
13013fail:
13014 return NULL;
13015}
13016
13017
13018SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13019 PyObject *resultobj = 0;
13020 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13021 wxString arg2 ;
704eda0c 13022 bool result;
554f62e9
RD
13023 void *argp1 = 0 ;
13024 int res1 = 0 ;
13025 PyObject * obj0 = 0 ;
13026 PyObject * obj1 = 0 ;
13027 char * kwnames[] = {
13028 (char *) "self",(char *) "facename", NULL
13029 };
13030
13031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
13032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13033 if (!SWIG_IsOK(res1)) {
13034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13035 }
13036 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13037 {
13038 wxString* sptr = wxString_in_helper(obj1);
13039 if (sptr == NULL) SWIG_fail;
13040 arg2 = *sptr;
13041 delete sptr;
13042 }
13043 {
13044 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 13045 result = (bool)(arg1)->SetFaceName(arg2);
554f62e9
RD
13046 wxPyEndAllowThreads(__tstate);
13047 if (PyErr_Occurred()) SWIG_fail;
13048 }
704eda0c
RD
13049 {
13050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13051 }
554f62e9
RD
13052 return resultobj;
13053fail:
13054 return NULL;
13055}
13056
13057
13058SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13059 PyObject *resultobj = 0;
13060 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13061 wxFontFamily arg2 ;
13062 void *argp1 = 0 ;
13063 int res1 = 0 ;
13064 int val2 ;
13065 int ecode2 = 0 ;
13066 PyObject * obj0 = 0 ;
13067 PyObject * obj1 = 0 ;
13068 char * kwnames[] = {
13069 (char *) "self",(char *) "family", NULL
13070 };
13071
13072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
13073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13074 if (!SWIG_IsOK(res1)) {
13075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13076 }
13077 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13078 ecode2 = SWIG_AsVal_int(obj1, &val2);
13079 if (!SWIG_IsOK(ecode2)) {
13080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
13081 }
13082 arg2 = static_cast< wxFontFamily >(val2);
13083 {
13084 PyThreadState* __tstate = wxPyBeginAllowThreads();
13085 (arg1)->SetFamily(arg2);
13086 wxPyEndAllowThreads(__tstate);
13087 if (PyErr_Occurred()) SWIG_fail;
13088 }
13089 resultobj = SWIG_Py_Void();
13090 return resultobj;
13091fail:
13092 return NULL;
13093}
13094
13095
13096SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13097 PyObject *resultobj = 0;
13098 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13099 wxFontEncoding arg2 ;
13100 void *argp1 = 0 ;
13101 int res1 = 0 ;
13102 int val2 ;
13103 int ecode2 = 0 ;
13104 PyObject * obj0 = 0 ;
13105 PyObject * obj1 = 0 ;
13106 char * kwnames[] = {
13107 (char *) "self",(char *) "encoding", NULL
13108 };
13109
13110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
13111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13112 if (!SWIG_IsOK(res1)) {
13113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13114 }
13115 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13116 ecode2 = SWIG_AsVal_int(obj1, &val2);
13117 if (!SWIG_IsOK(ecode2)) {
13118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13119 }
13120 arg2 = static_cast< wxFontEncoding >(val2);
13121 {
13122 PyThreadState* __tstate = wxPyBeginAllowThreads();
13123 (arg1)->SetEncoding(arg2);
13124 wxPyEndAllowThreads(__tstate);
13125 if (PyErr_Occurred()) SWIG_fail;
13126 }
13127 resultobj = SWIG_Py_Void();
13128 return resultobj;
13129fail:
13130 return NULL;
13131}
13132
13133
13134SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13135 PyObject *resultobj = 0;
13136 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13137 wxString *arg2 = 0 ;
13138 bool result;
13139 void *argp1 = 0 ;
13140 int res1 = 0 ;
13141 bool temp2 = false ;
13142 PyObject * obj0 = 0 ;
13143 PyObject * obj1 = 0 ;
13144 char * kwnames[] = {
13145 (char *) "self",(char *) "s", NULL
13146 };
13147
13148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13150 if (!SWIG_IsOK(res1)) {
13151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13152 }
13153 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13154 {
13155 arg2 = wxString_in_helper(obj1);
13156 if (arg2 == NULL) SWIG_fail;
13157 temp2 = true;
13158 }
13159 {
13160 PyThreadState* __tstate = wxPyBeginAllowThreads();
13161 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13162 wxPyEndAllowThreads(__tstate);
13163 if (PyErr_Occurred()) SWIG_fail;
13164 }
13165 {
13166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13167 }
13168 {
13169 if (temp2)
13170 delete arg2;
13171 }
13172 return resultobj;
13173fail:
13174 {
13175 if (temp2)
13176 delete arg2;
13177 }
13178 return NULL;
d55e5bfc
RD
13179}
13180
13181
554f62e9
RD
13182SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13183 PyObject *resultobj = 0;
13184 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13185 wxString result;
13186 void *argp1 = 0 ;
13187 int res1 = 0 ;
13188 PyObject *swig_obj[1] ;
13189
13190 if (!args) SWIG_fail;
13191 swig_obj[0] = args;
13192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13193 if (!SWIG_IsOK(res1)) {
13194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13195 }
13196 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13197 {
13198 PyThreadState* __tstate = wxPyBeginAllowThreads();
13199 result = ((wxNativeFontInfo const *)arg1)->ToString();
13200 wxPyEndAllowThreads(__tstate);
13201 if (PyErr_Occurred()) SWIG_fail;
13202 }
13203 {
13204#if wxUSE_UNICODE
13205 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13206#else
13207 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13208#endif
13209 }
13210 return resultobj;
13211fail:
13212 return NULL;
d55e5bfc
RD
13213}
13214
13215
554f62e9
RD
13216SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13217 PyObject *resultobj = 0;
13218 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13219 wxString result;
13220 void *argp1 = 0 ;
13221 int res1 = 0 ;
13222 PyObject *swig_obj[1] ;
13223
13224 if (!args) SWIG_fail;
13225 swig_obj[0] = args;
13226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13227 if (!SWIG_IsOK(res1)) {
13228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13229 }
13230 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13231 {
13232 PyThreadState* __tstate = wxPyBeginAllowThreads();
13233 result = wxNativeFontInfo___str__(arg1);
13234 wxPyEndAllowThreads(__tstate);
13235 if (PyErr_Occurred()) SWIG_fail;
13236 }
13237 {
13238#if wxUSE_UNICODE
13239 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13240#else
13241 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13242#endif
13243 }
13244 return resultobj;
13245fail:
13246 return NULL;
13247}
13248
13249
13250SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13251 PyObject *resultobj = 0;
13252 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13253 wxString *arg2 = 0 ;
13254 bool result;
13255 void *argp1 = 0 ;
13256 int res1 = 0 ;
13257 bool temp2 = false ;
13258 PyObject * obj0 = 0 ;
13259 PyObject * obj1 = 0 ;
13260 char * kwnames[] = {
13261 (char *) "self",(char *) "s", NULL
13262 };
13263
13264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
13265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13266 if (!SWIG_IsOK(res1)) {
13267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13268 }
13269 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13270 {
13271 arg2 = wxString_in_helper(obj1);
13272 if (arg2 == NULL) SWIG_fail;
13273 temp2 = true;
13274 }
13275 {
13276 PyThreadState* __tstate = wxPyBeginAllowThreads();
13277 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
13278 wxPyEndAllowThreads(__tstate);
13279 if (PyErr_Occurred()) SWIG_fail;
13280 }
13281 {
13282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13283 }
13284 {
13285 if (temp2)
13286 delete arg2;
13287 }
13288 return resultobj;
13289fail:
13290 {
13291 if (temp2)
13292 delete arg2;
13293 }
13294 return NULL;
a2569024
RD
13295}
13296
13297
554f62e9
RD
13298SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13299 PyObject *resultobj = 0;
13300 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13301 wxString result;
13302 void *argp1 = 0 ;
13303 int res1 = 0 ;
13304 PyObject *swig_obj[1] ;
13305
13306 if (!args) SWIG_fail;
13307 swig_obj[0] = args;
13308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13309 if (!SWIG_IsOK(res1)) {
13310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13311 }
13312 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13313 {
13314 PyThreadState* __tstate = wxPyBeginAllowThreads();
13315 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
13316 wxPyEndAllowThreads(__tstate);
13317 if (PyErr_Occurred()) SWIG_fail;
13318 }
13319 {
13320#if wxUSE_UNICODE
13321 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13322#else
13323 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13324#endif
13325 }
13326 return resultobj;
13327fail:
13328 return NULL;
d55e5bfc
RD
13329}
13330
13331
554f62e9
RD
13332SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13333 PyObject *obj;
13334 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13335 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13336 return SWIG_Py_Void();
d55e5bfc
RD
13337}
13338
554f62e9
RD
13339SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13340 return SWIG_Python_InitShadowInstance(args);
13341}
d55e5bfc 13342
554f62e9
RD
13343SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13344 PyObject *resultobj = 0;
13345 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13346 wxString *arg2 = (wxString *) 0 ;
13347 void *argp1 = 0 ;
13348 int res1 = 0 ;
13349 bool temp2 = false ;
13350 PyObject *swig_obj[2] ;
13351
13352 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13354 if (!SWIG_IsOK(res1)) {
13355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13356 }
13357 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13358 {
13359 arg2 = wxString_in_helper(swig_obj[1]);
13360 if (arg2 == NULL) SWIG_fail;
13361 temp2 = true;
13362 }
13363 if (arg1) (arg1)->facename = *arg2;
13364
13365 resultobj = SWIG_Py_Void();
13366 {
13367 if (temp2)
13368 delete arg2;
13369 }
13370 return resultobj;
13371fail:
13372 {
13373 if (temp2)
13374 delete arg2;
13375 }
13376 return NULL;
d55e5bfc
RD
13377}
13378
13379
554f62e9
RD
13380SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13381 PyObject *resultobj = 0;
13382 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13383 wxString *result = 0 ;
13384 void *argp1 = 0 ;
13385 int res1 = 0 ;
13386 PyObject *swig_obj[1] ;
13387
13388 if (!args) SWIG_fail;
13389 swig_obj[0] = args;
13390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13391 if (!SWIG_IsOK(res1)) {
13392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13393 }
13394 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13395 result = (wxString *)& ((arg1)->facename);
13396 {
13397#if wxUSE_UNICODE
13398 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13399#else
13400 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13401#endif
13402 }
13403 return resultobj;
13404fail:
13405 return NULL;
d55e5bfc
RD
13406}
13407
13408
554f62e9
RD
13409SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13410 PyObject *resultobj = 0;
13411 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13412 wxFontEncoding arg2 ;
13413 void *argp1 = 0 ;
13414 int res1 = 0 ;
13415 int val2 ;
13416 int ecode2 = 0 ;
13417 PyObject *swig_obj[2] ;
13418
13419 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13421 if (!SWIG_IsOK(res1)) {
13422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13423 }
13424 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13425 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13426 if (!SWIG_IsOK(ecode2)) {
13427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13428 }
13429 arg2 = static_cast< wxFontEncoding >(val2);
13430 if (arg1) (arg1)->encoding = arg2;
13431
13432 resultobj = SWIG_Py_Void();
13433 return resultobj;
13434fail:
13435 return NULL;
d55e5bfc
RD
13436}
13437
13438
554f62e9
RD
13439SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13440 PyObject *resultobj = 0;
13441 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13442 wxFontEncoding result;
13443 void *argp1 = 0 ;
13444 int res1 = 0 ;
13445 PyObject *swig_obj[1] ;
13446
13447 if (!args) SWIG_fail;
13448 swig_obj[0] = args;
13449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13450 if (!SWIG_IsOK(res1)) {
13451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13452 }
13453 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13454 result = (wxFontEncoding) ((arg1)->encoding);
13455 resultobj = SWIG_From_int(static_cast< int >(result));
13456 return resultobj;
13457fail:
13458 return NULL;
d55e5bfc
RD
13459}
13460
13461
554f62e9
RD
13462SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13463 PyObject *resultobj = 0;
13464 wxNativeEncodingInfo *result = 0 ;
13465
13466 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13467 {
13468 PyThreadState* __tstate = wxPyBeginAllowThreads();
13469 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13470 wxPyEndAllowThreads(__tstate);
13471 if (PyErr_Occurred()) SWIG_fail;
13472 }
13473 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13474 return resultobj;
13475fail:
13476 return NULL;
d55e5bfc
RD
13477}
13478
13479
554f62e9
RD
13480SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13481 PyObject *resultobj = 0;
13482 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13483 void *argp1 = 0 ;
13484 int res1 = 0 ;
13485 PyObject *swig_obj[1] ;
13486
13487 if (!args) SWIG_fail;
13488 swig_obj[0] = args;
13489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13490 if (!SWIG_IsOK(res1)) {
13491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13492 }
13493 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13494 {
13495 PyThreadState* __tstate = wxPyBeginAllowThreads();
13496 delete arg1;
d55e5bfc 13497
554f62e9
RD
13498 wxPyEndAllowThreads(__tstate);
13499 if (PyErr_Occurred()) SWIG_fail;
13500 }
13501 resultobj = SWIG_Py_Void();
13502 return resultobj;
13503fail:
13504 return NULL;
13505}
13506
13507
13508SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13509 PyObject *resultobj = 0;
13510 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13511 wxString *arg2 = 0 ;
13512 bool result;
13513 void *argp1 = 0 ;
13514 int res1 = 0 ;
13515 bool temp2 = false ;
13516 PyObject * obj0 = 0 ;
13517 PyObject * obj1 = 0 ;
13518 char * kwnames[] = {
13519 (char *) "self",(char *) "s", NULL
13520 };
13521
13522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13524 if (!SWIG_IsOK(res1)) {
13525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13526 }
13527 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13528 {
13529 arg2 = wxString_in_helper(obj1);
13530 if (arg2 == NULL) SWIG_fail;
13531 temp2 = true;
13532 }
13533 {
13534 PyThreadState* __tstate = wxPyBeginAllowThreads();
13535 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13536 wxPyEndAllowThreads(__tstate);
13537 if (PyErr_Occurred()) SWIG_fail;
13538 }
13539 {
13540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13541 }
13542 {
13543 if (temp2)
13544 delete arg2;
13545 }
13546 return resultobj;
13547fail:
13548 {
13549 if (temp2)
13550 delete arg2;
13551 }
13552 return NULL;
d55e5bfc
RD
13553}
13554
13555
554f62e9
RD
13556SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13557 PyObject *resultobj = 0;
13558 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13559 wxString result;
13560 void *argp1 = 0 ;
13561 int res1 = 0 ;
13562 PyObject *swig_obj[1] ;
13563
13564 if (!args) SWIG_fail;
13565 swig_obj[0] = args;
13566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13567 if (!SWIG_IsOK(res1)) {
13568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13569 }
13570 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13571 {
13572 PyThreadState* __tstate = wxPyBeginAllowThreads();
13573 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13574 wxPyEndAllowThreads(__tstate);
13575 if (PyErr_Occurred()) SWIG_fail;
13576 }
13577 {
13578#if wxUSE_UNICODE
13579 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13580#else
13581 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13582#endif
13583 }
13584 return resultobj;
13585fail:
13586 return NULL;
d55e5bfc
RD
13587}
13588
13589
554f62e9
RD
13590SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13591 PyObject *obj;
13592 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13593 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13594 return SWIG_Py_Void();
d55e5bfc
RD
13595}
13596
554f62e9
RD
13597SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13598 return SWIG_Python_InitShadowInstance(args);
13599}
d55e5bfc 13600
554f62e9
RD
13601SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13602 PyObject *resultobj = 0;
13603 wxFontEncoding arg1 ;
13604 wxNativeEncodingInfo *result = 0 ;
13605 int val1 ;
13606 int ecode1 = 0 ;
13607 PyObject * obj0 = 0 ;
13608 char * kwnames[] = {
13609 (char *) "encoding", NULL
13610 };
13611
13612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13613 ecode1 = SWIG_AsVal_int(obj0, &val1);
13614 if (!SWIG_IsOK(ecode1)) {
13615 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13616 }
13617 arg1 = static_cast< wxFontEncoding >(val1);
13618 {
13619 PyThreadState* __tstate = wxPyBeginAllowThreads();
13620 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13621 wxPyEndAllowThreads(__tstate);
13622 if (PyErr_Occurred()) SWIG_fail;
13623 }
13624 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13625 return resultobj;
13626fail:
13627 return NULL;
13628}
13629
13630
13631SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13632 PyObject *resultobj = 0;
13633 wxNativeEncodingInfo *arg1 = 0 ;
13634 bool result;
13635 void *argp1 = 0 ;
13636 int res1 = 0 ;
13637 PyObject * obj0 = 0 ;
13638 char * kwnames[] = {
13639 (char *) "info", NULL
13640 };
13641
13642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13643 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13644 if (!SWIG_IsOK(res1)) {
13645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13646 }
13647 if (!argp1) {
13648 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13649 }
13650 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13651 {
13652 PyThreadState* __tstate = wxPyBeginAllowThreads();
13653 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13654 wxPyEndAllowThreads(__tstate);
13655 if (PyErr_Occurred()) SWIG_fail;
13656 }
13657 {
13658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13659 }
13660 return resultobj;
13661fail:
13662 return NULL;
d55e5bfc
RD
13663}
13664
13665
554f62e9
RD
13666SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13667 PyObject *resultobj = 0;
13668 wxFontMapper *result = 0 ;
13669
13670 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13671 {
13672 PyThreadState* __tstate = wxPyBeginAllowThreads();
13673 result = (wxFontMapper *)new wxFontMapper();
13674 wxPyEndAllowThreads(__tstate);
13675 if (PyErr_Occurred()) SWIG_fail;
13676 }
13677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13678 return resultobj;
13679fail:
13680 return NULL;
d55e5bfc
RD
13681}
13682
13683
554f62e9
RD
13684SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13685 PyObject *resultobj = 0;
13686 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13687 void *argp1 = 0 ;
13688 int res1 = 0 ;
13689 PyObject *swig_obj[1] ;
13690
13691 if (!args) SWIG_fail;
13692 swig_obj[0] = args;
13693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13694 if (!SWIG_IsOK(res1)) {
13695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13696 }
13697 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13698 {
13699 PyThreadState* __tstate = wxPyBeginAllowThreads();
13700 delete arg1;
d55e5bfc 13701
554f62e9
RD
13702 wxPyEndAllowThreads(__tstate);
13703 if (PyErr_Occurred()) SWIG_fail;
13704 }
13705 resultobj = SWIG_Py_Void();
13706 return resultobj;
13707fail:
13708 return NULL;
d55e5bfc
RD
13709}
13710
13711
554f62e9
RD
13712SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13713 PyObject *resultobj = 0;
13714 wxFontMapper *result = 0 ;
13715
13716 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13717 {
13718 PyThreadState* __tstate = wxPyBeginAllowThreads();
13719 result = (wxFontMapper *)wxFontMapper::Get();
13720 wxPyEndAllowThreads(__tstate);
13721 if (PyErr_Occurred()) SWIG_fail;
13722 }
13723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13724 return resultobj;
13725fail:
13726 return NULL;
13727}
13728
13729
13730SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13731 PyObject *resultobj = 0;
13732 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13733 wxFontMapper *result = 0 ;
13734 void *argp1 = 0 ;
13735 int res1 = 0 ;
13736 PyObject * obj0 = 0 ;
13737 char * kwnames[] = {
13738 (char *) "mapper", NULL
13739 };
13740
13741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13743 if (!SWIG_IsOK(res1)) {
13744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13745 }
13746 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13747 {
13748 PyThreadState* __tstate = wxPyBeginAllowThreads();
13749 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13750 wxPyEndAllowThreads(__tstate);
13751 if (PyErr_Occurred()) SWIG_fail;
13752 }
13753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13754 return resultobj;
13755fail:
13756 return NULL;
13757}
13758
13759
13760SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13761 PyObject *resultobj = 0;
13762 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13763 wxString *arg2 = 0 ;
13764 bool arg3 = (bool) true ;
13765 wxFontEncoding result;
13766 void *argp1 = 0 ;
13767 int res1 = 0 ;
13768 bool temp2 = false ;
13769 bool val3 ;
13770 int ecode3 = 0 ;
13771 PyObject * obj0 = 0 ;
13772 PyObject * obj1 = 0 ;
13773 PyObject * obj2 = 0 ;
13774 char * kwnames[] = {
13775 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13776 };
13777
13778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13780 if (!SWIG_IsOK(res1)) {
13781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13782 }
13783 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13784 {
13785 arg2 = wxString_in_helper(obj1);
13786 if (arg2 == NULL) SWIG_fail;
13787 temp2 = true;
13788 }
13789 if (obj2) {
13790 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13791 if (!SWIG_IsOK(ecode3)) {
13792 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13793 }
13794 arg3 = static_cast< bool >(val3);
13795 }
13796 {
13797 PyThreadState* __tstate = wxPyBeginAllowThreads();
13798 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13799 wxPyEndAllowThreads(__tstate);
13800 if (PyErr_Occurred()) SWIG_fail;
13801 }
13802 resultobj = SWIG_From_int(static_cast< int >(result));
13803 {
13804 if (temp2)
13805 delete arg2;
13806 }
13807 return resultobj;
13808fail:
13809 {
13810 if (temp2)
13811 delete arg2;
13812 }
13813 return NULL;
d55e5bfc
RD
13814}
13815
13816
554f62e9
RD
13817SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13818 PyObject *resultobj = 0;
13819 size_t result;
13820
13821 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13822 {
13823 PyThreadState* __tstate = wxPyBeginAllowThreads();
13824 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13825 wxPyEndAllowThreads(__tstate);
13826 if (PyErr_Occurred()) SWIG_fail;
13827 }
13828 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13829 return resultobj;
13830fail:
13831 return NULL;
13832}
13833
13834
13835SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13836 PyObject *resultobj = 0;
13837 size_t arg1 ;
13838 wxFontEncoding result;
13839 size_t val1 ;
13840 int ecode1 = 0 ;
13841 PyObject * obj0 = 0 ;
13842 char * kwnames[] = {
13843 (char *) "n", NULL
13844 };
13845
13846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13847 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13848 if (!SWIG_IsOK(ecode1)) {
13849 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13850 }
13851 arg1 = static_cast< size_t >(val1);
13852 {
13853 PyThreadState* __tstate = wxPyBeginAllowThreads();
13854 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13855 wxPyEndAllowThreads(__tstate);
13856 if (PyErr_Occurred()) SWIG_fail;
13857 }
13858 resultobj = SWIG_From_int(static_cast< int >(result));
13859 return resultobj;
13860fail:
13861 return NULL;
13862}
13863
13864
13865SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13866 PyObject *resultobj = 0;
13867 wxFontEncoding arg1 ;
13868 wxString result;
13869 int val1 ;
13870 int ecode1 = 0 ;
13871 PyObject * obj0 = 0 ;
13872 char * kwnames[] = {
13873 (char *) "encoding", NULL
13874 };
13875
13876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13877 ecode1 = SWIG_AsVal_int(obj0, &val1);
13878 if (!SWIG_IsOK(ecode1)) {
13879 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13880 }
13881 arg1 = static_cast< wxFontEncoding >(val1);
13882 {
13883 PyThreadState* __tstate = wxPyBeginAllowThreads();
13884 result = wxFontMapper::GetEncodingName(arg1);
13885 wxPyEndAllowThreads(__tstate);
13886 if (PyErr_Occurred()) SWIG_fail;
13887 }
13888 {
13889#if wxUSE_UNICODE
13890 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13891#else
13892 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13893#endif
13894 }
13895 return resultobj;
13896fail:
13897 return NULL;
d55e5bfc
RD
13898}
13899
13900
554f62e9
RD
13901SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13902 PyObject *resultobj = 0;
13903 wxFontEncoding arg1 ;
13904 wxString result;
13905 int val1 ;
13906 int ecode1 = 0 ;
13907 PyObject * obj0 = 0 ;
13908 char * kwnames[] = {
13909 (char *) "encoding", NULL
13910 };
13911
13912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13913 ecode1 = SWIG_AsVal_int(obj0, &val1);
13914 if (!SWIG_IsOK(ecode1)) {
13915 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13916 }
13917 arg1 = static_cast< wxFontEncoding >(val1);
13918 {
13919 PyThreadState* __tstate = wxPyBeginAllowThreads();
13920 result = wxFontMapper::GetEncodingDescription(arg1);
13921 wxPyEndAllowThreads(__tstate);
13922 if (PyErr_Occurred()) SWIG_fail;
13923 }
13924 {
13925#if wxUSE_UNICODE
13926 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13927#else
13928 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13929#endif
13930 }
13931 return resultobj;
13932fail:
13933 return NULL;
d55e5bfc
RD
13934}
13935
13936
554f62e9
RD
13937SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13938 PyObject *resultobj = 0;
13939 wxString *arg1 = 0 ;
13940 wxFontEncoding result;
13941 bool temp1 = false ;
13942 PyObject * obj0 = 0 ;
13943 char * kwnames[] = {
13944 (char *) "name", NULL
13945 };
13946
13947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13948 {
13949 arg1 = wxString_in_helper(obj0);
13950 if (arg1 == NULL) SWIG_fail;
13951 temp1 = true;
13952 }
13953 {
13954 PyThreadState* __tstate = wxPyBeginAllowThreads();
13955 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13956 wxPyEndAllowThreads(__tstate);
13957 if (PyErr_Occurred()) SWIG_fail;
13958 }
13959 resultobj = SWIG_From_int(static_cast< int >(result));
13960 {
13961 if (temp1)
13962 delete arg1;
13963 }
13964 return resultobj;
13965fail:
13966 {
13967 if (temp1)
13968 delete arg1;
13969 }
13970 return NULL;
d55e5bfc
RD
13971}
13972
13973
554f62e9
RD
13974SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13975 PyObject *resultobj = 0;
13976 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13977 wxString *arg2 = 0 ;
13978 void *argp1 = 0 ;
13979 int res1 = 0 ;
13980 bool temp2 = false ;
13981 PyObject * obj0 = 0 ;
13982 PyObject * obj1 = 0 ;
13983 char * kwnames[] = {
13984 (char *) "self",(char *) "prefix", NULL
13985 };
13986
13987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13989 if (!SWIG_IsOK(res1)) {
13990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13991 }
13992 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13993 {
13994 arg2 = wxString_in_helper(obj1);
13995 if (arg2 == NULL) SWIG_fail;
13996 temp2 = true;
13997 }
13998 {
13999 PyThreadState* __tstate = wxPyBeginAllowThreads();
14000 (arg1)->SetConfigPath((wxString const &)*arg2);
14001 wxPyEndAllowThreads(__tstate);
14002 if (PyErr_Occurred()) SWIG_fail;
14003 }
14004 resultobj = SWIG_Py_Void();
14005 {
14006 if (temp2)
14007 delete arg2;
14008 }
14009 return resultobj;
14010fail:
14011 {
14012 if (temp2)
14013 delete arg2;
14014 }
14015 return NULL;
d55e5bfc
RD
14016}
14017
14018
554f62e9
RD
14019SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14020 PyObject *resultobj = 0;
14021 wxString result;
14022
14023 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
14024 {
14025 PyThreadState* __tstate = wxPyBeginAllowThreads();
14026 result = wxFontMapper::GetDefaultConfigPath();
14027 wxPyEndAllowThreads(__tstate);
14028 if (PyErr_Occurred()) SWIG_fail;
14029 }
14030 {
14031#if wxUSE_UNICODE
14032 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14033#else
14034 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14035#endif
14036 }
14037 return resultobj;
14038fail:
14039 return NULL;
14040}
14041
14042
14043SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14044 PyObject *resultobj = 0;
14045 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14046 wxFontEncoding arg2 ;
14047 wxString const &arg3_defvalue = wxPyEmptyString ;
14048 wxString *arg3 = (wxString *) &arg3_defvalue ;
14049 bool arg4 = (bool) true ;
14050 PyObject *result = 0 ;
14051 void *argp1 = 0 ;
14052 int res1 = 0 ;
14053 int val2 ;
14054 int ecode2 = 0 ;
14055 bool temp3 = false ;
14056 bool val4 ;
14057 int ecode4 = 0 ;
14058 PyObject * obj0 = 0 ;
14059 PyObject * obj1 = 0 ;
14060 PyObject * obj2 = 0 ;
14061 PyObject * obj3 = 0 ;
14062 char * kwnames[] = {
14063 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
14064 };
14065
14066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14068 if (!SWIG_IsOK(res1)) {
14069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14070 }
14071 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14072 ecode2 = SWIG_AsVal_int(obj1, &val2);
14073 if (!SWIG_IsOK(ecode2)) {
14074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14075 }
14076 arg2 = static_cast< wxFontEncoding >(val2);
14077 if (obj2) {
d55e5bfc 14078 {
554f62e9
RD
14079 arg3 = wxString_in_helper(obj2);
14080 if (arg3 == NULL) SWIG_fail;
14081 temp3 = true;
d55e5bfc 14082 }
554f62e9
RD
14083 }
14084 if (obj3) {
14085 ecode4 = SWIG_AsVal_bool(obj3, &val4);
14086 if (!SWIG_IsOK(ecode4)) {
14087 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
14088 }
14089 arg4 = static_cast< bool >(val4);
14090 }
14091 {
14092 PyThreadState* __tstate = wxPyBeginAllowThreads();
14093 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
14094 wxPyEndAllowThreads(__tstate);
14095 if (PyErr_Occurred()) SWIG_fail;
14096 }
14097 resultobj = result;
14098 {
14099 if (temp3)
14100 delete arg3;
14101 }
14102 return resultobj;
14103fail:
14104 {
14105 if (temp3)
14106 delete arg3;
14107 }
14108 return NULL;
14109}
14110
14111
14112SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14113 PyObject *resultobj = 0;
14114 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14115 wxFontEncoding arg2 ;
14116 wxString const &arg3_defvalue = wxPyEmptyString ;
14117 wxString *arg3 = (wxString *) &arg3_defvalue ;
14118 bool result;
14119 void *argp1 = 0 ;
14120 int res1 = 0 ;
14121 int val2 ;
14122 int ecode2 = 0 ;
14123 bool temp3 = false ;
14124 PyObject * obj0 = 0 ;
14125 PyObject * obj1 = 0 ;
14126 PyObject * obj2 = 0 ;
14127 char * kwnames[] = {
14128 (char *) "self",(char *) "encoding",(char *) "facename", NULL
14129 };
14130
14131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14133 if (!SWIG_IsOK(res1)) {
14134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14135 }
14136 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14137 ecode2 = SWIG_AsVal_int(obj1, &val2);
14138 if (!SWIG_IsOK(ecode2)) {
14139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14140 }
14141 arg2 = static_cast< wxFontEncoding >(val2);
14142 if (obj2) {
093d3ff1 14143 {
554f62e9
RD
14144 arg3 = wxString_in_helper(obj2);
14145 if (arg3 == NULL) SWIG_fail;
14146 temp3 = true;
d55e5bfc 14147 }
554f62e9
RD
14148 }
14149 {
14150 PyThreadState* __tstate = wxPyBeginAllowThreads();
14151 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
14152 wxPyEndAllowThreads(__tstate);
14153 if (PyErr_Occurred()) SWIG_fail;
14154 }
14155 {
14156 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14157 }
14158 {
14159 if (temp3)
14160 delete arg3;
14161 }
14162 return resultobj;
14163fail:
14164 {
14165 if (temp3)
14166 delete arg3;
14167 }
14168 return NULL;
14169}
14170
14171
14172SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14173 PyObject *resultobj = 0;
14174 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14175 wxWindow *arg2 = (wxWindow *) 0 ;
14176 void *argp1 = 0 ;
14177 int res1 = 0 ;
14178 void *argp2 = 0 ;
14179 int res2 = 0 ;
14180 PyObject * obj0 = 0 ;
14181 PyObject * obj1 = 0 ;
14182 char * kwnames[] = {
14183 (char *) "self",(char *) "parent", NULL
14184 };
14185
14186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
14187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14188 if (!SWIG_IsOK(res1)) {
14189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14190 }
14191 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14192 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14193 if (!SWIG_IsOK(res2)) {
14194 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
14195 }
14196 arg2 = reinterpret_cast< wxWindow * >(argp2);
14197 {
14198 PyThreadState* __tstate = wxPyBeginAllowThreads();
14199 (arg1)->SetDialogParent(arg2);
14200 wxPyEndAllowThreads(__tstate);
14201 if (PyErr_Occurred()) SWIG_fail;
14202 }
14203 resultobj = SWIG_Py_Void();
14204 return resultobj;
14205fail:
14206 return NULL;
14207}
14208
14209
14210SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14211 PyObject *resultobj = 0;
14212 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14213 wxString *arg2 = 0 ;
14214 void *argp1 = 0 ;
14215 int res1 = 0 ;
14216 bool temp2 = false ;
14217 PyObject * obj0 = 0 ;
14218 PyObject * obj1 = 0 ;
14219 char * kwnames[] = {
14220 (char *) "self",(char *) "title", NULL
14221 };
14222
14223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
14224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14225 if (!SWIG_IsOK(res1)) {
14226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14227 }
14228 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14229 {
14230 arg2 = wxString_in_helper(obj1);
14231 if (arg2 == NULL) SWIG_fail;
14232 temp2 = true;
14233 }
14234 {
14235 PyThreadState* __tstate = wxPyBeginAllowThreads();
14236 (arg1)->SetDialogTitle((wxString const &)*arg2);
14237 wxPyEndAllowThreads(__tstate);
14238 if (PyErr_Occurred()) SWIG_fail;
14239 }
14240 resultobj = SWIG_Py_Void();
14241 {
14242 if (temp2)
14243 delete arg2;
14244 }
14245 return resultobj;
14246fail:
14247 {
14248 if (temp2)
14249 delete arg2;
14250 }
14251 return NULL;
14252}
14253
14254
14255SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14256 PyObject *obj;
14257 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14258 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
14259 return SWIG_Py_Void();
14260}
14261
14262SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14263 return SWIG_Python_InitShadowInstance(args);
14264}
14265
14266SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14267 PyObject *resultobj = 0;
14268 int arg1 ;
14269 int arg2 ;
14270 int arg3 ;
14271 int arg4 ;
14272 bool arg5 = (bool) false ;
14273 wxString const &arg6_defvalue = wxPyEmptyString ;
14274 wxString *arg6 = (wxString *) &arg6_defvalue ;
14275 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14276 wxFont *result = 0 ;
14277 int val1 ;
14278 int ecode1 = 0 ;
14279 int val2 ;
14280 int ecode2 = 0 ;
14281 int val3 ;
14282 int ecode3 = 0 ;
14283 int val4 ;
14284 int ecode4 = 0 ;
14285 bool val5 ;
14286 int ecode5 = 0 ;
14287 bool temp6 = false ;
14288 int val7 ;
14289 int ecode7 = 0 ;
14290 PyObject * obj0 = 0 ;
14291 PyObject * obj1 = 0 ;
14292 PyObject * obj2 = 0 ;
14293 PyObject * obj3 = 0 ;
14294 PyObject * obj4 = 0 ;
14295 PyObject * obj5 = 0 ;
14296 PyObject * obj6 = 0 ;
14297 char * kwnames[] = {
14298 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
14299 };
14300
14301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14302 ecode1 = SWIG_AsVal_int(obj0, &val1);
14303 if (!SWIG_IsOK(ecode1)) {
14304 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
14305 }
14306 arg1 = static_cast< int >(val1);
14307 ecode2 = SWIG_AsVal_int(obj1, &val2);
14308 if (!SWIG_IsOK(ecode2)) {
14309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
14310 }
14311 arg2 = static_cast< int >(val2);
14312 ecode3 = SWIG_AsVal_int(obj2, &val3);
14313 if (!SWIG_IsOK(ecode3)) {
14314 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
14315 }
14316 arg3 = static_cast< int >(val3);
14317 ecode4 = SWIG_AsVal_int(obj3, &val4);
14318 if (!SWIG_IsOK(ecode4)) {
14319 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
14320 }
14321 arg4 = static_cast< int >(val4);
14322 if (obj4) {
14323 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14324 if (!SWIG_IsOK(ecode5)) {
14325 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
14326 }
14327 arg5 = static_cast< bool >(val5);
14328 }
14329 if (obj5) {
d55e5bfc 14330 {
554f62e9
RD
14331 arg6 = wxString_in_helper(obj5);
14332 if (arg6 == NULL) SWIG_fail;
14333 temp6 = true;
d55e5bfc 14334 }
554f62e9
RD
14335 }
14336 if (obj6) {
14337 ecode7 = SWIG_AsVal_int(obj6, &val7);
14338 if (!SWIG_IsOK(ecode7)) {
14339 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14340 }
14341 arg7 = static_cast< wxFontEncoding >(val7);
14342 }
14343 {
14344 if (!wxPyCheckForApp()) SWIG_fail;
14345 PyThreadState* __tstate = wxPyBeginAllowThreads();
14346 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14347 wxPyEndAllowThreads(__tstate);
14348 if (PyErr_Occurred()) SWIG_fail;
14349 }
14350 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14351 {
14352 if (temp6)
14353 delete arg6;
14354 }
14355 return resultobj;
14356fail:
14357 {
14358 if (temp6)
14359 delete arg6;
14360 }
14361 return NULL;
d55e5bfc
RD
14362}
14363
14364
554f62e9
RD
14365SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14366 PyObject *resultobj = 0;
14367 wxFont *arg1 = (wxFont *) 0 ;
14368 void *argp1 = 0 ;
14369 int res1 = 0 ;
14370 PyObject *swig_obj[1] ;
14371
14372 if (!args) SWIG_fail;
14373 swig_obj[0] = args;
14374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14375 if (!SWIG_IsOK(res1)) {
14376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14377 }
14378 arg1 = reinterpret_cast< wxFont * >(argp1);
14379 {
14380 PyThreadState* __tstate = wxPyBeginAllowThreads();
14381 delete arg1;
d55e5bfc 14382
554f62e9
RD
14383 wxPyEndAllowThreads(__tstate);
14384 if (PyErr_Occurred()) SWIG_fail;
14385 }
14386 resultobj = SWIG_Py_Void();
14387 return resultobj;
14388fail:
14389 return NULL;
14390}
14391
14392
14393SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14394 PyObject *resultobj = 0;
14395 wxNativeFontInfo *arg1 = 0 ;
14396 wxFont *result = 0 ;
14397 void *argp1 = 0 ;
14398 int res1 = 0 ;
14399 PyObject * obj0 = 0 ;
14400 char * kwnames[] = {
14401 (char *) "info", NULL
14402 };
14403
14404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14405 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14406 if (!SWIG_IsOK(res1)) {
14407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14408 }
14409 if (!argp1) {
14410 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14411 }
14412 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14413 {
14414 if (!wxPyCheckForApp()) SWIG_fail;
14415 PyThreadState* __tstate = wxPyBeginAllowThreads();
14416 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14417 wxPyEndAllowThreads(__tstate);
14418 if (PyErr_Occurred()) SWIG_fail;
14419 }
14420 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14421 return resultobj;
14422fail:
14423 return NULL;
d55e5bfc
RD
14424}
14425
14426
554f62e9
RD
14427SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14428 PyObject *resultobj = 0;
14429 wxString *arg1 = 0 ;
14430 wxFont *result = 0 ;
14431 bool temp1 = false ;
14432 PyObject * obj0 = 0 ;
14433 char * kwnames[] = {
14434 (char *) "info", NULL
14435 };
14436
14437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14438 {
14439 arg1 = wxString_in_helper(obj0);
14440 if (arg1 == NULL) SWIG_fail;
14441 temp1 = true;
14442 }
14443 {
14444 if (!wxPyCheckForApp()) SWIG_fail;
14445 PyThreadState* __tstate = wxPyBeginAllowThreads();
14446 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14447 wxPyEndAllowThreads(__tstate);
14448 if (PyErr_Occurred()) SWIG_fail;
14449 }
14450 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14451 {
14452 if (temp1)
14453 delete arg1;
14454 }
14455 return resultobj;
14456fail:
14457 {
14458 if (temp1)
14459 delete arg1;
14460 }
14461 return NULL;
14462}
14463
14464
14465SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14466 PyObject *resultobj = 0;
14467 int arg1 ;
14468 wxFontFamily arg2 ;
14469 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14470 wxString const &arg4_defvalue = wxPyEmptyString ;
14471 wxString *arg4 = (wxString *) &arg4_defvalue ;
14472 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14473 wxFont *result = 0 ;
14474 int val1 ;
14475 int ecode1 = 0 ;
14476 int val2 ;
14477 int ecode2 = 0 ;
14478 int val3 ;
14479 int ecode3 = 0 ;
14480 bool temp4 = false ;
14481 int val5 ;
14482 int ecode5 = 0 ;
14483 PyObject * obj0 = 0 ;
14484 PyObject * obj1 = 0 ;
14485 PyObject * obj2 = 0 ;
14486 PyObject * obj3 = 0 ;
14487 PyObject * obj4 = 0 ;
14488 char * kwnames[] = {
14489 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14490 };
14491
14492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14493 ecode1 = SWIG_AsVal_int(obj0, &val1);
14494 if (!SWIG_IsOK(ecode1)) {
14495 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14496 }
14497 arg1 = static_cast< int >(val1);
14498 ecode2 = SWIG_AsVal_int(obj1, &val2);
14499 if (!SWIG_IsOK(ecode2)) {
14500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14501 }
14502 arg2 = static_cast< wxFontFamily >(val2);
14503 if (obj2) {
14504 ecode3 = SWIG_AsVal_int(obj2, &val3);
14505 if (!SWIG_IsOK(ecode3)) {
14506 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14507 }
14508 arg3 = static_cast< int >(val3);
14509 }
14510 if (obj3) {
d55e5bfc 14511 {
554f62e9
RD
14512 arg4 = wxString_in_helper(obj3);
14513 if (arg4 == NULL) SWIG_fail;
14514 temp4 = true;
d55e5bfc 14515 }
554f62e9
RD
14516 }
14517 if (obj4) {
14518 ecode5 = SWIG_AsVal_int(obj4, &val5);
14519 if (!SWIG_IsOK(ecode5)) {
14520 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14521 }
14522 arg5 = static_cast< wxFontEncoding >(val5);
14523 }
14524 {
14525 if (!wxPyCheckForApp()) SWIG_fail;
14526 PyThreadState* __tstate = wxPyBeginAllowThreads();
14527 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14528 wxPyEndAllowThreads(__tstate);
14529 if (PyErr_Occurred()) SWIG_fail;
14530 }
14531 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14532 {
14533 if (temp4)
14534 delete arg4;
14535 }
14536 return resultobj;
14537fail:
14538 {
14539 if (temp4)
14540 delete arg4;
14541 }
14542 return NULL;
14543}
14544
14545
14546SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14547 PyObject *resultobj = 0;
14548 wxSize *arg1 = 0 ;
14549 int arg2 ;
14550 int arg3 ;
14551 int arg4 ;
14552 bool arg5 = (bool) false ;
14553 wxString const &arg6_defvalue = wxEmptyString ;
14554 wxString *arg6 = (wxString *) &arg6_defvalue ;
14555 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14556 wxFont *result = 0 ;
14557 wxSize temp1 ;
14558 int val2 ;
14559 int ecode2 = 0 ;
14560 int val3 ;
14561 int ecode3 = 0 ;
14562 int val4 ;
14563 int ecode4 = 0 ;
14564 bool val5 ;
14565 int ecode5 = 0 ;
14566 bool temp6 = false ;
14567 int val7 ;
14568 int ecode7 = 0 ;
14569 PyObject * obj0 = 0 ;
14570 PyObject * obj1 = 0 ;
14571 PyObject * obj2 = 0 ;
14572 PyObject * obj3 = 0 ;
14573 PyObject * obj4 = 0 ;
14574 PyObject * obj5 = 0 ;
14575 PyObject * obj6 = 0 ;
14576 char * kwnames[] = {
14577 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14578 };
14579
14580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14581 {
14582 arg1 = &temp1;
14583 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14584 }
14585 ecode2 = SWIG_AsVal_int(obj1, &val2);
14586 if (!SWIG_IsOK(ecode2)) {
14587 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14588 }
14589 arg2 = static_cast< int >(val2);
14590 ecode3 = SWIG_AsVal_int(obj2, &val3);
14591 if (!SWIG_IsOK(ecode3)) {
14592 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14593 }
14594 arg3 = static_cast< int >(val3);
14595 ecode4 = SWIG_AsVal_int(obj3, &val4);
14596 if (!SWIG_IsOK(ecode4)) {
14597 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14598 }
14599 arg4 = static_cast< int >(val4);
14600 if (obj4) {
14601 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14602 if (!SWIG_IsOK(ecode5)) {
14603 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14604 }
14605 arg5 = static_cast< bool >(val5);
14606 }
14607 if (obj5) {
d55e5bfc 14608 {
554f62e9
RD
14609 arg6 = wxString_in_helper(obj5);
14610 if (arg6 == NULL) SWIG_fail;
14611 temp6 = true;
d55e5bfc 14612 }
554f62e9
RD
14613 }
14614 if (obj6) {
14615 ecode7 = SWIG_AsVal_int(obj6, &val7);
14616 if (!SWIG_IsOK(ecode7)) {
14617 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14618 }
14619 arg7 = static_cast< wxFontEncoding >(val7);
14620 }
14621 {
14622 if (!wxPyCheckForApp()) SWIG_fail;
14623 PyThreadState* __tstate = wxPyBeginAllowThreads();
14624 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14625 wxPyEndAllowThreads(__tstate);
14626 if (PyErr_Occurred()) SWIG_fail;
14627 }
14628 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14629 {
14630 if (temp6)
14631 delete arg6;
14632 }
14633 return resultobj;
14634fail:
14635 {
14636 if (temp6)
14637 delete arg6;
14638 }
14639 return NULL;
14640}
14641
14642
14643SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14644 PyObject *resultobj = 0;
14645 wxSize *arg1 = 0 ;
14646 wxFontFamily arg2 ;
14647 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14648 wxString const &arg4_defvalue = wxEmptyString ;
14649 wxString *arg4 = (wxString *) &arg4_defvalue ;
14650 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14651 wxFont *result = 0 ;
14652 wxSize temp1 ;
14653 int val2 ;
14654 int ecode2 = 0 ;
14655 int val3 ;
14656 int ecode3 = 0 ;
14657 bool temp4 = false ;
14658 int val5 ;
14659 int ecode5 = 0 ;
14660 PyObject * obj0 = 0 ;
14661 PyObject * obj1 = 0 ;
14662 PyObject * obj2 = 0 ;
14663 PyObject * obj3 = 0 ;
14664 PyObject * obj4 = 0 ;
14665 char * kwnames[] = {
14666 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14667 };
14668
14669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14670 {
14671 arg1 = &temp1;
14672 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14673 }
14674 ecode2 = SWIG_AsVal_int(obj1, &val2);
14675 if (!SWIG_IsOK(ecode2)) {
14676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14677 }
14678 arg2 = static_cast< wxFontFamily >(val2);
14679 if (obj2) {
14680 ecode3 = SWIG_AsVal_int(obj2, &val3);
14681 if (!SWIG_IsOK(ecode3)) {
14682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14683 }
14684 arg3 = static_cast< int >(val3);
14685 }
14686 if (obj3) {
d55e5bfc 14687 {
554f62e9
RD
14688 arg4 = wxString_in_helper(obj3);
14689 if (arg4 == NULL) SWIG_fail;
14690 temp4 = true;
d55e5bfc 14691 }
554f62e9
RD
14692 }
14693 if (obj4) {
14694 ecode5 = SWIG_AsVal_int(obj4, &val5);
14695 if (!SWIG_IsOK(ecode5)) {
14696 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14697 }
14698 arg5 = static_cast< wxFontEncoding >(val5);
14699 }
14700 {
14701 if (!wxPyCheckForApp()) SWIG_fail;
14702 PyThreadState* __tstate = wxPyBeginAllowThreads();
14703 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14704 wxPyEndAllowThreads(__tstate);
14705 if (PyErr_Occurred()) SWIG_fail;
14706 }
14707 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14708 {
14709 if (temp4)
14710 delete arg4;
14711 }
14712 return resultobj;
14713fail:
14714 {
14715 if (temp4)
14716 delete arg4;
14717 }
14718 return NULL;
d55e5bfc
RD
14719}
14720
14721
b39fe951 14722SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
14723 PyObject *resultobj = 0;
14724 wxFont *arg1 = (wxFont *) 0 ;
14725 bool result;
14726 void *argp1 = 0 ;
14727 int res1 = 0 ;
14728 PyObject *swig_obj[1] ;
14729
14730 if (!args) SWIG_fail;
14731 swig_obj[0] = args;
14732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14733 if (!SWIG_IsOK(res1)) {
b39fe951 14734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
554f62e9
RD
14735 }
14736 arg1 = reinterpret_cast< wxFont * >(argp1);
14737 {
14738 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 14739 result = (bool)((wxFont const *)arg1)->IsOk();
554f62e9
RD
14740 wxPyEndAllowThreads(__tstate);
14741 if (PyErr_Occurred()) SWIG_fail;
14742 }
14743 {
14744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14745 }
14746 return resultobj;
14747fail:
14748 return NULL;
14749}
14750
14751
14752SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14753 PyObject *resultobj = 0;
14754 wxFont *arg1 = (wxFont *) 0 ;
14755 wxFont *arg2 = (wxFont *) 0 ;
14756 bool result;
14757 void *argp1 = 0 ;
14758 int res1 = 0 ;
14759 void *argp2 = 0 ;
14760 int res2 = 0 ;
14761 PyObject * obj0 = 0 ;
14762 PyObject * obj1 = 0 ;
14763 char * kwnames[] = {
14764 (char *) "self",(char *) "other", NULL
14765 };
14766
14767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14769 if (!SWIG_IsOK(res1)) {
14770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14771 }
14772 arg1 = reinterpret_cast< wxFont * >(argp1);
14773 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14774 if (!SWIG_IsOK(res2)) {
14775 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14776 }
14777 arg2 = reinterpret_cast< wxFont * >(argp2);
14778 {
14779 PyThreadState* __tstate = wxPyBeginAllowThreads();
14780 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14781 wxPyEndAllowThreads(__tstate);
14782 if (PyErr_Occurred()) SWIG_fail;
14783 }
14784 {
14785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14786 }
14787 return resultobj;
14788fail:
14789 return NULL;
14790}
14791
14792
14793SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14794 PyObject *resultobj = 0;
14795 wxFont *arg1 = (wxFont *) 0 ;
14796 wxFont *arg2 = (wxFont *) 0 ;
14797 bool result;
14798 void *argp1 = 0 ;
14799 int res1 = 0 ;
14800 void *argp2 = 0 ;
14801 int res2 = 0 ;
14802 PyObject * obj0 = 0 ;
14803 PyObject * obj1 = 0 ;
14804 char * kwnames[] = {
14805 (char *) "self",(char *) "other", NULL
14806 };
14807
14808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14810 if (!SWIG_IsOK(res1)) {
14811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14812 }
14813 arg1 = reinterpret_cast< wxFont * >(argp1);
14814 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14815 if (!SWIG_IsOK(res2)) {
14816 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14817 }
14818 arg2 = reinterpret_cast< wxFont * >(argp2);
14819 {
14820 PyThreadState* __tstate = wxPyBeginAllowThreads();
14821 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14822 wxPyEndAllowThreads(__tstate);
14823 if (PyErr_Occurred()) SWIG_fail;
14824 }
14825 {
14826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14827 }
14828 return resultobj;
14829fail:
14830 return NULL;
a2569024
RD
14831}
14832
14833
554f62e9
RD
14834SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14835 PyObject *resultobj = 0;
14836 wxFont *arg1 = (wxFont *) 0 ;
14837 int result;
14838 void *argp1 = 0 ;
14839 int res1 = 0 ;
14840 PyObject *swig_obj[1] ;
14841
14842 if (!args) SWIG_fail;
14843 swig_obj[0] = args;
14844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14845 if (!SWIG_IsOK(res1)) {
14846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14847 }
14848 arg1 = reinterpret_cast< wxFont * >(argp1);
14849 {
14850 PyThreadState* __tstate = wxPyBeginAllowThreads();
14851 result = (int)((wxFont const *)arg1)->GetPointSize();
14852 wxPyEndAllowThreads(__tstate);
14853 if (PyErr_Occurred()) SWIG_fail;
14854 }
14855 resultobj = SWIG_From_int(static_cast< int >(result));
14856 return resultobj;
14857fail:
14858 return NULL;
d55e5bfc
RD
14859}
14860
14861
554f62e9
RD
14862SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14863 PyObject *resultobj = 0;
14864 wxFont *arg1 = (wxFont *) 0 ;
14865 wxSize result;
14866 void *argp1 = 0 ;
14867 int res1 = 0 ;
14868 PyObject *swig_obj[1] ;
14869
14870 if (!args) SWIG_fail;
14871 swig_obj[0] = args;
14872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14873 if (!SWIG_IsOK(res1)) {
14874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14875 }
14876 arg1 = reinterpret_cast< wxFont * >(argp1);
14877 {
14878 PyThreadState* __tstate = wxPyBeginAllowThreads();
14879 result = ((wxFont const *)arg1)->GetPixelSize();
14880 wxPyEndAllowThreads(__tstate);
14881 if (PyErr_Occurred()) SWIG_fail;
14882 }
14883 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14884 return resultobj;
14885fail:
14886 return NULL;
d55e5bfc
RD
14887}
14888
14889
554f62e9
RD
14890SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14891 PyObject *resultobj = 0;
14892 wxFont *arg1 = (wxFont *) 0 ;
14893 bool result;
14894 void *argp1 = 0 ;
14895 int res1 = 0 ;
14896 PyObject *swig_obj[1] ;
14897
14898 if (!args) SWIG_fail;
14899 swig_obj[0] = args;
14900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14901 if (!SWIG_IsOK(res1)) {
14902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14903 }
14904 arg1 = reinterpret_cast< wxFont * >(argp1);
14905 {
14906 PyThreadState* __tstate = wxPyBeginAllowThreads();
14907 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14908 wxPyEndAllowThreads(__tstate);
14909 if (PyErr_Occurred()) SWIG_fail;
14910 }
14911 {
14912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14913 }
14914 return resultobj;
14915fail:
14916 return NULL;
d55e5bfc
RD
14917}
14918
14919
554f62e9
RD
14920SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14921 PyObject *resultobj = 0;
14922 wxFont *arg1 = (wxFont *) 0 ;
14923 int result;
14924 void *argp1 = 0 ;
14925 int res1 = 0 ;
14926 PyObject *swig_obj[1] ;
14927
14928 if (!args) SWIG_fail;
14929 swig_obj[0] = args;
14930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14931 if (!SWIG_IsOK(res1)) {
14932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14933 }
14934 arg1 = reinterpret_cast< wxFont * >(argp1);
14935 {
14936 PyThreadState* __tstate = wxPyBeginAllowThreads();
14937 result = (int)((wxFont const *)arg1)->GetFamily();
14938 wxPyEndAllowThreads(__tstate);
14939 if (PyErr_Occurred()) SWIG_fail;
14940 }
14941 resultobj = SWIG_From_int(static_cast< int >(result));
14942 return resultobj;
14943fail:
14944 return NULL;
d55e5bfc
RD
14945}
14946
14947
554f62e9
RD
14948SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14949 PyObject *resultobj = 0;
14950 wxFont *arg1 = (wxFont *) 0 ;
14951 int result;
14952 void *argp1 = 0 ;
14953 int res1 = 0 ;
14954 PyObject *swig_obj[1] ;
14955
14956 if (!args) SWIG_fail;
14957 swig_obj[0] = args;
14958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14959 if (!SWIG_IsOK(res1)) {
14960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14961 }
14962 arg1 = reinterpret_cast< wxFont * >(argp1);
14963 {
14964 PyThreadState* __tstate = wxPyBeginAllowThreads();
14965 result = (int)((wxFont const *)arg1)->GetStyle();
14966 wxPyEndAllowThreads(__tstate);
14967 if (PyErr_Occurred()) SWIG_fail;
14968 }
14969 resultobj = SWIG_From_int(static_cast< int >(result));
14970 return resultobj;
14971fail:
14972 return NULL;
d55e5bfc
RD
14973}
14974
14975
554f62e9
RD
14976SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14977 PyObject *resultobj = 0;
14978 wxFont *arg1 = (wxFont *) 0 ;
14979 int result;
14980 void *argp1 = 0 ;
14981 int res1 = 0 ;
14982 PyObject *swig_obj[1] ;
14983
14984 if (!args) SWIG_fail;
14985 swig_obj[0] = args;
14986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14987 if (!SWIG_IsOK(res1)) {
14988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14989 }
14990 arg1 = reinterpret_cast< wxFont * >(argp1);
14991 {
14992 PyThreadState* __tstate = wxPyBeginAllowThreads();
14993 result = (int)((wxFont const *)arg1)->GetWeight();
14994 wxPyEndAllowThreads(__tstate);
14995 if (PyErr_Occurred()) SWIG_fail;
14996 }
14997 resultobj = SWIG_From_int(static_cast< int >(result));
14998 return resultobj;
14999fail:
15000 return NULL;
d55e5bfc
RD
15001}
15002
15003
554f62e9
RD
15004SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15005 PyObject *resultobj = 0;
15006 wxFont *arg1 = (wxFont *) 0 ;
15007 bool result;
15008 void *argp1 = 0 ;
15009 int res1 = 0 ;
15010 PyObject *swig_obj[1] ;
15011
15012 if (!args) SWIG_fail;
15013 swig_obj[0] = args;
15014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15015 if (!SWIG_IsOK(res1)) {
15016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
15017 }
15018 arg1 = reinterpret_cast< wxFont * >(argp1);
15019 {
15020 PyThreadState* __tstate = wxPyBeginAllowThreads();
15021 result = (bool)((wxFont const *)arg1)->GetUnderlined();
15022 wxPyEndAllowThreads(__tstate);
15023 if (PyErr_Occurred()) SWIG_fail;
15024 }
15025 {
15026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15027 }
15028 return resultobj;
15029fail:
15030 return NULL;
d55e5bfc
RD
15031}
15032
15033
554f62e9
RD
15034SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15035 PyObject *resultobj = 0;
15036 wxFont *arg1 = (wxFont *) 0 ;
15037 wxString result;
15038 void *argp1 = 0 ;
15039 int res1 = 0 ;
15040 PyObject *swig_obj[1] ;
15041
15042 if (!args) SWIG_fail;
15043 swig_obj[0] = args;
15044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15045 if (!SWIG_IsOK(res1)) {
15046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
15047 }
15048 arg1 = reinterpret_cast< wxFont * >(argp1);
15049 {
15050 PyThreadState* __tstate = wxPyBeginAllowThreads();
15051 result = ((wxFont const *)arg1)->GetFaceName();
15052 wxPyEndAllowThreads(__tstate);
15053 if (PyErr_Occurred()) SWIG_fail;
15054 }
15055 {
15056#if wxUSE_UNICODE
15057 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15058#else
15059 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15060#endif
15061 }
15062 return resultobj;
15063fail:
15064 return NULL;
d55e5bfc
RD
15065}
15066
15067
554f62e9
RD
15068SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15069 PyObject *resultobj = 0;
15070 wxFont *arg1 = (wxFont *) 0 ;
15071 wxFontEncoding result;
15072 void *argp1 = 0 ;
15073 int res1 = 0 ;
15074 PyObject *swig_obj[1] ;
15075
15076 if (!args) SWIG_fail;
15077 swig_obj[0] = args;
15078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15079 if (!SWIG_IsOK(res1)) {
15080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
15081 }
15082 arg1 = reinterpret_cast< wxFont * >(argp1);
15083 {
15084 PyThreadState* __tstate = wxPyBeginAllowThreads();
15085 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
15086 wxPyEndAllowThreads(__tstate);
15087 if (PyErr_Occurred()) SWIG_fail;
15088 }
15089 resultobj = SWIG_From_int(static_cast< int >(result));
15090 return resultobj;
15091fail:
15092 return NULL;
d55e5bfc
RD
15093}
15094
15095
554f62e9
RD
15096SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15097 PyObject *resultobj = 0;
15098 wxFont *arg1 = (wxFont *) 0 ;
15099 wxNativeFontInfo *result = 0 ;
15100 void *argp1 = 0 ;
15101 int res1 = 0 ;
15102 PyObject *swig_obj[1] ;
15103
15104 if (!args) SWIG_fail;
15105 swig_obj[0] = args;
15106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15107 if (!SWIG_IsOK(res1)) {
15108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
15109 }
15110 arg1 = reinterpret_cast< wxFont * >(argp1);
15111 {
15112 PyThreadState* __tstate = wxPyBeginAllowThreads();
15113 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
15114 wxPyEndAllowThreads(__tstate);
15115 if (PyErr_Occurred()) SWIG_fail;
15116 }
15117 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
15118 return resultobj;
15119fail:
15120 return NULL;
d55e5bfc
RD
15121}
15122
15123
554f62e9
RD
15124SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15125 PyObject *resultobj = 0;
15126 wxFont *arg1 = (wxFont *) 0 ;
15127 bool result;
15128 void *argp1 = 0 ;
15129 int res1 = 0 ;
15130 PyObject *swig_obj[1] ;
15131
15132 if (!args) SWIG_fail;
15133 swig_obj[0] = args;
15134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15135 if (!SWIG_IsOK(res1)) {
15136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
15137 }
15138 arg1 = reinterpret_cast< wxFont * >(argp1);
15139 {
15140 PyThreadState* __tstate = wxPyBeginAllowThreads();
15141 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
15142 wxPyEndAllowThreads(__tstate);
15143 if (PyErr_Occurred()) SWIG_fail;
15144 }
15145 {
15146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15147 }
15148 return resultobj;
15149fail:
15150 return NULL;
d55e5bfc
RD
15151}
15152
15153
554f62e9
RD
15154SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15155 PyObject *resultobj = 0;
15156 wxFont *arg1 = (wxFont *) 0 ;
15157 wxString result;
15158 void *argp1 = 0 ;
15159 int res1 = 0 ;
15160 PyObject *swig_obj[1] ;
15161
15162 if (!args) SWIG_fail;
15163 swig_obj[0] = args;
15164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15165 if (!SWIG_IsOK(res1)) {
15166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15167 }
15168 arg1 = reinterpret_cast< wxFont * >(argp1);
15169 {
15170 PyThreadState* __tstate = wxPyBeginAllowThreads();
15171 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
15172 wxPyEndAllowThreads(__tstate);
15173 if (PyErr_Occurred()) SWIG_fail;
15174 }
15175 {
15176#if wxUSE_UNICODE
15177 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15178#else
15179 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15180#endif
15181 }
15182 return resultobj;
15183fail:
15184 return NULL;
d55e5bfc
RD
15185}
15186
15187
554f62e9
RD
15188SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15189 PyObject *resultobj = 0;
15190 wxFont *arg1 = (wxFont *) 0 ;
15191 wxString result;
15192 void *argp1 = 0 ;
15193 int res1 = 0 ;
15194 PyObject *swig_obj[1] ;
15195
15196 if (!args) SWIG_fail;
15197 swig_obj[0] = args;
15198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15199 if (!SWIG_IsOK(res1)) {
15200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15201 }
15202 arg1 = reinterpret_cast< wxFont * >(argp1);
15203 {
15204 PyThreadState* __tstate = wxPyBeginAllowThreads();
15205 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
15206 wxPyEndAllowThreads(__tstate);
15207 if (PyErr_Occurred()) SWIG_fail;
15208 }
15209 {
15210#if wxUSE_UNICODE
15211 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15212#else
15213 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15214#endif
15215 }
15216 return resultobj;
15217fail:
15218 return NULL;
15219}
15220
15221
15222SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15223 PyObject *resultobj = 0;
15224 wxFont *arg1 = (wxFont *) 0 ;
15225 int arg2 ;
15226 void *argp1 = 0 ;
15227 int res1 = 0 ;
15228 int val2 ;
15229 int ecode2 = 0 ;
15230 PyObject * obj0 = 0 ;
15231 PyObject * obj1 = 0 ;
15232 char * kwnames[] = {
15233 (char *) "self",(char *) "pointSize", NULL
15234 };
15235
15236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
15237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15238 if (!SWIG_IsOK(res1)) {
15239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
15240 }
15241 arg1 = reinterpret_cast< wxFont * >(argp1);
15242 ecode2 = SWIG_AsVal_int(obj1, &val2);
15243 if (!SWIG_IsOK(ecode2)) {
15244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
15245 }
15246 arg2 = static_cast< int >(val2);
15247 {
15248 PyThreadState* __tstate = wxPyBeginAllowThreads();
15249 (arg1)->SetPointSize(arg2);
15250 wxPyEndAllowThreads(__tstate);
15251 if (PyErr_Occurred()) SWIG_fail;
15252 }
15253 resultobj = SWIG_Py_Void();
15254 return resultobj;
15255fail:
15256 return NULL;
15257}
15258
15259
15260SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15261 PyObject *resultobj = 0;
15262 wxFont *arg1 = (wxFont *) 0 ;
15263 wxSize *arg2 = 0 ;
15264 void *argp1 = 0 ;
15265 int res1 = 0 ;
15266 wxSize temp2 ;
15267 PyObject * obj0 = 0 ;
15268 PyObject * obj1 = 0 ;
15269 char * kwnames[] = {
15270 (char *) "self",(char *) "pixelSize", NULL
15271 };
15272
15273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
15274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15275 if (!SWIG_IsOK(res1)) {
15276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
15277 }
15278 arg1 = reinterpret_cast< wxFont * >(argp1);
15279 {
15280 arg2 = &temp2;
15281 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15282 }
15283 {
15284 PyThreadState* __tstate = wxPyBeginAllowThreads();
15285 (arg1)->SetPixelSize((wxSize const &)*arg2);
15286 wxPyEndAllowThreads(__tstate);
15287 if (PyErr_Occurred()) SWIG_fail;
15288 }
15289 resultobj = SWIG_Py_Void();
15290 return resultobj;
15291fail:
15292 return NULL;
15293}
15294
15295
15296SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15297 PyObject *resultobj = 0;
15298 wxFont *arg1 = (wxFont *) 0 ;
15299 int arg2 ;
15300 void *argp1 = 0 ;
15301 int res1 = 0 ;
15302 int val2 ;
15303 int ecode2 = 0 ;
15304 PyObject * obj0 = 0 ;
15305 PyObject * obj1 = 0 ;
15306 char * kwnames[] = {
15307 (char *) "self",(char *) "family", NULL
15308 };
15309
15310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
15311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15312 if (!SWIG_IsOK(res1)) {
15313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
15314 }
15315 arg1 = reinterpret_cast< wxFont * >(argp1);
15316 ecode2 = SWIG_AsVal_int(obj1, &val2);
15317 if (!SWIG_IsOK(ecode2)) {
15318 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
15319 }
15320 arg2 = static_cast< int >(val2);
15321 {
15322 PyThreadState* __tstate = wxPyBeginAllowThreads();
15323 (arg1)->SetFamily(arg2);
15324 wxPyEndAllowThreads(__tstate);
15325 if (PyErr_Occurred()) SWIG_fail;
15326 }
15327 resultobj = SWIG_Py_Void();
15328 return resultobj;
15329fail:
15330 return NULL;
15331}
15332
15333
15334SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15335 PyObject *resultobj = 0;
15336 wxFont *arg1 = (wxFont *) 0 ;
15337 int arg2 ;
15338 void *argp1 = 0 ;
15339 int res1 = 0 ;
15340 int val2 ;
15341 int ecode2 = 0 ;
15342 PyObject * obj0 = 0 ;
15343 PyObject * obj1 = 0 ;
15344 char * kwnames[] = {
15345 (char *) "self",(char *) "style", NULL
15346 };
15347
15348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15350 if (!SWIG_IsOK(res1)) {
15351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15352 }
15353 arg1 = reinterpret_cast< wxFont * >(argp1);
15354 ecode2 = SWIG_AsVal_int(obj1, &val2);
15355 if (!SWIG_IsOK(ecode2)) {
15356 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15357 }
15358 arg2 = static_cast< int >(val2);
15359 {
15360 PyThreadState* __tstate = wxPyBeginAllowThreads();
15361 (arg1)->SetStyle(arg2);
15362 wxPyEndAllowThreads(__tstate);
15363 if (PyErr_Occurred()) SWIG_fail;
15364 }
15365 resultobj = SWIG_Py_Void();
15366 return resultobj;
15367fail:
15368 return NULL;
15369}
15370
15371
15372SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15373 PyObject *resultobj = 0;
15374 wxFont *arg1 = (wxFont *) 0 ;
15375 int arg2 ;
15376 void *argp1 = 0 ;
15377 int res1 = 0 ;
15378 int val2 ;
15379 int ecode2 = 0 ;
15380 PyObject * obj0 = 0 ;
15381 PyObject * obj1 = 0 ;
15382 char * kwnames[] = {
15383 (char *) "self",(char *) "weight", NULL
15384 };
15385
15386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15388 if (!SWIG_IsOK(res1)) {
15389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15390 }
15391 arg1 = reinterpret_cast< wxFont * >(argp1);
15392 ecode2 = SWIG_AsVal_int(obj1, &val2);
15393 if (!SWIG_IsOK(ecode2)) {
15394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15395 }
15396 arg2 = static_cast< int >(val2);
15397 {
15398 PyThreadState* __tstate = wxPyBeginAllowThreads();
15399 (arg1)->SetWeight(arg2);
15400 wxPyEndAllowThreads(__tstate);
15401 if (PyErr_Occurred()) SWIG_fail;
15402 }
15403 resultobj = SWIG_Py_Void();
15404 return resultobj;
15405fail:
15406 return NULL;
15407}
15408
15409
15410SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15411 PyObject *resultobj = 0;
15412 wxFont *arg1 = (wxFont *) 0 ;
15413 wxString *arg2 = 0 ;
704eda0c 15414 bool result;
554f62e9
RD
15415 void *argp1 = 0 ;
15416 int res1 = 0 ;
15417 bool temp2 = false ;
15418 PyObject * obj0 = 0 ;
15419 PyObject * obj1 = 0 ;
15420 char * kwnames[] = {
15421 (char *) "self",(char *) "faceName", NULL
15422 };
15423
15424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15426 if (!SWIG_IsOK(res1)) {
15427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15428 }
15429 arg1 = reinterpret_cast< wxFont * >(argp1);
15430 {
15431 arg2 = wxString_in_helper(obj1);
15432 if (arg2 == NULL) SWIG_fail;
15433 temp2 = true;
15434 }
15435 {
15436 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15437 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
554f62e9
RD
15438 wxPyEndAllowThreads(__tstate);
15439 if (PyErr_Occurred()) SWIG_fail;
15440 }
704eda0c
RD
15441 {
15442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15443 }
554f62e9
RD
15444 {
15445 if (temp2)
15446 delete arg2;
15447 }
15448 return resultobj;
15449fail:
15450 {
15451 if (temp2)
15452 delete arg2;
15453 }
15454 return NULL;
15455}
15456
15457
15458SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15459 PyObject *resultobj = 0;
15460 wxFont *arg1 = (wxFont *) 0 ;
15461 bool arg2 ;
15462 void *argp1 = 0 ;
15463 int res1 = 0 ;
15464 bool val2 ;
15465 int ecode2 = 0 ;
15466 PyObject * obj0 = 0 ;
15467 PyObject * obj1 = 0 ;
15468 char * kwnames[] = {
15469 (char *) "self",(char *) "underlined", NULL
15470 };
15471
15472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15474 if (!SWIG_IsOK(res1)) {
15475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15476 }
15477 arg1 = reinterpret_cast< wxFont * >(argp1);
15478 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15479 if (!SWIG_IsOK(ecode2)) {
15480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15481 }
15482 arg2 = static_cast< bool >(val2);
15483 {
15484 PyThreadState* __tstate = wxPyBeginAllowThreads();
15485 (arg1)->SetUnderlined(arg2);
15486 wxPyEndAllowThreads(__tstate);
15487 if (PyErr_Occurred()) SWIG_fail;
15488 }
15489 resultobj = SWIG_Py_Void();
15490 return resultobj;
15491fail:
15492 return NULL;
15493}
15494
15495
15496SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15497 PyObject *resultobj = 0;
15498 wxFont *arg1 = (wxFont *) 0 ;
15499 wxFontEncoding arg2 ;
15500 void *argp1 = 0 ;
15501 int res1 = 0 ;
15502 int val2 ;
15503 int ecode2 = 0 ;
15504 PyObject * obj0 = 0 ;
15505 PyObject * obj1 = 0 ;
15506 char * kwnames[] = {
15507 (char *) "self",(char *) "encoding", NULL
15508 };
15509
15510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15512 if (!SWIG_IsOK(res1)) {
15513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15514 }
15515 arg1 = reinterpret_cast< wxFont * >(argp1);
15516 ecode2 = SWIG_AsVal_int(obj1, &val2);
15517 if (!SWIG_IsOK(ecode2)) {
15518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15519 }
15520 arg2 = static_cast< wxFontEncoding >(val2);
15521 {
15522 PyThreadState* __tstate = wxPyBeginAllowThreads();
15523 (arg1)->SetEncoding(arg2);
15524 wxPyEndAllowThreads(__tstate);
15525 if (PyErr_Occurred()) SWIG_fail;
15526 }
15527 resultobj = SWIG_Py_Void();
15528 return resultobj;
15529fail:
15530 return NULL;
15531}
15532
15533
15534SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15535 PyObject *resultobj = 0;
15536 wxFont *arg1 = (wxFont *) 0 ;
15537 wxNativeFontInfo *arg2 = 0 ;
15538 void *argp1 = 0 ;
15539 int res1 = 0 ;
15540 void *argp2 = 0 ;
15541 int res2 = 0 ;
15542 PyObject * obj0 = 0 ;
15543 PyObject * obj1 = 0 ;
15544 char * kwnames[] = {
15545 (char *) "self",(char *) "info", NULL
15546 };
15547
15548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15550 if (!SWIG_IsOK(res1)) {
15551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15552 }
15553 arg1 = reinterpret_cast< wxFont * >(argp1);
15554 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15555 if (!SWIG_IsOK(res2)) {
15556 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15557 }
15558 if (!argp2) {
15559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15560 }
15561 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15562 {
15563 PyThreadState* __tstate = wxPyBeginAllowThreads();
15564 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15565 wxPyEndAllowThreads(__tstate);
15566 if (PyErr_Occurred()) SWIG_fail;
15567 }
15568 resultobj = SWIG_Py_Void();
15569 return resultobj;
15570fail:
15571 return NULL;
15572}
15573
15574
15575SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15576 PyObject *resultobj = 0;
15577 wxFont *arg1 = (wxFont *) 0 ;
15578 wxString *arg2 = 0 ;
704eda0c 15579 bool result;
554f62e9
RD
15580 void *argp1 = 0 ;
15581 int res1 = 0 ;
15582 bool temp2 = false ;
15583 PyObject * obj0 = 0 ;
15584 PyObject * obj1 = 0 ;
15585 char * kwnames[] = {
15586 (char *) "self",(char *) "info", NULL
15587 };
15588
15589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15591 if (!SWIG_IsOK(res1)) {
15592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15593 }
15594 arg1 = reinterpret_cast< wxFont * >(argp1);
15595 {
15596 arg2 = wxString_in_helper(obj1);
15597 if (arg2 == NULL) SWIG_fail;
15598 temp2 = true;
15599 }
15600 {
15601 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15602 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
554f62e9
RD
15603 wxPyEndAllowThreads(__tstate);
15604 if (PyErr_Occurred()) SWIG_fail;
15605 }
704eda0c
RD
15606 {
15607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15608 }
554f62e9
RD
15609 {
15610 if (temp2)
15611 delete arg2;
15612 }
15613 return resultobj;
15614fail:
15615 {
15616 if (temp2)
15617 delete arg2;
15618 }
15619 return NULL;
d55e5bfc
RD
15620}
15621
15622
554f62e9
RD
15623SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15624 PyObject *resultobj = 0;
15625 wxFont *arg1 = (wxFont *) 0 ;
15626 wxString *arg2 = 0 ;
704eda0c 15627 bool result;
554f62e9
RD
15628 void *argp1 = 0 ;
15629 int res1 = 0 ;
15630 bool temp2 = false ;
15631 PyObject * obj0 = 0 ;
15632 PyObject * obj1 = 0 ;
15633 char * kwnames[] = {
15634 (char *) "self",(char *) "info", NULL
15635 };
15636
15637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15639 if (!SWIG_IsOK(res1)) {
15640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15641 }
15642 arg1 = reinterpret_cast< wxFont * >(argp1);
15643 {
15644 arg2 = wxString_in_helper(obj1);
15645 if (arg2 == NULL) SWIG_fail;
15646 temp2 = true;
15647 }
15648 {
15649 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15650 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
554f62e9
RD
15651 wxPyEndAllowThreads(__tstate);
15652 if (PyErr_Occurred()) SWIG_fail;
15653 }
704eda0c
RD
15654 {
15655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15656 }
554f62e9
RD
15657 {
15658 if (temp2)
15659 delete arg2;
15660 }
15661 return resultobj;
15662fail:
15663 {
15664 if (temp2)
15665 delete arg2;
15666 }
15667 return NULL;
d55e5bfc
RD
15668}
15669
15670
554f62e9
RD
15671SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15672 PyObject *resultobj = 0;
15673 wxFont *arg1 = (wxFont *) 0 ;
15674 wxString result;
15675 void *argp1 = 0 ;
15676 int res1 = 0 ;
15677 PyObject *swig_obj[1] ;
15678
15679 if (!args) SWIG_fail;
15680 swig_obj[0] = args;
15681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15682 if (!SWIG_IsOK(res1)) {
15683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15684 }
15685 arg1 = reinterpret_cast< wxFont * >(argp1);
15686 {
15687 PyThreadState* __tstate = wxPyBeginAllowThreads();
15688 result = ((wxFont const *)arg1)->GetFamilyString();
15689 wxPyEndAllowThreads(__tstate);
15690 if (PyErr_Occurred()) SWIG_fail;
15691 }
15692 {
15693#if wxUSE_UNICODE
15694 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15695#else
15696 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15697#endif
15698 }
15699 return resultobj;
15700fail:
15701 return NULL;
d55e5bfc
RD
15702}
15703
15704
554f62e9
RD
15705SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15706 PyObject *resultobj = 0;
15707 wxFont *arg1 = (wxFont *) 0 ;
15708 wxString result;
15709 void *argp1 = 0 ;
15710 int res1 = 0 ;
15711 PyObject *swig_obj[1] ;
15712
15713 if (!args) SWIG_fail;
15714 swig_obj[0] = args;
15715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15716 if (!SWIG_IsOK(res1)) {
15717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15718 }
15719 arg1 = reinterpret_cast< wxFont * >(argp1);
15720 {
15721 PyThreadState* __tstate = wxPyBeginAllowThreads();
15722 result = ((wxFont const *)arg1)->GetStyleString();
15723 wxPyEndAllowThreads(__tstate);
15724 if (PyErr_Occurred()) SWIG_fail;
15725 }
15726 {
15727#if wxUSE_UNICODE
15728 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15729#else
15730 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15731#endif
15732 }
15733 return resultobj;
15734fail:
15735 return NULL;
d55e5bfc
RD
15736}
15737
15738
554f62e9
RD
15739SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15740 PyObject *resultobj = 0;
15741 wxFont *arg1 = (wxFont *) 0 ;
15742 wxString result;
15743 void *argp1 = 0 ;
15744 int res1 = 0 ;
15745 PyObject *swig_obj[1] ;
15746
15747 if (!args) SWIG_fail;
15748 swig_obj[0] = args;
15749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15750 if (!SWIG_IsOK(res1)) {
15751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15752 }
15753 arg1 = reinterpret_cast< wxFont * >(argp1);
15754 {
15755 PyThreadState* __tstate = wxPyBeginAllowThreads();
15756 result = ((wxFont const *)arg1)->GetWeightString();
15757 wxPyEndAllowThreads(__tstate);
15758 if (PyErr_Occurred()) SWIG_fail;
15759 }
15760 {
15761#if wxUSE_UNICODE
15762 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15763#else
15764 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15765#endif
15766 }
15767 return resultobj;
15768fail:
15769 return NULL;
15770}
15771
15772
15773SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15774 PyObject *resultobj = 0;
15775 wxFont *arg1 = (wxFont *) 0 ;
15776 bool arg2 = (bool) true ;
15777 void *argp1 = 0 ;
15778 int res1 = 0 ;
15779 bool val2 ;
15780 int ecode2 = 0 ;
15781 PyObject * obj0 = 0 ;
15782 PyObject * obj1 = 0 ;
15783 char * kwnames[] = {
15784 (char *) "self",(char *) "no", NULL
15785 };
15786
15787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15789 if (!SWIG_IsOK(res1)) {
15790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15791 }
15792 arg1 = reinterpret_cast< wxFont * >(argp1);
15793 if (obj1) {
15794 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15795 if (!SWIG_IsOK(ecode2)) {
15796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15797 }
15798 arg2 = static_cast< bool >(val2);
15799 }
15800 {
15801 PyThreadState* __tstate = wxPyBeginAllowThreads();
15802 (arg1)->SetNoAntiAliasing(arg2);
15803 wxPyEndAllowThreads(__tstate);
15804 if (PyErr_Occurred()) SWIG_fail;
15805 }
15806 resultobj = SWIG_Py_Void();
15807 return resultobj;
15808fail:
15809 return NULL;
d55e5bfc
RD
15810}
15811
15812
554f62e9
RD
15813SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15814 PyObject *resultobj = 0;
15815 wxFont *arg1 = (wxFont *) 0 ;
15816 bool result;
15817 void *argp1 = 0 ;
15818 int res1 = 0 ;
15819 PyObject *swig_obj[1] ;
15820
15821 if (!args) SWIG_fail;
15822 swig_obj[0] = args;
15823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15824 if (!SWIG_IsOK(res1)) {
15825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15826 }
15827 arg1 = reinterpret_cast< wxFont * >(argp1);
15828 {
15829 PyThreadState* __tstate = wxPyBeginAllowThreads();
15830 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15831 wxPyEndAllowThreads(__tstate);
15832 if (PyErr_Occurred()) SWIG_fail;
15833 }
15834 {
15835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15836 }
15837 return resultobj;
15838fail:
15839 return NULL;
d55e5bfc
RD
15840}
15841
15842
554f62e9
RD
15843SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15844 PyObject *resultobj = 0;
15845 wxFontEncoding result;
15846
15847 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15848 {
15849 if (!wxPyCheckForApp()) SWIG_fail;
15850 PyThreadState* __tstate = wxPyBeginAllowThreads();
15851 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15852 wxPyEndAllowThreads(__tstate);
15853 if (PyErr_Occurred()) SWIG_fail;
15854 }
15855 resultobj = SWIG_From_int(static_cast< int >(result));
15856 return resultobj;
15857fail:
15858 return NULL;
d55e5bfc
RD
15859}
15860
15861
554f62e9
RD
15862SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15863 PyObject *resultobj = 0;
15864 wxFontEncoding arg1 ;
15865 int val1 ;
15866 int ecode1 = 0 ;
15867 PyObject * obj0 = 0 ;
15868 char * kwnames[] = {
15869 (char *) "encoding", NULL
15870 };
15871
15872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15873 ecode1 = SWIG_AsVal_int(obj0, &val1);
15874 if (!SWIG_IsOK(ecode1)) {
15875 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15876 }
15877 arg1 = static_cast< wxFontEncoding >(val1);
15878 {
15879 if (!wxPyCheckForApp()) SWIG_fail;
15880 PyThreadState* __tstate = wxPyBeginAllowThreads();
15881 wxFont::SetDefaultEncoding(arg1);
15882 wxPyEndAllowThreads(__tstate);
15883 if (PyErr_Occurred()) SWIG_fail;
15884 }
15885 resultobj = SWIG_Py_Void();
15886 return resultobj;
15887fail:
15888 return NULL;
5e483524
RD
15889}
15890
15891
554f62e9
RD
15892SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15893 PyObject *obj;
15894 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15895 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15896 return SWIG_Py_Void();
d55e5bfc
RD
15897}
15898
554f62e9
RD
15899SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15900 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
15901}
15902
554f62e9
RD
15903SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15904 PyObject *resultobj = 0;
15905 wxPyFontEnumerator *result = 0 ;
15906
15907 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15908 {
15909 if (!wxPyCheckForApp()) SWIG_fail;
15910 PyThreadState* __tstate = wxPyBeginAllowThreads();
15911 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15912 wxPyEndAllowThreads(__tstate);
15913 if (PyErr_Occurred()) SWIG_fail;
15914 }
15915 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15916 return resultobj;
15917fail:
15918 return NULL;
d55e5bfc
RD
15919}
15920
15921
554f62e9
RD
15922SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15923 PyObject *resultobj = 0;
15924 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15925 void *argp1 = 0 ;
15926 int res1 = 0 ;
15927 PyObject *swig_obj[1] ;
15928
15929 if (!args) SWIG_fail;
15930 swig_obj[0] = args;
15931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15932 if (!SWIG_IsOK(res1)) {
15933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15934 }
15935 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15936 {
15937 PyThreadState* __tstate = wxPyBeginAllowThreads();
15938 delete arg1;
d55e5bfc 15939
554f62e9
RD
15940 wxPyEndAllowThreads(__tstate);
15941 if (PyErr_Occurred()) SWIG_fail;
15942 }
15943 resultobj = SWIG_Py_Void();
15944 return resultobj;
15945fail:
15946 return NULL;
15947}
15948
15949
15950SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15951 PyObject *resultobj = 0;
15952 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15953 PyObject *arg2 = (PyObject *) 0 ;
15954 PyObject *arg3 = (PyObject *) 0 ;
15955 bool arg4 ;
15956 void *argp1 = 0 ;
15957 int res1 = 0 ;
15958 bool val4 ;
15959 int ecode4 = 0 ;
15960 PyObject * obj0 = 0 ;
15961 PyObject * obj1 = 0 ;
15962 PyObject * obj2 = 0 ;
15963 PyObject * obj3 = 0 ;
15964 char * kwnames[] = {
15965 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15966 };
15967
15968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15970 if (!SWIG_IsOK(res1)) {
15971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15972 }
15973 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15974 arg2 = obj1;
15975 arg3 = obj2;
15976 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15977 if (!SWIG_IsOK(ecode4)) {
15978 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15979 }
15980 arg4 = static_cast< bool >(val4);
15981 {
15982 PyThreadState* __tstate = wxPyBeginAllowThreads();
15983 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15984 wxPyEndAllowThreads(__tstate);
15985 if (PyErr_Occurred()) SWIG_fail;
15986 }
15987 resultobj = SWIG_Py_Void();
15988 return resultobj;
15989fail:
15990 return NULL;
15991}
15992
15993
15994SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15995 PyObject *resultobj = 0;
15996 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15997 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15998 bool arg3 = (bool) false ;
15999 bool result;
16000 void *argp1 = 0 ;
16001 int res1 = 0 ;
16002 int val2 ;
16003 int ecode2 = 0 ;
16004 bool val3 ;
16005 int ecode3 = 0 ;
16006 PyObject * obj0 = 0 ;
16007 PyObject * obj1 = 0 ;
16008 PyObject * obj2 = 0 ;
16009 char * kwnames[] = {
16010 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
16011 };
16012
16013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16015 if (!SWIG_IsOK(res1)) {
16016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16017 }
16018 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16019 if (obj1) {
16020 ecode2 = SWIG_AsVal_int(obj1, &val2);
16021 if (!SWIG_IsOK(ecode2)) {
16022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16023 }
16024 arg2 = static_cast< wxFontEncoding >(val2);
16025 }
16026 if (obj2) {
16027 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16028 if (!SWIG_IsOK(ecode3)) {
16029 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
16030 }
16031 arg3 = static_cast< bool >(val3);
16032 }
16033 {
16034 PyThreadState* __tstate = wxPyBeginAllowThreads();
16035 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
16036 wxPyEndAllowThreads(__tstate);
16037 if (PyErr_Occurred()) SWIG_fail;
16038 }
16039 {
16040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16041 }
16042 return resultobj;
16043fail:
16044 return NULL;
16045}
16046
16047
16048SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16049 PyObject *resultobj = 0;
16050 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16051 wxString const &arg2_defvalue = wxPyEmptyString ;
16052 wxString *arg2 = (wxString *) &arg2_defvalue ;
16053 bool result;
16054 void *argp1 = 0 ;
16055 int res1 = 0 ;
16056 bool temp2 = false ;
16057 PyObject * obj0 = 0 ;
16058 PyObject * obj1 = 0 ;
16059 char * kwnames[] = {
16060 (char *) "self",(char *) "facename", NULL
16061 };
16062
16063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
16064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16065 if (!SWIG_IsOK(res1)) {
16066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16067 }
16068 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16069 if (obj1) {
093d3ff1 16070 {
554f62e9
RD
16071 arg2 = wxString_in_helper(obj1);
16072 if (arg2 == NULL) SWIG_fail;
16073 temp2 = true;
093d3ff1 16074 }
554f62e9
RD
16075 }
16076 {
16077 PyThreadState* __tstate = wxPyBeginAllowThreads();
16078 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
16079 wxPyEndAllowThreads(__tstate);
16080 if (PyErr_Occurred()) SWIG_fail;
16081 }
16082 {
16083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16084 }
16085 {
16086 if (temp2)
16087 delete arg2;
16088 }
16089 return resultobj;
16090fail:
16091 {
16092 if (temp2)
16093 delete arg2;
16094 }
16095 return NULL;
d55e5bfc
RD
16096}
16097
16098
554f62e9
RD
16099SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16100 PyObject *resultobj = 0;
554f62e9 16101 PyObject *result = 0 ;
554f62e9 16102
704eda0c 16103 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
554f62e9
RD
16104 {
16105 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 16106 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
554f62e9
RD
16107 wxPyEndAllowThreads(__tstate);
16108 if (PyErr_Occurred()) SWIG_fail;
16109 }
16110 resultobj = result;
16111 return resultobj;
16112fail:
16113 return NULL;
d55e5bfc
RD
16114}
16115
16116
554f62e9
RD
16117SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16118 PyObject *resultobj = 0;
554f62e9 16119 PyObject *result = 0 ;
554f62e9 16120
704eda0c 16121 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
554f62e9
RD
16122 {
16123 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 16124 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
554f62e9
RD
16125 wxPyEndAllowThreads(__tstate);
16126 if (PyErr_Occurred()) SWIG_fail;
16127 }
16128 resultobj = result;
16129 return resultobj;
16130fail:
16131 return NULL;
d55e5bfc
RD
16132}
16133
16134
704eda0c
RD
16135SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16136 PyObject *resultobj = 0;
16137 wxString *arg1 = 0 ;
16138 bool result;
16139 bool temp1 = false ;
16140 PyObject * obj0 = 0 ;
16141 char * kwnames[] = {
16142 (char *) "str", NULL
16143 };
16144
16145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
16146 {
16147 arg1 = wxString_in_helper(obj0);
16148 if (arg1 == NULL) SWIG_fail;
16149 temp1 = true;
16150 }
16151 {
16152 PyThreadState* __tstate = wxPyBeginAllowThreads();
16153 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
16154 wxPyEndAllowThreads(__tstate);
16155 if (PyErr_Occurred()) SWIG_fail;
16156 }
16157 {
16158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16159 }
16160 {
16161 if (temp1)
16162 delete arg1;
16163 }
16164 return resultobj;
16165fail:
16166 {
16167 if (temp1)
16168 delete arg1;
16169 }
16170 return NULL;
16171}
16172
16173
554f62e9
RD
16174SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16175 PyObject *obj;
16176 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16177 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
16178 return SWIG_Py_Void();
5e483524
RD
16179}
16180
554f62e9
RD
16181SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16182 return SWIG_Python_InitShadowInstance(args);
16183}
5e483524 16184
554f62e9
RD
16185SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16186 PyObject *resultobj = 0;
16187 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16188 int arg2 ;
16189 void *argp1 = 0 ;
16190 int res1 = 0 ;
16191 int val2 ;
16192 int ecode2 = 0 ;
16193 PyObject *swig_obj[2] ;
16194
16195 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
16196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16197 if (!SWIG_IsOK(res1)) {
16198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16199 }
16200 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16201 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16202 if (!SWIG_IsOK(ecode2)) {
16203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
16204 }
16205 arg2 = static_cast< int >(val2);
16206 if (arg1) (arg1)->Language = arg2;
16207
16208 resultobj = SWIG_Py_Void();
16209 return resultobj;
16210fail:
16211 return NULL;
d55e5bfc
RD
16212}
16213
16214
554f62e9
RD
16215SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16216 PyObject *resultobj = 0;
16217 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16218 int result;
16219 void *argp1 = 0 ;
16220 int res1 = 0 ;
16221 PyObject *swig_obj[1] ;
16222
16223 if (!args) SWIG_fail;
16224 swig_obj[0] = args;
16225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16226 if (!SWIG_IsOK(res1)) {
16227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16228 }
16229 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16230 result = (int) ((arg1)->Language);
16231 resultobj = SWIG_From_int(static_cast< int >(result));
16232 return resultobj;
16233fail:
16234 return NULL;
16235}
16236
16237
16238SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16239 PyObject *resultobj = 0;
16240 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16241 wxString *arg2 = (wxString *) 0 ;
16242 void *argp1 = 0 ;
16243 int res1 = 0 ;
16244 bool temp2 = false ;
16245 PyObject *swig_obj[2] ;
16246
16247 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
16248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16249 if (!SWIG_IsOK(res1)) {
16250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16251 }
16252 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16253 {
16254 arg2 = wxString_in_helper(swig_obj[1]);
16255 if (arg2 == NULL) SWIG_fail;
16256 temp2 = true;
16257 }
16258 if (arg1) (arg1)->CanonicalName = *arg2;
16259
16260 resultobj = SWIG_Py_Void();
16261 {
16262 if (temp2)
16263 delete arg2;
16264 }
16265 return resultobj;
16266fail:
16267 {
16268 if (temp2)
16269 delete arg2;
16270 }
16271 return NULL;
d55e5bfc
RD
16272}
16273
16274
554f62e9
RD
16275SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16276 PyObject *resultobj = 0;
16277 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16278 wxString *result = 0 ;
16279 void *argp1 = 0 ;
16280 int res1 = 0 ;
16281 PyObject *swig_obj[1] ;
16282
16283 if (!args) SWIG_fail;
16284 swig_obj[0] = args;
16285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16286 if (!SWIG_IsOK(res1)) {
16287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16288 }
16289 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16290 result = (wxString *)& ((arg1)->CanonicalName);
16291 {
16292#if wxUSE_UNICODE
16293 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16294#else
16295 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16296#endif
16297 }
16298 return resultobj;
16299fail:
16300 return NULL;
d55e5bfc
RD
16301}
16302
16303
554f62e9
RD
16304SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16305 PyObject *resultobj = 0;
16306 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16307 wxString *arg2 = (wxString *) 0 ;
16308 void *argp1 = 0 ;
16309 int res1 = 0 ;
16310 bool temp2 = false ;
16311 PyObject *swig_obj[2] ;
16312
16313 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
16314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16315 if (!SWIG_IsOK(res1)) {
16316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16317 }
16318 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16319 {
16320 arg2 = wxString_in_helper(swig_obj[1]);
16321 if (arg2 == NULL) SWIG_fail;
16322 temp2 = true;
16323 }
16324 if (arg1) (arg1)->Description = *arg2;
16325
16326 resultobj = SWIG_Py_Void();
16327 {
16328 if (temp2)
16329 delete arg2;
16330 }
16331 return resultobj;
16332fail:
16333 {
16334 if (temp2)
16335 delete arg2;
16336 }
16337 return NULL;
d55e5bfc
RD
16338}
16339
16340
554f62e9
RD
16341SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16342 PyObject *resultobj = 0;
16343 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16344 wxString *result = 0 ;
16345 void *argp1 = 0 ;
16346 int res1 = 0 ;
16347 PyObject *swig_obj[1] ;
16348
16349 if (!args) SWIG_fail;
16350 swig_obj[0] = args;
16351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16352 if (!SWIG_IsOK(res1)) {
16353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16354 }
16355 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16356 result = (wxString *)& ((arg1)->Description);
16357 {
16358#if wxUSE_UNICODE
16359 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16360#else
16361 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16362#endif
16363 }
16364 return resultobj;
16365fail:
16366 return NULL;
16367}
16368
16369
16370SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16371 PyObject *obj;
16372 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16373 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16374 return SWIG_Py_Void();
16375}
16376
16377SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16378 PyObject *resultobj = 0;
16379 int arg1 = (int) -1 ;
16380 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16381 wxLocale *result = 0 ;
16382 int val1 ;
16383 int ecode1 = 0 ;
16384 int val2 ;
16385 int ecode2 = 0 ;
16386 PyObject * obj0 = 0 ;
16387 PyObject * obj1 = 0 ;
16388 char * kwnames[] = {
16389 (char *) "language",(char *) "flags", NULL
16390 };
16391
16392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16393 if (obj0) {
16394 ecode1 = SWIG_AsVal_int(obj0, &val1);
16395 if (!SWIG_IsOK(ecode1)) {
16396 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16397 }
16398 arg1 = static_cast< int >(val1);
16399 }
16400 if (obj1) {
16401 ecode2 = SWIG_AsVal_int(obj1, &val2);
16402 if (!SWIG_IsOK(ecode2)) {
16403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16404 }
16405 arg2 = static_cast< int >(val2);
16406 }
16407 {
16408 PyThreadState* __tstate = wxPyBeginAllowThreads();
16409 result = (wxLocale *)new_wxLocale(arg1,arg2);
16410 wxPyEndAllowThreads(__tstate);
16411 if (PyErr_Occurred()) SWIG_fail;
16412 }
16413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16414 return resultobj;
16415fail:
16416 return NULL;
d55e5bfc
RD
16417}
16418
16419
554f62e9
RD
16420SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16421 PyObject *resultobj = 0;
16422 wxLocale *arg1 = (wxLocale *) 0 ;
16423 void *argp1 = 0 ;
16424 int res1 = 0 ;
16425 PyObject *swig_obj[1] ;
16426
16427 if (!args) SWIG_fail;
16428 swig_obj[0] = args;
16429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16430 if (!SWIG_IsOK(res1)) {
16431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16432 }
16433 arg1 = reinterpret_cast< wxLocale * >(argp1);
16434 {
16435 PyThreadState* __tstate = wxPyBeginAllowThreads();
16436 delete arg1;
d55e5bfc 16437
554f62e9
RD
16438 wxPyEndAllowThreads(__tstate);
16439 if (PyErr_Occurred()) SWIG_fail;
16440 }
16441 resultobj = SWIG_Py_Void();
16442 return resultobj;
16443fail:
16444 return NULL;
16445}
16446
16447
16448SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16449 PyObject *resultobj = 0;
16450 wxLocale *arg1 = (wxLocale *) 0 ;
16451 wxString *arg2 = 0 ;
16452 wxString const &arg3_defvalue = wxPyEmptyString ;
16453 wxString *arg3 = (wxString *) &arg3_defvalue ;
16454 wxString const &arg4_defvalue = wxPyEmptyString ;
16455 wxString *arg4 = (wxString *) &arg4_defvalue ;
16456 bool arg5 = (bool) true ;
16457 bool arg6 = (bool) false ;
16458 bool result;
16459 void *argp1 = 0 ;
16460 int res1 = 0 ;
16461 bool temp2 = false ;
16462 bool temp3 = false ;
16463 bool temp4 = false ;
16464 bool val5 ;
16465 int ecode5 = 0 ;
16466 bool val6 ;
16467 int ecode6 = 0 ;
16468 PyObject * obj0 = 0 ;
16469 PyObject * obj1 = 0 ;
16470 PyObject * obj2 = 0 ;
16471 PyObject * obj3 = 0 ;
16472 PyObject * obj4 = 0 ;
16473 PyObject * obj5 = 0 ;
16474 char * kwnames[] = {
16475 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16476 };
16477
16478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16480 if (!SWIG_IsOK(res1)) {
16481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16482 }
16483 arg1 = reinterpret_cast< wxLocale * >(argp1);
16484 {
16485 arg2 = wxString_in_helper(obj1);
16486 if (arg2 == NULL) SWIG_fail;
16487 temp2 = true;
16488 }
16489 if (obj2) {
093d3ff1 16490 {
554f62e9
RD
16491 arg3 = wxString_in_helper(obj2);
16492 if (arg3 == NULL) SWIG_fail;
16493 temp3 = true;
093d3ff1 16494 }
554f62e9
RD
16495 }
16496 if (obj3) {
d55e5bfc 16497 {
554f62e9
RD
16498 arg4 = wxString_in_helper(obj3);
16499 if (arg4 == NULL) SWIG_fail;
16500 temp4 = true;
d55e5bfc 16501 }
554f62e9
RD
16502 }
16503 if (obj4) {
16504 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16505 if (!SWIG_IsOK(ecode5)) {
16506 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16507 }
16508 arg5 = static_cast< bool >(val5);
16509 }
16510 if (obj5) {
16511 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16512 if (!SWIG_IsOK(ecode6)) {
16513 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16514 }
16515 arg6 = static_cast< bool >(val6);
16516 }
16517 {
16518 PyThreadState* __tstate = wxPyBeginAllowThreads();
16519 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16520 wxPyEndAllowThreads(__tstate);
16521 if (PyErr_Occurred()) SWIG_fail;
16522 }
16523 {
16524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16525 }
16526 {
16527 if (temp2)
16528 delete arg2;
16529 }
16530 {
16531 if (temp3)
16532 delete arg3;
16533 }
16534 {
16535 if (temp4)
16536 delete arg4;
16537 }
16538 return resultobj;
16539fail:
16540 {
16541 if (temp2)
16542 delete arg2;
16543 }
16544 {
16545 if (temp3)
16546 delete arg3;
16547 }
16548 {
16549 if (temp4)
16550 delete arg4;
16551 }
16552 return NULL;
16553}
16554
16555
16556SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16557 PyObject *resultobj = 0;
16558 wxLocale *arg1 = (wxLocale *) 0 ;
16559 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16560 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16561 bool result;
16562 void *argp1 = 0 ;
16563 int res1 = 0 ;
16564 int val2 ;
16565 int ecode2 = 0 ;
16566 int val3 ;
16567 int ecode3 = 0 ;
16568 PyObject * obj0 = 0 ;
16569 PyObject * obj1 = 0 ;
16570 PyObject * obj2 = 0 ;
16571 char * kwnames[] = {
16572 (char *) "self",(char *) "language",(char *) "flags", NULL
16573 };
16574
16575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16577 if (!SWIG_IsOK(res1)) {
16578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16579 }
16580 arg1 = reinterpret_cast< wxLocale * >(argp1);
16581 if (obj1) {
16582 ecode2 = SWIG_AsVal_int(obj1, &val2);
16583 if (!SWIG_IsOK(ecode2)) {
16584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16585 }
16586 arg2 = static_cast< int >(val2);
16587 }
16588 if (obj2) {
16589 ecode3 = SWIG_AsVal_int(obj2, &val3);
16590 if (!SWIG_IsOK(ecode3)) {
16591 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16592 }
16593 arg3 = static_cast< int >(val3);
16594 }
16595 {
16596 PyThreadState* __tstate = wxPyBeginAllowThreads();
16597 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16598 wxPyEndAllowThreads(__tstate);
16599 if (PyErr_Occurred()) SWIG_fail;
16600 }
16601 {
16602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16603 }
16604 return resultobj;
16605fail:
16606 return NULL;
d55e5bfc
RD
16607}
16608
16609
554f62e9
RD
16610SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16611 PyObject *resultobj = 0;
16612 int result;
16613
16614 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16615 {
16616 PyThreadState* __tstate = wxPyBeginAllowThreads();
16617 result = (int)wxLocale::GetSystemLanguage();
16618 wxPyEndAllowThreads(__tstate);
16619 if (PyErr_Occurred()) SWIG_fail;
16620 }
16621 resultobj = SWIG_From_int(static_cast< int >(result));
16622 return resultobj;
16623fail:
16624 return NULL;
d55e5bfc
RD
16625}
16626
16627
554f62e9
RD
16628SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16629 PyObject *resultobj = 0;
16630 wxFontEncoding result;
16631
16632 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16633 {
16634 PyThreadState* __tstate = wxPyBeginAllowThreads();
16635 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16636 wxPyEndAllowThreads(__tstate);
16637 if (PyErr_Occurred()) SWIG_fail;
16638 }
16639 resultobj = SWIG_From_int(static_cast< int >(result));
16640 return resultobj;
16641fail:
16642 return NULL;
d55e5bfc
RD
16643}
16644
16645
554f62e9
RD
16646SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16647 PyObject *resultobj = 0;
16648 wxString result;
16649
16650 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16651 {
16652 PyThreadState* __tstate = wxPyBeginAllowThreads();
16653 result = wxLocale::GetSystemEncodingName();
16654 wxPyEndAllowThreads(__tstate);
16655 if (PyErr_Occurred()) SWIG_fail;
16656 }
16657 {
16658#if wxUSE_UNICODE
16659 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16660#else
16661 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16662#endif
16663 }
16664 return resultobj;
16665fail:
16666 return NULL;
d55e5bfc
RD
16667}
16668
16669
554f62e9
RD
16670SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16671 PyObject *resultobj = 0;
16672 wxLocale *arg1 = (wxLocale *) 0 ;
16673 bool result;
16674 void *argp1 = 0 ;
16675 int res1 = 0 ;
16676 PyObject *swig_obj[1] ;
16677
16678 if (!args) SWIG_fail;
16679 swig_obj[0] = args;
16680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16681 if (!SWIG_IsOK(res1)) {
16682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16683 }
16684 arg1 = reinterpret_cast< wxLocale * >(argp1);
16685 {
16686 PyThreadState* __tstate = wxPyBeginAllowThreads();
16687 result = (bool)((wxLocale const *)arg1)->IsOk();
16688 wxPyEndAllowThreads(__tstate);
16689 if (PyErr_Occurred()) SWIG_fail;
16690 }
16691 {
16692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16693 }
16694 return resultobj;
16695fail:
16696 return NULL;
d55e5bfc
RD
16697}
16698
16699
554f62e9
RD
16700SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16701 PyObject *resultobj = 0;
16702 wxLocale *arg1 = (wxLocale *) 0 ;
16703 wxString result;
16704 void *argp1 = 0 ;
16705 int res1 = 0 ;
16706 PyObject *swig_obj[1] ;
16707
16708 if (!args) SWIG_fail;
16709 swig_obj[0] = args;
16710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16711 if (!SWIG_IsOK(res1)) {
16712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16713 }
16714 arg1 = reinterpret_cast< wxLocale * >(argp1);
16715 {
16716 PyThreadState* __tstate = wxPyBeginAllowThreads();
16717 result = ((wxLocale const *)arg1)->GetLocale();
16718 wxPyEndAllowThreads(__tstate);
16719 if (PyErr_Occurred()) SWIG_fail;
16720 }
16721 {
16722#if wxUSE_UNICODE
16723 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16724#else
16725 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16726#endif
16727 }
16728 return resultobj;
16729fail:
16730 return NULL;
d55e5bfc
RD
16731}
16732
16733
554f62e9
RD
16734SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16735 PyObject *resultobj = 0;
16736 wxLocale *arg1 = (wxLocale *) 0 ;
16737 int result;
16738 void *argp1 = 0 ;
16739 int res1 = 0 ;
16740 PyObject *swig_obj[1] ;
16741
16742 if (!args) SWIG_fail;
16743 swig_obj[0] = args;
16744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16745 if (!SWIG_IsOK(res1)) {
16746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16747 }
16748 arg1 = reinterpret_cast< wxLocale * >(argp1);
16749 {
16750 PyThreadState* __tstate = wxPyBeginAllowThreads();
16751 result = (int)((wxLocale const *)arg1)->GetLanguage();
16752 wxPyEndAllowThreads(__tstate);
16753 if (PyErr_Occurred()) SWIG_fail;
16754 }
16755 resultobj = SWIG_From_int(static_cast< int >(result));
16756 return resultobj;
16757fail:
16758 return NULL;
d55e5bfc
RD
16759}
16760
16761
554f62e9
RD
16762SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16763 PyObject *resultobj = 0;
16764 wxLocale *arg1 = (wxLocale *) 0 ;
16765 wxString result;
16766 void *argp1 = 0 ;
16767 int res1 = 0 ;
16768 PyObject *swig_obj[1] ;
16769
16770 if (!args) SWIG_fail;
16771 swig_obj[0] = args;
16772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16773 if (!SWIG_IsOK(res1)) {
16774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16775 }
16776 arg1 = reinterpret_cast< wxLocale * >(argp1);
16777 {
16778 PyThreadState* __tstate = wxPyBeginAllowThreads();
16779 result = ((wxLocale const *)arg1)->GetSysName();
16780 wxPyEndAllowThreads(__tstate);
16781 if (PyErr_Occurred()) SWIG_fail;
16782 }
16783 {
16784#if wxUSE_UNICODE
16785 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16786#else
16787 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16788#endif
16789 }
16790 return resultobj;
16791fail:
16792 return NULL;
d55e5bfc
RD
16793}
16794
16795
554f62e9
RD
16796SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16797 PyObject *resultobj = 0;
16798 wxLocale *arg1 = (wxLocale *) 0 ;
16799 wxString result;
16800 void *argp1 = 0 ;
16801 int res1 = 0 ;
16802 PyObject *swig_obj[1] ;
16803
16804 if (!args) SWIG_fail;
16805 swig_obj[0] = args;
16806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16807 if (!SWIG_IsOK(res1)) {
16808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16809 }
16810 arg1 = reinterpret_cast< wxLocale * >(argp1);
16811 {
16812 PyThreadState* __tstate = wxPyBeginAllowThreads();
16813 result = ((wxLocale const *)arg1)->GetCanonicalName();
16814 wxPyEndAllowThreads(__tstate);
16815 if (PyErr_Occurred()) SWIG_fail;
16816 }
16817 {
093d3ff1 16818#if wxUSE_UNICODE
554f62e9 16819 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 16820#else
554f62e9 16821 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 16822#endif
554f62e9
RD
16823 }
16824 return resultobj;
16825fail:
16826 return NULL;
d55e5bfc
RD
16827}
16828
16829
554f62e9
RD
16830SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16831 PyObject *resultobj = 0;
16832 wxString *arg1 = 0 ;
16833 bool temp1 = false ;
16834 PyObject * obj0 = 0 ;
16835 char * kwnames[] = {
16836 (char *) "prefix", NULL
16837 };
16838
16839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16840 {
16841 arg1 = wxString_in_helper(obj0);
16842 if (arg1 == NULL) SWIG_fail;
16843 temp1 = true;
16844 }
16845 {
16846 PyThreadState* __tstate = wxPyBeginAllowThreads();
16847 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16848 wxPyEndAllowThreads(__tstate);
16849 if (PyErr_Occurred()) SWIG_fail;
16850 }
16851 resultobj = SWIG_Py_Void();
16852 {
16853 if (temp1)
16854 delete arg1;
16855 }
16856 return resultobj;
16857fail:
16858 {
16859 if (temp1)
16860 delete arg1;
16861 }
16862 return NULL;
16863}
16864
16865
16866SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16867 PyObject *resultobj = 0;
16868 wxLocale *arg1 = (wxLocale *) 0 ;
16869 wxString *arg2 = 0 ;
16870 bool result;
16871 void *argp1 = 0 ;
16872 int res1 = 0 ;
16873 bool temp2 = false ;
16874 PyObject * obj0 = 0 ;
16875 PyObject * obj1 = 0 ;
16876 char * kwnames[] = {
16877 (char *) "self",(char *) "szDomain", NULL
16878 };
16879
16880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16882 if (!SWIG_IsOK(res1)) {
16883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16884 }
16885 arg1 = reinterpret_cast< wxLocale * >(argp1);
16886 {
16887 arg2 = wxString_in_helper(obj1);
16888 if (arg2 == NULL) SWIG_fail;
16889 temp2 = true;
16890 }
16891 {
16892 PyThreadState* __tstate = wxPyBeginAllowThreads();
16893 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16894 wxPyEndAllowThreads(__tstate);
16895 if (PyErr_Occurred()) SWIG_fail;
16896 }
16897 {
16898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16899 }
16900 {
16901 if (temp2)
16902 delete arg2;
16903 }
16904 return resultobj;
16905fail:
16906 {
16907 if (temp2)
16908 delete arg2;
16909 }
16910 return NULL;
16911}
16912
16913
33d6fd3b
RD
16914SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16915 PyObject *resultobj = 0;
16916 int arg1 ;
16917 bool result;
16918 int val1 ;
16919 int ecode1 = 0 ;
16920 PyObject * obj0 = 0 ;
16921 char * kwnames[] = {
16922 (char *) "lang", NULL
16923 };
16924
16925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16926 ecode1 = SWIG_AsVal_int(obj0, &val1);
16927 if (!SWIG_IsOK(ecode1)) {
16928 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16929 }
16930 arg1 = static_cast< int >(val1);
16931 {
16932 PyThreadState* __tstate = wxPyBeginAllowThreads();
16933 result = (bool)wxLocale::IsAvailable(arg1);
16934 wxPyEndAllowThreads(__tstate);
16935 if (PyErr_Occurred()) SWIG_fail;
16936 }
16937 {
16938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16939 }
16940 return resultobj;
16941fail:
16942 return NULL;
16943}
16944
16945
554f62e9
RD
16946SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16947 PyObject *resultobj = 0;
16948 wxLocale *arg1 = (wxLocale *) 0 ;
16949 wxString *arg2 = 0 ;
16950 bool result;
16951 void *argp1 = 0 ;
16952 int res1 = 0 ;
16953 bool temp2 = false ;
16954 PyObject * obj0 = 0 ;
16955 PyObject * obj1 = 0 ;
16956 char * kwnames[] = {
16957 (char *) "self",(char *) "szDomain", NULL
16958 };
16959
16960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16962 if (!SWIG_IsOK(res1)) {
16963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16964 }
16965 arg1 = reinterpret_cast< wxLocale * >(argp1);
16966 {
16967 arg2 = wxString_in_helper(obj1);
16968 if (arg2 == NULL) SWIG_fail;
16969 temp2 = true;
16970 }
16971 {
16972 PyThreadState* __tstate = wxPyBeginAllowThreads();
16973 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16974 wxPyEndAllowThreads(__tstate);
16975 if (PyErr_Occurred()) SWIG_fail;
16976 }
16977 {
16978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16979 }
16980 {
16981 if (temp2)
16982 delete arg2;
16983 }
16984 return resultobj;
16985fail:
16986 {
16987 if (temp2)
16988 delete arg2;
16989 }
16990 return NULL;
d55e5bfc
RD
16991}
16992
16993
554f62e9
RD
16994SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16995 PyObject *resultobj = 0;
16996 int arg1 ;
16997 wxLanguageInfo *result = 0 ;
16998 int val1 ;
16999 int ecode1 = 0 ;
17000 PyObject * obj0 = 0 ;
17001 char * kwnames[] = {
17002 (char *) "lang", NULL
17003 };
17004
17005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
17006 ecode1 = SWIG_AsVal_int(obj0, &val1);
17007 if (!SWIG_IsOK(ecode1)) {
17008 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
17009 }
17010 arg1 = static_cast< int >(val1);
17011 {
17012 PyThreadState* __tstate = wxPyBeginAllowThreads();
17013 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
17014 wxPyEndAllowThreads(__tstate);
17015 if (PyErr_Occurred()) SWIG_fail;
17016 }
17017 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17018 return resultobj;
17019fail:
17020 return NULL;
17021}
17022
17023
17024SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17025 PyObject *resultobj = 0;
17026 int arg1 ;
17027 wxString result;
17028 int val1 ;
17029 int ecode1 = 0 ;
17030 PyObject * obj0 = 0 ;
17031 char * kwnames[] = {
17032 (char *) "lang", NULL
17033 };
17034
17035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
17036 ecode1 = SWIG_AsVal_int(obj0, &val1);
17037 if (!SWIG_IsOK(ecode1)) {
17038 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
17039 }
17040 arg1 = static_cast< int >(val1);
17041 {
17042 PyThreadState* __tstate = wxPyBeginAllowThreads();
17043 result = wxLocale::GetLanguageName(arg1);
17044 wxPyEndAllowThreads(__tstate);
17045 if (PyErr_Occurred()) SWIG_fail;
17046 }
17047 {
17048#if wxUSE_UNICODE
17049 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17050#else
17051 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17052#endif
17053 }
17054 return resultobj;
17055fail:
17056 return NULL;
093d3ff1
RD
17057}
17058
17059
554f62e9
RD
17060SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17061 PyObject *resultobj = 0;
17062 wxString *arg1 = 0 ;
17063 wxLanguageInfo *result = 0 ;
17064 bool temp1 = false ;
17065 PyObject * obj0 = 0 ;
17066 char * kwnames[] = {
17067 (char *) "locale", NULL
17068 };
17069
17070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
17071 {
17072 arg1 = wxString_in_helper(obj0);
17073 if (arg1 == NULL) SWIG_fail;
17074 temp1 = true;
17075 }
17076 {
17077 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
17078 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
17079 wxPyEndAllowThreads(__tstate);
17080 if (PyErr_Occurred()) SWIG_fail;
17081 }
17082 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17083 {
17084 if (temp1)
17085 delete arg1;
17086 }
17087 return resultobj;
17088fail:
17089 {
17090 if (temp1)
17091 delete arg1;
17092 }
17093 return NULL;
17094}
17095
17096
17097SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17098 PyObject *resultobj = 0;
17099 wxLanguageInfo *arg1 = 0 ;
17100 void *argp1 = 0 ;
17101 int res1 = 0 ;
17102 PyObject * obj0 = 0 ;
17103 char * kwnames[] = {
17104 (char *) "info", NULL
17105 };
17106
17107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
17108 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
17109 if (!SWIG_IsOK(res1)) {
17110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17111 }
17112 if (!argp1) {
17113 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17114 }
17115 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
17116 {
17117 PyThreadState* __tstate = wxPyBeginAllowThreads();
17118 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
17119 wxPyEndAllowThreads(__tstate);
17120 if (PyErr_Occurred()) SWIG_fail;
17121 }
17122 resultobj = SWIG_Py_Void();
17123 return resultobj;
17124fail:
17125 return NULL;
17126}
17127
17128
17129SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17130 PyObject *resultobj = 0;
17131 wxLocale *arg1 = (wxLocale *) 0 ;
17132 wxString *arg2 = 0 ;
17133 wxString const &arg3_defvalue = wxPyEmptyString ;
17134 wxString *arg3 = (wxString *) &arg3_defvalue ;
17135 wxString result;
17136 void *argp1 = 0 ;
17137 int res1 = 0 ;
17138 bool temp2 = false ;
17139 bool temp3 = false ;
17140 PyObject * obj0 = 0 ;
17141 PyObject * obj1 = 0 ;
17142 PyObject * obj2 = 0 ;
17143 char * kwnames[] = {
17144 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17145 };
17146
17147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17149 if (!SWIG_IsOK(res1)) {
17150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
17151 }
17152 arg1 = reinterpret_cast< wxLocale * >(argp1);
17153 {
17154 arg2 = wxString_in_helper(obj1);
17155 if (arg2 == NULL) SWIG_fail;
17156 temp2 = true;
17157 }
17158 if (obj2) {
17159 {
17160 arg3 = wxString_in_helper(obj2);
17161 if (arg3 == NULL) SWIG_fail;
17162 temp3 = true;
17163 }
17164 }
17165 {
17166 PyThreadState* __tstate = wxPyBeginAllowThreads();
17167 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
17168 wxPyEndAllowThreads(__tstate);
17169 if (PyErr_Occurred()) SWIG_fail;
17170 }
17171 {
17172#if wxUSE_UNICODE
17173 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17174#else
17175 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17176#endif
17177 }
17178 {
17179 if (temp2)
17180 delete arg2;
17181 }
17182 {
17183 if (temp3)
17184 delete arg3;
17185 }
17186 return resultobj;
17187fail:
17188 {
17189 if (temp2)
17190 delete arg2;
17191 }
17192 {
17193 if (temp3)
17194 delete arg3;
17195 }
17196 return NULL;
17197}
17198
17199
17200SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17201 PyObject *resultobj = 0;
17202 wxLocale *arg1 = (wxLocale *) 0 ;
17203 wxString *result = 0 ;
17204 void *argp1 = 0 ;
17205 int res1 = 0 ;
17206 PyObject *swig_obj[1] ;
17207
17208 if (!args) SWIG_fail;
17209 swig_obj[0] = args;
17210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17211 if (!SWIG_IsOK(res1)) {
17212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17213 }
17214 arg1 = reinterpret_cast< wxLocale * >(argp1);
17215 {
17216 PyThreadState* __tstate = wxPyBeginAllowThreads();
17217 {
17218 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
17219 result = (wxString *) &_result_ref;
17220 }
17221 wxPyEndAllowThreads(__tstate);
17222 if (PyErr_Occurred()) SWIG_fail;
17223 }
17224 {
17225#if wxUSE_UNICODE
17226 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17227#else
17228 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17229#endif
17230 }
17231 return resultobj;
17232fail:
17233 return NULL;
17234}
17235
17236
17237SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17238 PyObject *obj;
17239 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17240 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
17241 return SWIG_Py_Void();
17242}
17243
17244SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17245 return SWIG_Python_InitShadowInstance(args);
17246}
17247
17248SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17249 PyObject *resultobj = 0;
17250 int arg1 = (int) -1 ;
17251 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
17252 wxPyLocale *result = 0 ;
17253 int val1 ;
17254 int ecode1 = 0 ;
17255 int val2 ;
17256 int ecode2 = 0 ;
17257 PyObject * obj0 = 0 ;
17258 PyObject * obj1 = 0 ;
17259 char * kwnames[] = {
17260 (char *) "language",(char *) "flags", NULL
17261 };
17262
17263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
17264 if (obj0) {
17265 ecode1 = SWIG_AsVal_int(obj0, &val1);
17266 if (!SWIG_IsOK(ecode1)) {
17267 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
17268 }
17269 arg1 = static_cast< int >(val1);
17270 }
17271 if (obj1) {
17272 ecode2 = SWIG_AsVal_int(obj1, &val2);
17273 if (!SWIG_IsOK(ecode2)) {
17274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
17275 }
17276 arg2 = static_cast< int >(val2);
17277 }
17278 {
17279 PyThreadState* __tstate = wxPyBeginAllowThreads();
17280 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
17281 wxPyEndAllowThreads(__tstate);
17282 if (PyErr_Occurred()) SWIG_fail;
17283 }
17284 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
17285 return resultobj;
17286fail:
17287 return NULL;
17288}
17289
17290
17291SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17292 PyObject *resultobj = 0;
17293 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17294 void *argp1 = 0 ;
17295 int res1 = 0 ;
17296 PyObject *swig_obj[1] ;
17297
17298 if (!args) SWIG_fail;
17299 swig_obj[0] = args;
17300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
17301 if (!SWIG_IsOK(res1)) {
17302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17303 }
17304 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17305 {
17306 PyThreadState* __tstate = wxPyBeginAllowThreads();
17307 delete arg1;
17308
554f62e9
RD
17309 wxPyEndAllowThreads(__tstate);
17310 if (PyErr_Occurred()) SWIG_fail;
17311 }
fc46b7f3 17312 resultobj = SWIG_Py_Void();
554f62e9
RD
17313 return resultobj;
17314fail:
554f62e9 17315 return NULL;
d55e5bfc
RD
17316}
17317
17318
fc46b7f3 17319SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 17320 PyObject *resultobj = 0;
fc46b7f3
RD
17321 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17322 PyObject *arg2 = (PyObject *) 0 ;
17323 PyObject *arg3 = (PyObject *) 0 ;
554f62e9
RD
17324 void *argp1 = 0 ;
17325 int res1 = 0 ;
17326 PyObject * obj0 = 0 ;
fc46b7f3
RD
17327 PyObject * obj1 = 0 ;
17328 PyObject * obj2 = 0 ;
554f62e9 17329 char * kwnames[] = {
fc46b7f3 17330 (char *) "self",(char *) "self",(char *) "_class", NULL
554f62e9
RD
17331 };
17332
fc46b7f3
RD
17333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
554f62e9 17335 if (!SWIG_IsOK(res1)) {
fc46b7f3 17336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
554f62e9 17337 }
fc46b7f3
RD
17338 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17339 arg2 = obj1;
17340 arg3 = obj2;
554f62e9
RD
17341 {
17342 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 17343 (arg1)->_setCallbackInfo(arg2,arg3);
554f62e9
RD
17344 wxPyEndAllowThreads(__tstate);
17345 if (PyErr_Occurred()) SWIG_fail;
17346 }
17347 resultobj = SWIG_Py_Void();
17348 return resultobj;
17349fail:
17350 return NULL;
17351}
17352
17353
fc46b7f3 17354SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 17355 PyObject *resultobj = 0;
fc46b7f3
RD
17356 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17357 wxChar *arg2 = (wxChar *) 0 ;
17358 wxChar *arg3 = (wxChar *) NULL ;
17359 wxChar *result = 0 ;
554f62e9
RD
17360 void *argp1 = 0 ;
17361 int res1 = 0 ;
fc46b7f3
RD
17362 void *argp2 = 0 ;
17363 int res2 = 0 ;
17364 void *argp3 = 0 ;
17365 int res3 = 0 ;
554f62e9
RD
17366 PyObject * obj0 = 0 ;
17367 PyObject * obj1 = 0 ;
17368 PyObject * obj2 = 0 ;
17369 char * kwnames[] = {
17370 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17371 };
17372
fc46b7f3
RD
17373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
554f62e9 17375 if (!SWIG_IsOK(res1)) {
fc46b7f3 17376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
554f62e9 17377 }
fc46b7f3
RD
17378 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17379 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17380 if (!SWIG_IsOK(res2)) {
17381 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
554f62e9 17382 }
fc46b7f3 17383 arg2 = reinterpret_cast< wxChar * >(argp2);
554f62e9 17384 if (obj2) {
fc46b7f3
RD
17385 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17386 if (!SWIG_IsOK(res3)) {
17387 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
d55e5bfc 17388 }
fc46b7f3 17389 arg3 = reinterpret_cast< wxChar * >(argp3);
554f62e9
RD
17390 }
17391 {
17392 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 17393 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
554f62e9
RD
17394 wxPyEndAllowThreads(__tstate);
17395 if (PyErr_Occurred()) SWIG_fail;
17396 }
fc46b7f3 17397 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
554f62e9
RD
17398 return resultobj;
17399fail:
554f62e9 17400 return NULL;
d55e5bfc
RD
17401}
17402
17403
fc46b7f3 17404SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 17405 PyObject *resultobj = 0;
fc46b7f3
RD
17406 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17407 wxChar *arg2 = (wxChar *) 0 ;
17408 wxChar *arg3 = (wxChar *) 0 ;
17409 size_t arg4 ;
17410 wxChar *arg5 = (wxChar *) NULL ;
17411 wxChar *result = 0 ;
554f62e9
RD
17412 void *argp1 = 0 ;
17413 int res1 = 0 ;
fc46b7f3
RD
17414 void *argp2 = 0 ;
17415 int res2 = 0 ;
17416 void *argp3 = 0 ;
17417 int res3 = 0 ;
17418 size_t val4 ;
17419 int ecode4 = 0 ;
17420 void *argp5 = 0 ;
17421 int res5 = 0 ;
17422 PyObject * obj0 = 0 ;
17423 PyObject * obj1 = 0 ;
17424 PyObject * obj2 = 0 ;
17425 PyObject * obj3 = 0 ;
17426 PyObject * obj4 = 0 ;
17427 char * kwnames[] = {
17428 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
17429 };
554f62e9 17430
fc46b7f3
RD
17431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
554f62e9 17433 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
17434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17435 }
17436 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17437 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17438 if (!SWIG_IsOK(res2)) {
17439 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
17440 }
17441 arg2 = reinterpret_cast< wxChar * >(argp2);
17442 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17443 if (!SWIG_IsOK(res3)) {
17444 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
17445 }
17446 arg3 = reinterpret_cast< wxChar * >(argp3);
17447 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17448 if (!SWIG_IsOK(ecode4)) {
17449 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17450 }
17451 arg4 = static_cast< size_t >(val4);
17452 if (obj4) {
17453 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
17454 if (!SWIG_IsOK(res5)) {
17455 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
17456 }
17457 arg5 = reinterpret_cast< wxChar * >(argp5);
554f62e9 17458 }
554f62e9
RD
17459 {
17460 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 17461 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
554f62e9
RD
17462 wxPyEndAllowThreads(__tstate);
17463 if (PyErr_Occurred()) SWIG_fail;
17464 }
fc46b7f3 17465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
554f62e9
RD
17466 return resultobj;
17467fail:
17468 return NULL;
d55e5bfc
RD
17469}
17470
17471
fc46b7f3 17472SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
17473 PyObject *obj;
17474 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 17475 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
554f62e9 17476 return SWIG_Py_Void();
d55e5bfc
RD
17477}
17478
fc46b7f3 17479SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 17480 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17481}
17482
554f62e9
RD
17483SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17484 PyObject *resultobj = 0;
17485 wxLocale *result = 0 ;
17486
17487 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17488 {
17489 PyThreadState* __tstate = wxPyBeginAllowThreads();
17490 result = (wxLocale *)wxGetLocale();
17491 wxPyEndAllowThreads(__tstate);
17492 if (PyErr_Occurred()) SWIG_fail;
17493 }
17494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17495 return resultobj;
17496fail:
17497 return NULL;
d55e5bfc
RD
17498}
17499
17500
554f62e9
RD
17501SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17502 PyObject *resultobj = 0;
17503 wxString *arg1 = 0 ;
17504 wxString result;
17505 bool temp1 = false ;
17506
17507 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17508 {
17509 arg1 = wxString_in_helper(swig_obj[0]);
17510 if (arg1 == NULL) SWIG_fail;
17511 temp1 = true;
17512 }
17513 {
17514 PyThreadState* __tstate = wxPyBeginAllowThreads();
17515 result = wxGetTranslation((wxString const &)*arg1);
17516 wxPyEndAllowThreads(__tstate);
17517 if (PyErr_Occurred()) SWIG_fail;
17518 }
17519 {
093d3ff1 17520#if wxUSE_UNICODE
554f62e9 17521 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 17522#else
554f62e9 17523 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 17524#endif
554f62e9
RD
17525 }
17526 {
17527 if (temp1)
17528 delete arg1;
17529 }
17530 return resultobj;
17531fail:
17532 {
17533 if (temp1)
17534 delete arg1;
17535 }
17536 return NULL;
d55e5bfc
RD
17537}
17538
17539
554f62e9 17540SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
17541 PyObject *resultobj = 0;
17542 wxString *arg1 = 0 ;
17543 wxString *arg2 = 0 ;
17544 wxString result;
17545 bool temp1 = false ;
17546 bool temp2 = false ;
17547
17548 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17549 {
17550 arg1 = wxString_in_helper(swig_obj[0]);
17551 if (arg1 == NULL) SWIG_fail;
17552 temp1 = true;
17553 }
17554 {
17555 arg2 = wxString_in_helper(swig_obj[1]);
17556 if (arg2 == NULL) SWIG_fail;
17557 temp2 = true;
17558 }
17559 {
17560 PyThreadState* __tstate = wxPyBeginAllowThreads();
17561 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17562 wxPyEndAllowThreads(__tstate);
17563 if (PyErr_Occurred()) SWIG_fail;
17564 }
17565 {
17566#if wxUSE_UNICODE
17567 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17568#else
17569 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17570#endif
17571 }
17572 {
17573 if (temp1)
17574 delete arg1;
17575 }
17576 {
17577 if (temp2)
17578 delete arg2;
17579 }
17580 return resultobj;
17581fail:
17582 {
17583 if (temp1)
17584 delete arg1;
17585 }
17586 {
17587 if (temp2)
17588 delete arg2;
17589 }
17590 return NULL;
17591}
17592
17593
17594SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
554f62e9
RD
17595 PyObject *resultobj = 0;
17596 wxString *arg1 = 0 ;
17597 wxString *arg2 = 0 ;
17598 size_t arg3 ;
17599 wxString result;
17600 bool temp1 = false ;
17601 bool temp2 = false ;
17602 size_t val3 ;
17603 int ecode3 = 0 ;
17604
17605 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17606 {
17607 arg1 = wxString_in_helper(swig_obj[0]);
17608 if (arg1 == NULL) SWIG_fail;
17609 temp1 = true;
17610 }
17611 {
17612 arg2 = wxString_in_helper(swig_obj[1]);
17613 if (arg2 == NULL) SWIG_fail;
17614 temp2 = true;
17615 }
17616 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17617 if (!SWIG_IsOK(ecode3)) {
17618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17619 }
17620 arg3 = static_cast< size_t >(val3);
17621 {
17622 PyThreadState* __tstate = wxPyBeginAllowThreads();
17623 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17624 wxPyEndAllowThreads(__tstate);
17625 if (PyErr_Occurred()) SWIG_fail;
17626 }
17627 {
093d3ff1 17628#if wxUSE_UNICODE
554f62e9 17629 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 17630#else
554f62e9 17631 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 17632#endif
554f62e9
RD
17633 }
17634 {
17635 if (temp1)
17636 delete arg1;
17637 }
17638 {
17639 if (temp2)
17640 delete arg2;
17641 }
17642 return resultobj;
17643fail:
17644 {
17645 if (temp1)
17646 delete arg1;
17647 }
17648 {
17649 if (temp2)
17650 delete arg2;
17651 }
17652 return NULL;
d55e5bfc
RD
17653}
17654
17655
fc46b7f3
RD
17656SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17657 PyObject *resultobj = 0;
17658 wxString *arg1 = 0 ;
17659 wxString *arg2 = 0 ;
17660 size_t arg3 ;
17661 wxString *arg4 = 0 ;
17662 wxString result;
17663 bool temp1 = false ;
17664 bool temp2 = false ;
17665 size_t val3 ;
17666 int ecode3 = 0 ;
17667 bool temp4 = false ;
17668
17669 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17670 {
17671 arg1 = wxString_in_helper(swig_obj[0]);
17672 if (arg1 == NULL) SWIG_fail;
17673 temp1 = true;
17674 }
17675 {
17676 arg2 = wxString_in_helper(swig_obj[1]);
17677 if (arg2 == NULL) SWIG_fail;
17678 temp2 = true;
17679 }
17680 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17681 if (!SWIG_IsOK(ecode3)) {
17682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17683 }
17684 arg3 = static_cast< size_t >(val3);
17685 {
17686 arg4 = wxString_in_helper(swig_obj[3]);
17687 if (arg4 == NULL) SWIG_fail;
17688 temp4 = true;
17689 }
17690 {
17691 PyThreadState* __tstate = wxPyBeginAllowThreads();
17692 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17693 wxPyEndAllowThreads(__tstate);
17694 if (PyErr_Occurred()) SWIG_fail;
17695 }
17696 {
17697#if wxUSE_UNICODE
17698 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17699#else
17700 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17701#endif
17702 }
17703 {
17704 if (temp1)
17705 delete arg1;
17706 }
17707 {
17708 if (temp2)
17709 delete arg2;
17710 }
17711 {
17712 if (temp4)
17713 delete arg4;
17714 }
17715 return resultobj;
17716fail:
17717 {
17718 if (temp1)
17719 delete arg1;
17720 }
17721 {
17722 if (temp2)
17723 delete arg2;
17724 }
17725 {
17726 if (temp4)
17727 delete arg4;
17728 }
17729 return NULL;
17730}
17731
17732
554f62e9
RD
17733SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17734 int argc;
fc46b7f3 17735 PyObject *argv[5];
554f62e9 17736
fc46b7f3 17737 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
554f62e9
RD
17738 --argc;
17739 if (argc == 1) {
17740 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17741 }
fc46b7f3 17742 if (argc == 2) {
554f62e9
RD
17743 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17744 }
fc46b7f3
RD
17745 if (argc == 3) {
17746 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17747 }
17748 if (argc == 4) {
17749 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17750 }
554f62e9
RD
17751
17752fail:
17753 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17754 return NULL;
d55e5bfc
RD
17755}
17756
17757
554f62e9
RD
17758SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17759 PyObject *resultobj = 0;
17760 wxEncodingConverter *result = 0 ;
17761
17762 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17763 {
17764 PyThreadState* __tstate = wxPyBeginAllowThreads();
17765 result = (wxEncodingConverter *)new wxEncodingConverter();
17766 wxPyEndAllowThreads(__tstate);
17767 if (PyErr_Occurred()) SWIG_fail;
17768 }
17769 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17770 return resultobj;
17771fail:
17772 return NULL;
d55e5bfc
RD
17773}
17774
17775
554f62e9
RD
17776SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17777 PyObject *resultobj = 0;
17778 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17779 void *argp1 = 0 ;
17780 int res1 = 0 ;
17781 PyObject *swig_obj[1] ;
17782
17783 if (!args) SWIG_fail;
17784 swig_obj[0] = args;
17785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17786 if (!SWIG_IsOK(res1)) {
17787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17788 }
17789 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17790 {
17791 PyThreadState* __tstate = wxPyBeginAllowThreads();
17792 delete arg1;
d55e5bfc 17793
554f62e9
RD
17794 wxPyEndAllowThreads(__tstate);
17795 if (PyErr_Occurred()) SWIG_fail;
17796 }
17797 resultobj = SWIG_Py_Void();
17798 return resultobj;
17799fail:
17800 return NULL;
17801}
17802
17803
17804SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17805 PyObject *resultobj = 0;
17806 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17807 wxFontEncoding arg2 ;
17808 wxFontEncoding arg3 ;
17809 int arg4 = (int) wxCONVERT_STRICT ;
17810 bool result;
17811 void *argp1 = 0 ;
17812 int res1 = 0 ;
17813 int val2 ;
17814 int ecode2 = 0 ;
17815 int val3 ;
17816 int ecode3 = 0 ;
17817 int val4 ;
17818 int ecode4 = 0 ;
17819 PyObject * obj0 = 0 ;
17820 PyObject * obj1 = 0 ;
17821 PyObject * obj2 = 0 ;
17822 PyObject * obj3 = 0 ;
17823 char * kwnames[] = {
17824 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17825 };
17826
17827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17829 if (!SWIG_IsOK(res1)) {
17830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17831 }
17832 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17833 ecode2 = SWIG_AsVal_int(obj1, &val2);
17834 if (!SWIG_IsOK(ecode2)) {
17835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17836 }
17837 arg2 = static_cast< wxFontEncoding >(val2);
17838 ecode3 = SWIG_AsVal_int(obj2, &val3);
17839 if (!SWIG_IsOK(ecode3)) {
17840 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17841 }
17842 arg3 = static_cast< wxFontEncoding >(val3);
17843 if (obj3) {
17844 ecode4 = SWIG_AsVal_int(obj3, &val4);
17845 if (!SWIG_IsOK(ecode4)) {
17846 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17847 }
17848 arg4 = static_cast< int >(val4);
17849 }
17850 {
17851 PyThreadState* __tstate = wxPyBeginAllowThreads();
17852 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17853 wxPyEndAllowThreads(__tstate);
17854 if (PyErr_Occurred()) SWIG_fail;
17855 }
17856 {
17857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17858 }
17859 return resultobj;
17860fail:
17861 return NULL;
17862}
17863
17864
17865SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17866 PyObject *resultobj = 0;
17867 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17868 wxString *arg2 = 0 ;
17869 wxString result;
17870 void *argp1 = 0 ;
17871 int res1 = 0 ;
17872 bool temp2 = false ;
17873 PyObject * obj0 = 0 ;
17874 PyObject * obj1 = 0 ;
17875 char * kwnames[] = {
17876 (char *) "self",(char *) "input", NULL
17877 };
17878
17879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17881 if (!SWIG_IsOK(res1)) {
17882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17883 }
17884 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17885 {
17886 arg2 = wxString_in_helper(obj1);
17887 if (arg2 == NULL) SWIG_fail;
17888 temp2 = true;
17889 }
17890 {
17891 PyThreadState* __tstate = wxPyBeginAllowThreads();
17892 result = (arg1)->Convert((wxString const &)*arg2);
17893 wxPyEndAllowThreads(__tstate);
17894 if (PyErr_Occurred()) SWIG_fail;
17895 }
17896 {
d55e5bfc 17897#if wxUSE_UNICODE
554f62e9 17898 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 17899#else
554f62e9 17900 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 17901#endif
554f62e9
RD
17902 }
17903 {
17904 if (temp2)
17905 delete arg2;
17906 }
17907 return resultobj;
17908fail:
17909 {
17910 if (temp2)
17911 delete arg2;
17912 }
17913 return NULL;
17914}
17915
17916
17917SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17918 PyObject *resultobj = 0;
17919 wxFontEncoding arg1 ;
17920 int arg2 = (int) wxPLATFORM_CURRENT ;
17921 wxFontEncodingArray result;
17922 int val1 ;
17923 int ecode1 = 0 ;
17924 int val2 ;
17925 int ecode2 = 0 ;
17926 PyObject * obj0 = 0 ;
17927 PyObject * obj1 = 0 ;
17928 char * kwnames[] = {
17929 (char *) "enc",(char *) "platform", NULL
17930 };
17931
17932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17933 ecode1 = SWIG_AsVal_int(obj0, &val1);
17934 if (!SWIG_IsOK(ecode1)) {
17935 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17936 }
17937 arg1 = static_cast< wxFontEncoding >(val1);
17938 if (obj1) {
17939 ecode2 = SWIG_AsVal_int(obj1, &val2);
17940 if (!SWIG_IsOK(ecode2)) {
17941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17942 }
17943 arg2 = static_cast< int >(val2);
17944 }
17945 {
17946 PyThreadState* __tstate = wxPyBeginAllowThreads();
17947 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17948 wxPyEndAllowThreads(__tstate);
17949 if (PyErr_Occurred()) SWIG_fail;
17950 }
17951 {
17952 resultobj = PyList_New(0);
17953 for (size_t i=0; i < (&result)->GetCount(); i++) {
17954 PyObject* number = PyInt_FromLong((&result)->Item(i));
17955 PyList_Append(resultobj, number);
17956 Py_DECREF(number);
d55e5bfc 17957 }
554f62e9
RD
17958 }
17959 return resultobj;
17960fail:
17961 return NULL;
d55e5bfc
RD
17962}
17963
17964
554f62e9
RD
17965SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17966 PyObject *resultobj = 0;
17967 wxFontEncoding arg1 ;
17968 wxFontEncodingArray result;
17969 int val1 ;
17970 int ecode1 = 0 ;
17971 PyObject * obj0 = 0 ;
17972 char * kwnames[] = {
17973 (char *) "enc", NULL
17974 };
17975
17976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17977 ecode1 = SWIG_AsVal_int(obj0, &val1);
17978 if (!SWIG_IsOK(ecode1)) {
17979 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17980 }
17981 arg1 = static_cast< wxFontEncoding >(val1);
17982 {
17983 PyThreadState* __tstate = wxPyBeginAllowThreads();
17984 result = wxEncodingConverter::GetAllEquivalents(arg1);
17985 wxPyEndAllowThreads(__tstate);
17986 if (PyErr_Occurred()) SWIG_fail;
17987 }
17988 {
17989 resultobj = PyList_New(0);
17990 for (size_t i=0; i < (&result)->GetCount(); i++) {
17991 PyObject* number = PyInt_FromLong((&result)->Item(i));
17992 PyList_Append(resultobj, number);
17993 Py_DECREF(number);
d55e5bfc 17994 }
554f62e9
RD
17995 }
17996 return resultobj;
17997fail:
17998 return NULL;
17999}
18000
18001
18002SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18003 PyObject *resultobj = 0;
18004 wxFontEncoding arg1 ;
18005 wxFontEncoding arg2 ;
18006 bool result;
18007 int val1 ;
18008 int ecode1 = 0 ;
18009 int val2 ;
18010 int ecode2 = 0 ;
18011 PyObject * obj0 = 0 ;
18012 PyObject * obj1 = 0 ;
18013 char * kwnames[] = {
18014 (char *) "encIn",(char *) "encOut", NULL
18015 };
18016
18017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
18018 ecode1 = SWIG_AsVal_int(obj0, &val1);
18019 if (!SWIG_IsOK(ecode1)) {
18020 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18021 }
18022 arg1 = static_cast< wxFontEncoding >(val1);
18023 ecode2 = SWIG_AsVal_int(obj1, &val2);
18024 if (!SWIG_IsOK(ecode2)) {
18025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
18026 }
18027 arg2 = static_cast< wxFontEncoding >(val2);
18028 {
18029 PyThreadState* __tstate = wxPyBeginAllowThreads();
18030 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
18031 wxPyEndAllowThreads(__tstate);
18032 if (PyErr_Occurred()) SWIG_fail;
18033 }
18034 {
18035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18036 }
18037 return resultobj;
18038fail:
18039 return NULL;
d55e5bfc
RD
18040}
18041
18042
554f62e9
RD
18043SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18044 PyObject *obj;
18045 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18046 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
18047 return SWIG_Py_Void();
d55e5bfc
RD
18048}
18049
554f62e9
RD
18050SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18051 return SWIG_Python_InitShadowInstance(args);
5e483524
RD
18052}
18053
554f62e9
RD
18054SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18055 PyObject *resultobj = 0;
18056 wxDC *arg1 = (wxDC *) 0 ;
18057 void *argp1 = 0 ;
18058 int res1 = 0 ;
18059 PyObject *swig_obj[1] ;
18060
18061 if (!args) SWIG_fail;
18062 swig_obj[0] = args;
18063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
18064 if (!SWIG_IsOK(res1)) {
18065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
18066 }
18067 arg1 = reinterpret_cast< wxDC * >(argp1);
18068 {
18069 PyThreadState* __tstate = wxPyBeginAllowThreads();
18070 delete arg1;
d55e5bfc 18071
554f62e9
RD
18072 wxPyEndAllowThreads(__tstate);
18073 if (PyErr_Occurred()) SWIG_fail;
18074 }
18075 resultobj = SWIG_Py_Void();
18076 return resultobj;
18077fail:
18078 return NULL;
18079}
18080
18081
18082SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18083 PyObject *resultobj = 0;
18084 wxDC *arg1 = (wxDC *) 0 ;
18085 int arg2 ;
18086 int arg3 ;
18087 wxColour *arg4 = 0 ;
18088 int arg5 = (int) wxFLOOD_SURFACE ;
18089 bool result;
18090 void *argp1 = 0 ;
18091 int res1 = 0 ;
18092 int val2 ;
18093 int ecode2 = 0 ;
18094 int val3 ;
18095 int ecode3 = 0 ;
18096 wxColour temp4 ;
18097 int val5 ;
18098 int ecode5 = 0 ;
18099 PyObject * obj0 = 0 ;
18100 PyObject * obj1 = 0 ;
18101 PyObject * obj2 = 0 ;
18102 PyObject * obj3 = 0 ;
18103 PyObject * obj4 = 0 ;
18104 char * kwnames[] = {
18105 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
18106 };
18107
18108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18110 if (!SWIG_IsOK(res1)) {
18111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
18112 }
18113 arg1 = reinterpret_cast< wxDC * >(argp1);
18114 ecode2 = SWIG_AsVal_int(obj1, &val2);
18115 if (!SWIG_IsOK(ecode2)) {
18116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
18117 }
18118 arg2 = static_cast< int >(val2);
18119 ecode3 = SWIG_AsVal_int(obj2, &val3);
18120 if (!SWIG_IsOK(ecode3)) {
18121 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
18122 }
18123 arg3 = static_cast< int >(val3);
18124 {
18125 arg4 = &temp4;
18126 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18127 }
18128 if (obj4) {
18129 ecode5 = SWIG_AsVal_int(obj4, &val5);
18130 if (!SWIG_IsOK(ecode5)) {
18131 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
18132 }
18133 arg5 = static_cast< int >(val5);
18134 }
18135 {
18136 PyThreadState* __tstate = wxPyBeginAllowThreads();
18137 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
18138 wxPyEndAllowThreads(__tstate);
18139 if (PyErr_Occurred()) SWIG_fail;
18140 }
18141 {
18142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18143 }
18144 return resultobj;
18145fail:
18146 return NULL;
18147}
18148
18149
18150SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18151 PyObject *resultobj = 0;
18152 wxDC *arg1 = (wxDC *) 0 ;
18153 wxPoint *arg2 = 0 ;
18154 wxColour *arg3 = 0 ;
18155 int arg4 = (int) wxFLOOD_SURFACE ;
18156 bool result;
18157 void *argp1 = 0 ;
18158 int res1 = 0 ;
18159 wxPoint temp2 ;
18160 wxColour temp3 ;
18161 int val4 ;
18162 int ecode4 = 0 ;
18163 PyObject * obj0 = 0 ;
18164 PyObject * obj1 = 0 ;
18165 PyObject * obj2 = 0 ;
18166 PyObject * obj3 = 0 ;
18167 char * kwnames[] = {
18168 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
18169 };
18170
18171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18173 if (!SWIG_IsOK(res1)) {
18174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18175 }
18176 arg1 = reinterpret_cast< wxDC * >(argp1);
18177 {
18178 arg2 = &temp2;
18179 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18180 }
18181 {
18182 arg3 = &temp3;
18183 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18184 }
18185 if (obj3) {
18186 ecode4 = SWIG_AsVal_int(obj3, &val4);
18187 if (!SWIG_IsOK(ecode4)) {
18188 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
18189 }
18190 arg4 = static_cast< int >(val4);
18191 }
18192 {
18193 PyThreadState* __tstate = wxPyBeginAllowThreads();
18194 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
18195 wxPyEndAllowThreads(__tstate);
18196 if (PyErr_Occurred()) SWIG_fail;
18197 }
18198 {
18199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18200 }
18201 return resultobj;
18202fail:
18203 return NULL;
18204}
18205
18206
18207SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18208 PyObject *resultobj = 0;
18209 wxDC *arg1 = (wxDC *) 0 ;
18210 wxRect *arg2 = 0 ;
18211 wxColour *arg3 = 0 ;
18212 wxColour *arg4 = 0 ;
18213 wxPoint *arg5 = 0 ;
18214 void *argp1 = 0 ;
18215 int res1 = 0 ;
18216 wxRect temp2 ;
18217 wxColour temp3 ;
18218 wxColour temp4 ;
18219 wxPoint temp5 ;
18220 PyObject * obj0 = 0 ;
18221 PyObject * obj1 = 0 ;
18222 PyObject * obj2 = 0 ;
18223 PyObject * obj3 = 0 ;
18224 PyObject * obj4 = 0 ;
18225 char * kwnames[] = {
18226 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
18227 };
18228
18229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18231 if (!SWIG_IsOK(res1)) {
18232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
18233 }
18234 arg1 = reinterpret_cast< wxDC * >(argp1);
18235 {
18236 arg2 = &temp2;
18237 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18238 }
18239 {
18240 arg3 = &temp3;
18241 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18242 }
18243 {
18244 arg4 = &temp4;
18245 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18246 }
18247 {
18248 arg5 = &temp5;
18249 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18250 }
18251 {
18252 PyThreadState* __tstate = wxPyBeginAllowThreads();
18253 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
18254 wxPyEndAllowThreads(__tstate);
18255 if (PyErr_Occurred()) SWIG_fail;
18256 }
18257 resultobj = SWIG_Py_Void();
18258 return resultobj;
18259fail:
18260 return NULL;
18261}
18262
18263
18264SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18265 PyObject *resultobj = 0;
18266 wxDC *arg1 = (wxDC *) 0 ;
18267 wxRect *arg2 = 0 ;
18268 wxColour *arg3 = 0 ;
18269 wxColour *arg4 = 0 ;
18270 wxDirection arg5 = (wxDirection) wxEAST ;
18271 void *argp1 = 0 ;
18272 int res1 = 0 ;
18273 wxRect temp2 ;
18274 wxColour temp3 ;
18275 wxColour temp4 ;
18276 int val5 ;
18277 int ecode5 = 0 ;
18278 PyObject * obj0 = 0 ;
18279 PyObject * obj1 = 0 ;
18280 PyObject * obj2 = 0 ;
18281 PyObject * obj3 = 0 ;
18282 PyObject * obj4 = 0 ;
18283 char * kwnames[] = {
18284 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18285 };
18286
18287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18289 if (!SWIG_IsOK(res1)) {
18290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18291 }
18292 arg1 = reinterpret_cast< wxDC * >(argp1);
18293 {
18294 arg2 = &temp2;
18295 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18296 }
18297 {
18298 arg3 = &temp3;
18299 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18300 }
18301 {
18302 arg4 = &temp4;
18303 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18304 }
18305 if (obj4) {
18306 ecode5 = SWIG_AsVal_int(obj4, &val5);
18307 if (!SWIG_IsOK(ecode5)) {
18308 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18309 }
18310 arg5 = static_cast< wxDirection >(val5);
18311 }
18312 {
18313 PyThreadState* __tstate = wxPyBeginAllowThreads();
18314 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18315 wxPyEndAllowThreads(__tstate);
18316 if (PyErr_Occurred()) SWIG_fail;
18317 }
18318 resultobj = SWIG_Py_Void();
18319 return resultobj;
18320fail:
18321 return NULL;
18322}
18323
18324
18325SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18326 PyObject *resultobj = 0;
18327 wxDC *arg1 = (wxDC *) 0 ;
18328 int arg2 ;
18329 int arg3 ;
18330 wxColour result;
18331 void *argp1 = 0 ;
18332 int res1 = 0 ;
18333 int val2 ;
18334 int ecode2 = 0 ;
18335 int val3 ;
18336 int ecode3 = 0 ;
18337 PyObject * obj0 = 0 ;
18338 PyObject * obj1 = 0 ;
18339 PyObject * obj2 = 0 ;
18340 char * kwnames[] = {
18341 (char *) "self",(char *) "x",(char *) "y", NULL
18342 };
18343
18344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18346 if (!SWIG_IsOK(res1)) {
18347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18348 }
18349 arg1 = reinterpret_cast< wxDC * >(argp1);
18350 ecode2 = SWIG_AsVal_int(obj1, &val2);
18351 if (!SWIG_IsOK(ecode2)) {
18352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18353 }
18354 arg2 = static_cast< int >(val2);
18355 ecode3 = SWIG_AsVal_int(obj2, &val3);
18356 if (!SWIG_IsOK(ecode3)) {
18357 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18358 }
18359 arg3 = static_cast< int >(val3);
18360 {
18361 PyThreadState* __tstate = wxPyBeginAllowThreads();
18362 result = wxDC_GetPixel(arg1,arg2,arg3);
18363 wxPyEndAllowThreads(__tstate);
18364 if (PyErr_Occurred()) SWIG_fail;
18365 }
18366 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18367 return resultobj;
18368fail:
18369 return NULL;
18370}
18371
18372
18373SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18374 PyObject *resultobj = 0;
18375 wxDC *arg1 = (wxDC *) 0 ;
18376 wxPoint *arg2 = 0 ;
18377 wxColour result;
18378 void *argp1 = 0 ;
18379 int res1 = 0 ;
18380 wxPoint temp2 ;
18381 PyObject * obj0 = 0 ;
18382 PyObject * obj1 = 0 ;
18383 char * kwnames[] = {
18384 (char *) "self",(char *) "pt", NULL
18385 };
18386
18387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18389 if (!SWIG_IsOK(res1)) {
18390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18391 }
18392 arg1 = reinterpret_cast< wxDC * >(argp1);
18393 {
18394 arg2 = &temp2;
18395 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18396 }
18397 {
18398 PyThreadState* __tstate = wxPyBeginAllowThreads();
18399 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18400 wxPyEndAllowThreads(__tstate);
18401 if (PyErr_Occurred()) SWIG_fail;
18402 }
18403 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18404 return resultobj;
18405fail:
18406 return NULL;
18407}
18408
18409
18410SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18411 PyObject *resultobj = 0;
18412 wxDC *arg1 = (wxDC *) 0 ;
18413 int arg2 ;
18414 int arg3 ;
18415 int arg4 ;
18416 int arg5 ;
18417 void *argp1 = 0 ;
18418 int res1 = 0 ;
18419 int val2 ;
18420 int ecode2 = 0 ;
18421 int val3 ;
18422 int ecode3 = 0 ;
18423 int val4 ;
18424 int ecode4 = 0 ;
18425 int val5 ;
18426 int ecode5 = 0 ;
18427 PyObject * obj0 = 0 ;
18428 PyObject * obj1 = 0 ;
18429 PyObject * obj2 = 0 ;
18430 PyObject * obj3 = 0 ;
18431 PyObject * obj4 = 0 ;
18432 char * kwnames[] = {
18433 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18434 };
18435
18436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18440 }
18441 arg1 = reinterpret_cast< wxDC * >(argp1);
18442 ecode2 = SWIG_AsVal_int(obj1, &val2);
18443 if (!SWIG_IsOK(ecode2)) {
18444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18445 }
18446 arg2 = static_cast< int >(val2);
18447 ecode3 = SWIG_AsVal_int(obj2, &val3);
18448 if (!SWIG_IsOK(ecode3)) {
18449 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18450 }
18451 arg3 = static_cast< int >(val3);
18452 ecode4 = SWIG_AsVal_int(obj3, &val4);
18453 if (!SWIG_IsOK(ecode4)) {
18454 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18455 }
18456 arg4 = static_cast< int >(val4);
18457 ecode5 = SWIG_AsVal_int(obj4, &val5);
18458 if (!SWIG_IsOK(ecode5)) {
18459 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18460 }
18461 arg5 = static_cast< int >(val5);
18462 {
18463 PyThreadState* __tstate = wxPyBeginAllowThreads();
18464 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18465 wxPyEndAllowThreads(__tstate);
18466 if (PyErr_Occurred()) SWIG_fail;
18467 }
18468 resultobj = SWIG_Py_Void();
18469 return resultobj;
18470fail:
18471 return NULL;
18472}
18473
18474
18475SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18476 PyObject *resultobj = 0;
18477 wxDC *arg1 = (wxDC *) 0 ;
18478 wxPoint *arg2 = 0 ;
18479 wxPoint *arg3 = 0 ;
18480 void *argp1 = 0 ;
18481 int res1 = 0 ;
18482 wxPoint temp2 ;
18483 wxPoint temp3 ;
18484 PyObject * obj0 = 0 ;
18485 PyObject * obj1 = 0 ;
18486 PyObject * obj2 = 0 ;
18487 char * kwnames[] = {
18488 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18489 };
18490
18491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18493 if (!SWIG_IsOK(res1)) {
18494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18495 }
18496 arg1 = reinterpret_cast< wxDC * >(argp1);
18497 {
18498 arg2 = &temp2;
18499 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18500 }
18501 {
18502 arg3 = &temp3;
18503 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18504 }
18505 {
18506 PyThreadState* __tstate = wxPyBeginAllowThreads();
18507 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18508 wxPyEndAllowThreads(__tstate);
18509 if (PyErr_Occurred()) SWIG_fail;
18510 }
18511 resultobj = SWIG_Py_Void();
18512 return resultobj;
18513fail:
18514 return NULL;
18515}
18516
18517
18518SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18519 PyObject *resultobj = 0;
18520 wxDC *arg1 = (wxDC *) 0 ;
18521 int arg2 ;
18522 int arg3 ;
18523 void *argp1 = 0 ;
18524 int res1 = 0 ;
18525 int val2 ;
18526 int ecode2 = 0 ;
18527 int val3 ;
18528 int ecode3 = 0 ;
18529 PyObject * obj0 = 0 ;
18530 PyObject * obj1 = 0 ;
18531 PyObject * obj2 = 0 ;
18532 char * kwnames[] = {
18533 (char *) "self",(char *) "x",(char *) "y", NULL
18534 };
18535
18536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18538 if (!SWIG_IsOK(res1)) {
18539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18540 }
18541 arg1 = reinterpret_cast< wxDC * >(argp1);
18542 ecode2 = SWIG_AsVal_int(obj1, &val2);
18543 if (!SWIG_IsOK(ecode2)) {
18544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18545 }
18546 arg2 = static_cast< int >(val2);
18547 ecode3 = SWIG_AsVal_int(obj2, &val3);
18548 if (!SWIG_IsOK(ecode3)) {
18549 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18550 }
18551 arg3 = static_cast< int >(val3);
18552 {
18553 PyThreadState* __tstate = wxPyBeginAllowThreads();
18554 (arg1)->CrossHair(arg2,arg3);
18555 wxPyEndAllowThreads(__tstate);
18556 if (PyErr_Occurred()) SWIG_fail;
18557 }
18558 resultobj = SWIG_Py_Void();
18559 return resultobj;
18560fail:
18561 return NULL;
18562}
18563
18564
18565SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18566 PyObject *resultobj = 0;
18567 wxDC *arg1 = (wxDC *) 0 ;
18568 wxPoint *arg2 = 0 ;
18569 void *argp1 = 0 ;
18570 int res1 = 0 ;
18571 wxPoint temp2 ;
18572 PyObject * obj0 = 0 ;
18573 PyObject * obj1 = 0 ;
18574 char * kwnames[] = {
18575 (char *) "self",(char *) "pt", NULL
18576 };
18577
18578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18580 if (!SWIG_IsOK(res1)) {
18581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18582 }
18583 arg1 = reinterpret_cast< wxDC * >(argp1);
18584 {
18585 arg2 = &temp2;
18586 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18587 }
18588 {
18589 PyThreadState* __tstate = wxPyBeginAllowThreads();
18590 (arg1)->CrossHair((wxPoint const &)*arg2);
18591 wxPyEndAllowThreads(__tstate);
18592 if (PyErr_Occurred()) SWIG_fail;
18593 }
18594 resultobj = SWIG_Py_Void();
18595 return resultobj;
18596fail:
18597 return NULL;
18598}
18599
18600
18601SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18602 PyObject *resultobj = 0;
18603 wxDC *arg1 = (wxDC *) 0 ;
18604 int arg2 ;
18605 int arg3 ;
18606 int arg4 ;
18607 int arg5 ;
18608 int arg6 ;
18609 int arg7 ;
18610 void *argp1 = 0 ;
18611 int res1 = 0 ;
18612 int val2 ;
18613 int ecode2 = 0 ;
18614 int val3 ;
18615 int ecode3 = 0 ;
18616 int val4 ;
18617 int ecode4 = 0 ;
18618 int val5 ;
18619 int ecode5 = 0 ;
18620 int val6 ;
18621 int ecode6 = 0 ;
18622 int val7 ;
18623 int ecode7 = 0 ;
18624 PyObject * obj0 = 0 ;
18625 PyObject * obj1 = 0 ;
18626 PyObject * obj2 = 0 ;
18627 PyObject * obj3 = 0 ;
18628 PyObject * obj4 = 0 ;
18629 PyObject * obj5 = 0 ;
18630 PyObject * obj6 = 0 ;
18631 char * kwnames[] = {
18632 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18633 };
18634
18635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18637 if (!SWIG_IsOK(res1)) {
18638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18639 }
18640 arg1 = reinterpret_cast< wxDC * >(argp1);
18641 ecode2 = SWIG_AsVal_int(obj1, &val2);
18642 if (!SWIG_IsOK(ecode2)) {
18643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18644 }
18645 arg2 = static_cast< int >(val2);
18646 ecode3 = SWIG_AsVal_int(obj2, &val3);
18647 if (!SWIG_IsOK(ecode3)) {
18648 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18649 }
18650 arg3 = static_cast< int >(val3);
18651 ecode4 = SWIG_AsVal_int(obj3, &val4);
18652 if (!SWIG_IsOK(ecode4)) {
18653 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18654 }
18655 arg4 = static_cast< int >(val4);
18656 ecode5 = SWIG_AsVal_int(obj4, &val5);
18657 if (!SWIG_IsOK(ecode5)) {
18658 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18659 }
18660 arg5 = static_cast< int >(val5);
18661 ecode6 = SWIG_AsVal_int(obj5, &val6);
18662 if (!SWIG_IsOK(ecode6)) {
18663 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18664 }
18665 arg6 = static_cast< int >(val6);
18666 ecode7 = SWIG_AsVal_int(obj6, &val7);
18667 if (!SWIG_IsOK(ecode7)) {
18668 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18669 }
18670 arg7 = static_cast< int >(val7);
18671 {
18672 PyThreadState* __tstate = wxPyBeginAllowThreads();
18673 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18674 wxPyEndAllowThreads(__tstate);
18675 if (PyErr_Occurred()) SWIG_fail;
18676 }
18677 resultobj = SWIG_Py_Void();
18678 return resultobj;
18679fail:
18680 return NULL;
18681}
18682
18683
18684SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18685 PyObject *resultobj = 0;
18686 wxDC *arg1 = (wxDC *) 0 ;
18687 wxPoint *arg2 = 0 ;
18688 wxPoint *arg3 = 0 ;
18689 wxPoint *arg4 = 0 ;
18690 void *argp1 = 0 ;
18691 int res1 = 0 ;
18692 wxPoint temp2 ;
18693 wxPoint temp3 ;
18694 wxPoint temp4 ;
18695 PyObject * obj0 = 0 ;
18696 PyObject * obj1 = 0 ;
18697 PyObject * obj2 = 0 ;
18698 PyObject * obj3 = 0 ;
18699 char * kwnames[] = {
18700 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18701 };
18702
18703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18705 if (!SWIG_IsOK(res1)) {
18706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18707 }
18708 arg1 = reinterpret_cast< wxDC * >(argp1);
18709 {
18710 arg2 = &temp2;
18711 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18712 }
18713 {
18714 arg3 = &temp3;
18715 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18716 }
18717 {
18718 arg4 = &temp4;
18719 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18720 }
18721 {
18722 PyThreadState* __tstate = wxPyBeginAllowThreads();
18723 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18724 wxPyEndAllowThreads(__tstate);
18725 if (PyErr_Occurred()) SWIG_fail;
18726 }
18727 resultobj = SWIG_Py_Void();
18728 return resultobj;
18729fail:
18730 return NULL;
18731}
18732
18733
18734SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18735 PyObject *resultobj = 0;
18736 wxDC *arg1 = (wxDC *) 0 ;
18737 int arg2 ;
18738 int arg3 ;
18739 int arg4 ;
18740 int arg5 ;
18741 void *argp1 = 0 ;
18742 int res1 = 0 ;
18743 int val2 ;
18744 int ecode2 = 0 ;
18745 int val3 ;
18746 int ecode3 = 0 ;
18747 int val4 ;
18748 int ecode4 = 0 ;
18749 int val5 ;
18750 int ecode5 = 0 ;
18751 PyObject * obj0 = 0 ;
18752 PyObject * obj1 = 0 ;
18753 PyObject * obj2 = 0 ;
18754 PyObject * obj3 = 0 ;
18755 PyObject * obj4 = 0 ;
18756 char * kwnames[] = {
18757 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18758 };
18759
18760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18762 if (!SWIG_IsOK(res1)) {
18763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18764 }
18765 arg1 = reinterpret_cast< wxDC * >(argp1);
18766 ecode2 = SWIG_AsVal_int(obj1, &val2);
18767 if (!SWIG_IsOK(ecode2)) {
18768 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18769 }
18770 arg2 = static_cast< int >(val2);
18771 ecode3 = SWIG_AsVal_int(obj2, &val3);
18772 if (!SWIG_IsOK(ecode3)) {
18773 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18774 }
18775 arg3 = static_cast< int >(val3);
18776 ecode4 = SWIG_AsVal_int(obj3, &val4);
18777 if (!SWIG_IsOK(ecode4)) {
18778 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18779 }
18780 arg4 = static_cast< int >(val4);
18781 ecode5 = SWIG_AsVal_int(obj4, &val5);
18782 if (!SWIG_IsOK(ecode5)) {
18783 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18784 }
18785 arg5 = static_cast< int >(val5);
18786 {
18787 PyThreadState* __tstate = wxPyBeginAllowThreads();
18788 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18789 wxPyEndAllowThreads(__tstate);
18790 if (PyErr_Occurred()) SWIG_fail;
18791 }
18792 resultobj = SWIG_Py_Void();
18793 return resultobj;
18794fail:
18795 return NULL;
18796}
18797
18798
18799SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18800 PyObject *resultobj = 0;
18801 wxDC *arg1 = (wxDC *) 0 ;
18802 wxRect *arg2 = 0 ;
18803 void *argp1 = 0 ;
18804 int res1 = 0 ;
18805 wxRect temp2 ;
18806 PyObject * obj0 = 0 ;
18807 PyObject * obj1 = 0 ;
18808 char * kwnames[] = {
18809 (char *) "self",(char *) "rect", NULL
18810 };
18811
18812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18814 if (!SWIG_IsOK(res1)) {
18815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18816 }
18817 arg1 = reinterpret_cast< wxDC * >(argp1);
18818 {
18819 arg2 = &temp2;
18820 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18821 }
18822 {
18823 PyThreadState* __tstate = wxPyBeginAllowThreads();
18824 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18825 wxPyEndAllowThreads(__tstate);
18826 if (PyErr_Occurred()) SWIG_fail;
18827 }
18828 resultobj = SWIG_Py_Void();
18829 return resultobj;
18830fail:
18831 return NULL;
18832}
18833
18834
18835SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18836 PyObject *resultobj = 0;
18837 wxDC *arg1 = (wxDC *) 0 ;
18838 int arg2 ;
18839 int arg3 ;
18840 int arg4 ;
18841 int arg5 ;
18842 double arg6 ;
18843 double arg7 ;
18844 void *argp1 = 0 ;
18845 int res1 = 0 ;
18846 int val2 ;
18847 int ecode2 = 0 ;
18848 int val3 ;
18849 int ecode3 = 0 ;
18850 int val4 ;
18851 int ecode4 = 0 ;
18852 int val5 ;
18853 int ecode5 = 0 ;
18854 double val6 ;
18855 int ecode6 = 0 ;
18856 double val7 ;
18857 int ecode7 = 0 ;
18858 PyObject * obj0 = 0 ;
18859 PyObject * obj1 = 0 ;
18860 PyObject * obj2 = 0 ;
18861 PyObject * obj3 = 0 ;
18862 PyObject * obj4 = 0 ;
18863 PyObject * obj5 = 0 ;
18864 PyObject * obj6 = 0 ;
18865 char * kwnames[] = {
18866 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18867 };
18868
18869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18871 if (!SWIG_IsOK(res1)) {
18872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18873 }
18874 arg1 = reinterpret_cast< wxDC * >(argp1);
18875 ecode2 = SWIG_AsVal_int(obj1, &val2);
18876 if (!SWIG_IsOK(ecode2)) {
18877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18878 }
18879 arg2 = static_cast< int >(val2);
18880 ecode3 = SWIG_AsVal_int(obj2, &val3);
18881 if (!SWIG_IsOK(ecode3)) {
18882 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18883 }
18884 arg3 = static_cast< int >(val3);
18885 ecode4 = SWIG_AsVal_int(obj3, &val4);
18886 if (!SWIG_IsOK(ecode4)) {
18887 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18888 }
18889 arg4 = static_cast< int >(val4);
18890 ecode5 = SWIG_AsVal_int(obj4, &val5);
18891 if (!SWIG_IsOK(ecode5)) {
18892 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18893 }
18894 arg5 = static_cast< int >(val5);
18895 ecode6 = SWIG_AsVal_double(obj5, &val6);
18896 if (!SWIG_IsOK(ecode6)) {
18897 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18898 }
18899 arg6 = static_cast< double >(val6);
18900 ecode7 = SWIG_AsVal_double(obj6, &val7);
18901 if (!SWIG_IsOK(ecode7)) {
18902 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18903 }
18904 arg7 = static_cast< double >(val7);
18905 {
18906 PyThreadState* __tstate = wxPyBeginAllowThreads();
18907 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18908 wxPyEndAllowThreads(__tstate);
18909 if (PyErr_Occurred()) SWIG_fail;
18910 }
18911 resultobj = SWIG_Py_Void();
18912 return resultobj;
18913fail:
18914 return NULL;
18915}
18916
18917
18918SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18919 PyObject *resultobj = 0;
18920 wxDC *arg1 = (wxDC *) 0 ;
18921 wxPoint *arg2 = 0 ;
18922 wxSize *arg3 = 0 ;
18923 double arg4 ;
18924 double arg5 ;
18925 void *argp1 = 0 ;
18926 int res1 = 0 ;
18927 wxPoint temp2 ;
18928 wxSize temp3 ;
18929 double val4 ;
18930 int ecode4 = 0 ;
18931 double val5 ;
18932 int ecode5 = 0 ;
18933 PyObject * obj0 = 0 ;
18934 PyObject * obj1 = 0 ;
18935 PyObject * obj2 = 0 ;
18936 PyObject * obj3 = 0 ;
18937 PyObject * obj4 = 0 ;
18938 char * kwnames[] = {
18939 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18940 };
18941
18942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18944 if (!SWIG_IsOK(res1)) {
18945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18946 }
18947 arg1 = reinterpret_cast< wxDC * >(argp1);
18948 {
18949 arg2 = &temp2;
18950 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18951 }
18952 {
18953 arg3 = &temp3;
18954 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18955 }
18956 ecode4 = SWIG_AsVal_double(obj3, &val4);
18957 if (!SWIG_IsOK(ecode4)) {
18958 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18959 }
18960 arg4 = static_cast< double >(val4);
18961 ecode5 = SWIG_AsVal_double(obj4, &val5);
18962 if (!SWIG_IsOK(ecode5)) {
18963 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18964 }
18965 arg5 = static_cast< double >(val5);
18966 {
18967 PyThreadState* __tstate = wxPyBeginAllowThreads();
18968 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18969 wxPyEndAllowThreads(__tstate);
18970 if (PyErr_Occurred()) SWIG_fail;
18971 }
18972 resultobj = SWIG_Py_Void();
18973 return resultobj;
18974fail:
18975 return NULL;
18976}
18977
18978
18979SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18980 PyObject *resultobj = 0;
18981 wxDC *arg1 = (wxDC *) 0 ;
18982 int arg2 ;
18983 int arg3 ;
18984 void *argp1 = 0 ;
18985 int res1 = 0 ;
18986 int val2 ;
18987 int ecode2 = 0 ;
18988 int val3 ;
18989 int ecode3 = 0 ;
18990 PyObject * obj0 = 0 ;
18991 PyObject * obj1 = 0 ;
18992 PyObject * obj2 = 0 ;
18993 char * kwnames[] = {
18994 (char *) "self",(char *) "x",(char *) "y", NULL
18995 };
18996
18997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18999 if (!SWIG_IsOK(res1)) {
19000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19001 }
19002 arg1 = reinterpret_cast< wxDC * >(argp1);
19003 ecode2 = SWIG_AsVal_int(obj1, &val2);
19004 if (!SWIG_IsOK(ecode2)) {
19005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
19006 }
19007 arg2 = static_cast< int >(val2);
19008 ecode3 = SWIG_AsVal_int(obj2, &val3);
19009 if (!SWIG_IsOK(ecode3)) {
19010 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
19011 }
19012 arg3 = static_cast< int >(val3);
19013 {
19014 PyThreadState* __tstate = wxPyBeginAllowThreads();
19015 (arg1)->DrawPoint(arg2,arg3);
19016 wxPyEndAllowThreads(__tstate);
19017 if (PyErr_Occurred()) SWIG_fail;
19018 }
19019 resultobj = SWIG_Py_Void();
19020 return resultobj;
19021fail:
19022 return NULL;
19023}
19024
19025
19026SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19027 PyObject *resultobj = 0;
19028 wxDC *arg1 = (wxDC *) 0 ;
19029 wxPoint *arg2 = 0 ;
19030 void *argp1 = 0 ;
19031 int res1 = 0 ;
19032 wxPoint temp2 ;
19033 PyObject * obj0 = 0 ;
19034 PyObject * obj1 = 0 ;
19035 char * kwnames[] = {
19036 (char *) "self",(char *) "pt", NULL
19037 };
19038
19039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19041 if (!SWIG_IsOK(res1)) {
19042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19043 }
19044 arg1 = reinterpret_cast< wxDC * >(argp1);
19045 {
19046 arg2 = &temp2;
19047 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19048 }
19049 {
19050 PyThreadState* __tstate = wxPyBeginAllowThreads();
19051 (arg1)->DrawPoint((wxPoint const &)*arg2);
19052 wxPyEndAllowThreads(__tstate);
19053 if (PyErr_Occurred()) SWIG_fail;
19054 }
19055 resultobj = SWIG_Py_Void();
19056 return resultobj;
19057fail:
19058 return NULL;
19059}
19060
19061
19062SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19063 PyObject *resultobj = 0;
19064 wxDC *arg1 = (wxDC *) 0 ;
19065 int arg2 ;
19066 int arg3 ;
19067 int arg4 ;
19068 int arg5 ;
19069 void *argp1 = 0 ;
19070 int res1 = 0 ;
19071 int val2 ;
19072 int ecode2 = 0 ;
19073 int val3 ;
19074 int ecode3 = 0 ;
19075 int val4 ;
19076 int ecode4 = 0 ;
19077 int val5 ;
19078 int ecode5 = 0 ;
19079 PyObject * obj0 = 0 ;
19080 PyObject * obj1 = 0 ;
19081 PyObject * obj2 = 0 ;
19082 PyObject * obj3 = 0 ;
19083 PyObject * obj4 = 0 ;
19084 char * kwnames[] = {
19085 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19086 };
19087
19088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19090 if (!SWIG_IsOK(res1)) {
19091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19092 }
19093 arg1 = reinterpret_cast< wxDC * >(argp1);
19094 ecode2 = SWIG_AsVal_int(obj1, &val2);
19095 if (!SWIG_IsOK(ecode2)) {
19096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
19097 }
19098 arg2 = static_cast< int >(val2);
19099 ecode3 = SWIG_AsVal_int(obj2, &val3);
19100 if (!SWIG_IsOK(ecode3)) {
19101 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
19102 }
19103 arg3 = static_cast< int >(val3);
19104 ecode4 = SWIG_AsVal_int(obj3, &val4);
19105 if (!SWIG_IsOK(ecode4)) {
19106 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
19107 }
19108 arg4 = static_cast< int >(val4);
19109 ecode5 = SWIG_AsVal_int(obj4, &val5);
19110 if (!SWIG_IsOK(ecode5)) {
19111 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
19112 }
19113 arg5 = static_cast< int >(val5);
19114 {
19115 PyThreadState* __tstate = wxPyBeginAllowThreads();
19116 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
19117 wxPyEndAllowThreads(__tstate);
19118 if (PyErr_Occurred()) SWIG_fail;
19119 }
19120 resultobj = SWIG_Py_Void();
19121 return resultobj;
19122fail:
19123 return NULL;
19124}
19125
19126
19127SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19128 PyObject *resultobj = 0;
19129 wxDC *arg1 = (wxDC *) 0 ;
19130 wxRect *arg2 = 0 ;
19131 void *argp1 = 0 ;
19132 int res1 = 0 ;
19133 wxRect temp2 ;
19134 PyObject * obj0 = 0 ;
19135 PyObject * obj1 = 0 ;
19136 char * kwnames[] = {
19137 (char *) "self",(char *) "rect", NULL
19138 };
19139
19140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
19141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19142 if (!SWIG_IsOK(res1)) {
19143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19144 }
19145 arg1 = reinterpret_cast< wxDC * >(argp1);
19146 {
19147 arg2 = &temp2;
19148 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19149 }
19150 {
19151 PyThreadState* __tstate = wxPyBeginAllowThreads();
19152 (arg1)->DrawRectangle((wxRect const &)*arg2);
19153 wxPyEndAllowThreads(__tstate);
19154 if (PyErr_Occurred()) SWIG_fail;
19155 }
19156 resultobj = SWIG_Py_Void();
19157 return resultobj;
19158fail:
19159 return NULL;
19160}
19161
19162
19163SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19164 PyObject *resultobj = 0;
19165 wxDC *arg1 = (wxDC *) 0 ;
19166 wxPoint *arg2 = 0 ;
19167 wxSize *arg3 = 0 ;
19168 void *argp1 = 0 ;
19169 int res1 = 0 ;
19170 wxPoint temp2 ;
19171 wxSize temp3 ;
19172 PyObject * obj0 = 0 ;
19173 PyObject * obj1 = 0 ;
19174 PyObject * obj2 = 0 ;
19175 char * kwnames[] = {
19176 (char *) "self",(char *) "pt",(char *) "sz", NULL
19177 };
19178
19179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19181 if (!SWIG_IsOK(res1)) {
19182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19183 }
19184 arg1 = reinterpret_cast< wxDC * >(argp1);
19185 {
19186 arg2 = &temp2;
19187 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19188 }
19189 {
19190 arg3 = &temp3;
19191 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19192 }
19193 {
19194 PyThreadState* __tstate = wxPyBeginAllowThreads();
19195 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
19196 wxPyEndAllowThreads(__tstate);
19197 if (PyErr_Occurred()) SWIG_fail;
19198 }
19199 resultobj = SWIG_Py_Void();
19200 return resultobj;
19201fail:
19202 return NULL;
19203}
19204
19205
19206SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19207 PyObject *resultobj = 0;
19208 wxDC *arg1 = (wxDC *) 0 ;
19209 int arg2 ;
19210 int arg3 ;
19211 int arg4 ;
19212 int arg5 ;
19213 double arg6 ;
19214 void *argp1 = 0 ;
19215 int res1 = 0 ;
19216 int val2 ;
19217 int ecode2 = 0 ;
19218 int val3 ;
19219 int ecode3 = 0 ;
19220 int val4 ;
19221 int ecode4 = 0 ;
19222 int val5 ;
19223 int ecode5 = 0 ;
19224 double val6 ;
19225 int ecode6 = 0 ;
19226 PyObject * obj0 = 0 ;
19227 PyObject * obj1 = 0 ;
19228 PyObject * obj2 = 0 ;
19229 PyObject * obj3 = 0 ;
19230 PyObject * obj4 = 0 ;
19231 PyObject * obj5 = 0 ;
19232 char * kwnames[] = {
19233 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
19234 };
19235
19236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19238 if (!SWIG_IsOK(res1)) {
19239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19240 }
19241 arg1 = reinterpret_cast< wxDC * >(argp1);
19242 ecode2 = SWIG_AsVal_int(obj1, &val2);
19243 if (!SWIG_IsOK(ecode2)) {
19244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
19245 }
19246 arg2 = static_cast< int >(val2);
19247 ecode3 = SWIG_AsVal_int(obj2, &val3);
19248 if (!SWIG_IsOK(ecode3)) {
19249 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
19250 }
19251 arg3 = static_cast< int >(val3);
19252 ecode4 = SWIG_AsVal_int(obj3, &val4);
19253 if (!SWIG_IsOK(ecode4)) {
19254 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
19255 }
19256 arg4 = static_cast< int >(val4);
19257 ecode5 = SWIG_AsVal_int(obj4, &val5);
19258 if (!SWIG_IsOK(ecode5)) {
19259 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
19260 }
19261 arg5 = static_cast< int >(val5);
19262 ecode6 = SWIG_AsVal_double(obj5, &val6);
19263 if (!SWIG_IsOK(ecode6)) {
19264 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
19265 }
19266 arg6 = static_cast< double >(val6);
19267 {
19268 PyThreadState* __tstate = wxPyBeginAllowThreads();
19269 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
19270 wxPyEndAllowThreads(__tstate);
19271 if (PyErr_Occurred()) SWIG_fail;
19272 }
19273 resultobj = SWIG_Py_Void();
19274 return resultobj;
19275fail:
19276 return NULL;
19277}
19278
19279
19280SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19281 PyObject *resultobj = 0;
19282 wxDC *arg1 = (wxDC *) 0 ;
19283 wxRect *arg2 = 0 ;
19284 double arg3 ;
19285 void *argp1 = 0 ;
19286 int res1 = 0 ;
19287 wxRect temp2 ;
19288 double val3 ;
19289 int ecode3 = 0 ;
19290 PyObject * obj0 = 0 ;
19291 PyObject * obj1 = 0 ;
19292 PyObject * obj2 = 0 ;
19293 char * kwnames[] = {
19294 (char *) "self",(char *) "r",(char *) "radius", NULL
19295 };
19296
19297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19299 if (!SWIG_IsOK(res1)) {
19300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19301 }
19302 arg1 = reinterpret_cast< wxDC * >(argp1);
19303 {
19304 arg2 = &temp2;
19305 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19306 }
19307 ecode3 = SWIG_AsVal_double(obj2, &val3);
19308 if (!SWIG_IsOK(ecode3)) {
19309 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19310 }
19311 arg3 = static_cast< double >(val3);
19312 {
19313 PyThreadState* __tstate = wxPyBeginAllowThreads();
19314 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
19315 wxPyEndAllowThreads(__tstate);
19316 if (PyErr_Occurred()) SWIG_fail;
19317 }
19318 resultobj = SWIG_Py_Void();
19319 return resultobj;
19320fail:
19321 return NULL;
19322}
19323
19324
19325SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19326 PyObject *resultobj = 0;
19327 wxDC *arg1 = (wxDC *) 0 ;
19328 wxPoint *arg2 = 0 ;
19329 wxSize *arg3 = 0 ;
19330 double arg4 ;
19331 void *argp1 = 0 ;
19332 int res1 = 0 ;
19333 wxPoint temp2 ;
19334 wxSize temp3 ;
19335 double val4 ;
19336 int ecode4 = 0 ;
19337 PyObject * obj0 = 0 ;
19338 PyObject * obj1 = 0 ;
19339 PyObject * obj2 = 0 ;
19340 PyObject * obj3 = 0 ;
19341 char * kwnames[] = {
19342 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19343 };
19344
19345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19347 if (!SWIG_IsOK(res1)) {
19348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19349 }
19350 arg1 = reinterpret_cast< wxDC * >(argp1);
19351 {
19352 arg2 = &temp2;
19353 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19354 }
19355 {
19356 arg3 = &temp3;
19357 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19358 }
19359 ecode4 = SWIG_AsVal_double(obj3, &val4);
19360 if (!SWIG_IsOK(ecode4)) {
19361 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19362 }
19363 arg4 = static_cast< double >(val4);
19364 {
19365 PyThreadState* __tstate = wxPyBeginAllowThreads();
19366 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19367 wxPyEndAllowThreads(__tstate);
19368 if (PyErr_Occurred()) SWIG_fail;
19369 }
19370 resultobj = SWIG_Py_Void();
19371 return resultobj;
19372fail:
19373 return NULL;
19374}
19375
19376
19377SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19378 PyObject *resultobj = 0;
19379 wxDC *arg1 = (wxDC *) 0 ;
19380 int arg2 ;
19381 int arg3 ;
19382 int arg4 ;
19383 void *argp1 = 0 ;
19384 int res1 = 0 ;
19385 int val2 ;
19386 int ecode2 = 0 ;
19387 int val3 ;
19388 int ecode3 = 0 ;
19389 int val4 ;
19390 int ecode4 = 0 ;
19391 PyObject * obj0 = 0 ;
19392 PyObject * obj1 = 0 ;
19393 PyObject * obj2 = 0 ;
19394 PyObject * obj3 = 0 ;
19395 char * kwnames[] = {
19396 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19397 };
19398
19399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19401 if (!SWIG_IsOK(res1)) {
19402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19403 }
19404 arg1 = reinterpret_cast< wxDC * >(argp1);
19405 ecode2 = SWIG_AsVal_int(obj1, &val2);
19406 if (!SWIG_IsOK(ecode2)) {
19407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19408 }
19409 arg2 = static_cast< int >(val2);
19410 ecode3 = SWIG_AsVal_int(obj2, &val3);
19411 if (!SWIG_IsOK(ecode3)) {
19412 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19413 }
19414 arg3 = static_cast< int >(val3);
19415 ecode4 = SWIG_AsVal_int(obj3, &val4);
19416 if (!SWIG_IsOK(ecode4)) {
19417 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19418 }
19419 arg4 = static_cast< int >(val4);
19420 {
19421 PyThreadState* __tstate = wxPyBeginAllowThreads();
19422 (arg1)->DrawCircle(arg2,arg3,arg4);
19423 wxPyEndAllowThreads(__tstate);
19424 if (PyErr_Occurred()) SWIG_fail;
19425 }
19426 resultobj = SWIG_Py_Void();
19427 return resultobj;
19428fail:
19429 return NULL;
19430}
19431
19432
19433SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19434 PyObject *resultobj = 0;
19435 wxDC *arg1 = (wxDC *) 0 ;
19436 wxPoint *arg2 = 0 ;
19437 int arg3 ;
19438 void *argp1 = 0 ;
19439 int res1 = 0 ;
19440 wxPoint temp2 ;
19441 int val3 ;
19442 int ecode3 = 0 ;
19443 PyObject * obj0 = 0 ;
19444 PyObject * obj1 = 0 ;
19445 PyObject * obj2 = 0 ;
19446 char * kwnames[] = {
19447 (char *) "self",(char *) "pt",(char *) "radius", NULL
19448 };
19449
19450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19452 if (!SWIG_IsOK(res1)) {
19453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19454 }
19455 arg1 = reinterpret_cast< wxDC * >(argp1);
19456 {
19457 arg2 = &temp2;
19458 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19459 }
19460 ecode3 = SWIG_AsVal_int(obj2, &val3);
19461 if (!SWIG_IsOK(ecode3)) {
19462 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19463 }
19464 arg3 = static_cast< int >(val3);
19465 {
19466 PyThreadState* __tstate = wxPyBeginAllowThreads();
19467 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19468 wxPyEndAllowThreads(__tstate);
19469 if (PyErr_Occurred()) SWIG_fail;
19470 }
19471 resultobj = SWIG_Py_Void();
19472 return resultobj;
19473fail:
19474 return NULL;
19475}
19476
19477
19478SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19479 PyObject *resultobj = 0;
19480 wxDC *arg1 = (wxDC *) 0 ;
19481 int arg2 ;
19482 int arg3 ;
19483 int arg4 ;
19484 int arg5 ;
19485 void *argp1 = 0 ;
19486 int res1 = 0 ;
19487 int val2 ;
19488 int ecode2 = 0 ;
19489 int val3 ;
19490 int ecode3 = 0 ;
19491 int val4 ;
19492 int ecode4 = 0 ;
19493 int val5 ;
19494 int ecode5 = 0 ;
19495 PyObject * obj0 = 0 ;
19496 PyObject * obj1 = 0 ;
19497 PyObject * obj2 = 0 ;
19498 PyObject * obj3 = 0 ;
19499 PyObject * obj4 = 0 ;
19500 char * kwnames[] = {
19501 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19502 };
19503
19504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19506 if (!SWIG_IsOK(res1)) {
19507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19508 }
19509 arg1 = reinterpret_cast< wxDC * >(argp1);
19510 ecode2 = SWIG_AsVal_int(obj1, &val2);
19511 if (!SWIG_IsOK(ecode2)) {
19512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19513 }
19514 arg2 = static_cast< int >(val2);
19515 ecode3 = SWIG_AsVal_int(obj2, &val3);
19516 if (!SWIG_IsOK(ecode3)) {
19517 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19518 }
19519 arg3 = static_cast< int >(val3);
19520 ecode4 = SWIG_AsVal_int(obj3, &val4);
19521 if (!SWIG_IsOK(ecode4)) {
19522 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19523 }
19524 arg4 = static_cast< int >(val4);
19525 ecode5 = SWIG_AsVal_int(obj4, &val5);
19526 if (!SWIG_IsOK(ecode5)) {
19527 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19528 }
19529 arg5 = static_cast< int >(val5);
19530 {
19531 PyThreadState* __tstate = wxPyBeginAllowThreads();
19532 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19533 wxPyEndAllowThreads(__tstate);
19534 if (PyErr_Occurred()) SWIG_fail;
19535 }
19536 resultobj = SWIG_Py_Void();
19537 return resultobj;
19538fail:
19539 return NULL;
19540}
19541
19542
19543SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19544 PyObject *resultobj = 0;
19545 wxDC *arg1 = (wxDC *) 0 ;
19546 wxRect *arg2 = 0 ;
19547 void *argp1 = 0 ;
19548 int res1 = 0 ;
19549 wxRect temp2 ;
19550 PyObject * obj0 = 0 ;
19551 PyObject * obj1 = 0 ;
19552 char * kwnames[] = {
19553 (char *) "self",(char *) "rect", NULL
19554 };
19555
19556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19558 if (!SWIG_IsOK(res1)) {
19559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19560 }
19561 arg1 = reinterpret_cast< wxDC * >(argp1);
19562 {
19563 arg2 = &temp2;
19564 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19565 }
19566 {
19567 PyThreadState* __tstate = wxPyBeginAllowThreads();
19568 (arg1)->DrawEllipse((wxRect const &)*arg2);
19569 wxPyEndAllowThreads(__tstate);
19570 if (PyErr_Occurred()) SWIG_fail;
19571 }
19572 resultobj = SWIG_Py_Void();
19573 return resultobj;
19574fail:
19575 return NULL;
19576}
19577
19578
19579SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19580 PyObject *resultobj = 0;
19581 wxDC *arg1 = (wxDC *) 0 ;
19582 wxPoint *arg2 = 0 ;
19583 wxSize *arg3 = 0 ;
19584 void *argp1 = 0 ;
19585 int res1 = 0 ;
19586 wxPoint temp2 ;
19587 wxSize temp3 ;
19588 PyObject * obj0 = 0 ;
19589 PyObject * obj1 = 0 ;
19590 PyObject * obj2 = 0 ;
19591 char * kwnames[] = {
19592 (char *) "self",(char *) "pt",(char *) "sz", NULL
19593 };
19594
19595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19597 if (!SWIG_IsOK(res1)) {
19598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19599 }
19600 arg1 = reinterpret_cast< wxDC * >(argp1);
19601 {
19602 arg2 = &temp2;
19603 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19604 }
19605 {
19606 arg3 = &temp3;
19607 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19608 }
19609 {
19610 PyThreadState* __tstate = wxPyBeginAllowThreads();
19611 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19612 wxPyEndAllowThreads(__tstate);
19613 if (PyErr_Occurred()) SWIG_fail;
19614 }
19615 resultobj = SWIG_Py_Void();
19616 return resultobj;
19617fail:
19618 return NULL;
19619}
19620
19621
19622SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19623 PyObject *resultobj = 0;
19624 wxDC *arg1 = (wxDC *) 0 ;
19625 wxIcon *arg2 = 0 ;
19626 int arg3 ;
19627 int arg4 ;
19628 void *argp1 = 0 ;
19629 int res1 = 0 ;
19630 void *argp2 = 0 ;
19631 int res2 = 0 ;
19632 int val3 ;
19633 int ecode3 = 0 ;
19634 int val4 ;
19635 int ecode4 = 0 ;
19636 PyObject * obj0 = 0 ;
19637 PyObject * obj1 = 0 ;
19638 PyObject * obj2 = 0 ;
19639 PyObject * obj3 = 0 ;
19640 char * kwnames[] = {
19641 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19642 };
19643
19644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19646 if (!SWIG_IsOK(res1)) {
19647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19648 }
19649 arg1 = reinterpret_cast< wxDC * >(argp1);
19650 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19651 if (!SWIG_IsOK(res2)) {
19652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19653 }
19654 if (!argp2) {
19655 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19656 }
19657 arg2 = reinterpret_cast< wxIcon * >(argp2);
19658 ecode3 = SWIG_AsVal_int(obj2, &val3);
19659 if (!SWIG_IsOK(ecode3)) {
19660 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19661 }
19662 arg3 = static_cast< int >(val3);
19663 ecode4 = SWIG_AsVal_int(obj3, &val4);
19664 if (!SWIG_IsOK(ecode4)) {
19665 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19666 }
19667 arg4 = static_cast< int >(val4);
19668 {
19669 PyThreadState* __tstate = wxPyBeginAllowThreads();
19670 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19671 wxPyEndAllowThreads(__tstate);
19672 if (PyErr_Occurred()) SWIG_fail;
19673 }
19674 resultobj = SWIG_Py_Void();
19675 return resultobj;
19676fail:
19677 return NULL;
19678}
19679
19680
19681SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19682 PyObject *resultobj = 0;
19683 wxDC *arg1 = (wxDC *) 0 ;
19684 wxIcon *arg2 = 0 ;
19685 wxPoint *arg3 = 0 ;
19686 void *argp1 = 0 ;
19687 int res1 = 0 ;
19688 void *argp2 = 0 ;
19689 int res2 = 0 ;
19690 wxPoint temp3 ;
19691 PyObject * obj0 = 0 ;
19692 PyObject * obj1 = 0 ;
19693 PyObject * obj2 = 0 ;
19694 char * kwnames[] = {
19695 (char *) "self",(char *) "icon",(char *) "pt", NULL
19696 };
19697
19698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19700 if (!SWIG_IsOK(res1)) {
19701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19702 }
19703 arg1 = reinterpret_cast< wxDC * >(argp1);
19704 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19705 if (!SWIG_IsOK(res2)) {
19706 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19707 }
19708 if (!argp2) {
19709 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19710 }
19711 arg2 = reinterpret_cast< wxIcon * >(argp2);
19712 {
19713 arg3 = &temp3;
19714 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19715 }
19716 {
19717 PyThreadState* __tstate = wxPyBeginAllowThreads();
19718 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19719 wxPyEndAllowThreads(__tstate);
19720 if (PyErr_Occurred()) SWIG_fail;
19721 }
19722 resultobj = SWIG_Py_Void();
19723 return resultobj;
19724fail:
19725 return NULL;
19726}
19727
19728
19729SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19730 PyObject *resultobj = 0;
19731 wxDC *arg1 = (wxDC *) 0 ;
19732 wxBitmap *arg2 = 0 ;
19733 int arg3 ;
19734 int arg4 ;
19735 bool arg5 = (bool) false ;
19736 void *argp1 = 0 ;
19737 int res1 = 0 ;
19738 void *argp2 = 0 ;
19739 int res2 = 0 ;
19740 int val3 ;
19741 int ecode3 = 0 ;
19742 int val4 ;
19743 int ecode4 = 0 ;
19744 bool val5 ;
19745 int ecode5 = 0 ;
19746 PyObject * obj0 = 0 ;
19747 PyObject * obj1 = 0 ;
19748 PyObject * obj2 = 0 ;
19749 PyObject * obj3 = 0 ;
19750 PyObject * obj4 = 0 ;
19751 char * kwnames[] = {
19752 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19753 };
19754
19755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19757 if (!SWIG_IsOK(res1)) {
19758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19759 }
19760 arg1 = reinterpret_cast< wxDC * >(argp1);
19761 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19762 if (!SWIG_IsOK(res2)) {
19763 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19764 }
19765 if (!argp2) {
19766 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19767 }
19768 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19769 ecode3 = SWIG_AsVal_int(obj2, &val3);
19770 if (!SWIG_IsOK(ecode3)) {
19771 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19772 }
19773 arg3 = static_cast< int >(val3);
19774 ecode4 = SWIG_AsVal_int(obj3, &val4);
19775 if (!SWIG_IsOK(ecode4)) {
19776 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19777 }
19778 arg4 = static_cast< int >(val4);
19779 if (obj4) {
19780 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19781 if (!SWIG_IsOK(ecode5)) {
19782 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19783 }
19784 arg5 = static_cast< bool >(val5);
19785 }
19786 {
19787 PyThreadState* __tstate = wxPyBeginAllowThreads();
19788 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19789 wxPyEndAllowThreads(__tstate);
19790 if (PyErr_Occurred()) SWIG_fail;
19791 }
19792 resultobj = SWIG_Py_Void();
19793 return resultobj;
19794fail:
19795 return NULL;
19796}
19797
19798
19799SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19800 PyObject *resultobj = 0;
19801 wxDC *arg1 = (wxDC *) 0 ;
19802 wxBitmap *arg2 = 0 ;
19803 wxPoint *arg3 = 0 ;
19804 bool arg4 = (bool) false ;
19805 void *argp1 = 0 ;
19806 int res1 = 0 ;
19807 void *argp2 = 0 ;
19808 int res2 = 0 ;
19809 wxPoint temp3 ;
19810 bool val4 ;
19811 int ecode4 = 0 ;
19812 PyObject * obj0 = 0 ;
19813 PyObject * obj1 = 0 ;
19814 PyObject * obj2 = 0 ;
19815 PyObject * obj3 = 0 ;
19816 char * kwnames[] = {
19817 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19818 };
19819
19820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19822 if (!SWIG_IsOK(res1)) {
19823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19824 }
19825 arg1 = reinterpret_cast< wxDC * >(argp1);
19826 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19827 if (!SWIG_IsOK(res2)) {
19828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19829 }
19830 if (!argp2) {
19831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19832 }
19833 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19834 {
19835 arg3 = &temp3;
19836 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19837 }
19838 if (obj3) {
19839 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19840 if (!SWIG_IsOK(ecode4)) {
19841 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19842 }
19843 arg4 = static_cast< bool >(val4);
19844 }
19845 {
19846 PyThreadState* __tstate = wxPyBeginAllowThreads();
19847 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19848 wxPyEndAllowThreads(__tstate);
19849 if (PyErr_Occurred()) SWIG_fail;
19850 }
19851 resultobj = SWIG_Py_Void();
19852 return resultobj;
19853fail:
19854 return NULL;
19855}
19856
19857
19858SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19859 PyObject *resultobj = 0;
19860 wxDC *arg1 = (wxDC *) 0 ;
19861 wxString *arg2 = 0 ;
19862 int arg3 ;
19863 int arg4 ;
19864 void *argp1 = 0 ;
19865 int res1 = 0 ;
19866 bool temp2 = false ;
19867 int val3 ;
19868 int ecode3 = 0 ;
19869 int val4 ;
19870 int ecode4 = 0 ;
19871 PyObject * obj0 = 0 ;
19872 PyObject * obj1 = 0 ;
19873 PyObject * obj2 = 0 ;
19874 PyObject * obj3 = 0 ;
19875 char * kwnames[] = {
19876 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19877 };
19878
19879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19881 if (!SWIG_IsOK(res1)) {
19882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19883 }
19884 arg1 = reinterpret_cast< wxDC * >(argp1);
19885 {
19886 arg2 = wxString_in_helper(obj1);
19887 if (arg2 == NULL) SWIG_fail;
19888 temp2 = true;
19889 }
19890 ecode3 = SWIG_AsVal_int(obj2, &val3);
19891 if (!SWIG_IsOK(ecode3)) {
19892 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19893 }
19894 arg3 = static_cast< int >(val3);
19895 ecode4 = SWIG_AsVal_int(obj3, &val4);
19896 if (!SWIG_IsOK(ecode4)) {
19897 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19898 }
19899 arg4 = static_cast< int >(val4);
19900 {
19901 PyThreadState* __tstate = wxPyBeginAllowThreads();
19902 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19903 wxPyEndAllowThreads(__tstate);
19904 if (PyErr_Occurred()) SWIG_fail;
19905 }
19906 resultobj = SWIG_Py_Void();
19907 {
19908 if (temp2)
19909 delete arg2;
19910 }
19911 return resultobj;
19912fail:
19913 {
19914 if (temp2)
19915 delete arg2;
19916 }
19917 return NULL;
19918}
19919
19920
19921SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19922 PyObject *resultobj = 0;
19923 wxDC *arg1 = (wxDC *) 0 ;
19924 wxString *arg2 = 0 ;
19925 wxPoint *arg3 = 0 ;
19926 void *argp1 = 0 ;
19927 int res1 = 0 ;
19928 bool temp2 = false ;
19929 wxPoint temp3 ;
19930 PyObject * obj0 = 0 ;
19931 PyObject * obj1 = 0 ;
19932 PyObject * obj2 = 0 ;
19933 char * kwnames[] = {
19934 (char *) "self",(char *) "text",(char *) "pt", NULL
19935 };
19936
19937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19939 if (!SWIG_IsOK(res1)) {
19940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19941 }
19942 arg1 = reinterpret_cast< wxDC * >(argp1);
19943 {
19944 arg2 = wxString_in_helper(obj1);
19945 if (arg2 == NULL) SWIG_fail;
19946 temp2 = true;
19947 }
19948 {
19949 arg3 = &temp3;
19950 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19951 }
19952 {
19953 PyThreadState* __tstate = wxPyBeginAllowThreads();
19954 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19955 wxPyEndAllowThreads(__tstate);
19956 if (PyErr_Occurred()) SWIG_fail;
19957 }
19958 resultobj = SWIG_Py_Void();
19959 {
19960 if (temp2)
19961 delete arg2;
19962 }
19963 return resultobj;
19964fail:
19965 {
19966 if (temp2)
19967 delete arg2;
19968 }
19969 return NULL;
19970}
19971
19972
19973SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19974 PyObject *resultobj = 0;
19975 wxDC *arg1 = (wxDC *) 0 ;
19976 wxString *arg2 = 0 ;
19977 int arg3 ;
19978 int arg4 ;
19979 double arg5 ;
19980 void *argp1 = 0 ;
19981 int res1 = 0 ;
19982 bool temp2 = false ;
19983 int val3 ;
19984 int ecode3 = 0 ;
19985 int val4 ;
19986 int ecode4 = 0 ;
19987 double val5 ;
19988 int ecode5 = 0 ;
19989 PyObject * obj0 = 0 ;
19990 PyObject * obj1 = 0 ;
19991 PyObject * obj2 = 0 ;
19992 PyObject * obj3 = 0 ;
19993 PyObject * obj4 = 0 ;
19994 char * kwnames[] = {
19995 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19996 };
19997
19998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20000 if (!SWIG_IsOK(res1)) {
20001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
20002 }
20003 arg1 = reinterpret_cast< wxDC * >(argp1);
20004 {
20005 arg2 = wxString_in_helper(obj1);
20006 if (arg2 == NULL) SWIG_fail;
20007 temp2 = true;
20008 }
20009 ecode3 = SWIG_AsVal_int(obj2, &val3);
20010 if (!SWIG_IsOK(ecode3)) {
20011 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
20012 }
20013 arg3 = static_cast< int >(val3);
20014 ecode4 = SWIG_AsVal_int(obj3, &val4);
20015 if (!SWIG_IsOK(ecode4)) {
20016 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
20017 }
20018 arg4 = static_cast< int >(val4);
20019 ecode5 = SWIG_AsVal_double(obj4, &val5);
20020 if (!SWIG_IsOK(ecode5)) {
20021 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
20022 }
20023 arg5 = static_cast< double >(val5);
20024 {
20025 PyThreadState* __tstate = wxPyBeginAllowThreads();
20026 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
20027 wxPyEndAllowThreads(__tstate);
20028 if (PyErr_Occurred()) SWIG_fail;
20029 }
20030 resultobj = SWIG_Py_Void();
20031 {
20032 if (temp2)
20033 delete arg2;
20034 }
20035 return resultobj;
20036fail:
20037 {
20038 if (temp2)
20039 delete arg2;
20040 }
20041 return NULL;
20042}
20043
20044
20045SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20046 PyObject *resultobj = 0;
20047 wxDC *arg1 = (wxDC *) 0 ;
20048 wxString *arg2 = 0 ;
20049 wxPoint *arg3 = 0 ;
20050 double arg4 ;
20051 void *argp1 = 0 ;
20052 int res1 = 0 ;
20053 bool temp2 = false ;
20054 wxPoint temp3 ;
20055 double val4 ;
20056 int ecode4 = 0 ;
20057 PyObject * obj0 = 0 ;
20058 PyObject * obj1 = 0 ;
20059 PyObject * obj2 = 0 ;
20060 PyObject * obj3 = 0 ;
20061 char * kwnames[] = {
20062 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
20063 };
20064
20065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20067 if (!SWIG_IsOK(res1)) {
20068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20069 }
20070 arg1 = reinterpret_cast< wxDC * >(argp1);
20071 {
20072 arg2 = wxString_in_helper(obj1);
20073 if (arg2 == NULL) SWIG_fail;
20074 temp2 = true;
20075 }
20076 {
20077 arg3 = &temp3;
20078 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20079 }
20080 ecode4 = SWIG_AsVal_double(obj3, &val4);
20081 if (!SWIG_IsOK(ecode4)) {
20082 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
20083 }
20084 arg4 = static_cast< double >(val4);
20085 {
20086 PyThreadState* __tstate = wxPyBeginAllowThreads();
20087 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
20088 wxPyEndAllowThreads(__tstate);
20089 if (PyErr_Occurred()) SWIG_fail;
20090 }
20091 resultobj = SWIG_Py_Void();
20092 {
20093 if (temp2)
20094 delete arg2;
20095 }
20096 return resultobj;
20097fail:
20098 {
20099 if (temp2)
20100 delete arg2;
20101 }
20102 return NULL;
20103}
20104
20105
20106SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20107 PyObject *resultobj = 0;
20108 wxDC *arg1 = (wxDC *) 0 ;
20109 int arg2 ;
20110 int arg3 ;
20111 int arg4 ;
20112 int arg5 ;
20113 wxDC *arg6 = (wxDC *) 0 ;
20114 int arg7 ;
20115 int arg8 ;
20116 int arg9 = (int) wxCOPY ;
20117 bool arg10 = (bool) false ;
20118 int arg11 = (int) -1 ;
20119 int arg12 = (int) -1 ;
20120 bool result;
20121 void *argp1 = 0 ;
20122 int res1 = 0 ;
20123 int val2 ;
20124 int ecode2 = 0 ;
20125 int val3 ;
20126 int ecode3 = 0 ;
20127 int val4 ;
20128 int ecode4 = 0 ;
20129 int val5 ;
20130 int ecode5 = 0 ;
20131 void *argp6 = 0 ;
20132 int res6 = 0 ;
20133 int val7 ;
20134 int ecode7 = 0 ;
20135 int val8 ;
20136 int ecode8 = 0 ;
20137 int val9 ;
20138 int ecode9 = 0 ;
20139 bool val10 ;
20140 int ecode10 = 0 ;
20141 int val11 ;
20142 int ecode11 = 0 ;
20143 int val12 ;
20144 int ecode12 = 0 ;
20145 PyObject * obj0 = 0 ;
20146 PyObject * obj1 = 0 ;
20147 PyObject * obj2 = 0 ;
20148 PyObject * obj3 = 0 ;
20149 PyObject * obj4 = 0 ;
20150 PyObject * obj5 = 0 ;
20151 PyObject * obj6 = 0 ;
20152 PyObject * obj7 = 0 ;
20153 PyObject * obj8 = 0 ;
20154 PyObject * obj9 = 0 ;
20155 PyObject * obj10 = 0 ;
20156 PyObject * obj11 = 0 ;
20157 char * kwnames[] = {
20158 (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
20159 };
20160
20161 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;
20162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20163 if (!SWIG_IsOK(res1)) {
20164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
20165 }
20166 arg1 = reinterpret_cast< wxDC * >(argp1);
20167 ecode2 = SWIG_AsVal_int(obj1, &val2);
20168 if (!SWIG_IsOK(ecode2)) {
20169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
20170 }
20171 arg2 = static_cast< int >(val2);
20172 ecode3 = SWIG_AsVal_int(obj2, &val3);
20173 if (!SWIG_IsOK(ecode3)) {
20174 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
20175 }
20176 arg3 = static_cast< int >(val3);
20177 ecode4 = SWIG_AsVal_int(obj3, &val4);
20178 if (!SWIG_IsOK(ecode4)) {
20179 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
20180 }
20181 arg4 = static_cast< int >(val4);
20182 ecode5 = SWIG_AsVal_int(obj4, &val5);
20183 if (!SWIG_IsOK(ecode5)) {
20184 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
20185 }
20186 arg5 = static_cast< int >(val5);
20187 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
20188 if (!SWIG_IsOK(res6)) {
20189 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
20190 }
20191 arg6 = reinterpret_cast< wxDC * >(argp6);
20192 ecode7 = SWIG_AsVal_int(obj6, &val7);
20193 if (!SWIG_IsOK(ecode7)) {
20194 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
20195 }
20196 arg7 = static_cast< int >(val7);
20197 ecode8 = SWIG_AsVal_int(obj7, &val8);
20198 if (!SWIG_IsOK(ecode8)) {
20199 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
20200 }
20201 arg8 = static_cast< int >(val8);
20202 if (obj8) {
20203 ecode9 = SWIG_AsVal_int(obj8, &val9);
20204 if (!SWIG_IsOK(ecode9)) {
20205 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
20206 }
20207 arg9 = static_cast< int >(val9);
20208 }
20209 if (obj9) {
20210 ecode10 = SWIG_AsVal_bool(obj9, &val10);
20211 if (!SWIG_IsOK(ecode10)) {
20212 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
20213 }
20214 arg10 = static_cast< bool >(val10);
20215 }
20216 if (obj10) {
20217 ecode11 = SWIG_AsVal_int(obj10, &val11);
20218 if (!SWIG_IsOK(ecode11)) {
20219 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
20220 }
20221 arg11 = static_cast< int >(val11);
20222 }
20223 if (obj11) {
20224 ecode12 = SWIG_AsVal_int(obj11, &val12);
20225 if (!SWIG_IsOK(ecode12)) {
20226 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
20227 }
20228 arg12 = static_cast< int >(val12);
20229 }
20230 {
20231 PyThreadState* __tstate = wxPyBeginAllowThreads();
20232 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
20233 wxPyEndAllowThreads(__tstate);
20234 if (PyErr_Occurred()) SWIG_fail;
20235 }
20236 {
20237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20238 }
20239 return resultobj;
20240fail:
20241 return NULL;
20242}
20243
20244
20245SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20246 PyObject *resultobj = 0;
20247 wxDC *arg1 = (wxDC *) 0 ;
20248 wxPoint *arg2 = 0 ;
20249 wxSize *arg3 = 0 ;
20250 wxDC *arg4 = (wxDC *) 0 ;
20251 wxPoint *arg5 = 0 ;
20252 int arg6 = (int) wxCOPY ;
20253 bool arg7 = (bool) false ;
20254 wxPoint const &arg8_defvalue = wxDefaultPosition ;
20255 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
20256 bool result;
20257 void *argp1 = 0 ;
20258 int res1 = 0 ;
20259 wxPoint temp2 ;
20260 wxSize temp3 ;
20261 void *argp4 = 0 ;
20262 int res4 = 0 ;
20263 wxPoint temp5 ;
20264 int val6 ;
20265 int ecode6 = 0 ;
20266 bool val7 ;
20267 int ecode7 = 0 ;
20268 wxPoint temp8 ;
20269 PyObject * obj0 = 0 ;
20270 PyObject * obj1 = 0 ;
20271 PyObject * obj2 = 0 ;
20272 PyObject * obj3 = 0 ;
20273 PyObject * obj4 = 0 ;
20274 PyObject * obj5 = 0 ;
20275 PyObject * obj6 = 0 ;
20276 PyObject * obj7 = 0 ;
20277 char * kwnames[] = {
20278 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
20279 };
20280
20281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20283 if (!SWIG_IsOK(res1)) {
20284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20285 }
20286 arg1 = reinterpret_cast< wxDC * >(argp1);
20287 {
20288 arg2 = &temp2;
20289 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20290 }
20291 {
20292 arg3 = &temp3;
20293 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20294 }
20295 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20296 if (!SWIG_IsOK(res4)) {
20297 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20298 }
20299 arg4 = reinterpret_cast< wxDC * >(argp4);
20300 {
20301 arg5 = &temp5;
20302 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20303 }
20304 if (obj5) {
20305 ecode6 = SWIG_AsVal_int(obj5, &val6);
20306 if (!SWIG_IsOK(ecode6)) {
20307 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20308 }
20309 arg6 = static_cast< int >(val6);
20310 }
20311 if (obj6) {
20312 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20313 if (!SWIG_IsOK(ecode7)) {
20314 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20315 }
20316 arg7 = static_cast< bool >(val7);
20317 }
20318 if (obj7) {
093d3ff1 20319 {
554f62e9
RD
20320 arg8 = &temp8;
20321 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
093d3ff1 20322 }
554f62e9
RD
20323 }
20324 {
20325 PyThreadState* __tstate = wxPyBeginAllowThreads();
20326 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20327 wxPyEndAllowThreads(__tstate);
20328 if (PyErr_Occurred()) SWIG_fail;
20329 }
20330 {
20331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20332 }
20333 return resultobj;
20334fail:
20335 return NULL;
20336}
20337
20338
20339SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20340 PyObject *resultobj = 0;
20341 wxDC *arg1 = (wxDC *) 0 ;
20342 int arg2 ;
20343 int arg3 ;
20344 int arg4 ;
20345 int arg5 ;
20346 void *argp1 = 0 ;
20347 int res1 = 0 ;
20348 int val2 ;
20349 int ecode2 = 0 ;
20350 int val3 ;
20351 int ecode3 = 0 ;
20352 int val4 ;
20353 int ecode4 = 0 ;
20354 int val5 ;
20355 int ecode5 = 0 ;
20356 PyObject * obj0 = 0 ;
20357 PyObject * obj1 = 0 ;
20358 PyObject * obj2 = 0 ;
20359 PyObject * obj3 = 0 ;
20360 PyObject * obj4 = 0 ;
20361 char * kwnames[] = {
20362 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20363 };
20364
20365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20367 if (!SWIG_IsOK(res1)) {
20368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20369 }
20370 arg1 = reinterpret_cast< wxDC * >(argp1);
20371 ecode2 = SWIG_AsVal_int(obj1, &val2);
20372 if (!SWIG_IsOK(ecode2)) {
20373 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20374 }
20375 arg2 = static_cast< int >(val2);
20376 ecode3 = SWIG_AsVal_int(obj2, &val3);
20377 if (!SWIG_IsOK(ecode3)) {
20378 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20379 }
20380 arg3 = static_cast< int >(val3);
20381 ecode4 = SWIG_AsVal_int(obj3, &val4);
20382 if (!SWIG_IsOK(ecode4)) {
20383 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20384 }
20385 arg4 = static_cast< int >(val4);
20386 ecode5 = SWIG_AsVal_int(obj4, &val5);
20387 if (!SWIG_IsOK(ecode5)) {
20388 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20389 }
20390 arg5 = static_cast< int >(val5);
20391 {
20392 PyThreadState* __tstate = wxPyBeginAllowThreads();
20393 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20394 wxPyEndAllowThreads(__tstate);
20395 if (PyErr_Occurred()) SWIG_fail;
20396 }
20397 resultobj = SWIG_Py_Void();
20398 return resultobj;
20399fail:
20400 return NULL;
20401}
20402
20403
20404SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20405 PyObject *resultobj = 0;
20406 wxDC *arg1 = (wxDC *) 0 ;
20407 wxPoint *arg2 = 0 ;
20408 wxSize *arg3 = 0 ;
20409 void *argp1 = 0 ;
20410 int res1 = 0 ;
20411 wxPoint temp2 ;
20412 wxSize temp3 ;
20413 PyObject * obj0 = 0 ;
20414 PyObject * obj1 = 0 ;
20415 PyObject * obj2 = 0 ;
20416 char * kwnames[] = {
20417 (char *) "self",(char *) "pt",(char *) "sz", NULL
20418 };
20419
20420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20422 if (!SWIG_IsOK(res1)) {
20423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20424 }
20425 arg1 = reinterpret_cast< wxDC * >(argp1);
20426 {
20427 arg2 = &temp2;
20428 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20429 }
20430 {
20431 arg3 = &temp3;
20432 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20433 }
20434 {
20435 PyThreadState* __tstate = wxPyBeginAllowThreads();
20436 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20437 wxPyEndAllowThreads(__tstate);
20438 if (PyErr_Occurred()) SWIG_fail;
20439 }
20440 resultobj = SWIG_Py_Void();
20441 return resultobj;
20442fail:
20443 return NULL;
20444}
20445
20446
20447SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20448 PyObject *resultobj = 0;
20449 wxDC *arg1 = (wxDC *) 0 ;
20450 wxRegion *arg2 = 0 ;
20451 void *argp1 = 0 ;
20452 int res1 = 0 ;
20453 void *argp2 = 0 ;
20454 int res2 = 0 ;
20455 PyObject * obj0 = 0 ;
20456 PyObject * obj1 = 0 ;
20457 char * kwnames[] = {
20458 (char *) "self",(char *) "region", NULL
20459 };
20460
20461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",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_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20465 }
20466 arg1 = reinterpret_cast< wxDC * >(argp1);
20467 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20468 if (!SWIG_IsOK(res2)) {
20469 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20470 }
20471 if (!argp2) {
20472 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20473 }
20474 arg2 = reinterpret_cast< wxRegion * >(argp2);
20475 {
20476 PyThreadState* __tstate = wxPyBeginAllowThreads();
20477 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20478 wxPyEndAllowThreads(__tstate);
20479 if (PyErr_Occurred()) SWIG_fail;
20480 }
20481 resultobj = SWIG_Py_Void();
20482 return resultobj;
20483fail:
20484 return NULL;
20485}
20486
20487
20488SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20489 PyObject *resultobj = 0;
20490 wxDC *arg1 = (wxDC *) 0 ;
20491 wxRect *arg2 = 0 ;
20492 void *argp1 = 0 ;
20493 int res1 = 0 ;
20494 wxRect temp2 ;
20495 PyObject * obj0 = 0 ;
20496 PyObject * obj1 = 0 ;
20497 char * kwnames[] = {
20498 (char *) "self",(char *) "rect", NULL
20499 };
20500
20501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20503 if (!SWIG_IsOK(res1)) {
20504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20505 }
20506 arg1 = reinterpret_cast< wxDC * >(argp1);
20507 {
20508 arg2 = &temp2;
20509 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20510 }
20511 {
20512 PyThreadState* __tstate = wxPyBeginAllowThreads();
20513 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20514 wxPyEndAllowThreads(__tstate);
20515 if (PyErr_Occurred()) SWIG_fail;
20516 }
20517 resultobj = SWIG_Py_Void();
20518 return resultobj;
20519fail:
20520 return NULL;
20521}
20522
20523
20524SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20525 PyObject *resultobj = 0;
20526 wxDC *arg1 = (wxDC *) 0 ;
20527 int arg2 ;
20528 wxPoint *arg3 = (wxPoint *) 0 ;
20529 int arg4 = (int) 0 ;
20530 int arg5 = (int) 0 ;
20531 void *argp1 = 0 ;
20532 int res1 = 0 ;
20533 int val4 ;
20534 int ecode4 = 0 ;
20535 int val5 ;
20536 int ecode5 = 0 ;
20537 PyObject * obj0 = 0 ;
20538 PyObject * obj1 = 0 ;
20539 PyObject * obj2 = 0 ;
20540 PyObject * obj3 = 0 ;
20541 char * kwnames[] = {
20542 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20543 };
20544
20545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20547 if (!SWIG_IsOK(res1)) {
20548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20549 }
20550 arg1 = reinterpret_cast< wxDC * >(argp1);
20551 {
20552 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20553 if (arg3 == NULL) SWIG_fail;
20554 }
20555 if (obj2) {
20556 ecode4 = SWIG_AsVal_int(obj2, &val4);
20557 if (!SWIG_IsOK(ecode4)) {
20558 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20559 }
20560 arg4 = static_cast< int >(val4);
20561 }
20562 if (obj3) {
20563 ecode5 = SWIG_AsVal_int(obj3, &val5);
20564 if (!SWIG_IsOK(ecode5)) {
20565 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20566 }
20567 arg5 = static_cast< int >(val5);
20568 }
20569 {
20570 PyThreadState* __tstate = wxPyBeginAllowThreads();
20571 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20572 wxPyEndAllowThreads(__tstate);
20573 if (PyErr_Occurred()) SWIG_fail;
20574 }
20575 resultobj = SWIG_Py_Void();
20576 {
20577 if (arg3) delete [] arg3;
20578 }
20579 return resultobj;
20580fail:
20581 {
20582 if (arg3) delete [] arg3;
20583 }
20584 return NULL;
20585}
20586
20587
20588SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20589 PyObject *resultobj = 0;
20590 wxDC *arg1 = (wxDC *) 0 ;
20591 int arg2 ;
20592 wxPoint *arg3 = (wxPoint *) 0 ;
20593 int arg4 = (int) 0 ;
20594 int arg5 = (int) 0 ;
20595 int arg6 = (int) wxODDEVEN_RULE ;
20596 void *argp1 = 0 ;
20597 int res1 = 0 ;
20598 int val4 ;
20599 int ecode4 = 0 ;
20600 int val5 ;
20601 int ecode5 = 0 ;
20602 int val6 ;
20603 int ecode6 = 0 ;
20604 PyObject * obj0 = 0 ;
20605 PyObject * obj1 = 0 ;
20606 PyObject * obj2 = 0 ;
20607 PyObject * obj3 = 0 ;
20608 PyObject * obj4 = 0 ;
20609 char * kwnames[] = {
20610 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20611 };
20612
20613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20615 if (!SWIG_IsOK(res1)) {
20616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20617 }
20618 arg1 = reinterpret_cast< wxDC * >(argp1);
20619 {
20620 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20621 if (arg3 == NULL) SWIG_fail;
20622 }
20623 if (obj2) {
20624 ecode4 = SWIG_AsVal_int(obj2, &val4);
20625 if (!SWIG_IsOK(ecode4)) {
20626 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20627 }
20628 arg4 = static_cast< int >(val4);
20629 }
20630 if (obj3) {
20631 ecode5 = SWIG_AsVal_int(obj3, &val5);
20632 if (!SWIG_IsOK(ecode5)) {
20633 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20634 }
20635 arg5 = static_cast< int >(val5);
20636 }
20637 if (obj4) {
20638 ecode6 = SWIG_AsVal_int(obj4, &val6);
20639 if (!SWIG_IsOK(ecode6)) {
20640 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20641 }
20642 arg6 = static_cast< int >(val6);
20643 }
20644 {
20645 PyThreadState* __tstate = wxPyBeginAllowThreads();
20646 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20647 wxPyEndAllowThreads(__tstate);
20648 if (PyErr_Occurred()) SWIG_fail;
20649 }
20650 resultobj = SWIG_Py_Void();
20651 {
20652 if (arg3) delete [] arg3;
20653 }
20654 return resultobj;
20655fail:
20656 {
20657 if (arg3) delete [] arg3;
20658 }
20659 return NULL;
20660}
20661
20662
20663SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20664 PyObject *resultobj = 0;
20665 wxDC *arg1 = (wxDC *) 0 ;
20666 wxString *arg2 = 0 ;
20667 wxRect *arg3 = 0 ;
20668 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20669 int arg5 = (int) -1 ;
20670 void *argp1 = 0 ;
20671 int res1 = 0 ;
20672 bool temp2 = false ;
20673 wxRect temp3 ;
20674 int val4 ;
20675 int ecode4 = 0 ;
20676 int val5 ;
20677 int ecode5 = 0 ;
20678 PyObject * obj0 = 0 ;
20679 PyObject * obj1 = 0 ;
20680 PyObject * obj2 = 0 ;
20681 PyObject * obj3 = 0 ;
20682 PyObject * obj4 = 0 ;
20683 char * kwnames[] = {
20684 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20685 };
20686
20687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20689 if (!SWIG_IsOK(res1)) {
20690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20691 }
20692 arg1 = reinterpret_cast< wxDC * >(argp1);
20693 {
20694 arg2 = wxString_in_helper(obj1);
20695 if (arg2 == NULL) SWIG_fail;
20696 temp2 = true;
20697 }
20698 {
20699 arg3 = &temp3;
20700 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20701 }
20702 if (obj3) {
20703 ecode4 = SWIG_AsVal_int(obj3, &val4);
20704 if (!SWIG_IsOK(ecode4)) {
20705 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20706 }
20707 arg4 = static_cast< int >(val4);
20708 }
20709 if (obj4) {
20710 ecode5 = SWIG_AsVal_int(obj4, &val5);
20711 if (!SWIG_IsOK(ecode5)) {
20712 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20713 }
20714 arg5 = static_cast< int >(val5);
20715 }
20716 {
20717 PyThreadState* __tstate = wxPyBeginAllowThreads();
20718 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20719 wxPyEndAllowThreads(__tstate);
20720 if (PyErr_Occurred()) SWIG_fail;
20721 }
20722 resultobj = SWIG_Py_Void();
20723 {
20724 if (temp2)
20725 delete arg2;
20726 }
20727 return resultobj;
20728fail:
20729 {
20730 if (temp2)
20731 delete arg2;
20732 }
20733 return NULL;
20734}
20735
20736
20737SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20738 PyObject *resultobj = 0;
20739 wxDC *arg1 = (wxDC *) 0 ;
20740 wxString *arg2 = 0 ;
20741 wxBitmap *arg3 = 0 ;
20742 wxRect *arg4 = 0 ;
20743 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20744 int arg6 = (int) -1 ;
20745 wxRect result;
20746 void *argp1 = 0 ;
20747 int res1 = 0 ;
20748 bool temp2 = false ;
20749 void *argp3 = 0 ;
20750 int res3 = 0 ;
20751 wxRect temp4 ;
20752 int val5 ;
20753 int ecode5 = 0 ;
20754 int val6 ;
20755 int ecode6 = 0 ;
20756 PyObject * obj0 = 0 ;
20757 PyObject * obj1 = 0 ;
20758 PyObject * obj2 = 0 ;
20759 PyObject * obj3 = 0 ;
20760 PyObject * obj4 = 0 ;
20761 PyObject * obj5 = 0 ;
20762 char * kwnames[] = {
20763 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20764 };
20765
20766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20768 if (!SWIG_IsOK(res1)) {
20769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20770 }
20771 arg1 = reinterpret_cast< wxDC * >(argp1);
20772 {
20773 arg2 = wxString_in_helper(obj1);
20774 if (arg2 == NULL) SWIG_fail;
20775 temp2 = true;
20776 }
20777 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20778 if (!SWIG_IsOK(res3)) {
20779 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20780 }
20781 if (!argp3) {
20782 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20783 }
20784 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20785 {
20786 arg4 = &temp4;
20787 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20788 }
20789 if (obj4) {
20790 ecode5 = SWIG_AsVal_int(obj4, &val5);
20791 if (!SWIG_IsOK(ecode5)) {
20792 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20793 }
20794 arg5 = static_cast< int >(val5);
20795 }
20796 if (obj5) {
20797 ecode6 = SWIG_AsVal_int(obj5, &val6);
20798 if (!SWIG_IsOK(ecode6)) {
20799 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20800 }
20801 arg6 = static_cast< int >(val6);
20802 }
20803 {
20804 PyThreadState* __tstate = wxPyBeginAllowThreads();
20805 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20806 wxPyEndAllowThreads(__tstate);
20807 if (PyErr_Occurred()) SWIG_fail;
20808 }
20809 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20810 {
20811 if (temp2)
20812 delete arg2;
20813 }
20814 return resultobj;
20815fail:
20816 {
20817 if (temp2)
20818 delete arg2;
20819 }
20820 return NULL;
20821}
20822
20823
20824SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20825 PyObject *resultobj = 0;
20826 wxDC *arg1 = (wxDC *) 0 ;
20827 int arg2 ;
20828 wxPoint *arg3 = (wxPoint *) 0 ;
20829 void *argp1 = 0 ;
20830 int res1 = 0 ;
20831 PyObject * obj0 = 0 ;
20832 PyObject * obj1 = 0 ;
20833 char * kwnames[] = {
20834 (char *) "self",(char *) "points", NULL
20835 };
20836
20837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20839 if (!SWIG_IsOK(res1)) {
20840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20841 }
20842 arg1 = reinterpret_cast< wxDC * >(argp1);
20843 {
20844 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20845 if (arg3 == NULL) SWIG_fail;
20846 }
20847 {
20848 PyThreadState* __tstate = wxPyBeginAllowThreads();
20849 (arg1)->DrawSpline(arg2,arg3);
20850 wxPyEndAllowThreads(__tstate);
20851 if (PyErr_Occurred()) SWIG_fail;
20852 }
20853 resultobj = SWIG_Py_Void();
20854 {
20855 if (arg3) delete [] arg3;
20856 }
20857 return resultobj;
20858fail:
20859 {
20860 if (arg3) delete [] arg3;
20861 }
20862 return NULL;
20863}
20864
20865
20866SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20867 PyObject *resultobj = 0;
20868 wxDC *arg1 = (wxDC *) 0 ;
20869 void *argp1 = 0 ;
20870 int res1 = 0 ;
20871 PyObject *swig_obj[1] ;
20872
20873 if (!args) SWIG_fail;
20874 swig_obj[0] = args;
20875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20876 if (!SWIG_IsOK(res1)) {
20877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20878 }
20879 arg1 = reinterpret_cast< wxDC * >(argp1);
20880 {
20881 PyThreadState* __tstate = wxPyBeginAllowThreads();
20882 (arg1)->Clear();
20883 wxPyEndAllowThreads(__tstate);
20884 if (PyErr_Occurred()) SWIG_fail;
20885 }
20886 resultobj = SWIG_Py_Void();
20887 return resultobj;
20888fail:
20889 return NULL;
20890}
20891
20892
20893SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20894 PyObject *resultobj = 0;
20895 wxDC *arg1 = (wxDC *) 0 ;
20896 wxString *arg2 = 0 ;
20897 bool result;
20898 void *argp1 = 0 ;
20899 int res1 = 0 ;
20900 bool temp2 = false ;
20901 PyObject * obj0 = 0 ;
20902 PyObject * obj1 = 0 ;
20903 char * kwnames[] = {
20904 (char *) "self",(char *) "message", NULL
20905 };
20906
20907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20909 if (!SWIG_IsOK(res1)) {
20910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20911 }
20912 arg1 = reinterpret_cast< wxDC * >(argp1);
20913 {
20914 arg2 = wxString_in_helper(obj1);
20915 if (arg2 == NULL) SWIG_fail;
20916 temp2 = true;
20917 }
20918 {
20919 PyThreadState* __tstate = wxPyBeginAllowThreads();
20920 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20921 wxPyEndAllowThreads(__tstate);
20922 if (PyErr_Occurred()) SWIG_fail;
20923 }
20924 {
20925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20926 }
20927 {
20928 if (temp2)
20929 delete arg2;
20930 }
20931 return resultobj;
20932fail:
20933 {
20934 if (temp2)
20935 delete arg2;
20936 }
20937 return NULL;
20938}
20939
20940
20941SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20942 PyObject *resultobj = 0;
20943 wxDC *arg1 = (wxDC *) 0 ;
20944 void *argp1 = 0 ;
20945 int res1 = 0 ;
20946 PyObject *swig_obj[1] ;
20947
20948 if (!args) SWIG_fail;
20949 swig_obj[0] = args;
20950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20951 if (!SWIG_IsOK(res1)) {
20952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20953 }
20954 arg1 = reinterpret_cast< wxDC * >(argp1);
20955 {
20956 PyThreadState* __tstate = wxPyBeginAllowThreads();
20957 (arg1)->EndDoc();
20958 wxPyEndAllowThreads(__tstate);
20959 if (PyErr_Occurred()) SWIG_fail;
20960 }
20961 resultobj = SWIG_Py_Void();
20962 return resultobj;
20963fail:
20964 return NULL;
20965}
20966
20967
20968SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20969 PyObject *resultobj = 0;
20970 wxDC *arg1 = (wxDC *) 0 ;
20971 void *argp1 = 0 ;
20972 int res1 = 0 ;
20973 PyObject *swig_obj[1] ;
20974
20975 if (!args) SWIG_fail;
20976 swig_obj[0] = args;
20977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20978 if (!SWIG_IsOK(res1)) {
20979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20980 }
20981 arg1 = reinterpret_cast< wxDC * >(argp1);
20982 {
20983 PyThreadState* __tstate = wxPyBeginAllowThreads();
20984 (arg1)->StartPage();
20985 wxPyEndAllowThreads(__tstate);
20986 if (PyErr_Occurred()) SWIG_fail;
20987 }
20988 resultobj = SWIG_Py_Void();
20989 return resultobj;
20990fail:
20991 return NULL;
20992}
20993
20994
20995SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20996 PyObject *resultobj = 0;
20997 wxDC *arg1 = (wxDC *) 0 ;
20998 void *argp1 = 0 ;
20999 int res1 = 0 ;
21000 PyObject *swig_obj[1] ;
21001
21002 if (!args) SWIG_fail;
21003 swig_obj[0] = args;
21004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21005 if (!SWIG_IsOK(res1)) {
21006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
21007 }
21008 arg1 = reinterpret_cast< wxDC * >(argp1);
21009 {
21010 PyThreadState* __tstate = wxPyBeginAllowThreads();
21011 (arg1)->EndPage();
21012 wxPyEndAllowThreads(__tstate);
21013 if (PyErr_Occurred()) SWIG_fail;
21014 }
21015 resultobj = SWIG_Py_Void();
21016 return resultobj;
21017fail:
21018 return NULL;
21019}
21020
21021
21022SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21023 PyObject *resultobj = 0;
21024 wxDC *arg1 = (wxDC *) 0 ;
21025 wxFont *arg2 = 0 ;
21026 void *argp1 = 0 ;
21027 int res1 = 0 ;
21028 void *argp2 = 0 ;
21029 int res2 = 0 ;
21030 PyObject * obj0 = 0 ;
21031 PyObject * obj1 = 0 ;
21032 char * kwnames[] = {
21033 (char *) "self",(char *) "font", NULL
21034 };
21035
21036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
21037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21038 if (!SWIG_IsOK(res1)) {
21039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
21040 }
21041 arg1 = reinterpret_cast< wxDC * >(argp1);
21042 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
21043 if (!SWIG_IsOK(res2)) {
21044 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21045 }
21046 if (!argp2) {
21047 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21048 }
21049 arg2 = reinterpret_cast< wxFont * >(argp2);
21050 {
21051 PyThreadState* __tstate = wxPyBeginAllowThreads();
21052 (arg1)->SetFont((wxFont const &)*arg2);
21053 wxPyEndAllowThreads(__tstate);
21054 if (PyErr_Occurred()) SWIG_fail;
21055 }
21056 resultobj = SWIG_Py_Void();
21057 return resultobj;
21058fail:
21059 return NULL;
21060}
21061
21062
21063SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21064 PyObject *resultobj = 0;
21065 wxDC *arg1 = (wxDC *) 0 ;
21066 wxPen *arg2 = 0 ;
21067 void *argp1 = 0 ;
21068 int res1 = 0 ;
21069 void *argp2 = 0 ;
21070 int res2 = 0 ;
21071 PyObject * obj0 = 0 ;
21072 PyObject * obj1 = 0 ;
21073 char * kwnames[] = {
21074 (char *) "self",(char *) "pen", NULL
21075 };
21076
21077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
21078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21079 if (!SWIG_IsOK(res1)) {
21080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
21081 }
21082 arg1 = reinterpret_cast< wxDC * >(argp1);
21083 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
21084 if (!SWIG_IsOK(res2)) {
21085 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21086 }
21087 if (!argp2) {
21088 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21089 }
21090 arg2 = reinterpret_cast< wxPen * >(argp2);
21091 {
21092 PyThreadState* __tstate = wxPyBeginAllowThreads();
21093 (arg1)->SetPen((wxPen const &)*arg2);
21094 wxPyEndAllowThreads(__tstate);
21095 if (PyErr_Occurred()) SWIG_fail;
21096 }
21097 resultobj = SWIG_Py_Void();
21098 return resultobj;
21099fail:
21100 return NULL;
21101}
21102
21103
21104SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21105 PyObject *resultobj = 0;
21106 wxDC *arg1 = (wxDC *) 0 ;
21107 wxBrush *arg2 = 0 ;
21108 void *argp1 = 0 ;
21109 int res1 = 0 ;
21110 void *argp2 = 0 ;
21111 int res2 = 0 ;
21112 PyObject * obj0 = 0 ;
21113 PyObject * obj1 = 0 ;
21114 char * kwnames[] = {
21115 (char *) "self",(char *) "brush", NULL
21116 };
21117
21118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
21119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21120 if (!SWIG_IsOK(res1)) {
21121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
21122 }
21123 arg1 = reinterpret_cast< wxDC * >(argp1);
21124 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21125 if (!SWIG_IsOK(res2)) {
21126 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21127 }
21128 if (!argp2) {
21129 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21130 }
21131 arg2 = reinterpret_cast< wxBrush * >(argp2);
21132 {
21133 PyThreadState* __tstate = wxPyBeginAllowThreads();
21134 (arg1)->SetBrush((wxBrush const &)*arg2);
21135 wxPyEndAllowThreads(__tstate);
21136 if (PyErr_Occurred()) SWIG_fail;
21137 }
21138 resultobj = SWIG_Py_Void();
21139 return resultobj;
21140fail:
21141 return NULL;
21142}
21143
21144
21145SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21146 PyObject *resultobj = 0;
21147 wxDC *arg1 = (wxDC *) 0 ;
21148 wxBrush *arg2 = 0 ;
21149 void *argp1 = 0 ;
21150 int res1 = 0 ;
21151 void *argp2 = 0 ;
21152 int res2 = 0 ;
21153 PyObject * obj0 = 0 ;
21154 PyObject * obj1 = 0 ;
21155 char * kwnames[] = {
21156 (char *) "self",(char *) "brush", NULL
21157 };
21158
21159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21161 if (!SWIG_IsOK(res1)) {
21162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21163 }
21164 arg1 = reinterpret_cast< wxDC * >(argp1);
21165 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21166 if (!SWIG_IsOK(res2)) {
21167 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21168 }
21169 if (!argp2) {
21170 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21171 }
21172 arg2 = reinterpret_cast< wxBrush * >(argp2);
21173 {
21174 PyThreadState* __tstate = wxPyBeginAllowThreads();
21175 (arg1)->SetBackground((wxBrush const &)*arg2);
21176 wxPyEndAllowThreads(__tstate);
21177 if (PyErr_Occurred()) SWIG_fail;
21178 }
21179 resultobj = SWIG_Py_Void();
21180 return resultobj;
21181fail:
21182 return NULL;
21183}
21184
21185
21186SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21187 PyObject *resultobj = 0;
21188 wxDC *arg1 = (wxDC *) 0 ;
21189 int arg2 ;
21190 void *argp1 = 0 ;
21191 int res1 = 0 ;
21192 int val2 ;
21193 int ecode2 = 0 ;
21194 PyObject * obj0 = 0 ;
21195 PyObject * obj1 = 0 ;
21196 char * kwnames[] = {
21197 (char *) "self",(char *) "mode", NULL
21198 };
21199
21200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21202 if (!SWIG_IsOK(res1)) {
21203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21204 }
21205 arg1 = reinterpret_cast< wxDC * >(argp1);
21206 ecode2 = SWIG_AsVal_int(obj1, &val2);
21207 if (!SWIG_IsOK(ecode2)) {
21208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21209 }
21210 arg2 = static_cast< int >(val2);
21211 {
21212 PyThreadState* __tstate = wxPyBeginAllowThreads();
21213 (arg1)->SetBackgroundMode(arg2);
21214 wxPyEndAllowThreads(__tstate);
21215 if (PyErr_Occurred()) SWIG_fail;
21216 }
21217 resultobj = SWIG_Py_Void();
21218 return resultobj;
21219fail:
21220 return NULL;
21221}
21222
21223
21224SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21225 PyObject *resultobj = 0;
21226 wxDC *arg1 = (wxDC *) 0 ;
21227 wxPalette *arg2 = 0 ;
21228 void *argp1 = 0 ;
21229 int res1 = 0 ;
21230 void *argp2 = 0 ;
21231 int res2 = 0 ;
21232 PyObject * obj0 = 0 ;
21233 PyObject * obj1 = 0 ;
21234 char * kwnames[] = {
21235 (char *) "self",(char *) "palette", NULL
21236 };
21237
21238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21240 if (!SWIG_IsOK(res1)) {
21241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21242 }
21243 arg1 = reinterpret_cast< wxDC * >(argp1);
21244 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21245 if (!SWIG_IsOK(res2)) {
21246 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21247 }
21248 if (!argp2) {
21249 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21250 }
21251 arg2 = reinterpret_cast< wxPalette * >(argp2);
21252 {
21253 PyThreadState* __tstate = wxPyBeginAllowThreads();
21254 (arg1)->SetPalette((wxPalette const &)*arg2);
21255 wxPyEndAllowThreads(__tstate);
21256 if (PyErr_Occurred()) SWIG_fail;
21257 }
21258 resultobj = SWIG_Py_Void();
21259 return resultobj;
21260fail:
21261 return NULL;
21262}
21263
21264
21265SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21266 PyObject *resultobj = 0;
21267 wxDC *arg1 = (wxDC *) 0 ;
21268 void *argp1 = 0 ;
21269 int res1 = 0 ;
21270 PyObject *swig_obj[1] ;
21271
21272 if (!args) SWIG_fail;
21273 swig_obj[0] = args;
21274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21275 if (!SWIG_IsOK(res1)) {
21276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21277 }
21278 arg1 = reinterpret_cast< wxDC * >(argp1);
21279 {
21280 PyThreadState* __tstate = wxPyBeginAllowThreads();
21281 (arg1)->DestroyClippingRegion();
21282 wxPyEndAllowThreads(__tstate);
21283 if (PyErr_Occurred()) SWIG_fail;
21284 }
21285 resultobj = SWIG_Py_Void();
21286 return resultobj;
21287fail:
21288 return NULL;
21289}
21290
21291
21292SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21293 PyObject *resultobj = 0;
21294 wxDC *arg1 = (wxDC *) 0 ;
21295 int *arg2 = (int *) 0 ;
21296 int *arg3 = (int *) 0 ;
21297 int *arg4 = (int *) 0 ;
21298 int *arg5 = (int *) 0 ;
21299 void *argp1 = 0 ;
21300 int res1 = 0 ;
21301 int temp2 ;
21302 int res2 = SWIG_TMPOBJ ;
21303 int temp3 ;
21304 int res3 = SWIG_TMPOBJ ;
21305 int temp4 ;
21306 int res4 = SWIG_TMPOBJ ;
21307 int temp5 ;
21308 int res5 = SWIG_TMPOBJ ;
21309 PyObject *swig_obj[1] ;
21310
21311 arg2 = &temp2;
21312 arg3 = &temp3;
21313 arg4 = &temp4;
21314 arg5 = &temp5;
21315 if (!args) SWIG_fail;
21316 swig_obj[0] = args;
21317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21318 if (!SWIG_IsOK(res1)) {
21319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21320 }
21321 arg1 = reinterpret_cast< wxDC * >(argp1);
21322 {
21323 PyThreadState* __tstate = wxPyBeginAllowThreads();
21324 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21325 wxPyEndAllowThreads(__tstate);
21326 if (PyErr_Occurred()) SWIG_fail;
21327 }
21328 resultobj = SWIG_Py_Void();
21329 if (SWIG_IsTmpObj(res2)) {
21330 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21331 } else {
21332 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21333 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21334 }
21335 if (SWIG_IsTmpObj(res3)) {
21336 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21337 } else {
21338 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21339 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21340 }
21341 if (SWIG_IsTmpObj(res4)) {
21342 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21343 } else {
21344 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21345 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21346 }
21347 if (SWIG_IsTmpObj(res5)) {
21348 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21349 } else {
21350 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21351 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21352 }
21353 return resultobj;
21354fail:
21355 return NULL;
21356}
21357
21358
21359SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21360 PyObject *resultobj = 0;
21361 wxDC *arg1 = (wxDC *) 0 ;
21362 wxRect result;
21363 void *argp1 = 0 ;
21364 int res1 = 0 ;
21365 PyObject *swig_obj[1] ;
21366
21367 if (!args) SWIG_fail;
21368 swig_obj[0] = args;
21369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21370 if (!SWIG_IsOK(res1)) {
21371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21372 }
21373 arg1 = reinterpret_cast< wxDC * >(argp1);
21374 {
21375 PyThreadState* __tstate = wxPyBeginAllowThreads();
21376 result = wxDC_GetClippingRect(arg1);
21377 wxPyEndAllowThreads(__tstate);
21378 if (PyErr_Occurred()) SWIG_fail;
21379 }
21380 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21381 return resultobj;
21382fail:
21383 return NULL;
21384}
21385
21386
21387SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21388 PyObject *resultobj = 0;
21389 wxDC *arg1 = (wxDC *) 0 ;
21390 int result;
21391 void *argp1 = 0 ;
21392 int res1 = 0 ;
21393 PyObject *swig_obj[1] ;
21394
21395 if (!args) SWIG_fail;
21396 swig_obj[0] = args;
21397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21398 if (!SWIG_IsOK(res1)) {
21399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21400 }
21401 arg1 = reinterpret_cast< wxDC * >(argp1);
21402 {
21403 PyThreadState* __tstate = wxPyBeginAllowThreads();
21404 result = (int)((wxDC const *)arg1)->GetCharHeight();
21405 wxPyEndAllowThreads(__tstate);
21406 if (PyErr_Occurred()) SWIG_fail;
21407 }
21408 resultobj = SWIG_From_int(static_cast< int >(result));
21409 return resultobj;
21410fail:
21411 return NULL;
21412}
21413
21414
21415SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21416 PyObject *resultobj = 0;
21417 wxDC *arg1 = (wxDC *) 0 ;
21418 int result;
21419 void *argp1 = 0 ;
21420 int res1 = 0 ;
21421 PyObject *swig_obj[1] ;
21422
21423 if (!args) SWIG_fail;
21424 swig_obj[0] = args;
21425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21426 if (!SWIG_IsOK(res1)) {
21427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21428 }
21429 arg1 = reinterpret_cast< wxDC * >(argp1);
21430 {
21431 PyThreadState* __tstate = wxPyBeginAllowThreads();
21432 result = (int)((wxDC const *)arg1)->GetCharWidth();
21433 wxPyEndAllowThreads(__tstate);
21434 if (PyErr_Occurred()) SWIG_fail;
21435 }
21436 resultobj = SWIG_From_int(static_cast< int >(result));
21437 return resultobj;
21438fail:
21439 return NULL;
21440}
21441
21442
21443SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21444 PyObject *resultobj = 0;
21445 wxDC *arg1 = (wxDC *) 0 ;
21446 wxString *arg2 = 0 ;
21447 int *arg3 = (int *) 0 ;
21448 int *arg4 = (int *) 0 ;
21449 void *argp1 = 0 ;
21450 int res1 = 0 ;
21451 bool temp2 = false ;
21452 int temp3 ;
21453 int res3 = SWIG_TMPOBJ ;
21454 int temp4 ;
21455 int res4 = SWIG_TMPOBJ ;
21456 PyObject * obj0 = 0 ;
21457 PyObject * obj1 = 0 ;
21458 char * kwnames[] = {
21459 (char *) "self",(char *) "string", NULL
21460 };
21461
21462 arg3 = &temp3;
21463 arg4 = &temp4;
21464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21466 if (!SWIG_IsOK(res1)) {
21467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21468 }
21469 arg1 = reinterpret_cast< wxDC * >(argp1);
21470 {
21471 arg2 = wxString_in_helper(obj1);
21472 if (arg2 == NULL) SWIG_fail;
21473 temp2 = true;
21474 }
21475 {
21476 PyThreadState* __tstate = wxPyBeginAllowThreads();
21477 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21478 wxPyEndAllowThreads(__tstate);
21479 if (PyErr_Occurred()) SWIG_fail;
21480 }
21481 resultobj = SWIG_Py_Void();
21482 if (SWIG_IsTmpObj(res3)) {
21483 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21484 } else {
21485 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21486 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21487 }
21488 if (SWIG_IsTmpObj(res4)) {
21489 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21490 } else {
21491 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21492 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21493 }
21494 {
21495 if (temp2)
21496 delete arg2;
21497 }
21498 return resultobj;
21499fail:
21500 {
21501 if (temp2)
21502 delete arg2;
21503 }
21504 return NULL;
21505}
21506
21507
21508SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21509 PyObject *resultobj = 0;
21510 wxDC *arg1 = (wxDC *) 0 ;
21511 wxString *arg2 = 0 ;
21512 int *arg3 = (int *) 0 ;
21513 int *arg4 = (int *) 0 ;
21514 int *arg5 = (int *) 0 ;
21515 int *arg6 = (int *) 0 ;
21516 wxFont *arg7 = (wxFont *) NULL ;
21517 void *argp1 = 0 ;
21518 int res1 = 0 ;
21519 bool temp2 = false ;
21520 int temp3 ;
21521 int res3 = SWIG_TMPOBJ ;
21522 int temp4 ;
21523 int res4 = SWIG_TMPOBJ ;
21524 int temp5 ;
21525 int res5 = SWIG_TMPOBJ ;
21526 int temp6 ;
21527 int res6 = SWIG_TMPOBJ ;
21528 void *argp7 = 0 ;
21529 int res7 = 0 ;
21530 PyObject * obj0 = 0 ;
21531 PyObject * obj1 = 0 ;
21532 PyObject * obj2 = 0 ;
21533 char * kwnames[] = {
21534 (char *) "self",(char *) "string",(char *) "font", NULL
21535 };
21536
21537 arg3 = &temp3;
21538 arg4 = &temp4;
21539 arg5 = &temp5;
21540 arg6 = &temp6;
21541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21543 if (!SWIG_IsOK(res1)) {
21544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21545 }
21546 arg1 = reinterpret_cast< wxDC * >(argp1);
21547 {
21548 arg2 = wxString_in_helper(obj1);
21549 if (arg2 == NULL) SWIG_fail;
21550 temp2 = true;
21551 }
21552 if (obj2) {
21553 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21554 if (!SWIG_IsOK(res7)) {
21555 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
093d3ff1 21556 }
554f62e9
RD
21557 arg7 = reinterpret_cast< wxFont * >(argp7);
21558 }
21559 {
21560 PyThreadState* __tstate = wxPyBeginAllowThreads();
21561 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21562 wxPyEndAllowThreads(__tstate);
21563 if (PyErr_Occurred()) SWIG_fail;
21564 }
21565 resultobj = SWIG_Py_Void();
21566 if (SWIG_IsTmpObj(res3)) {
21567 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21568 } else {
21569 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21570 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21571 }
21572 if (SWIG_IsTmpObj(res4)) {
21573 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21574 } else {
21575 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21576 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21577 }
21578 if (SWIG_IsTmpObj(res5)) {
21579 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21580 } else {
21581 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21582 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21583 }
21584 if (SWIG_IsTmpObj(res6)) {
21585 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21586 } else {
21587 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21588 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21589 }
21590 {
21591 if (temp2)
21592 delete arg2;
21593 }
21594 return resultobj;
21595fail:
21596 {
21597 if (temp2)
21598 delete arg2;
21599 }
21600 return NULL;
21601}
21602
21603
21604SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21605 PyObject *resultobj = 0;
21606 wxDC *arg1 = (wxDC *) 0 ;
21607 wxString *arg2 = 0 ;
21608 int *arg3 = (int *) 0 ;
21609 int *arg4 = (int *) 0 ;
21610 int *arg5 = (int *) 0 ;
21611 wxFont *arg6 = (wxFont *) NULL ;
21612 void *argp1 = 0 ;
21613 int res1 = 0 ;
21614 bool temp2 = false ;
21615 int temp3 ;
21616 int res3 = SWIG_TMPOBJ ;
21617 int temp4 ;
21618 int res4 = SWIG_TMPOBJ ;
21619 int temp5 ;
21620 int res5 = SWIG_TMPOBJ ;
21621 void *argp6 = 0 ;
21622 int res6 = 0 ;
21623 PyObject * obj0 = 0 ;
21624 PyObject * obj1 = 0 ;
21625 PyObject * obj2 = 0 ;
21626 char * kwnames[] = {
21627 (char *) "self",(char *) "text",(char *) "font", NULL
21628 };
21629
21630 arg3 = &temp3;
21631 arg4 = &temp4;
21632 arg5 = &temp5;
21633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21635 if (!SWIG_IsOK(res1)) {
21636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21637 }
21638 arg1 = reinterpret_cast< wxDC * >(argp1);
21639 {
21640 arg2 = wxString_in_helper(obj1);
21641 if (arg2 == NULL) SWIG_fail;
21642 temp2 = true;
21643 }
21644 if (obj2) {
21645 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21646 if (!SWIG_IsOK(res6)) {
21647 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
093d3ff1 21648 }
554f62e9
RD
21649 arg6 = reinterpret_cast< wxFont * >(argp6);
21650 }
21651 {
21652 PyThreadState* __tstate = wxPyBeginAllowThreads();
21653 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21654 wxPyEndAllowThreads(__tstate);
21655 if (PyErr_Occurred()) SWIG_fail;
21656 }
21657 resultobj = SWIG_Py_Void();
21658 if (SWIG_IsTmpObj(res3)) {
21659 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21660 } else {
21661 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21662 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21663 }
21664 if (SWIG_IsTmpObj(res4)) {
21665 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21666 } else {
21667 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21668 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21669 }
21670 if (SWIG_IsTmpObj(res5)) {
21671 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21672 } else {
21673 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21674 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21675 }
21676 {
21677 if (temp2)
21678 delete arg2;
21679 }
21680 return resultobj;
21681fail:
21682 {
21683 if (temp2)
21684 delete arg2;
21685 }
21686 return NULL;
21687}
21688
21689
21690SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21691 PyObject *resultobj = 0;
21692 wxDC *arg1 = (wxDC *) 0 ;
21693 wxString *arg2 = 0 ;
21694 wxArrayInt result;
21695 void *argp1 = 0 ;
21696 int res1 = 0 ;
21697 bool temp2 = false ;
21698 PyObject * obj0 = 0 ;
21699 PyObject * obj1 = 0 ;
21700 char * kwnames[] = {
21701 (char *) "self",(char *) "text", NULL
21702 };
21703
21704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21706 if (!SWIG_IsOK(res1)) {
21707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21708 }
21709 arg1 = reinterpret_cast< wxDC * >(argp1);
21710 {
21711 arg2 = wxString_in_helper(obj1);
21712 if (arg2 == NULL) SWIG_fail;
21713 temp2 = true;
21714 }
21715 {
21716 PyThreadState* __tstate = wxPyBeginAllowThreads();
21717 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21718 wxPyEndAllowThreads(__tstate);
21719 if (PyErr_Occurred()) SWIG_fail;
21720 }
21721 {
b39fe951 21722 resultobj = wxArrayInt2PyList_helper(result);
554f62e9
RD
21723 }
21724 {
21725 if (temp2)
21726 delete arg2;
21727 }
21728 return resultobj;
21729fail:
21730 {
21731 if (temp2)
21732 delete arg2;
21733 }
21734 return NULL;
21735}
21736
21737
21738SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21739 PyObject *resultobj = 0;
21740 wxDC *arg1 = (wxDC *) 0 ;
21741 wxSize result;
21742 void *argp1 = 0 ;
21743 int res1 = 0 ;
21744 PyObject *swig_obj[1] ;
21745
21746 if (!args) SWIG_fail;
21747 swig_obj[0] = args;
21748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21749 if (!SWIG_IsOK(res1)) {
21750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21751 }
21752 arg1 = reinterpret_cast< wxDC * >(argp1);
21753 {
21754 PyThreadState* __tstate = wxPyBeginAllowThreads();
21755 result = (arg1)->GetSize();
21756 wxPyEndAllowThreads(__tstate);
21757 if (PyErr_Occurred()) SWIG_fail;
21758 }
21759 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21760 return resultobj;
21761fail:
21762 return NULL;
21763}
21764
21765
21766SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21767 PyObject *resultobj = 0;
21768 wxDC *arg1 = (wxDC *) 0 ;
21769 int *arg2 = (int *) 0 ;
21770 int *arg3 = (int *) 0 ;
21771 void *argp1 = 0 ;
21772 int res1 = 0 ;
21773 int temp2 ;
21774 int res2 = SWIG_TMPOBJ ;
21775 int temp3 ;
21776 int res3 = SWIG_TMPOBJ ;
21777 PyObject *swig_obj[1] ;
21778
21779 arg2 = &temp2;
21780 arg3 = &temp3;
21781 if (!args) SWIG_fail;
21782 swig_obj[0] = args;
21783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21784 if (!SWIG_IsOK(res1)) {
21785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21786 }
21787 arg1 = reinterpret_cast< wxDC * >(argp1);
21788 {
21789 PyThreadState* __tstate = wxPyBeginAllowThreads();
21790 (arg1)->GetSize(arg2,arg3);
21791 wxPyEndAllowThreads(__tstate);
21792 if (PyErr_Occurred()) SWIG_fail;
21793 }
21794 resultobj = SWIG_Py_Void();
21795 if (SWIG_IsTmpObj(res2)) {
21796 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21797 } else {
21798 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21799 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21800 }
21801 if (SWIG_IsTmpObj(res3)) {
21802 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21803 } else {
21804 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21805 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21806 }
21807 return resultobj;
21808fail:
21809 return NULL;
21810}
21811
21812
21813SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21814 PyObject *resultobj = 0;
21815 wxDC *arg1 = (wxDC *) 0 ;
21816 wxSize result;
21817 void *argp1 = 0 ;
21818 int res1 = 0 ;
21819 PyObject *swig_obj[1] ;
21820
21821 if (!args) SWIG_fail;
21822 swig_obj[0] = args;
21823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21824 if (!SWIG_IsOK(res1)) {
21825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21826 }
21827 arg1 = reinterpret_cast< wxDC * >(argp1);
21828 {
21829 PyThreadState* __tstate = wxPyBeginAllowThreads();
21830 result = ((wxDC const *)arg1)->GetSizeMM();
21831 wxPyEndAllowThreads(__tstate);
21832 if (PyErr_Occurred()) SWIG_fail;
21833 }
21834 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21835 return resultobj;
21836fail:
21837 return NULL;
21838}
21839
21840
21841SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21842 PyObject *resultobj = 0;
21843 wxDC *arg1 = (wxDC *) 0 ;
21844 int *arg2 = (int *) 0 ;
21845 int *arg3 = (int *) 0 ;
21846 void *argp1 = 0 ;
21847 int res1 = 0 ;
21848 int temp2 ;
21849 int res2 = SWIG_TMPOBJ ;
21850 int temp3 ;
21851 int res3 = SWIG_TMPOBJ ;
21852 PyObject *swig_obj[1] ;
21853
21854 arg2 = &temp2;
21855 arg3 = &temp3;
21856 if (!args) SWIG_fail;
21857 swig_obj[0] = args;
21858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21859 if (!SWIG_IsOK(res1)) {
21860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21861 }
21862 arg1 = reinterpret_cast< wxDC * >(argp1);
21863 {
21864 PyThreadState* __tstate = wxPyBeginAllowThreads();
21865 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21866 wxPyEndAllowThreads(__tstate);
21867 if (PyErr_Occurred()) SWIG_fail;
21868 }
21869 resultobj = SWIG_Py_Void();
21870 if (SWIG_IsTmpObj(res2)) {
21871 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21872 } else {
21873 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21874 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21875 }
21876 if (SWIG_IsTmpObj(res3)) {
21877 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21878 } else {
21879 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21880 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21881 }
21882 return resultobj;
21883fail:
21884 return NULL;
21885}
21886
21887
21888SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21889 PyObject *resultobj = 0;
21890 wxDC *arg1 = (wxDC *) 0 ;
21891 int arg2 ;
21892 int result;
21893 void *argp1 = 0 ;
21894 int res1 = 0 ;
21895 int val2 ;
21896 int ecode2 = 0 ;
21897 PyObject * obj0 = 0 ;
21898 PyObject * obj1 = 0 ;
21899 char * kwnames[] = {
21900 (char *) "self",(char *) "x", NULL
21901 };
21902
21903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21905 if (!SWIG_IsOK(res1)) {
21906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21907 }
21908 arg1 = reinterpret_cast< wxDC * >(argp1);
21909 ecode2 = SWIG_AsVal_int(obj1, &val2);
21910 if (!SWIG_IsOK(ecode2)) {
21911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21912 }
21913 arg2 = static_cast< int >(val2);
21914 {
21915 PyThreadState* __tstate = wxPyBeginAllowThreads();
21916 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21917 wxPyEndAllowThreads(__tstate);
21918 if (PyErr_Occurred()) SWIG_fail;
21919 }
21920 resultobj = SWIG_From_int(static_cast< int >(result));
21921 return resultobj;
21922fail:
21923 return NULL;
21924}
21925
21926
21927SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21928 PyObject *resultobj = 0;
21929 wxDC *arg1 = (wxDC *) 0 ;
21930 int arg2 ;
21931 int result;
21932 void *argp1 = 0 ;
21933 int res1 = 0 ;
21934 int val2 ;
21935 int ecode2 = 0 ;
21936 PyObject * obj0 = 0 ;
21937 PyObject * obj1 = 0 ;
21938 char * kwnames[] = {
21939 (char *) "self",(char *) "y", NULL
21940 };
21941
21942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21944 if (!SWIG_IsOK(res1)) {
21945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21946 }
21947 arg1 = reinterpret_cast< wxDC * >(argp1);
21948 ecode2 = SWIG_AsVal_int(obj1, &val2);
21949 if (!SWIG_IsOK(ecode2)) {
21950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21951 }
21952 arg2 = static_cast< int >(val2);
21953 {
21954 PyThreadState* __tstate = wxPyBeginAllowThreads();
21955 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21956 wxPyEndAllowThreads(__tstate);
21957 if (PyErr_Occurred()) SWIG_fail;
21958 }
21959 resultobj = SWIG_From_int(static_cast< int >(result));
21960 return resultobj;
21961fail:
21962 return NULL;
21963}
21964
21965
21966SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21967 PyObject *resultobj = 0;
21968 wxDC *arg1 = (wxDC *) 0 ;
21969 int arg2 ;
21970 int result;
21971 void *argp1 = 0 ;
21972 int res1 = 0 ;
21973 int val2 ;
21974 int ecode2 = 0 ;
21975 PyObject * obj0 = 0 ;
21976 PyObject * obj1 = 0 ;
21977 char * kwnames[] = {
21978 (char *) "self",(char *) "x", NULL
21979 };
21980
21981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21983 if (!SWIG_IsOK(res1)) {
21984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21985 }
21986 arg1 = reinterpret_cast< wxDC * >(argp1);
21987 ecode2 = SWIG_AsVal_int(obj1, &val2);
21988 if (!SWIG_IsOK(ecode2)) {
21989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21990 }
21991 arg2 = static_cast< int >(val2);
21992 {
21993 PyThreadState* __tstate = wxPyBeginAllowThreads();
21994 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21995 wxPyEndAllowThreads(__tstate);
21996 if (PyErr_Occurred()) SWIG_fail;
21997 }
21998 resultobj = SWIG_From_int(static_cast< int >(result));
21999 return resultobj;
22000fail:
22001 return NULL;
22002}
22003
22004
22005SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22006 PyObject *resultobj = 0;
22007 wxDC *arg1 = (wxDC *) 0 ;
22008 int arg2 ;
22009 int result;
22010 void *argp1 = 0 ;
22011 int res1 = 0 ;
22012 int val2 ;
22013 int ecode2 = 0 ;
22014 PyObject * obj0 = 0 ;
22015 PyObject * obj1 = 0 ;
22016 char * kwnames[] = {
22017 (char *) "self",(char *) "y", NULL
22018 };
22019
22020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22022 if (!SWIG_IsOK(res1)) {
22023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22024 }
22025 arg1 = reinterpret_cast< wxDC * >(argp1);
22026 ecode2 = SWIG_AsVal_int(obj1, &val2);
22027 if (!SWIG_IsOK(ecode2)) {
22028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
22029 }
22030 arg2 = static_cast< int >(val2);
22031 {
22032 PyThreadState* __tstate = wxPyBeginAllowThreads();
22033 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
22034 wxPyEndAllowThreads(__tstate);
22035 if (PyErr_Occurred()) SWIG_fail;
22036 }
22037 resultobj = SWIG_From_int(static_cast< int >(result));
22038 return resultobj;
22039fail:
22040 return NULL;
22041}
22042
22043
22044SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22045 PyObject *resultobj = 0;
22046 wxDC *arg1 = (wxDC *) 0 ;
22047 int arg2 ;
22048 int result;
22049 void *argp1 = 0 ;
22050 int res1 = 0 ;
22051 int val2 ;
22052 int ecode2 = 0 ;
22053 PyObject * obj0 = 0 ;
22054 PyObject * obj1 = 0 ;
22055 char * kwnames[] = {
22056 (char *) "self",(char *) "x", NULL
22057 };
22058
22059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
22060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22061 if (!SWIG_IsOK(res1)) {
22062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
22063 }
22064 arg1 = reinterpret_cast< wxDC * >(argp1);
22065 ecode2 = SWIG_AsVal_int(obj1, &val2);
22066 if (!SWIG_IsOK(ecode2)) {
22067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
22068 }
22069 arg2 = static_cast< int >(val2);
22070 {
22071 PyThreadState* __tstate = wxPyBeginAllowThreads();
22072 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
22073 wxPyEndAllowThreads(__tstate);
22074 if (PyErr_Occurred()) SWIG_fail;
22075 }
22076 resultobj = SWIG_From_int(static_cast< int >(result));
22077 return resultobj;
22078fail:
22079 return NULL;
22080}
22081
22082
22083SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22084 PyObject *resultobj = 0;
22085 wxDC *arg1 = (wxDC *) 0 ;
22086 int arg2 ;
22087 int result;
22088 void *argp1 = 0 ;
22089 int res1 = 0 ;
22090 int val2 ;
22091 int ecode2 = 0 ;
22092 PyObject * obj0 = 0 ;
22093 PyObject * obj1 = 0 ;
22094 char * kwnames[] = {
22095 (char *) "self",(char *) "y", NULL
22096 };
22097
22098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
22099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22100 if (!SWIG_IsOK(res1)) {
22101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
22102 }
22103 arg1 = reinterpret_cast< wxDC * >(argp1);
22104 ecode2 = SWIG_AsVal_int(obj1, &val2);
22105 if (!SWIG_IsOK(ecode2)) {
22106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
22107 }
22108 arg2 = static_cast< int >(val2);
22109 {
22110 PyThreadState* __tstate = wxPyBeginAllowThreads();
22111 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
22112 wxPyEndAllowThreads(__tstate);
22113 if (PyErr_Occurred()) SWIG_fail;
22114 }
22115 resultobj = SWIG_From_int(static_cast< int >(result));
22116 return resultobj;
22117fail:
22118 return NULL;
22119}
22120
22121
22122SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22123 PyObject *resultobj = 0;
22124 wxDC *arg1 = (wxDC *) 0 ;
22125 int arg2 ;
22126 int result;
22127 void *argp1 = 0 ;
22128 int res1 = 0 ;
22129 int val2 ;
22130 int ecode2 = 0 ;
22131 PyObject * obj0 = 0 ;
22132 PyObject * obj1 = 0 ;
22133 char * kwnames[] = {
22134 (char *) "self",(char *) "x", NULL
22135 };
22136
22137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22139 if (!SWIG_IsOK(res1)) {
22140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22141 }
22142 arg1 = reinterpret_cast< wxDC * >(argp1);
22143 ecode2 = SWIG_AsVal_int(obj1, &val2);
22144 if (!SWIG_IsOK(ecode2)) {
22145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
22146 }
22147 arg2 = static_cast< int >(val2);
22148 {
22149 PyThreadState* __tstate = wxPyBeginAllowThreads();
22150 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
22151 wxPyEndAllowThreads(__tstate);
22152 if (PyErr_Occurred()) SWIG_fail;
22153 }
22154 resultobj = SWIG_From_int(static_cast< int >(result));
22155 return resultobj;
22156fail:
22157 return NULL;
22158}
22159
22160
22161SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22162 PyObject *resultobj = 0;
22163 wxDC *arg1 = (wxDC *) 0 ;
22164 int arg2 ;
22165 int result;
22166 void *argp1 = 0 ;
22167 int res1 = 0 ;
22168 int val2 ;
22169 int ecode2 = 0 ;
22170 PyObject * obj0 = 0 ;
22171 PyObject * obj1 = 0 ;
22172 char * kwnames[] = {
22173 (char *) "self",(char *) "y", NULL
22174 };
22175
22176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22178 if (!SWIG_IsOK(res1)) {
22179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22180 }
22181 arg1 = reinterpret_cast< wxDC * >(argp1);
22182 ecode2 = SWIG_AsVal_int(obj1, &val2);
22183 if (!SWIG_IsOK(ecode2)) {
22184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
22185 }
22186 arg2 = static_cast< int >(val2);
22187 {
22188 PyThreadState* __tstate = wxPyBeginAllowThreads();
22189 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
22190 wxPyEndAllowThreads(__tstate);
22191 if (PyErr_Occurred()) SWIG_fail;
22192 }
22193 resultobj = SWIG_From_int(static_cast< int >(result));
22194 return resultobj;
22195fail:
22196 return NULL;
22197}
22198
22199
22200SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22201 PyObject *resultobj = 0;
22202 wxDC *arg1 = (wxDC *) 0 ;
22203 bool result;
22204 void *argp1 = 0 ;
22205 int res1 = 0 ;
22206 PyObject *swig_obj[1] ;
22207
22208 if (!args) SWIG_fail;
22209 swig_obj[0] = args;
22210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22211 if (!SWIG_IsOK(res1)) {
22212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22213 }
22214 arg1 = reinterpret_cast< wxDC * >(argp1);
22215 {
22216 PyThreadState* __tstate = wxPyBeginAllowThreads();
22217 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22218 wxPyEndAllowThreads(__tstate);
22219 if (PyErr_Occurred()) SWIG_fail;
22220 }
22221 {
22222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22223 }
22224 return resultobj;
22225fail:
22226 return NULL;
22227}
22228
22229
22230SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22231 PyObject *resultobj = 0;
22232 wxDC *arg1 = (wxDC *) 0 ;
22233 bool result;
22234 void *argp1 = 0 ;
22235 int res1 = 0 ;
22236 PyObject *swig_obj[1] ;
22237
22238 if (!args) SWIG_fail;
22239 swig_obj[0] = args;
22240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22241 if (!SWIG_IsOK(res1)) {
22242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22243 }
22244 arg1 = reinterpret_cast< wxDC * >(argp1);
22245 {
22246 PyThreadState* __tstate = wxPyBeginAllowThreads();
22247 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22248 wxPyEndAllowThreads(__tstate);
22249 if (PyErr_Occurred()) SWIG_fail;
22250 }
22251 {
22252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22253 }
22254 return resultobj;
22255fail:
22256 return NULL;
22257}
22258
22259
22260SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22261 PyObject *resultobj = 0;
22262 wxDC *arg1 = (wxDC *) 0 ;
22263 int result;
22264 void *argp1 = 0 ;
22265 int res1 = 0 ;
22266 PyObject *swig_obj[1] ;
22267
22268 if (!args) SWIG_fail;
22269 swig_obj[0] = args;
22270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22271 if (!SWIG_IsOK(res1)) {
22272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22273 }
22274 arg1 = reinterpret_cast< wxDC * >(argp1);
22275 {
22276 PyThreadState* __tstate = wxPyBeginAllowThreads();
22277 result = (int)((wxDC const *)arg1)->GetDepth();
22278 wxPyEndAllowThreads(__tstate);
22279 if (PyErr_Occurred()) SWIG_fail;
22280 }
22281 resultobj = SWIG_From_int(static_cast< int >(result));
22282 return resultobj;
22283fail:
22284 return NULL;
22285}
22286
22287
22288SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22289 PyObject *resultobj = 0;
22290 wxDC *arg1 = (wxDC *) 0 ;
22291 wxSize result;
22292 void *argp1 = 0 ;
22293 int res1 = 0 ;
22294 PyObject *swig_obj[1] ;
22295
22296 if (!args) SWIG_fail;
22297 swig_obj[0] = args;
22298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22299 if (!SWIG_IsOK(res1)) {
22300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22301 }
22302 arg1 = reinterpret_cast< wxDC * >(argp1);
22303 {
22304 PyThreadState* __tstate = wxPyBeginAllowThreads();
22305 result = ((wxDC const *)arg1)->GetPPI();
22306 wxPyEndAllowThreads(__tstate);
22307 if (PyErr_Occurred()) SWIG_fail;
22308 }
22309 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22310 return resultobj;
22311fail:
22312 return NULL;
22313}
22314
22315
b39fe951 22316SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
22317 PyObject *resultobj = 0;
22318 wxDC *arg1 = (wxDC *) 0 ;
22319 bool result;
22320 void *argp1 = 0 ;
22321 int res1 = 0 ;
22322 PyObject *swig_obj[1] ;
22323
22324 if (!args) SWIG_fail;
22325 swig_obj[0] = args;
22326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22327 if (!SWIG_IsOK(res1)) {
b39fe951 22328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
554f62e9
RD
22329 }
22330 arg1 = reinterpret_cast< wxDC * >(argp1);
22331 {
22332 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 22333 result = (bool)((wxDC const *)arg1)->IsOk();
554f62e9
RD
22334 wxPyEndAllowThreads(__tstate);
22335 if (PyErr_Occurred()) SWIG_fail;
22336 }
22337 {
22338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22339 }
22340 return resultobj;
22341fail:
22342 return NULL;
22343}
22344
22345
22346SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22347 PyObject *resultobj = 0;
22348 wxDC *arg1 = (wxDC *) 0 ;
22349 int result;
22350 void *argp1 = 0 ;
22351 int res1 = 0 ;
22352 PyObject *swig_obj[1] ;
22353
22354 if (!args) SWIG_fail;
22355 swig_obj[0] = args;
22356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22357 if (!SWIG_IsOK(res1)) {
22358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22359 }
22360 arg1 = reinterpret_cast< wxDC * >(argp1);
22361 {
22362 PyThreadState* __tstate = wxPyBeginAllowThreads();
22363 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22364 wxPyEndAllowThreads(__tstate);
22365 if (PyErr_Occurred()) SWIG_fail;
22366 }
22367 resultobj = SWIG_From_int(static_cast< int >(result));
22368 return resultobj;
22369fail:
22370 return NULL;
22371}
22372
22373
22374SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22375 PyObject *resultobj = 0;
22376 wxDC *arg1 = (wxDC *) 0 ;
22377 wxBrush *result = 0 ;
22378 void *argp1 = 0 ;
22379 int res1 = 0 ;
22380 PyObject *swig_obj[1] ;
22381
22382 if (!args) SWIG_fail;
22383 swig_obj[0] = args;
22384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22385 if (!SWIG_IsOK(res1)) {
22386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22387 }
22388 arg1 = reinterpret_cast< wxDC * >(argp1);
22389 {
22390 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22391 {
554f62e9
RD
22392 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22393 result = (wxBrush *) &_result_ref;
093d3ff1 22394 }
554f62e9
RD
22395 wxPyEndAllowThreads(__tstate);
22396 if (PyErr_Occurred()) SWIG_fail;
22397 }
22398 {
22399 wxBrush* resultptr = new wxBrush(*result);
22400 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22401 }
22402 return resultobj;
22403fail:
22404 return NULL;
22405}
22406
22407
22408SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22409 PyObject *resultobj = 0;
22410 wxDC *arg1 = (wxDC *) 0 ;
22411 wxBrush *result = 0 ;
22412 void *argp1 = 0 ;
22413 int res1 = 0 ;
22414 PyObject *swig_obj[1] ;
22415
22416 if (!args) SWIG_fail;
22417 swig_obj[0] = args;
22418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22419 if (!SWIG_IsOK(res1)) {
22420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22421 }
22422 arg1 = reinterpret_cast< wxDC * >(argp1);
22423 {
22424 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22425 {
554f62e9
RD
22426 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22427 result = (wxBrush *) &_result_ref;
093d3ff1 22428 }
554f62e9
RD
22429 wxPyEndAllowThreads(__tstate);
22430 if (PyErr_Occurred()) SWIG_fail;
22431 }
22432 {
22433 wxBrush* resultptr = new wxBrush(*result);
22434 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22435 }
22436 return resultobj;
22437fail:
22438 return NULL;
22439}
22440
22441
22442SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22443 PyObject *resultobj = 0;
22444 wxDC *arg1 = (wxDC *) 0 ;
22445 wxFont *result = 0 ;
22446 void *argp1 = 0 ;
22447 int res1 = 0 ;
22448 PyObject *swig_obj[1] ;
22449
22450 if (!args) SWIG_fail;
22451 swig_obj[0] = args;
22452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22453 if (!SWIG_IsOK(res1)) {
22454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22455 }
22456 arg1 = reinterpret_cast< wxDC * >(argp1);
22457 {
22458 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22459 {
554f62e9
RD
22460 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22461 result = (wxFont *) &_result_ref;
093d3ff1 22462 }
554f62e9
RD
22463 wxPyEndAllowThreads(__tstate);
22464 if (PyErr_Occurred()) SWIG_fail;
22465 }
22466 {
22467 wxFont* resultptr = new wxFont(*result);
22468 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22469 }
22470 return resultobj;
22471fail:
22472 return NULL;
22473}
22474
22475
22476SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22477 PyObject *resultobj = 0;
22478 wxDC *arg1 = (wxDC *) 0 ;
22479 wxPen *result = 0 ;
22480 void *argp1 = 0 ;
22481 int res1 = 0 ;
22482 PyObject *swig_obj[1] ;
22483
22484 if (!args) SWIG_fail;
22485 swig_obj[0] = args;
22486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22487 if (!SWIG_IsOK(res1)) {
22488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22489 }
22490 arg1 = reinterpret_cast< wxDC * >(argp1);
22491 {
22492 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22493 {
554f62e9
RD
22494 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22495 result = (wxPen *) &_result_ref;
093d3ff1 22496 }
554f62e9
RD
22497 wxPyEndAllowThreads(__tstate);
22498 if (PyErr_Occurred()) SWIG_fail;
22499 }
22500 {
22501 wxPen* resultptr = new wxPen(*result);
22502 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22503 }
22504 return resultobj;
22505fail:
22506 return NULL;
22507}
22508
22509
22510SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22511 PyObject *resultobj = 0;
22512 wxDC *arg1 = (wxDC *) 0 ;
22513 wxColour *result = 0 ;
22514 void *argp1 = 0 ;
22515 int res1 = 0 ;
22516 PyObject *swig_obj[1] ;
22517
22518 if (!args) SWIG_fail;
22519 swig_obj[0] = args;
22520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22521 if (!SWIG_IsOK(res1)) {
22522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22523 }
22524 arg1 = reinterpret_cast< wxDC * >(argp1);
22525 {
22526 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22527 {
554f62e9
RD
22528 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22529 result = (wxColour *) &_result_ref;
093d3ff1 22530 }
554f62e9
RD
22531 wxPyEndAllowThreads(__tstate);
22532 if (PyErr_Occurred()) SWIG_fail;
22533 }
22534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22535 return resultobj;
22536fail:
22537 return NULL;
22538}
22539
22540
22541SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22542 PyObject *resultobj = 0;
22543 wxDC *arg1 = (wxDC *) 0 ;
22544 wxColour *result = 0 ;
22545 void *argp1 = 0 ;
22546 int res1 = 0 ;
22547 PyObject *swig_obj[1] ;
22548
22549 if (!args) SWIG_fail;
22550 swig_obj[0] = args;
22551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22552 if (!SWIG_IsOK(res1)) {
22553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22554 }
22555 arg1 = reinterpret_cast< wxDC * >(argp1);
22556 {
22557 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22558 {
554f62e9
RD
22559 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22560 result = (wxColour *) &_result_ref;
093d3ff1 22561 }
554f62e9
RD
22562 wxPyEndAllowThreads(__tstate);
22563 if (PyErr_Occurred()) SWIG_fail;
22564 }
22565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22566 return resultobj;
22567fail:
22568 return NULL;
22569}
22570
22571
22572SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22573 PyObject *resultobj = 0;
22574 wxDC *arg1 = (wxDC *) 0 ;
22575 wxColour *arg2 = 0 ;
22576 void *argp1 = 0 ;
22577 int res1 = 0 ;
22578 wxColour temp2 ;
22579 PyObject * obj0 = 0 ;
22580 PyObject * obj1 = 0 ;
22581 char * kwnames[] = {
22582 (char *) "self",(char *) "colour", NULL
22583 };
22584
22585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22587 if (!SWIG_IsOK(res1)) {
22588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22589 }
22590 arg1 = reinterpret_cast< wxDC * >(argp1);
22591 {
22592 arg2 = &temp2;
22593 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22594 }
22595 {
22596 PyThreadState* __tstate = wxPyBeginAllowThreads();
22597 (arg1)->SetTextForeground((wxColour const &)*arg2);
22598 wxPyEndAllowThreads(__tstate);
22599 if (PyErr_Occurred()) SWIG_fail;
22600 }
22601 resultobj = SWIG_Py_Void();
22602 return resultobj;
22603fail:
22604 return NULL;
22605}
22606
22607
22608SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22609 PyObject *resultobj = 0;
22610 wxDC *arg1 = (wxDC *) 0 ;
22611 wxColour *arg2 = 0 ;
22612 void *argp1 = 0 ;
22613 int res1 = 0 ;
22614 wxColour temp2 ;
22615 PyObject * obj0 = 0 ;
22616 PyObject * obj1 = 0 ;
22617 char * kwnames[] = {
22618 (char *) "self",(char *) "colour", NULL
22619 };
22620
22621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) 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_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22625 }
22626 arg1 = reinterpret_cast< wxDC * >(argp1);
22627 {
22628 arg2 = &temp2;
22629 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22630 }
22631 {
22632 PyThreadState* __tstate = wxPyBeginAllowThreads();
22633 (arg1)->SetTextBackground((wxColour const &)*arg2);
22634 wxPyEndAllowThreads(__tstate);
22635 if (PyErr_Occurred()) SWIG_fail;
22636 }
22637 resultobj = SWIG_Py_Void();
22638 return resultobj;
22639fail:
22640 return NULL;
22641}
22642
22643
22644SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22645 PyObject *resultobj = 0;
22646 wxDC *arg1 = (wxDC *) 0 ;
22647 int result;
22648 void *argp1 = 0 ;
22649 int res1 = 0 ;
22650 PyObject *swig_obj[1] ;
22651
22652 if (!args) SWIG_fail;
22653 swig_obj[0] = args;
22654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22655 if (!SWIG_IsOK(res1)) {
22656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22657 }
22658 arg1 = reinterpret_cast< wxDC * >(argp1);
22659 {
22660 PyThreadState* __tstate = wxPyBeginAllowThreads();
22661 result = (int)((wxDC const *)arg1)->GetMapMode();
22662 wxPyEndAllowThreads(__tstate);
22663 if (PyErr_Occurred()) SWIG_fail;
22664 }
22665 resultobj = SWIG_From_int(static_cast< int >(result));
22666 return resultobj;
22667fail:
22668 return NULL;
22669}
22670
22671
22672SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22673 PyObject *resultobj = 0;
22674 wxDC *arg1 = (wxDC *) 0 ;
22675 int arg2 ;
22676 void *argp1 = 0 ;
22677 int res1 = 0 ;
22678 int val2 ;
22679 int ecode2 = 0 ;
22680 PyObject * obj0 = 0 ;
22681 PyObject * obj1 = 0 ;
22682 char * kwnames[] = {
22683 (char *) "self",(char *) "mode", NULL
22684 };
22685
22686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22688 if (!SWIG_IsOK(res1)) {
22689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22690 }
22691 arg1 = reinterpret_cast< wxDC * >(argp1);
22692 ecode2 = SWIG_AsVal_int(obj1, &val2);
22693 if (!SWIG_IsOK(ecode2)) {
22694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22695 }
22696 arg2 = static_cast< int >(val2);
22697 {
22698 PyThreadState* __tstate = wxPyBeginAllowThreads();
22699 (arg1)->SetMapMode(arg2);
22700 wxPyEndAllowThreads(__tstate);
22701 if (PyErr_Occurred()) SWIG_fail;
22702 }
22703 resultobj = SWIG_Py_Void();
22704 return resultobj;
22705fail:
22706 return NULL;
22707}
22708
22709
22710SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22711 PyObject *resultobj = 0;
22712 wxDC *arg1 = (wxDC *) 0 ;
22713 double *arg2 = (double *) 0 ;
22714 double *arg3 = (double *) 0 ;
22715 void *argp1 = 0 ;
22716 int res1 = 0 ;
22717 double temp2 ;
22718 int res2 = SWIG_TMPOBJ ;
22719 double temp3 ;
22720 int res3 = SWIG_TMPOBJ ;
22721 PyObject *swig_obj[1] ;
22722
22723 arg2 = &temp2;
22724 arg3 = &temp3;
22725 if (!args) SWIG_fail;
22726 swig_obj[0] = args;
22727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22728 if (!SWIG_IsOK(res1)) {
22729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22730 }
22731 arg1 = reinterpret_cast< wxDC * >(argp1);
22732 {
22733 PyThreadState* __tstate = wxPyBeginAllowThreads();
22734 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22735 wxPyEndAllowThreads(__tstate);
22736 if (PyErr_Occurred()) SWIG_fail;
22737 }
22738 resultobj = SWIG_Py_Void();
22739 if (SWIG_IsTmpObj(res2)) {
22740 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22741 } else {
22742 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22743 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22744 }
22745 if (SWIG_IsTmpObj(res3)) {
22746 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22747 } else {
22748 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22749 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22750 }
22751 return resultobj;
22752fail:
22753 return NULL;
22754}
22755
22756
22757SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22758 PyObject *resultobj = 0;
22759 wxDC *arg1 = (wxDC *) 0 ;
22760 double arg2 ;
22761 double arg3 ;
22762 void *argp1 = 0 ;
22763 int res1 = 0 ;
22764 double val2 ;
22765 int ecode2 = 0 ;
22766 double val3 ;
22767 int ecode3 = 0 ;
22768 PyObject * obj0 = 0 ;
22769 PyObject * obj1 = 0 ;
22770 PyObject * obj2 = 0 ;
22771 char * kwnames[] = {
22772 (char *) "self",(char *) "x",(char *) "y", NULL
22773 };
22774
22775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22777 if (!SWIG_IsOK(res1)) {
22778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22779 }
22780 arg1 = reinterpret_cast< wxDC * >(argp1);
22781 ecode2 = SWIG_AsVal_double(obj1, &val2);
22782 if (!SWIG_IsOK(ecode2)) {
22783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22784 }
22785 arg2 = static_cast< double >(val2);
22786 ecode3 = SWIG_AsVal_double(obj2, &val3);
22787 if (!SWIG_IsOK(ecode3)) {
22788 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22789 }
22790 arg3 = static_cast< double >(val3);
22791 {
22792 PyThreadState* __tstate = wxPyBeginAllowThreads();
22793 (arg1)->SetUserScale(arg2,arg3);
22794 wxPyEndAllowThreads(__tstate);
22795 if (PyErr_Occurred()) SWIG_fail;
22796 }
22797 resultobj = SWIG_Py_Void();
22798 return resultobj;
22799fail:
22800 return NULL;
22801}
22802
22803
22804SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22805 PyObject *resultobj = 0;
22806 wxDC *arg1 = (wxDC *) 0 ;
22807 double *arg2 = (double *) 0 ;
22808 double *arg3 = (double *) 0 ;
22809 void *argp1 = 0 ;
22810 int res1 = 0 ;
22811 double temp2 ;
22812 int res2 = SWIG_TMPOBJ ;
22813 double temp3 ;
22814 int res3 = SWIG_TMPOBJ ;
22815 PyObject *swig_obj[1] ;
22816
22817 arg2 = &temp2;
22818 arg3 = &temp3;
22819 if (!args) SWIG_fail;
22820 swig_obj[0] = args;
22821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22822 if (!SWIG_IsOK(res1)) {
22823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22824 }
22825 arg1 = reinterpret_cast< wxDC * >(argp1);
22826 {
22827 PyThreadState* __tstate = wxPyBeginAllowThreads();
22828 (arg1)->GetLogicalScale(arg2,arg3);
22829 wxPyEndAllowThreads(__tstate);
22830 if (PyErr_Occurred()) SWIG_fail;
22831 }
22832 resultobj = SWIG_Py_Void();
22833 if (SWIG_IsTmpObj(res2)) {
22834 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22835 } else {
22836 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22837 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22838 }
22839 if (SWIG_IsTmpObj(res3)) {
22840 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22841 } else {
22842 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22843 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22844 }
22845 return resultobj;
22846fail:
22847 return NULL;
22848}
22849
22850
22851SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22852 PyObject *resultobj = 0;
22853 wxDC *arg1 = (wxDC *) 0 ;
22854 double arg2 ;
22855 double arg3 ;
22856 void *argp1 = 0 ;
22857 int res1 = 0 ;
22858 double val2 ;
22859 int ecode2 = 0 ;
22860 double val3 ;
22861 int ecode3 = 0 ;
22862 PyObject * obj0 = 0 ;
22863 PyObject * obj1 = 0 ;
22864 PyObject * obj2 = 0 ;
22865 char * kwnames[] = {
22866 (char *) "self",(char *) "x",(char *) "y", NULL
22867 };
22868
22869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22871 if (!SWIG_IsOK(res1)) {
22872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22873 }
22874 arg1 = reinterpret_cast< wxDC * >(argp1);
22875 ecode2 = SWIG_AsVal_double(obj1, &val2);
22876 if (!SWIG_IsOK(ecode2)) {
22877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22878 }
22879 arg2 = static_cast< double >(val2);
22880 ecode3 = SWIG_AsVal_double(obj2, &val3);
22881 if (!SWIG_IsOK(ecode3)) {
22882 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22883 }
22884 arg3 = static_cast< double >(val3);
22885 {
22886 PyThreadState* __tstate = wxPyBeginAllowThreads();
22887 (arg1)->SetLogicalScale(arg2,arg3);
22888 wxPyEndAllowThreads(__tstate);
22889 if (PyErr_Occurred()) SWIG_fail;
22890 }
22891 resultobj = SWIG_Py_Void();
22892 return resultobj;
22893fail:
22894 return NULL;
22895}
22896
22897
22898SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22899 PyObject *resultobj = 0;
22900 wxDC *arg1 = (wxDC *) 0 ;
22901 wxPoint result;
22902 void *argp1 = 0 ;
22903 int res1 = 0 ;
22904 PyObject *swig_obj[1] ;
22905
22906 if (!args) SWIG_fail;
22907 swig_obj[0] = args;
22908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22909 if (!SWIG_IsOK(res1)) {
22910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22911 }
22912 arg1 = reinterpret_cast< wxDC * >(argp1);
22913 {
22914 PyThreadState* __tstate = wxPyBeginAllowThreads();
22915 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22916 wxPyEndAllowThreads(__tstate);
22917 if (PyErr_Occurred()) SWIG_fail;
22918 }
22919 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22920 return resultobj;
22921fail:
22922 return NULL;
22923}
22924
22925
22926SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22927 PyObject *resultobj = 0;
22928 wxDC *arg1 = (wxDC *) 0 ;
22929 int *arg2 = (int *) 0 ;
22930 int *arg3 = (int *) 0 ;
22931 void *argp1 = 0 ;
22932 int res1 = 0 ;
22933 int temp2 ;
22934 int res2 = SWIG_TMPOBJ ;
22935 int temp3 ;
22936 int res3 = SWIG_TMPOBJ ;
22937 PyObject *swig_obj[1] ;
22938
22939 arg2 = &temp2;
22940 arg3 = &temp3;
22941 if (!args) SWIG_fail;
22942 swig_obj[0] = args;
22943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22944 if (!SWIG_IsOK(res1)) {
22945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22946 }
22947 arg1 = reinterpret_cast< wxDC * >(argp1);
22948 {
22949 PyThreadState* __tstate = wxPyBeginAllowThreads();
22950 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22951 wxPyEndAllowThreads(__tstate);
22952 if (PyErr_Occurred()) SWIG_fail;
22953 }
22954 resultobj = SWIG_Py_Void();
22955 if (SWIG_IsTmpObj(res2)) {
22956 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22957 } else {
22958 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22959 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22960 }
22961 if (SWIG_IsTmpObj(res3)) {
22962 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22963 } else {
22964 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22965 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22966 }
22967 return resultobj;
22968fail:
22969 return NULL;
22970}
22971
22972
22973SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22974 PyObject *resultobj = 0;
22975 wxDC *arg1 = (wxDC *) 0 ;
22976 int arg2 ;
22977 int arg3 ;
22978 void *argp1 = 0 ;
22979 int res1 = 0 ;
22980 int val2 ;
22981 int ecode2 = 0 ;
22982 int val3 ;
22983 int ecode3 = 0 ;
22984 PyObject * obj0 = 0 ;
22985 PyObject * obj1 = 0 ;
22986 PyObject * obj2 = 0 ;
22987 char * kwnames[] = {
22988 (char *) "self",(char *) "x",(char *) "y", NULL
22989 };
22990
22991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22993 if (!SWIG_IsOK(res1)) {
22994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22995 }
22996 arg1 = reinterpret_cast< wxDC * >(argp1);
22997 ecode2 = SWIG_AsVal_int(obj1, &val2);
22998 if (!SWIG_IsOK(ecode2)) {
22999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
23000 }
23001 arg2 = static_cast< int >(val2);
23002 ecode3 = SWIG_AsVal_int(obj2, &val3);
23003 if (!SWIG_IsOK(ecode3)) {
23004 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
23005 }
23006 arg3 = static_cast< int >(val3);
23007 {
23008 PyThreadState* __tstate = wxPyBeginAllowThreads();
23009 (arg1)->SetLogicalOrigin(arg2,arg3);
23010 wxPyEndAllowThreads(__tstate);
23011 if (PyErr_Occurred()) SWIG_fail;
23012 }
23013 resultobj = SWIG_Py_Void();
23014 return resultobj;
23015fail:
23016 return NULL;
23017}
23018
23019
23020SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23021 PyObject *resultobj = 0;
23022 wxDC *arg1 = (wxDC *) 0 ;
23023 wxPoint *arg2 = 0 ;
23024 void *argp1 = 0 ;
23025 int res1 = 0 ;
23026 wxPoint temp2 ;
23027 PyObject * obj0 = 0 ;
23028 PyObject * obj1 = 0 ;
23029 char * kwnames[] = {
23030 (char *) "self",(char *) "point", NULL
23031 };
23032
23033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23035 if (!SWIG_IsOK(res1)) {
23036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23037 }
23038 arg1 = reinterpret_cast< wxDC * >(argp1);
23039 {
23040 arg2 = &temp2;
23041 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23042 }
23043 {
23044 PyThreadState* __tstate = wxPyBeginAllowThreads();
23045 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
23046 wxPyEndAllowThreads(__tstate);
23047 if (PyErr_Occurred()) SWIG_fail;
23048 }
23049 resultobj = SWIG_Py_Void();
23050 return resultobj;
23051fail:
23052 return NULL;
23053}
23054
23055
23056SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23057 PyObject *resultobj = 0;
23058 wxDC *arg1 = (wxDC *) 0 ;
23059 wxPoint result;
23060 void *argp1 = 0 ;
23061 int res1 = 0 ;
23062 PyObject *swig_obj[1] ;
23063
23064 if (!args) SWIG_fail;
23065 swig_obj[0] = args;
23066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23067 if (!SWIG_IsOK(res1)) {
23068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23069 }
23070 arg1 = reinterpret_cast< wxDC * >(argp1);
23071 {
23072 PyThreadState* __tstate = wxPyBeginAllowThreads();
23073 result = ((wxDC const *)arg1)->GetDeviceOrigin();
23074 wxPyEndAllowThreads(__tstate);
23075 if (PyErr_Occurred()) SWIG_fail;
23076 }
23077 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23078 return resultobj;
23079fail:
23080 return NULL;
23081}
23082
23083
23084SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23085 PyObject *resultobj = 0;
23086 wxDC *arg1 = (wxDC *) 0 ;
23087 int *arg2 = (int *) 0 ;
23088 int *arg3 = (int *) 0 ;
23089 void *argp1 = 0 ;
23090 int res1 = 0 ;
23091 int temp2 ;
23092 int res2 = SWIG_TMPOBJ ;
23093 int temp3 ;
23094 int res3 = SWIG_TMPOBJ ;
23095 PyObject *swig_obj[1] ;
23096
23097 arg2 = &temp2;
23098 arg3 = &temp3;
23099 if (!args) SWIG_fail;
23100 swig_obj[0] = args;
23101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23102 if (!SWIG_IsOK(res1)) {
23103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23104 }
23105 arg1 = reinterpret_cast< wxDC * >(argp1);
23106 {
23107 PyThreadState* __tstate = wxPyBeginAllowThreads();
23108 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
23109 wxPyEndAllowThreads(__tstate);
23110 if (PyErr_Occurred()) SWIG_fail;
23111 }
23112 resultobj = SWIG_Py_Void();
23113 if (SWIG_IsTmpObj(res2)) {
23114 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23115 } else {
23116 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23117 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23118 }
23119 if (SWIG_IsTmpObj(res3)) {
23120 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23121 } else {
23122 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23123 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23124 }
23125 return resultobj;
23126fail:
23127 return NULL;
23128}
23129
23130
23131SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23132 PyObject *resultobj = 0;
23133 wxDC *arg1 = (wxDC *) 0 ;
23134 int arg2 ;
23135 int arg3 ;
23136 void *argp1 = 0 ;
23137 int res1 = 0 ;
23138 int val2 ;
23139 int ecode2 = 0 ;
23140 int val3 ;
23141 int ecode3 = 0 ;
23142 PyObject * obj0 = 0 ;
23143 PyObject * obj1 = 0 ;
23144 PyObject * obj2 = 0 ;
23145 char * kwnames[] = {
23146 (char *) "self",(char *) "x",(char *) "y", NULL
23147 };
23148
23149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23151 if (!SWIG_IsOK(res1)) {
23152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23153 }
23154 arg1 = reinterpret_cast< wxDC * >(argp1);
23155 ecode2 = SWIG_AsVal_int(obj1, &val2);
23156 if (!SWIG_IsOK(ecode2)) {
23157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
23158 }
23159 arg2 = static_cast< int >(val2);
23160 ecode3 = SWIG_AsVal_int(obj2, &val3);
23161 if (!SWIG_IsOK(ecode3)) {
23162 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
23163 }
23164 arg3 = static_cast< int >(val3);
23165 {
23166 PyThreadState* __tstate = wxPyBeginAllowThreads();
23167 (arg1)->SetDeviceOrigin(arg2,arg3);
23168 wxPyEndAllowThreads(__tstate);
23169 if (PyErr_Occurred()) SWIG_fail;
23170 }
23171 resultobj = SWIG_Py_Void();
23172 return resultobj;
23173fail:
23174 return NULL;
23175}
23176
23177
23178SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23179 PyObject *resultobj = 0;
23180 wxDC *arg1 = (wxDC *) 0 ;
23181 wxPoint *arg2 = 0 ;
23182 void *argp1 = 0 ;
23183 int res1 = 0 ;
23184 wxPoint temp2 ;
23185 PyObject * obj0 = 0 ;
23186 PyObject * obj1 = 0 ;
23187 char * kwnames[] = {
23188 (char *) "self",(char *) "point", NULL
23189 };
23190
23191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23193 if (!SWIG_IsOK(res1)) {
23194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23195 }
23196 arg1 = reinterpret_cast< wxDC * >(argp1);
23197 {
23198 arg2 = &temp2;
23199 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23200 }
23201 {
23202 PyThreadState* __tstate = wxPyBeginAllowThreads();
23203 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23204 wxPyEndAllowThreads(__tstate);
23205 if (PyErr_Occurred()) SWIG_fail;
23206 }
23207 resultobj = SWIG_Py_Void();
23208 return resultobj;
23209fail:
23210 return NULL;
23211}
23212
23213
23214SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23215 PyObject *resultobj = 0;
23216 wxDC *arg1 = (wxDC *) 0 ;
23217 bool arg2 ;
23218 bool arg3 ;
23219 void *argp1 = 0 ;
23220 int res1 = 0 ;
23221 bool val2 ;
23222 int ecode2 = 0 ;
23223 bool val3 ;
23224 int ecode3 = 0 ;
23225 PyObject * obj0 = 0 ;
23226 PyObject * obj1 = 0 ;
23227 PyObject * obj2 = 0 ;
23228 char * kwnames[] = {
23229 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23230 };
23231
23232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23234 if (!SWIG_IsOK(res1)) {
23235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23236 }
23237 arg1 = reinterpret_cast< wxDC * >(argp1);
23238 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23239 if (!SWIG_IsOK(ecode2)) {
23240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23241 }
23242 arg2 = static_cast< bool >(val2);
23243 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23244 if (!SWIG_IsOK(ecode3)) {
23245 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23246 }
23247 arg3 = static_cast< bool >(val3);
23248 {
23249 PyThreadState* __tstate = wxPyBeginAllowThreads();
23250 (arg1)->SetAxisOrientation(arg2,arg3);
23251 wxPyEndAllowThreads(__tstate);
23252 if (PyErr_Occurred()) SWIG_fail;
23253 }
23254 resultobj = SWIG_Py_Void();
23255 return resultobj;
23256fail:
23257 return NULL;
23258}
23259
23260
23261SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23262 PyObject *resultobj = 0;
23263 wxDC *arg1 = (wxDC *) 0 ;
23264 int result;
23265 void *argp1 = 0 ;
23266 int res1 = 0 ;
23267 PyObject *swig_obj[1] ;
23268
23269 if (!args) SWIG_fail;
23270 swig_obj[0] = args;
23271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23272 if (!SWIG_IsOK(res1)) {
23273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23274 }
23275 arg1 = reinterpret_cast< wxDC * >(argp1);
23276 {
23277 PyThreadState* __tstate = wxPyBeginAllowThreads();
23278 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23279 wxPyEndAllowThreads(__tstate);
23280 if (PyErr_Occurred()) SWIG_fail;
23281 }
23282 resultobj = SWIG_From_int(static_cast< int >(result));
23283 return resultobj;
23284fail:
23285 return NULL;
23286}
23287
23288
23289SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23290 PyObject *resultobj = 0;
23291 wxDC *arg1 = (wxDC *) 0 ;
23292 int arg2 ;
23293 void *argp1 = 0 ;
23294 int res1 = 0 ;
23295 int val2 ;
23296 int ecode2 = 0 ;
23297 PyObject * obj0 = 0 ;
23298 PyObject * obj1 = 0 ;
23299 char * kwnames[] = {
23300 (char *) "self",(char *) "function", NULL
23301 };
23302
23303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23305 if (!SWIG_IsOK(res1)) {
23306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23307 }
23308 arg1 = reinterpret_cast< wxDC * >(argp1);
23309 ecode2 = SWIG_AsVal_int(obj1, &val2);
23310 if (!SWIG_IsOK(ecode2)) {
23311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23312 }
23313 arg2 = static_cast< int >(val2);
23314 {
23315 PyThreadState* __tstate = wxPyBeginAllowThreads();
23316 (arg1)->SetLogicalFunction(arg2);
23317 wxPyEndAllowThreads(__tstate);
23318 if (PyErr_Occurred()) SWIG_fail;
23319 }
23320 resultobj = SWIG_Py_Void();
23321 return resultobj;
23322fail:
23323 return NULL;
23324}
23325
23326
23327SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23328 PyObject *resultobj = 0;
23329 wxDC *arg1 = (wxDC *) 0 ;
23330 void *argp1 = 0 ;
23331 int res1 = 0 ;
23332 PyObject *swig_obj[1] ;
23333
23334 if (!args) SWIG_fail;
23335 swig_obj[0] = args;
23336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23337 if (!SWIG_IsOK(res1)) {
23338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23339 }
23340 arg1 = reinterpret_cast< wxDC * >(argp1);
23341 {
23342 PyThreadState* __tstate = wxPyBeginAllowThreads();
23343 (arg1)->ComputeScaleAndOrigin();
23344 wxPyEndAllowThreads(__tstate);
23345 if (PyErr_Occurred()) SWIG_fail;
23346 }
23347 resultobj = SWIG_Py_Void();
23348 return resultobj;
23349fail:
23350 return NULL;
23351}
23352
23353
23354SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23355 PyObject *resultobj = 0;
23356 wxDC *arg1 = (wxDC *) 0 ;
23357 int arg2 ;
23358 int arg3 ;
23359 void *argp1 = 0 ;
23360 int res1 = 0 ;
23361 int val2 ;
23362 int ecode2 = 0 ;
23363 int val3 ;
23364 int ecode3 = 0 ;
23365 PyObject * obj0 = 0 ;
23366 PyObject * obj1 = 0 ;
23367 PyObject * obj2 = 0 ;
23368 char * kwnames[] = {
23369 (char *) "self",(char *) "x",(char *) "y", NULL
23370 };
23371
23372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23374 if (!SWIG_IsOK(res1)) {
23375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23376 }
23377 arg1 = reinterpret_cast< wxDC * >(argp1);
23378 ecode2 = SWIG_AsVal_int(obj1, &val2);
23379 if (!SWIG_IsOK(ecode2)) {
23380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23381 }
23382 arg2 = static_cast< int >(val2);
23383 ecode3 = SWIG_AsVal_int(obj2, &val3);
23384 if (!SWIG_IsOK(ecode3)) {
23385 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23386 }
23387 arg3 = static_cast< int >(val3);
23388 {
23389 PyThreadState* __tstate = wxPyBeginAllowThreads();
23390 (arg1)->CalcBoundingBox(arg2,arg3);
23391 wxPyEndAllowThreads(__tstate);
23392 if (PyErr_Occurred()) SWIG_fail;
23393 }
23394 resultobj = SWIG_Py_Void();
23395 return resultobj;
23396fail:
23397 return NULL;
23398}
23399
23400
23401SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23402 PyObject *resultobj = 0;
23403 wxDC *arg1 = (wxDC *) 0 ;
23404 wxPoint *arg2 = 0 ;
23405 void *argp1 = 0 ;
23406 int res1 = 0 ;
23407 wxPoint temp2 ;
23408 PyObject * obj0 = 0 ;
23409 PyObject * obj1 = 0 ;
23410 char * kwnames[] = {
23411 (char *) "self",(char *) "point", NULL
23412 };
23413
23414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23416 if (!SWIG_IsOK(res1)) {
23417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23418 }
23419 arg1 = reinterpret_cast< wxDC * >(argp1);
23420 {
23421 arg2 = &temp2;
23422 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23423 }
23424 {
23425 PyThreadState* __tstate = wxPyBeginAllowThreads();
23426 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23427 wxPyEndAllowThreads(__tstate);
23428 if (PyErr_Occurred()) SWIG_fail;
23429 }
23430 resultobj = SWIG_Py_Void();
23431 return resultobj;
23432fail:
23433 return NULL;
23434}
23435
23436
23437SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23438 PyObject *resultobj = 0;
23439 wxDC *arg1 = (wxDC *) 0 ;
23440 void *argp1 = 0 ;
23441 int res1 = 0 ;
23442 PyObject *swig_obj[1] ;
23443
23444 if (!args) SWIG_fail;
23445 swig_obj[0] = args;
23446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23447 if (!SWIG_IsOK(res1)) {
23448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23449 }
23450 arg1 = reinterpret_cast< wxDC * >(argp1);
23451 {
23452 PyThreadState* __tstate = wxPyBeginAllowThreads();
23453 (arg1)->ResetBoundingBox();
23454 wxPyEndAllowThreads(__tstate);
23455 if (PyErr_Occurred()) SWIG_fail;
23456 }
23457 resultobj = SWIG_Py_Void();
23458 return resultobj;
23459fail:
23460 return NULL;
23461}
23462
23463
23464SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23465 PyObject *resultobj = 0;
23466 wxDC *arg1 = (wxDC *) 0 ;
23467 int result;
23468 void *argp1 = 0 ;
23469 int res1 = 0 ;
23470 PyObject *swig_obj[1] ;
23471
23472 if (!args) SWIG_fail;
23473 swig_obj[0] = args;
23474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23475 if (!SWIG_IsOK(res1)) {
23476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23477 }
23478 arg1 = reinterpret_cast< wxDC * >(argp1);
23479 {
23480 PyThreadState* __tstate = wxPyBeginAllowThreads();
23481 result = (int)((wxDC const *)arg1)->MinX();
23482 wxPyEndAllowThreads(__tstate);
23483 if (PyErr_Occurred()) SWIG_fail;
23484 }
23485 resultobj = SWIG_From_int(static_cast< int >(result));
23486 return resultobj;
23487fail:
23488 return NULL;
23489}
23490
23491
23492SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23493 PyObject *resultobj = 0;
23494 wxDC *arg1 = (wxDC *) 0 ;
23495 int result;
23496 void *argp1 = 0 ;
23497 int res1 = 0 ;
23498 PyObject *swig_obj[1] ;
23499
23500 if (!args) SWIG_fail;
23501 swig_obj[0] = args;
23502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23503 if (!SWIG_IsOK(res1)) {
23504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23505 }
23506 arg1 = reinterpret_cast< wxDC * >(argp1);
23507 {
23508 PyThreadState* __tstate = wxPyBeginAllowThreads();
23509 result = (int)((wxDC const *)arg1)->MaxX();
23510 wxPyEndAllowThreads(__tstate);
23511 if (PyErr_Occurred()) SWIG_fail;
23512 }
23513 resultobj = SWIG_From_int(static_cast< int >(result));
23514 return resultobj;
23515fail:
23516 return NULL;
23517}
23518
23519
23520SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23521 PyObject *resultobj = 0;
23522 wxDC *arg1 = (wxDC *) 0 ;
23523 int result;
23524 void *argp1 = 0 ;
23525 int res1 = 0 ;
23526 PyObject *swig_obj[1] ;
23527
23528 if (!args) SWIG_fail;
23529 swig_obj[0] = args;
23530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23531 if (!SWIG_IsOK(res1)) {
23532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23533 }
23534 arg1 = reinterpret_cast< wxDC * >(argp1);
23535 {
23536 PyThreadState* __tstate = wxPyBeginAllowThreads();
23537 result = (int)((wxDC const *)arg1)->MinY();
23538 wxPyEndAllowThreads(__tstate);
23539 if (PyErr_Occurred()) SWIG_fail;
23540 }
23541 resultobj = SWIG_From_int(static_cast< int >(result));
23542 return resultobj;
23543fail:
23544 return NULL;
23545}
23546
23547
23548SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23549 PyObject *resultobj = 0;
23550 wxDC *arg1 = (wxDC *) 0 ;
23551 int result;
23552 void *argp1 = 0 ;
23553 int res1 = 0 ;
23554 PyObject *swig_obj[1] ;
23555
23556 if (!args) SWIG_fail;
23557 swig_obj[0] = args;
23558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23559 if (!SWIG_IsOK(res1)) {
23560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23561 }
23562 arg1 = reinterpret_cast< wxDC * >(argp1);
23563 {
23564 PyThreadState* __tstate = wxPyBeginAllowThreads();
23565 result = (int)((wxDC const *)arg1)->MaxY();
23566 wxPyEndAllowThreads(__tstate);
23567 if (PyErr_Occurred()) SWIG_fail;
23568 }
23569 resultobj = SWIG_From_int(static_cast< int >(result));
23570 return resultobj;
23571fail:
23572 return NULL;
23573}
23574
23575
23576SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23577 PyObject *resultobj = 0;
23578 wxDC *arg1 = (wxDC *) 0 ;
23579 int *arg2 = (int *) 0 ;
23580 int *arg3 = (int *) 0 ;
23581 int *arg4 = (int *) 0 ;
23582 int *arg5 = (int *) 0 ;
23583 void *argp1 = 0 ;
23584 int res1 = 0 ;
23585 int temp2 ;
23586 int res2 = SWIG_TMPOBJ ;
23587 int temp3 ;
23588 int res3 = SWIG_TMPOBJ ;
23589 int temp4 ;
23590 int res4 = SWIG_TMPOBJ ;
23591 int temp5 ;
23592 int res5 = SWIG_TMPOBJ ;
23593 PyObject *swig_obj[1] ;
23594
23595 arg2 = &temp2;
23596 arg3 = &temp3;
23597 arg4 = &temp4;
23598 arg5 = &temp5;
23599 if (!args) SWIG_fail;
23600 swig_obj[0] = args;
23601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23602 if (!SWIG_IsOK(res1)) {
23603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23604 }
23605 arg1 = reinterpret_cast< wxDC * >(argp1);
23606 {
23607 PyThreadState* __tstate = wxPyBeginAllowThreads();
23608 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23609 wxPyEndAllowThreads(__tstate);
23610 if (PyErr_Occurred()) SWIG_fail;
23611 }
23612 resultobj = SWIG_Py_Void();
23613 if (SWIG_IsTmpObj(res2)) {
23614 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23615 } else {
23616 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23617 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23618 }
23619 if (SWIG_IsTmpObj(res3)) {
23620 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23621 } else {
23622 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23623 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23624 }
23625 if (SWIG_IsTmpObj(res4)) {
23626 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23627 } else {
23628 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23629 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23630 }
23631 if (SWIG_IsTmpObj(res5)) {
23632 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23633 } else {
23634 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23635 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23636 }
23637 return resultobj;
23638fail:
23639 return NULL;
23640}
23641
23642
b39fe951
RD
23643SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23644 PyObject *resultobj = 0;
23645 wxDC *arg1 = (wxDC *) 0 ;
23646 wxLayoutDirection result;
23647 void *argp1 = 0 ;
23648 int res1 = 0 ;
23649 PyObject *swig_obj[1] ;
23650
23651 if (!args) SWIG_fail;
23652 swig_obj[0] = args;
23653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23654 if (!SWIG_IsOK(res1)) {
23655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23656 }
23657 arg1 = reinterpret_cast< wxDC * >(argp1);
23658 {
23659 PyThreadState* __tstate = wxPyBeginAllowThreads();
23660 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23661 wxPyEndAllowThreads(__tstate);
23662 if (PyErr_Occurred()) SWIG_fail;
23663 }
23664 resultobj = SWIG_From_int(static_cast< int >(result));
23665 return resultobj;
23666fail:
23667 return NULL;
23668}
23669
23670
23671SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23672 PyObject *resultobj = 0;
23673 wxDC *arg1 = (wxDC *) 0 ;
23674 wxLayoutDirection arg2 ;
23675 void *argp1 = 0 ;
23676 int res1 = 0 ;
23677 int val2 ;
23678 int ecode2 = 0 ;
23679 PyObject * obj0 = 0 ;
23680 PyObject * obj1 = 0 ;
23681 char * kwnames[] = {
23682 (char *) "self",(char *) "dir", NULL
23683 };
23684
23685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23687 if (!SWIG_IsOK(res1)) {
23688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23689 }
23690 arg1 = reinterpret_cast< wxDC * >(argp1);
23691 ecode2 = SWIG_AsVal_int(obj1, &val2);
23692 if (!SWIG_IsOK(ecode2)) {
23693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23694 }
23695 arg2 = static_cast< wxLayoutDirection >(val2);
23696 {
23697 PyThreadState* __tstate = wxPyBeginAllowThreads();
23698 (arg1)->SetLayoutDirection(arg2);
23699 wxPyEndAllowThreads(__tstate);
23700 if (PyErr_Occurred()) SWIG_fail;
23701 }
23702 resultobj = SWIG_Py_Void();
23703 return resultobj;
23704fail:
23705 return NULL;
23706}
23707
23708
554f62e9
RD
23709SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23710 PyObject *resultobj = 0;
23711 wxDC *arg1 = (wxDC *) 0 ;
23712 long result;
23713 void *argp1 = 0 ;
23714 int res1 = 0 ;
23715 PyObject *swig_obj[1] ;
23716
23717 if (!args) SWIG_fail;
23718 swig_obj[0] = args;
23719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23720 if (!SWIG_IsOK(res1)) {
23721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
23722 }
23723 arg1 = reinterpret_cast< wxDC * >(argp1);
23724 {
23725 PyThreadState* __tstate = wxPyBeginAllowThreads();
23726 result = (long)(arg1)->GetHDC();
23727 wxPyEndAllowThreads(__tstate);
23728 if (PyErr_Occurred()) SWIG_fail;
23729 }
23730 resultobj = SWIG_From_long(static_cast< long >(result));
23731 return resultobj;
23732fail:
23733 return NULL;
23734}
23735
23736
23737SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23738 PyObject *resultobj = 0;
23739 wxDC *arg1 = (wxDC *) 0 ;
23740 PyObject *arg2 = (PyObject *) 0 ;
23741 PyObject *arg3 = (PyObject *) 0 ;
23742 PyObject *arg4 = (PyObject *) 0 ;
23743 PyObject *result = 0 ;
23744 void *argp1 = 0 ;
23745 int res1 = 0 ;
23746 PyObject * obj0 = 0 ;
23747 PyObject * obj1 = 0 ;
23748 PyObject * obj2 = 0 ;
23749 PyObject * obj3 = 0 ;
23750 char * kwnames[] = {
23751 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23752 };
23753
23754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23756 if (!SWIG_IsOK(res1)) {
23757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23758 }
23759 arg1 = reinterpret_cast< wxDC * >(argp1);
23760 arg2 = obj1;
23761 arg3 = obj2;
23762 arg4 = obj3;
23763 {
23764 PyThreadState* __tstate = wxPyBeginAllowThreads();
23765 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23766 wxPyEndAllowThreads(__tstate);
23767 if (PyErr_Occurred()) SWIG_fail;
23768 }
23769 resultobj = result;
23770 return resultobj;
23771fail:
23772 return NULL;
23773}
23774
23775
23776SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23777 PyObject *resultobj = 0;
23778 wxDC *arg1 = (wxDC *) 0 ;
23779 PyObject *arg2 = (PyObject *) 0 ;
23780 PyObject *arg3 = (PyObject *) 0 ;
23781 PyObject *arg4 = (PyObject *) 0 ;
23782 PyObject *result = 0 ;
23783 void *argp1 = 0 ;
23784 int res1 = 0 ;
23785 PyObject * obj0 = 0 ;
23786 PyObject * obj1 = 0 ;
23787 PyObject * obj2 = 0 ;
23788 PyObject * obj3 = 0 ;
23789 char * kwnames[] = {
23790 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23791 };
23792
23793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23795 if (!SWIG_IsOK(res1)) {
23796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23797 }
23798 arg1 = reinterpret_cast< wxDC * >(argp1);
23799 arg2 = obj1;
23800 arg3 = obj2;
23801 arg4 = obj3;
23802 {
23803 PyThreadState* __tstate = wxPyBeginAllowThreads();
23804 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23805 wxPyEndAllowThreads(__tstate);
23806 if (PyErr_Occurred()) SWIG_fail;
23807 }
23808 resultobj = result;
23809 return resultobj;
23810fail:
23811 return NULL;
23812}
23813
23814
23815SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23816 PyObject *resultobj = 0;
23817 wxDC *arg1 = (wxDC *) 0 ;
23818 PyObject *arg2 = (PyObject *) 0 ;
23819 PyObject *arg3 = (PyObject *) 0 ;
23820 PyObject *arg4 = (PyObject *) 0 ;
23821 PyObject *result = 0 ;
23822 void *argp1 = 0 ;
23823 int res1 = 0 ;
23824 PyObject * obj0 = 0 ;
23825 PyObject * obj1 = 0 ;
23826 PyObject * obj2 = 0 ;
23827 PyObject * obj3 = 0 ;
23828 char * kwnames[] = {
23829 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23830 };
23831
23832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23834 if (!SWIG_IsOK(res1)) {
23835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23836 }
23837 arg1 = reinterpret_cast< wxDC * >(argp1);
23838 arg2 = obj1;
23839 arg3 = obj2;
23840 arg4 = obj3;
23841 {
23842 PyThreadState* __tstate = wxPyBeginAllowThreads();
23843 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23844 wxPyEndAllowThreads(__tstate);
23845 if (PyErr_Occurred()) SWIG_fail;
23846 }
23847 resultobj = result;
23848 return resultobj;
23849fail:
23850 return NULL;
23851}
23852
23853
23854SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23855 PyObject *resultobj = 0;
23856 wxDC *arg1 = (wxDC *) 0 ;
23857 PyObject *arg2 = (PyObject *) 0 ;
23858 PyObject *arg3 = (PyObject *) 0 ;
23859 PyObject *arg4 = (PyObject *) 0 ;
23860 PyObject *result = 0 ;
23861 void *argp1 = 0 ;
23862 int res1 = 0 ;
23863 PyObject * obj0 = 0 ;
23864 PyObject * obj1 = 0 ;
23865 PyObject * obj2 = 0 ;
23866 PyObject * obj3 = 0 ;
23867 char * kwnames[] = {
23868 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23869 };
23870
23871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23873 if (!SWIG_IsOK(res1)) {
23874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23875 }
23876 arg1 = reinterpret_cast< wxDC * >(argp1);
23877 arg2 = obj1;
23878 arg3 = obj2;
23879 arg4 = obj3;
23880 {
23881 PyThreadState* __tstate = wxPyBeginAllowThreads();
23882 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23883 wxPyEndAllowThreads(__tstate);
23884 if (PyErr_Occurred()) SWIG_fail;
23885 }
23886 resultobj = result;
23887 return resultobj;
23888fail:
23889 return NULL;
23890}
23891
23892
23893SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23894 PyObject *resultobj = 0;
23895 wxDC *arg1 = (wxDC *) 0 ;
23896 PyObject *arg2 = (PyObject *) 0 ;
23897 PyObject *arg3 = (PyObject *) 0 ;
23898 PyObject *arg4 = (PyObject *) 0 ;
23899 PyObject *result = 0 ;
23900 void *argp1 = 0 ;
23901 int res1 = 0 ;
23902 PyObject * obj0 = 0 ;
23903 PyObject * obj1 = 0 ;
23904 PyObject * obj2 = 0 ;
23905 PyObject * obj3 = 0 ;
23906 char * kwnames[] = {
23907 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23908 };
23909
23910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23912 if (!SWIG_IsOK(res1)) {
23913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23914 }
23915 arg1 = reinterpret_cast< wxDC * >(argp1);
23916 arg2 = obj1;
23917 arg3 = obj2;
23918 arg4 = obj3;
23919 {
23920 PyThreadState* __tstate = wxPyBeginAllowThreads();
23921 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23922 wxPyEndAllowThreads(__tstate);
23923 if (PyErr_Occurred()) SWIG_fail;
23924 }
23925 resultobj = result;
23926 return resultobj;
23927fail:
23928 return NULL;
23929}
23930
23931
23932SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23933 PyObject *resultobj = 0;
23934 wxDC *arg1 = (wxDC *) 0 ;
23935 PyObject *arg2 = (PyObject *) 0 ;
23936 PyObject *arg3 = (PyObject *) 0 ;
23937 PyObject *arg4 = (PyObject *) 0 ;
23938 PyObject *arg5 = (PyObject *) 0 ;
23939 PyObject *result = 0 ;
23940 void *argp1 = 0 ;
23941 int res1 = 0 ;
23942 PyObject * obj0 = 0 ;
23943 PyObject * obj1 = 0 ;
23944 PyObject * obj2 = 0 ;
23945 PyObject * obj3 = 0 ;
23946 PyObject * obj4 = 0 ;
23947 char * kwnames[] = {
23948 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23949 };
23950
23951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23953 if (!SWIG_IsOK(res1)) {
23954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23955 }
23956 arg1 = reinterpret_cast< wxDC * >(argp1);
23957 arg2 = obj1;
23958 arg3 = obj2;
23959 arg4 = obj3;
23960 arg5 = obj4;
23961 {
23962 PyThreadState* __tstate = wxPyBeginAllowThreads();
23963 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23964 wxPyEndAllowThreads(__tstate);
23965 if (PyErr_Occurred()) SWIG_fail;
23966 }
23967 resultobj = result;
23968 return resultobj;
23969fail:
23970 return NULL;
23971}
23972
23973
23974SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23975 PyObject *obj;
23976 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23977 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23978 return SWIG_Py_Void();
23979}
23980
70d7cb34
RD
23981SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23982 PyObject *resultobj = 0;
23983 wxDC *arg1 = 0 ;
23984 wxColour *arg2 = 0 ;
23985 wxDCTextColourChanger *result = 0 ;
23986 void *argp1 = 0 ;
23987 int res1 = 0 ;
23988 wxColour temp2 ;
23989 PyObject * obj0 = 0 ;
23990 PyObject * obj1 = 0 ;
23991 char * kwnames[] = {
23992 (char *) "dc",(char *) "col", NULL
23993 };
23994
23995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23996 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23997 if (!SWIG_IsOK(res1)) {
23998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23999 }
24000 if (!argp1) {
24001 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24002 }
24003 arg1 = reinterpret_cast< wxDC * >(argp1);
24004 {
24005 arg2 = &temp2;
24006 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24007 }
24008 {
24009 PyThreadState* __tstate = wxPyBeginAllowThreads();
24010 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
24011 wxPyEndAllowThreads(__tstate);
24012 if (PyErr_Occurred()) SWIG_fail;
24013 }
24014 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
24015 return resultobj;
24016fail:
24017 return NULL;
24018}
24019
24020
24021SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24022 PyObject *resultobj = 0;
24023 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
24024 void *argp1 = 0 ;
24025 int res1 = 0 ;
24026 PyObject *swig_obj[1] ;
24027
24028 if (!args) SWIG_fail;
24029 swig_obj[0] = args;
24030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
24031 if (!SWIG_IsOK(res1)) {
24032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
24033 }
24034 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
24035 {
24036 PyThreadState* __tstate = wxPyBeginAllowThreads();
24037 delete arg1;
24038
24039 wxPyEndAllowThreads(__tstate);
24040 if (PyErr_Occurred()) SWIG_fail;
24041 }
24042 resultobj = SWIG_Py_Void();
24043 return resultobj;
24044fail:
24045 return NULL;
24046}
24047
24048
24049SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24050 PyObject *obj;
24051 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24052 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
24053 return SWIG_Py_Void();
24054}
24055
24056SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24057 return SWIG_Python_InitShadowInstance(args);
24058}
24059
24060SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24061 PyObject *resultobj = 0;
24062 wxDC *arg1 = 0 ;
24063 wxPen *arg2 = 0 ;
24064 wxDCPenChanger *result = 0 ;
24065 void *argp1 = 0 ;
24066 int res1 = 0 ;
24067 void *argp2 = 0 ;
24068 int res2 = 0 ;
24069 PyObject * obj0 = 0 ;
24070 PyObject * obj1 = 0 ;
24071 char * kwnames[] = {
24072 (char *) "dc",(char *) "pen", NULL
24073 };
24074
24075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24076 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24077 if (!SWIG_IsOK(res1)) {
24078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24079 }
24080 if (!argp1) {
24081 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24082 }
24083 arg1 = reinterpret_cast< wxDC * >(argp1);
24084 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
24085 if (!SWIG_IsOK(res2)) {
24086 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24087 }
24088 if (!argp2) {
24089 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24090 }
24091 arg2 = reinterpret_cast< wxPen * >(argp2);
24092 {
24093 PyThreadState* __tstate = wxPyBeginAllowThreads();
24094 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
24095 wxPyEndAllowThreads(__tstate);
24096 if (PyErr_Occurred()) SWIG_fail;
24097 }
24098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
24099 return resultobj;
24100fail:
24101 return NULL;
24102}
24103
24104
24105SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24106 PyObject *resultobj = 0;
24107 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
24108 void *argp1 = 0 ;
24109 int res1 = 0 ;
24110 PyObject *swig_obj[1] ;
24111
24112 if (!args) SWIG_fail;
24113 swig_obj[0] = args;
24114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
24115 if (!SWIG_IsOK(res1)) {
24116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
24117 }
24118 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
24119 {
24120 PyThreadState* __tstate = wxPyBeginAllowThreads();
24121 delete arg1;
24122
24123 wxPyEndAllowThreads(__tstate);
24124 if (PyErr_Occurred()) SWIG_fail;
24125 }
24126 resultobj = SWIG_Py_Void();
24127 return resultobj;
24128fail:
24129 return NULL;
24130}
24131
24132
24133SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24134 PyObject *obj;
24135 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24136 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
24137 return SWIG_Py_Void();
24138}
24139
24140SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24141 return SWIG_Python_InitShadowInstance(args);
24142}
24143
24144SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24145 PyObject *resultobj = 0;
24146 wxDC *arg1 = 0 ;
24147 wxBrush *arg2 = 0 ;
24148 wxDCBrushChanger *result = 0 ;
24149 void *argp1 = 0 ;
24150 int res1 = 0 ;
24151 void *argp2 = 0 ;
24152 int res2 = 0 ;
24153 PyObject * obj0 = 0 ;
24154 PyObject * obj1 = 0 ;
24155 char * kwnames[] = {
24156 (char *) "dc",(char *) "brush", NULL
24157 };
24158
24159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24160 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24161 if (!SWIG_IsOK(res1)) {
24162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24163 }
24164 if (!argp1) {
24165 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24166 }
24167 arg1 = reinterpret_cast< wxDC * >(argp1);
24168 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
24169 if (!SWIG_IsOK(res2)) {
24170 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24171 }
24172 if (!argp2) {
24173 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24174 }
24175 arg2 = reinterpret_cast< wxBrush * >(argp2);
24176 {
24177 PyThreadState* __tstate = wxPyBeginAllowThreads();
24178 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
24179 wxPyEndAllowThreads(__tstate);
24180 if (PyErr_Occurred()) SWIG_fail;
24181 }
24182 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
24183 return resultobj;
24184fail:
24185 return NULL;
24186}
24187
24188
24189SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24190 PyObject *resultobj = 0;
24191 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
24192 void *argp1 = 0 ;
24193 int res1 = 0 ;
24194 PyObject *swig_obj[1] ;
24195
24196 if (!args) SWIG_fail;
24197 swig_obj[0] = args;
24198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
24199 if (!SWIG_IsOK(res1)) {
24200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
24201 }
24202 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
24203 {
24204 PyThreadState* __tstate = wxPyBeginAllowThreads();
24205 delete arg1;
24206
24207 wxPyEndAllowThreads(__tstate);
24208 if (PyErr_Occurred()) SWIG_fail;
24209 }
24210 resultobj = SWIG_Py_Void();
24211 return resultobj;
24212fail:
24213 return NULL;
24214}
24215
24216
24217SWIGINTERN PyObject *DCBrushChanger_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_wxDCBrushChanger, SWIG_NewClientData(obj));
24221 return SWIG_Py_Void();
24222}
24223
24224SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24225 return SWIG_Python_InitShadowInstance(args);
24226}
24227
24228SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24229 PyObject *resultobj = 0;
24230 wxDC *arg1 = 0 ;
24231 wxRegion *arg2 = 0 ;
24232 wxDCClipper *result = 0 ;
24233 void *argp1 = 0 ;
24234 int res1 = 0 ;
24235 void *argp2 = 0 ;
24236 int res2 = 0 ;
24237
24238 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24240 if (!SWIG_IsOK(res1)) {
24241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24242 }
24243 if (!argp1) {
24244 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24245 }
24246 arg1 = reinterpret_cast< wxDC * >(argp1);
24247 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
24248 if (!SWIG_IsOK(res2)) {
24249 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24250 }
24251 if (!argp2) {
24252 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24253 }
24254 arg2 = reinterpret_cast< wxRegion * >(argp2);
24255 {
24256 PyThreadState* __tstate = wxPyBeginAllowThreads();
24257 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
24258 wxPyEndAllowThreads(__tstate);
24259 if (PyErr_Occurred()) SWIG_fail;
24260 }
24261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24262 return resultobj;
24263fail:
24264 return NULL;
24265}
24266
24267
24268SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24269 PyObject *resultobj = 0;
24270 wxDC *arg1 = 0 ;
24271 wxRect *arg2 = 0 ;
24272 wxDCClipper *result = 0 ;
24273 void *argp1 = 0 ;
24274 int res1 = 0 ;
24275 wxRect temp2 ;
24276
24277 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24279 if (!SWIG_IsOK(res1)) {
24280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24281 }
24282 if (!argp1) {
24283 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24284 }
24285 arg1 = reinterpret_cast< wxDC * >(argp1);
24286 {
24287 arg2 = &temp2;
24288 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
24289 }
24290 {
24291 PyThreadState* __tstate = wxPyBeginAllowThreads();
24292 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
24293 wxPyEndAllowThreads(__tstate);
24294 if (PyErr_Occurred()) SWIG_fail;
24295 }
24296 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24297 return resultobj;
24298fail:
24299 return NULL;
24300}
24301
24302
24303SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24304 PyObject *resultobj = 0;
24305 wxDC *arg1 = 0 ;
24306 int arg2 ;
24307 int arg3 ;
24308 int arg4 ;
24309 int arg5 ;
24310 wxDCClipper *result = 0 ;
24311 void *argp1 = 0 ;
24312 int res1 = 0 ;
24313 int val2 ;
24314 int ecode2 = 0 ;
24315 int val3 ;
24316 int ecode3 = 0 ;
24317 int val4 ;
24318 int ecode4 = 0 ;
24319 int val5 ;
24320 int ecode5 = 0 ;
24321
24322 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
24323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24324 if (!SWIG_IsOK(res1)) {
24325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24326 }
24327 if (!argp1) {
24328 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24329 }
24330 arg1 = reinterpret_cast< wxDC * >(argp1);
24331 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24332 if (!SWIG_IsOK(ecode2)) {
24333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
24334 }
24335 arg2 = static_cast< int >(val2);
24336 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24337 if (!SWIG_IsOK(ecode3)) {
24338 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
24339 }
24340 arg3 = static_cast< int >(val3);
24341 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
24342 if (!SWIG_IsOK(ecode4)) {
24343 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
24344 }
24345 arg4 = static_cast< int >(val4);
24346 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
24347 if (!SWIG_IsOK(ecode5)) {
24348 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
24349 }
24350 arg5 = static_cast< int >(val5);
24351 {
24352 PyThreadState* __tstate = wxPyBeginAllowThreads();
24353 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
24354 wxPyEndAllowThreads(__tstate);
24355 if (PyErr_Occurred()) SWIG_fail;
24356 }
24357 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24358 return resultobj;
24359fail:
24360 return NULL;
24361}
24362
24363
24364SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
24365 int argc;
24366 PyObject *argv[6];
24367
24368 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
24369 --argc;
24370 if (argc == 2) {
24371 int _v = 0;
24372 {
24373 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
24374 _v = SWIG_CheckState(res);
24375 }
24376 if (!_v) goto check_1;
24377 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
24378 }
24379check_1:
24380
24381 if (argc == 2) {
24382 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
24383 }
24384 if (argc == 5) {
24385 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
24386 }
24387
24388fail:
24389 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
24390 return NULL;
24391}
24392
24393
24394SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24395 PyObject *resultobj = 0;
24396 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
24397 void *argp1 = 0 ;
24398 int res1 = 0 ;
24399 PyObject *swig_obj[1] ;
24400
24401 if (!args) SWIG_fail;
24402 swig_obj[0] = args;
24403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
24404 if (!SWIG_IsOK(res1)) {
24405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
24406 }
24407 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
24408 {
24409 PyThreadState* __tstate = wxPyBeginAllowThreads();
24410 delete arg1;
24411
24412 wxPyEndAllowThreads(__tstate);
24413 if (PyErr_Occurred()) SWIG_fail;
24414 }
24415 resultobj = SWIG_Py_Void();
24416 return resultobj;
24417fail:
24418 return NULL;
24419}
24420
24421
24422SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24423 PyObject *obj;
24424 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24425 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
24426 return SWIG_Py_Void();
24427}
24428
24429SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24430 return SWIG_Python_InitShadowInstance(args);
24431}
24432
8e99bda9 24433SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 24434 PyObject *resultobj = 0;
8e99bda9
RD
24435 wxBitmap const &arg1_defvalue = wxNullBitmap ;
24436 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
554f62e9 24437 wxMemoryDC *result = 0 ;
8e99bda9
RD
24438 void *argp1 = 0 ;
24439 int res1 = 0 ;
24440 PyObject * obj0 = 0 ;
24441 char * kwnames[] = {
24442 (char *) "bitmap", NULL
24443 };
554f62e9 24444
8e99bda9
RD
24445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24446 if (obj0) {
24447 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
24448 if (!SWIG_IsOK(res1)) {
24449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
24450 }
24451 if (!argp1) {
24452 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
24453 }
24454 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24455 }
554f62e9
RD
24456 {
24457 if (!wxPyCheckForApp()) SWIG_fail;
24458 PyThreadState* __tstate = wxPyBeginAllowThreads();
8e99bda9 24459 result = (wxMemoryDC *)new wxMemoryDC((wxBitmap const &)*arg1);
554f62e9
RD
24460 wxPyEndAllowThreads(__tstate);
24461 if (PyErr_Occurred()) SWIG_fail;
24462 }
24463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24464 return resultobj;
24465fail:
24466 return NULL;
24467}
24468
24469
24470SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24471 PyObject *resultobj = 0;
24472 wxDC *arg1 = (wxDC *) 0 ;
24473 wxMemoryDC *result = 0 ;
24474 void *argp1 = 0 ;
24475 int res1 = 0 ;
24476 PyObject * obj0 = 0 ;
24477 char * kwnames[] = {
24478 (char *) "oldDC", NULL
24479 };
24480
24481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24483 if (!SWIG_IsOK(res1)) {
24484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24485 }
24486 arg1 = reinterpret_cast< wxDC * >(argp1);
24487 {
24488 if (!wxPyCheckForApp()) SWIG_fail;
24489 PyThreadState* __tstate = wxPyBeginAllowThreads();
24490 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24491 wxPyEndAllowThreads(__tstate);
24492 if (PyErr_Occurred()) SWIG_fail;
24493 }
24494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24495 return resultobj;
24496fail:
24497 return NULL;
24498}
24499
24500
24501SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24502 PyObject *resultobj = 0;
24503 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24504 wxBitmap *arg2 = 0 ;
24505 void *argp1 = 0 ;
24506 int res1 = 0 ;
24507 void *argp2 = 0 ;
24508 int res2 = 0 ;
24509 PyObject * obj0 = 0 ;
24510 PyObject * obj1 = 0 ;
24511 char * kwnames[] = {
24512 (char *) "self",(char *) "bitmap", NULL
24513 };
24514
24515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24517 if (!SWIG_IsOK(res1)) {
24518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24519 }
24520 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24521 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24522 if (!SWIG_IsOK(res2)) {
24523 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24524 }
24525 if (!argp2) {
24526 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24527 }
24528 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24529 {
24530 PyThreadState* __tstate = wxPyBeginAllowThreads();
24531 (arg1)->SelectObject((wxBitmap const &)*arg2);
24532 wxPyEndAllowThreads(__tstate);
24533 if (PyErr_Occurred()) SWIG_fail;
24534 }
24535 resultobj = SWIG_Py_Void();
24536 return resultobj;
24537fail:
24538 return NULL;
24539}
24540
24541
24542SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24543 PyObject *obj;
24544 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24545 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24546 return SWIG_Py_Void();
24547}
24548
24549SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24550 return SWIG_Python_InitShadowInstance(args);
24551}
24552
24f6c4e8
RD
24553SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24554 PyObject *resultobj = 0;
24555 wxScreenDC *result = 0 ;
24556
24557 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24558 {
24559 if (!wxPyCheckForApp()) SWIG_fail;
24560 PyThreadState* __tstate = wxPyBeginAllowThreads();
24561 result = (wxScreenDC *)new wxScreenDC();
24562 wxPyEndAllowThreads(__tstate);
24563 if (PyErr_Occurred()) SWIG_fail;
24564 }
24565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24566 return resultobj;
24567fail:
24568 return NULL;
24569}
24570
24571
24572SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24573 PyObject *resultobj = 0;
24574 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24575 wxWindow *arg2 = (wxWindow *) 0 ;
24576 bool result;
24577 void *argp1 = 0 ;
24578 int res1 = 0 ;
24579 void *argp2 = 0 ;
24580 int res2 = 0 ;
24581 PyObject * obj0 = 0 ;
24582 PyObject * obj1 = 0 ;
24583 char * kwnames[] = {
24584 (char *) "self",(char *) "window", NULL
24585 };
24586
24587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24589 if (!SWIG_IsOK(res1)) {
24590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24591 }
24592 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24593 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24594 if (!SWIG_IsOK(res2)) {
24595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24596 }
24597 arg2 = reinterpret_cast< wxWindow * >(argp2);
24598 {
24599 PyThreadState* __tstate = wxPyBeginAllowThreads();
24600 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24601 wxPyEndAllowThreads(__tstate);
24602 if (PyErr_Occurred()) SWIG_fail;
24603 }
24604 {
24605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24606 }
24607 return resultobj;
24608fail:
24609 return NULL;
24610}
24611
24612
24613SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24614 PyObject *resultobj = 0;
24615 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24616 wxRect *arg2 = (wxRect *) NULL ;
24617 bool result;
24618 void *argp1 = 0 ;
24619 int res1 = 0 ;
24620 void *argp2 = 0 ;
24621 int res2 = 0 ;
24622 PyObject * obj0 = 0 ;
24623 PyObject * obj1 = 0 ;
24624 char * kwnames[] = {
24625 (char *) "self",(char *) "rect", NULL
24626 };
24627
24628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24630 if (!SWIG_IsOK(res1)) {
24631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24632 }
24633 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24634 if (obj1) {
24635 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24636 if (!SWIG_IsOK(res2)) {
24637 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24638 }
24639 arg2 = reinterpret_cast< wxRect * >(argp2);
24640 }
24641 {
24642 PyThreadState* __tstate = wxPyBeginAllowThreads();
24643 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24644 wxPyEndAllowThreads(__tstate);
24645 if (PyErr_Occurred()) SWIG_fail;
24646 }
24647 {
24648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24649 }
24650 return resultobj;
24651fail:
24652 return NULL;
24653}
24654
24655
24656SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24657 PyObject *resultobj = 0;
24658 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24659 bool result;
24660 void *argp1 = 0 ;
24661 int res1 = 0 ;
24662 PyObject *swig_obj[1] ;
24663
24664 if (!args) SWIG_fail;
24665 swig_obj[0] = args;
24666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24667 if (!SWIG_IsOK(res1)) {
24668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24669 }
24670 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24671 {
24672 PyThreadState* __tstate = wxPyBeginAllowThreads();
24673 result = (bool)(arg1)->EndDrawingOnTop();
24674 wxPyEndAllowThreads(__tstate);
24675 if (PyErr_Occurred()) SWIG_fail;
24676 }
24677 {
24678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24679 }
24680 return resultobj;
24681fail:
24682 return NULL;
24683}
24684
24685
24686SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24687 PyObject *obj;
24688 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24689 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24690 return SWIG_Py_Void();
24691}
24692
24693SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24694 return SWIG_Python_InitShadowInstance(args);
24695}
24696
24697SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24698 PyObject *resultobj = 0;
24699 wxWindow *arg1 = (wxWindow *) 0 ;
24700 wxWindowDC *result = 0 ;
24701 void *argp1 = 0 ;
24702 int res1 = 0 ;
24703 PyObject * obj0 = 0 ;
24704 char * kwnames[] = {
24705 (char *) "win", NULL
24706 };
24707
24708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24710 if (!SWIG_IsOK(res1)) {
24711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24712 }
24713 arg1 = reinterpret_cast< wxWindow * >(argp1);
24714 {
24715 if (!wxPyCheckForApp()) SWIG_fail;
24716 PyThreadState* __tstate = wxPyBeginAllowThreads();
24717 result = (wxWindowDC *)new wxWindowDC(arg1);
24718 wxPyEndAllowThreads(__tstate);
24719 if (PyErr_Occurred()) SWIG_fail;
24720 }
24721 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24722 return resultobj;
24723fail:
24724 return NULL;
24725}
24726
24727
24728SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24729 PyObject *obj;
24730 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24731 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24732 return SWIG_Py_Void();
24733}
24734
24735SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24736 return SWIG_Python_InitShadowInstance(args);
24737}
24738
24739SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24740 PyObject *resultobj = 0;
24741 wxWindow *arg1 = (wxWindow *) 0 ;
24742 wxClientDC *result = 0 ;
24743 void *argp1 = 0 ;
24744 int res1 = 0 ;
24745 PyObject * obj0 = 0 ;
24746 char * kwnames[] = {
24747 (char *) "win", NULL
24748 };
24749
24750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24752 if (!SWIG_IsOK(res1)) {
24753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24754 }
24755 arg1 = reinterpret_cast< wxWindow * >(argp1);
24756 {
24757 if (!wxPyCheckForApp()) SWIG_fail;
24758 PyThreadState* __tstate = wxPyBeginAllowThreads();
24759 result = (wxClientDC *)new wxClientDC(arg1);
24760 wxPyEndAllowThreads(__tstate);
24761 if (PyErr_Occurred()) SWIG_fail;
24762 }
24763 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24764 return resultobj;
24765fail:
24766 return NULL;
24767}
24768
24769
24770SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24771 PyObject *obj;
24772 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24773 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24774 return SWIG_Py_Void();
24775}
24776
24777SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24778 return SWIG_Python_InitShadowInstance(args);
24779}
24780
24781SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24782 PyObject *resultobj = 0;
24783 wxWindow *arg1 = (wxWindow *) 0 ;
24784 wxPaintDC *result = 0 ;
24785 void *argp1 = 0 ;
24786 int res1 = 0 ;
24787 PyObject * obj0 = 0 ;
24788 char * kwnames[] = {
24789 (char *) "win", NULL
24790 };
24791
24792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24794 if (!SWIG_IsOK(res1)) {
24795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24796 }
24797 arg1 = reinterpret_cast< wxWindow * >(argp1);
24798 {
24799 if (!wxPyCheckForApp()) SWIG_fail;
24800 PyThreadState* __tstate = wxPyBeginAllowThreads();
24801 result = (wxPaintDC *)new wxPaintDC(arg1);
24802 wxPyEndAllowThreads(__tstate);
24803 if (PyErr_Occurred()) SWIG_fail;
24804 }
24805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24806 return resultobj;
24807fail:
24808 return NULL;
24809}
24810
24811
24812SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24813 PyObject *obj;
24814 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24815 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24816 return SWIG_Py_Void();
24817}
24818
24819SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24820 return SWIG_Python_InitShadowInstance(args);
24821}
24822
554f62e9
RD
24823SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24824 PyObject *resultobj = 0;
24825 wxDC *arg1 = (wxDC *) 0 ;
24826 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24827 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24828 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24829 wxBufferedDC *result = 0 ;
24830 void *argp1 = 0 ;
24831 int res1 = 0 ;
24832 void *argp2 = 0 ;
24833 int res2 = 0 ;
24834 int val3 ;
24835 int ecode3 = 0 ;
24836
24837 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24839 if (!SWIG_IsOK(res1)) {
24840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24841 }
24842 arg1 = reinterpret_cast< wxDC * >(argp1);
24843 if (swig_obj[1]) {
24844 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24845 if (!SWIG_IsOK(res2)) {
24846 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 24847 }
554f62e9
RD
24848 if (!argp2) {
24849 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 24850 }
554f62e9
RD
24851 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24852 }
24853 if (swig_obj[2]) {
24854 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24855 if (!SWIG_IsOK(ecode3)) {
24856 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24857 }
24858 arg3 = static_cast< int >(val3);
24859 }
24860 {
24861 if (!wxPyCheckForApp()) SWIG_fail;
24862 PyThreadState* __tstate = wxPyBeginAllowThreads();
24863 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
24864 wxPyEndAllowThreads(__tstate);
24865 if (PyErr_Occurred()) SWIG_fail;
24866 }
24867 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24868 return resultobj;
24869fail:
24870 return NULL;
24871}
24872
24873
24874SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24875 PyObject *resultobj = 0;
24876 wxDC *arg1 = (wxDC *) 0 ;
24877 wxSize *arg2 = 0 ;
24878 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24879 wxBufferedDC *result = 0 ;
24880 void *argp1 = 0 ;
24881 int res1 = 0 ;
24882 wxSize temp2 ;
24883 int val3 ;
24884 int ecode3 = 0 ;
24885
24886 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24888 if (!SWIG_IsOK(res1)) {
24889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24890 }
24891 arg1 = reinterpret_cast< wxDC * >(argp1);
24892 {
24893 arg2 = &temp2;
24894 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24895 }
24896 if (swig_obj[2]) {
24897 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24898 if (!SWIG_IsOK(ecode3)) {
24899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24900 }
24901 arg3 = static_cast< int >(val3);
24902 }
24903 {
24904 if (!wxPyCheckForApp()) SWIG_fail;
24905 PyThreadState* __tstate = wxPyBeginAllowThreads();
24906 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24907 wxPyEndAllowThreads(__tstate);
24908 if (PyErr_Occurred()) SWIG_fail;
24909 }
24910 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24911 return resultobj;
24912fail:
24913 return NULL;
24914}
24915
24916
24917SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24918 int argc;
8e99bda9 24919 PyObject *argv[4];
554f62e9 24920
8e99bda9 24921 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
554f62e9
RD
24922 --argc;
24923 if ((argc >= 1) && (argc <= 3)) {
24924 int _v = 0;
24925 if (argc > 1) {
24926 {
24927 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
24928 _v = SWIG_CheckState(res);
24929 }
24930 if (!_v) goto check_1;
093d3ff1 24931 }
554f62e9
RD
24932 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24933 }
24934check_1:
24935
24936 if ((argc >= 2) && (argc <= 3)) {
24937 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24938 }
24939
24940fail:
24941 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24942 return NULL;
24943}
24944
24945
24946SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24947 PyObject *resultobj = 0;
24948 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24949 void *argp1 = 0 ;
24950 int res1 = 0 ;
24951 PyObject *swig_obj[1] ;
24952
24953 if (!args) SWIG_fail;
24954 swig_obj[0] = args;
24955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24956 if (!SWIG_IsOK(res1)) {
24957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24958 }
24959 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24960 {
24961 PyThreadState* __tstate = wxPyBeginAllowThreads();
24962 delete arg1;
24963
24964 wxPyEndAllowThreads(__tstate);
24965 if (PyErr_Occurred()) SWIG_fail;
24966 }
24967 resultobj = SWIG_Py_Void();
24968 return resultobj;
24969fail:
24970 return NULL;
24971}
24972
24973
24974SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24975 PyObject *resultobj = 0;
24976 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24977 void *argp1 = 0 ;
24978 int res1 = 0 ;
24979 PyObject *swig_obj[1] ;
24980
24981 if (!args) SWIG_fail;
24982 swig_obj[0] = args;
24983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24984 if (!SWIG_IsOK(res1)) {
24985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24986 }
24987 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24988 {
24989 PyThreadState* __tstate = wxPyBeginAllowThreads();
24990 (arg1)->UnMask();
24991 wxPyEndAllowThreads(__tstate);
24992 if (PyErr_Occurred()) SWIG_fail;
24993 }
24994 resultobj = SWIG_Py_Void();
24995 return resultobj;
24996fail:
24997 return NULL;
24998}
24999
25000
25001SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25002 PyObject *obj;
25003 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25004 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
25005 return SWIG_Py_Void();
25006}
25007
25008SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25009 return SWIG_Python_InitShadowInstance(args);
25010}
25011
25012SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25013 PyObject *resultobj = 0;
25014 wxWindow *arg1 = (wxWindow *) 0 ;
25015 wxBitmap const &arg2_defvalue = wxNullBitmap ;
25016 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25017 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25018 wxBufferedPaintDC *result = 0 ;
25019 void *argp1 = 0 ;
25020 int res1 = 0 ;
25021 void *argp2 = 0 ;
25022 int res2 = 0 ;
25023 int val3 ;
25024 int ecode3 = 0 ;
25025 PyObject * obj0 = 0 ;
25026 PyObject * obj1 = 0 ;
25027 PyObject * obj2 = 0 ;
25028 char * kwnames[] = {
25029 (char *) "window",(char *) "buffer",(char *) "style", NULL
25030 };
25031
25032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25034 if (!SWIG_IsOK(res1)) {
25035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25036 }
25037 arg1 = reinterpret_cast< wxWindow * >(argp1);
25038 if (obj1) {
25039 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
25040 if (!SWIG_IsOK(res2)) {
25041 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 25042 }
554f62e9
RD
25043 if (!argp2) {
25044 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 25045 }
554f62e9
RD
25046 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25047 }
25048 if (obj2) {
25049 ecode3 = SWIG_AsVal_int(obj2, &val3);
25050 if (!SWIG_IsOK(ecode3)) {
25051 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
25052 }
25053 arg3 = static_cast< int >(val3);
25054 }
25055 {
25056 if (!wxPyCheckForApp()) SWIG_fail;
25057 PyThreadState* __tstate = wxPyBeginAllowThreads();
25058 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
25059 wxPyEndAllowThreads(__tstate);
25060 if (PyErr_Occurred()) SWIG_fail;
25061 }
25062 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25063 return resultobj;
25064fail:
25065 return NULL;
25066}
25067
25068
25069SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25070 PyObject *obj;
25071 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25072 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
25073 return SWIG_Py_Void();
25074}
25075
25076SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25077 return SWIG_Python_InitShadowInstance(args);
25078}
25079
24f6c4e8 25080SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
25081 PyObject *resultobj = 0;
25082 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 25083 wxAutoBufferedPaintDC *result = 0 ;
554f62e9
RD
25084 void *argp1 = 0 ;
25085 int res1 = 0 ;
25086 PyObject * obj0 = 0 ;
25087 char * kwnames[] = {
25088 (char *) "win", NULL
25089 };
25090
24f6c4e8 25091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
554f62e9
RD
25092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25093 if (!SWIG_IsOK(res1)) {
24f6c4e8 25094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
554f62e9
RD
25095 }
25096 arg1 = reinterpret_cast< wxWindow * >(argp1);
25097 {
554f62e9 25098 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 25099 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
554f62e9
RD
25100 wxPyEndAllowThreads(__tstate);
25101 if (PyErr_Occurred()) SWIG_fail;
25102 }
24f6c4e8 25103 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
554f62e9
RD
25104 return resultobj;
25105fail:
25106 return NULL;
25107}
25108
25109
24f6c4e8 25110SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
25111 PyObject *obj;
25112 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 25113 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
554f62e9
RD
25114 return SWIG_Py_Void();
25115}
25116
24f6c4e8 25117SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
25118 return SWIG_Python_InitShadowInstance(args);
25119}
25120
8e99bda9
RD
25121SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25122 PyObject *resultobj = 0;
25123 wxWindow *arg1 = (wxWindow *) 0 ;
25124 wxDC *result = 0 ;
25125 void *argp1 = 0 ;
25126 int res1 = 0 ;
25127 PyObject * obj0 = 0 ;
25128 char * kwnames[] = {
25129 (char *) "window", NULL
25130 };
25131
25132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
25133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25134 if (!SWIG_IsOK(res1)) {
25135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
25136 }
25137 arg1 = reinterpret_cast< wxWindow * >(argp1);
25138 {
25139 PyThreadState* __tstate = wxPyBeginAllowThreads();
25140 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
25141 wxPyEndAllowThreads(__tstate);
25142 if (PyErr_Occurred()) SWIG_fail;
25143 }
25144 {
25145 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
25146 }
25147 return resultobj;
25148fail:
25149 return NULL;
25150}
25151
25152
554f62e9
RD
25153SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25154 PyObject *resultobj = 0;
25155 wxDC *arg1 = 0 ;
25156 bool arg2 ;
25157 wxMirrorDC *result = 0 ;
25158 void *argp1 = 0 ;
25159 int res1 = 0 ;
25160 bool val2 ;
25161 int ecode2 = 0 ;
25162 PyObject * obj0 = 0 ;
25163 PyObject * obj1 = 0 ;
25164 char * kwnames[] = {
25165 (char *) "dc",(char *) "mirror", NULL
25166 };
25167
25168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
25169 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
25170 if (!SWIG_IsOK(res1)) {
25171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25172 }
25173 if (!argp1) {
25174 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25175 }
25176 arg1 = reinterpret_cast< wxDC * >(argp1);
25177 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25178 if (!SWIG_IsOK(ecode2)) {
25179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
25180 }
25181 arg2 = static_cast< bool >(val2);
25182 {
25183 if (!wxPyCheckForApp()) SWIG_fail;
25184 PyThreadState* __tstate = wxPyBeginAllowThreads();
25185 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
25186 wxPyEndAllowThreads(__tstate);
25187 if (PyErr_Occurred()) SWIG_fail;
25188 }
25189 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
25190 return resultobj;
25191fail:
25192 return NULL;
25193}
25194
25195
25196SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25197 PyObject *obj;
25198 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25199 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
25200 return SWIG_Py_Void();
25201}
25202
25203SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25204 return SWIG_Python_InitShadowInstance(args);
25205}
25206
25207SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25208 PyObject *resultobj = 0;
25209 wxPrintData *arg1 = 0 ;
25210 wxPostScriptDC *result = 0 ;
25211 void *argp1 = 0 ;
25212 int res1 = 0 ;
25213 PyObject * obj0 = 0 ;
25214 char * kwnames[] = {
25215 (char *) "printData", NULL
25216 };
25217
25218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
25219 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25220 if (!SWIG_IsOK(res1)) {
25221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25222 }
25223 if (!argp1) {
25224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25225 }
25226 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25227 {
25228 if (!wxPyCheckForApp()) SWIG_fail;
25229 PyThreadState* __tstate = wxPyBeginAllowThreads();
25230 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
25231 wxPyEndAllowThreads(__tstate);
25232 if (PyErr_Occurred()) SWIG_fail;
25233 }
25234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
25235 return resultobj;
25236fail:
25237 return NULL;
25238}
25239
25240
25241SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25242 PyObject *resultobj = 0;
25243 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25244 wxPrintData *result = 0 ;
25245 void *argp1 = 0 ;
25246 int res1 = 0 ;
25247 PyObject *swig_obj[1] ;
25248
25249 if (!args) SWIG_fail;
25250 swig_obj[0] = args;
25251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25252 if (!SWIG_IsOK(res1)) {
25253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25254 }
25255 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25256 {
25257 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 25258 {
554f62e9
RD
25259 wxPrintData &_result_ref = (arg1)->GetPrintData();
25260 result = (wxPrintData *) &_result_ref;
093d3ff1 25261 }
554f62e9
RD
25262 wxPyEndAllowThreads(__tstate);
25263 if (PyErr_Occurred()) SWIG_fail;
25264 }
25265 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
25266 return resultobj;
25267fail:
25268 return NULL;
25269}
25270
25271
25272SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25273 PyObject *resultobj = 0;
25274 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25275 wxPrintData *arg2 = 0 ;
25276 void *argp1 = 0 ;
25277 int res1 = 0 ;
25278 void *argp2 = 0 ;
25279 int res2 = 0 ;
25280 PyObject * obj0 = 0 ;
25281 PyObject * obj1 = 0 ;
25282 char * kwnames[] = {
25283 (char *) "self",(char *) "data", NULL
25284 };
25285
25286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
25287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25288 if (!SWIG_IsOK(res1)) {
25289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25290 }
25291 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25292 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
25293 if (!SWIG_IsOK(res2)) {
25294 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25295 }
25296 if (!argp2) {
25297 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25298 }
25299 arg2 = reinterpret_cast< wxPrintData * >(argp2);
25300 {
25301 PyThreadState* __tstate = wxPyBeginAllowThreads();
25302 (arg1)->SetPrintData((wxPrintData const &)*arg2);
25303 wxPyEndAllowThreads(__tstate);
25304 if (PyErr_Occurred()) SWIG_fail;
25305 }
25306 resultobj = SWIG_Py_Void();
25307 return resultobj;
25308fail:
25309 return NULL;
25310}
25311
25312
25313SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25314 PyObject *resultobj = 0;
25315 int arg1 ;
25316 int val1 ;
25317 int ecode1 = 0 ;
25318 PyObject * obj0 = 0 ;
25319 char * kwnames[] = {
25320 (char *) "ppi", NULL
25321 };
25322
25323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
25324 ecode1 = SWIG_AsVal_int(obj0, &val1);
25325 if (!SWIG_IsOK(ecode1)) {
25326 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
25327 }
25328 arg1 = static_cast< int >(val1);
25329 {
25330 PyThreadState* __tstate = wxPyBeginAllowThreads();
25331 wxPostScriptDC::SetResolution(arg1);
25332 wxPyEndAllowThreads(__tstate);
25333 if (PyErr_Occurred()) SWIG_fail;
25334 }
25335 resultobj = SWIG_Py_Void();
25336 return resultobj;
25337fail:
25338 return NULL;
25339}
25340
25341
25342SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25343 PyObject *resultobj = 0;
25344 int result;
25345
25346 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
25347 {
25348 PyThreadState* __tstate = wxPyBeginAllowThreads();
25349 result = (int)wxPostScriptDC::GetResolution();
25350 wxPyEndAllowThreads(__tstate);
25351 if (PyErr_Occurred()) SWIG_fail;
25352 }
25353 resultobj = SWIG_From_int(static_cast< int >(result));
25354 return resultobj;
25355fail:
25356 return NULL;
25357}
25358
25359
25360SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25361 PyObject *obj;
25362 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25363 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
25364 return SWIG_Py_Void();
25365}
25366
25367SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25368 return SWIG_Python_InitShadowInstance(args);
25369}
25370
25371SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25372 PyObject *resultobj = 0;
25373 wxString const &arg1_defvalue = wxPyEmptyString ;
25374 wxString *arg1 = (wxString *) &arg1_defvalue ;
25375 wxMetaFile *result = 0 ;
25376 bool temp1 = false ;
25377 PyObject * obj0 = 0 ;
25378 char * kwnames[] = {
25379 (char *) "filename", NULL
25380 };
25381
25382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
25383 if (obj0) {
093d3ff1 25384 {
554f62e9
RD
25385 arg1 = wxString_in_helper(obj0);
25386 if (arg1 == NULL) SWIG_fail;
25387 temp1 = true;
093d3ff1 25388 }
554f62e9
RD
25389 }
25390 {
25391 if (!wxPyCheckForApp()) SWIG_fail;
25392 PyThreadState* __tstate = wxPyBeginAllowThreads();
25393 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25394 wxPyEndAllowThreads(__tstate);
25395 if (PyErr_Occurred()) SWIG_fail;
25396 }
25397 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25398 {
25399 if (temp1)
25400 delete arg1;
25401 }
25402 return resultobj;
25403fail:
25404 {
25405 if (temp1)
25406 delete arg1;
25407 }
25408 return NULL;
25409}
25410
25411
25412SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25413 PyObject *resultobj = 0;
25414 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25415 void *argp1 = 0 ;
25416 int res1 = 0 ;
25417 PyObject *swig_obj[1] ;
25418
25419 if (!args) SWIG_fail;
25420 swig_obj[0] = args;
25421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
25422 if (!SWIG_IsOK(res1)) {
25423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25424 }
25425 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25426 {
25427 PyThreadState* __tstate = wxPyBeginAllowThreads();
25428 delete arg1;
25429
25430 wxPyEndAllowThreads(__tstate);
25431 if (PyErr_Occurred()) SWIG_fail;
25432 }
25433 resultobj = SWIG_Py_Void();
25434 return resultobj;
25435fail:
25436 return NULL;
25437}
25438
25439
b39fe951 25440SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
25441 PyObject *resultobj = 0;
25442 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25443 bool result;
25444 void *argp1 = 0 ;
25445 int res1 = 0 ;
25446 PyObject *swig_obj[1] ;
25447
25448 if (!args) SWIG_fail;
25449 swig_obj[0] = args;
25450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25451 if (!SWIG_IsOK(res1)) {
b39fe951 25452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
554f62e9
RD
25453 }
25454 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25455 {
25456 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 25457 result = (bool)(arg1)->IsOk();
554f62e9
RD
25458 wxPyEndAllowThreads(__tstate);
25459 if (PyErr_Occurred()) SWIG_fail;
25460 }
25461 {
25462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25463 }
25464 return resultobj;
25465fail:
25466 return NULL;
25467}
25468
25469
25470SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25471 PyObject *resultobj = 0;
25472 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25473 int arg2 = (int) 0 ;
25474 int arg3 = (int) 0 ;
25475 bool result;
25476 void *argp1 = 0 ;
25477 int res1 = 0 ;
25478 int val2 ;
25479 int ecode2 = 0 ;
25480 int val3 ;
25481 int ecode3 = 0 ;
25482 PyObject * obj0 = 0 ;
25483 PyObject * obj1 = 0 ;
25484 PyObject * obj2 = 0 ;
25485 char * kwnames[] = {
25486 (char *) "self",(char *) "width",(char *) "height", NULL
25487 };
25488
25489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25491 if (!SWIG_IsOK(res1)) {
25492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25493 }
25494 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25495 if (obj1) {
25496 ecode2 = SWIG_AsVal_int(obj1, &val2);
25497 if (!SWIG_IsOK(ecode2)) {
25498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25499 }
25500 arg2 = static_cast< int >(val2);
25501 }
25502 if (obj2) {
25503 ecode3 = SWIG_AsVal_int(obj2, &val3);
25504 if (!SWIG_IsOK(ecode3)) {
25505 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25506 }
25507 arg3 = static_cast< int >(val3);
25508 }
25509 {
25510 PyThreadState* __tstate = wxPyBeginAllowThreads();
25511 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25512 wxPyEndAllowThreads(__tstate);
25513 if (PyErr_Occurred()) SWIG_fail;
25514 }
25515 {
25516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25517 }
25518 return resultobj;
25519fail:
25520 return NULL;
25521}
25522
25523
25524SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25525 PyObject *resultobj = 0;
25526 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25527 wxSize result;
25528 void *argp1 = 0 ;
25529 int res1 = 0 ;
25530 PyObject *swig_obj[1] ;
25531
25532 if (!args) SWIG_fail;
25533 swig_obj[0] = args;
25534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25535 if (!SWIG_IsOK(res1)) {
25536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25537 }
25538 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25539 {
25540 PyThreadState* __tstate = wxPyBeginAllowThreads();
25541 result = (arg1)->GetSize();
25542 wxPyEndAllowThreads(__tstate);
25543 if (PyErr_Occurred()) SWIG_fail;
25544 }
25545 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25546 return resultobj;
25547fail:
25548 return NULL;
25549}
25550
25551
25552SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25553 PyObject *resultobj = 0;
25554 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25555 int result;
25556 void *argp1 = 0 ;
25557 int res1 = 0 ;
25558 PyObject *swig_obj[1] ;
25559
25560 if (!args) SWIG_fail;
25561 swig_obj[0] = args;
25562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25563 if (!SWIG_IsOK(res1)) {
25564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25565 }
25566 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25567 {
25568 PyThreadState* __tstate = wxPyBeginAllowThreads();
25569 result = (int)(arg1)->GetWidth();
25570 wxPyEndAllowThreads(__tstate);
25571 if (PyErr_Occurred()) SWIG_fail;
25572 }
25573 resultobj = SWIG_From_int(static_cast< int >(result));
25574 return resultobj;
25575fail:
25576 return NULL;
25577}
25578
25579
25580SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25581 PyObject *resultobj = 0;
25582 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25583 int result;
25584 void *argp1 = 0 ;
25585 int res1 = 0 ;
25586 PyObject *swig_obj[1] ;
25587
25588 if (!args) SWIG_fail;
25589 swig_obj[0] = args;
25590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25591 if (!SWIG_IsOK(res1)) {
25592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25593 }
25594 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25595 {
25596 PyThreadState* __tstate = wxPyBeginAllowThreads();
25597 result = (int)(arg1)->GetHeight();
25598 wxPyEndAllowThreads(__tstate);
25599 if (PyErr_Occurred()) SWIG_fail;
25600 }
25601 resultobj = SWIG_From_int(static_cast< int >(result));
25602 return resultobj;
25603fail:
25604 return NULL;
25605}
25606
25607
25608SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25609 PyObject *resultobj = 0;
25610 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25611 wxString *result = 0 ;
25612 void *argp1 = 0 ;
25613 int res1 = 0 ;
25614 PyObject *swig_obj[1] ;
25615
25616 if (!args) SWIG_fail;
25617 swig_obj[0] = args;
25618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25619 if (!SWIG_IsOK(res1)) {
25620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
25621 }
25622 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25623 {
25624 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 25625 {
554f62e9
RD
25626 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
25627 result = (wxString *) &_result_ref;
e2950dbb 25628 }
554f62e9
RD
25629 wxPyEndAllowThreads(__tstate);
25630 if (PyErr_Occurred()) SWIG_fail;
25631 }
25632 {
25633#if wxUSE_UNICODE
25634 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
25635#else
25636 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
25637#endif
25638 }
25639 return resultobj;
25640fail:
25641 return NULL;
25642}
25643
25644
25645SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25646 PyObject *obj;
25647 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25648 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25649 return SWIG_Py_Void();
25650}
25651
25652SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25653 return SWIG_Python_InitShadowInstance(args);
25654}
25655
25656SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25657 PyObject *resultobj = 0;
25658 wxString const &arg1_defvalue = wxPyEmptyString ;
25659 wxString *arg1 = (wxString *) &arg1_defvalue ;
25660 int arg2 = (int) 0 ;
25661 int arg3 = (int) 0 ;
25662 wxString const &arg4_defvalue = wxPyEmptyString ;
25663 wxString *arg4 = (wxString *) &arg4_defvalue ;
25664 wxMetaFileDC *result = 0 ;
25665 bool temp1 = false ;
25666 int val2 ;
25667 int ecode2 = 0 ;
25668 int val3 ;
25669 int ecode3 = 0 ;
25670 bool temp4 = false ;
25671 PyObject * obj0 = 0 ;
25672 PyObject * obj1 = 0 ;
25673 PyObject * obj2 = 0 ;
25674 PyObject * obj3 = 0 ;
25675 char * kwnames[] = {
25676 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25677 };
25678
25679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25680 if (obj0) {
e2950dbb 25681 {
554f62e9
RD
25682 arg1 = wxString_in_helper(obj0);
25683 if (arg1 == NULL) SWIG_fail;
25684 temp1 = true;
e2950dbb 25685 }
554f62e9
RD
25686 }
25687 if (obj1) {
25688 ecode2 = SWIG_AsVal_int(obj1, &val2);
25689 if (!SWIG_IsOK(ecode2)) {
25690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25691 }
25692 arg2 = static_cast< int >(val2);
25693 }
25694 if (obj2) {
25695 ecode3 = SWIG_AsVal_int(obj2, &val3);
25696 if (!SWIG_IsOK(ecode3)) {
25697 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25698 }
25699 arg3 = static_cast< int >(val3);
25700 }
25701 if (obj3) {
093d3ff1 25702 {
554f62e9
RD
25703 arg4 = wxString_in_helper(obj3);
25704 if (arg4 == NULL) SWIG_fail;
25705 temp4 = true;
093d3ff1 25706 }
554f62e9
RD
25707 }
25708 {
25709 if (!wxPyCheckForApp()) SWIG_fail;
25710 PyThreadState* __tstate = wxPyBeginAllowThreads();
25711 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25712 wxPyEndAllowThreads(__tstate);
25713 if (PyErr_Occurred()) SWIG_fail;
25714 }
25715 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25716 {
25717 if (temp1)
25718 delete arg1;
25719 }
25720 {
25721 if (temp4)
25722 delete arg4;
25723 }
25724 return resultobj;
25725fail:
25726 {
25727 if (temp1)
25728 delete arg1;
25729 }
25730 {
25731 if (temp4)
25732 delete arg4;
25733 }
25734 return NULL;
25735}
25736
25737
25738SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25739 PyObject *resultobj = 0;
25740 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25741 wxMetaFile *result = 0 ;
25742 void *argp1 = 0 ;
25743 int res1 = 0 ;
25744 PyObject *swig_obj[1] ;
25745
25746 if (!args) SWIG_fail;
25747 swig_obj[0] = args;
25748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25749 if (!SWIG_IsOK(res1)) {
25750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25751 }
25752 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25753 {
25754 PyThreadState* __tstate = wxPyBeginAllowThreads();
25755 result = (wxMetaFile *)(arg1)->Close();
25756 wxPyEndAllowThreads(__tstate);
25757 if (PyErr_Occurred()) SWIG_fail;
25758 }
25759 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25760 return resultobj;
25761fail:
25762 return NULL;
25763}
25764
25765
25766SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25767 PyObject *obj;
25768 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25769 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25770 return SWIG_Py_Void();
25771}
25772
25773SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25774 return SWIG_Python_InitShadowInstance(args);
25775}
25776
25777SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25778 PyObject *resultobj = 0;
25779 wxPrintData *arg1 = 0 ;
25780 wxPrinterDC *result = 0 ;
25781 void *argp1 = 0 ;
25782 int res1 = 0 ;
25783 PyObject * obj0 = 0 ;
25784 char * kwnames[] = {
25785 (char *) "printData", NULL
25786 };
25787
25788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25789 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25790 if (!SWIG_IsOK(res1)) {
25791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25792 }
25793 if (!argp1) {
25794 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25795 }
25796 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25797 {
25798 if (!wxPyCheckForApp()) SWIG_fail;
25799 PyThreadState* __tstate = wxPyBeginAllowThreads();
25800 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25801 wxPyEndAllowThreads(__tstate);
25802 if (PyErr_Occurred()) SWIG_fail;
25803 }
25804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25805 return resultobj;
25806fail:
25807 return NULL;
25808}
25809
25810
25811SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25812 PyObject *obj;
25813 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25814 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25815 return SWIG_Py_Void();
25816}
25817
25818SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25819 return SWIG_Python_InitShadowInstance(args);
25820}
25821
70d7cb34
RD
25822SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25823 PyObject *resultobj = 0;
25824 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25825 wxGraphicsObject *result = 0 ;
25826 void *argp1 = 0 ;
25827 int res1 = 0 ;
25828 PyObject * obj0 = 0 ;
25829 char * kwnames[] = {
25830 (char *) "renderer", NULL
25831 };
25832
25833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25834 if (obj0) {
25835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25836 if (!SWIG_IsOK(res1)) {
25837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25838 }
25839 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25840 }
25841 {
25842 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25843 if (PyErr_Occurred()) SWIG_fail;
25844 }
25845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25846 return resultobj;
25847fail:
25848 return NULL;
25849}
25850
25851
25852SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25853 PyObject *resultobj = 0;
25854 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25855 void *argp1 = 0 ;
25856 int res1 = 0 ;
25857 PyObject *swig_obj[1] ;
25858
25859 if (!args) SWIG_fail;
25860 swig_obj[0] = args;
25861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25862 if (!SWIG_IsOK(res1)) {
25863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25864 }
25865 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25866 {
25867 delete arg1;
25868
25869 if (PyErr_Occurred()) SWIG_fail;
25870 }
25871 resultobj = SWIG_Py_Void();
25872 return resultobj;
25873fail:
25874 return NULL;
25875}
25876
25877
25878SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25879 PyObject *resultobj = 0;
25880 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25881 bool result;
25882 void *argp1 = 0 ;
25883 int res1 = 0 ;
25884 PyObject *swig_obj[1] ;
25885
25886 if (!args) SWIG_fail;
25887 swig_obj[0] = args;
25888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25889 if (!SWIG_IsOK(res1)) {
25890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25891 }
25892 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25893 {
25894 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25895 if (PyErr_Occurred()) SWIG_fail;
25896 }
25897 {
25898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25899 }
25900 return resultobj;
25901fail:
25902 return NULL;
25903}
25904
25905
25906SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25907 PyObject *resultobj = 0;
25908 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25909 wxGraphicsRenderer *result = 0 ;
25910 void *argp1 = 0 ;
25911 int res1 = 0 ;
25912 PyObject *swig_obj[1] ;
25913
25914 if (!args) SWIG_fail;
25915 swig_obj[0] = args;
25916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25917 if (!SWIG_IsOK(res1)) {
25918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25919 }
25920 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25921 {
25922 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25923 if (PyErr_Occurred()) SWIG_fail;
25924 }
25925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25926 return resultobj;
25927fail:
25928 return NULL;
25929}
25930
25931
25932SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25933 PyObject *obj;
25934 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25935 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25936 return SWIG_Py_Void();
25937}
25938
25939SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25940 return SWIG_Python_InitShadowInstance(args);
25941}
25942
25943SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25944 PyObject *resultobj = 0;
25945 wxGraphicsPen *result = 0 ;
25946
25947 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25948 {
25949 result = (wxGraphicsPen *)new wxGraphicsPen();
25950 if (PyErr_Occurred()) SWIG_fail;
25951 }
25952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25953 return resultobj;
25954fail:
25955 return NULL;
25956}
25957
25958
25959SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25960 PyObject *resultobj = 0;
25961 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25962 void *argp1 = 0 ;
25963 int res1 = 0 ;
25964 PyObject *swig_obj[1] ;
25965
25966 if (!args) SWIG_fail;
25967 swig_obj[0] = args;
25968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25969 if (!SWIG_IsOK(res1)) {
25970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25971 }
25972 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25973 {
25974 delete arg1;
25975
25976 if (PyErr_Occurred()) SWIG_fail;
25977 }
25978 resultobj = SWIG_Py_Void();
25979 return resultobj;
25980fail:
25981 return NULL;
25982}
25983
25984
25985SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25986 PyObject *obj;
25987 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25988 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25989 return SWIG_Py_Void();
25990}
25991
25992SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25993 return SWIG_Python_InitShadowInstance(args);
25994}
25995
25996SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25997 PyObject *resultobj = 0;
25998 wxGraphicsBrush *result = 0 ;
25999
26000 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
26001 {
26002 result = (wxGraphicsBrush *)new wxGraphicsBrush();
26003 if (PyErr_Occurred()) SWIG_fail;
26004 }
26005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
26006 return resultobj;
26007fail:
26008 return NULL;
26009}
26010
26011
26012SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26013 PyObject *resultobj = 0;
26014 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
26015 void *argp1 = 0 ;
26016 int res1 = 0 ;
26017 PyObject *swig_obj[1] ;
26018
26019 if (!args) SWIG_fail;
26020 swig_obj[0] = args;
26021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
26022 if (!SWIG_IsOK(res1)) {
26023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
26024 }
26025 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
26026 {
26027 delete arg1;
26028
26029 if (PyErr_Occurred()) SWIG_fail;
26030 }
26031 resultobj = SWIG_Py_Void();
26032 return resultobj;
26033fail:
26034 return NULL;
26035}
26036
26037
26038SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26039 PyObject *obj;
26040 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26041 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
26042 return SWIG_Py_Void();
26043}
26044
26045SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26046 return SWIG_Python_InitShadowInstance(args);
26047}
26048
26049SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26050 PyObject *resultobj = 0;
26051 wxGraphicsFont *result = 0 ;
26052
26053 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
26054 {
26055 result = (wxGraphicsFont *)new wxGraphicsFont();
26056 if (PyErr_Occurred()) SWIG_fail;
26057 }
26058 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
26059 return resultobj;
26060fail:
26061 return NULL;
26062}
26063
26064
26065SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26066 PyObject *resultobj = 0;
26067 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
26068 void *argp1 = 0 ;
26069 int res1 = 0 ;
26070 PyObject *swig_obj[1] ;
26071
26072 if (!args) SWIG_fail;
26073 swig_obj[0] = args;
26074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
26075 if (!SWIG_IsOK(res1)) {
26076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
26077 }
26078 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
26079 {
26080 delete arg1;
26081
26082 if (PyErr_Occurred()) SWIG_fail;
26083 }
26084 resultobj = SWIG_Py_Void();
26085 return resultobj;
26086fail:
26087 return NULL;
26088}
26089
26090
26091SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26092 PyObject *obj;
26093 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26094 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
26095 return SWIG_Py_Void();
26096}
26097
26098SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26099 return SWIG_Python_InitShadowInstance(args);
26100}
26101
26102SWIGINTERN int NullGraphicsPen_set(PyObject *) {
26103 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
26104 return 1;
26105}
26106
26107
26108SWIGINTERN PyObject *NullGraphicsPen_get(void) {
26109 PyObject *pyobj = 0;
26110
26111 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
26112 return pyobj;
26113}
26114
26115
26116SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
26117 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
26118 return 1;
26119}
26120
26121
26122SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
26123 PyObject *pyobj = 0;
26124
26125 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
26126 return pyobj;
26127}
26128
26129
26130SWIGINTERN int NullGraphicsFont_set(PyObject *) {
26131 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
26132 return 1;
26133}
26134
26135
26136SWIGINTERN PyObject *NullGraphicsFont_get(void) {
26137 PyObject *pyobj = 0;
26138
26139 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
26140 return pyobj;
26141}
26142
26143
72ef6efb 26144SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 26145 PyObject *resultobj = 0;
72ef6efb 26146 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
554f62e9
RD
26147 void *argp1 = 0 ;
26148 int res1 = 0 ;
26149 PyObject *swig_obj[1] ;
26150
26151 if (!args) SWIG_fail;
26152 swig_obj[0] = args;
72ef6efb 26153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
554f62e9 26154 if (!SWIG_IsOK(res1)) {
72ef6efb 26155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
554f62e9 26156 }
72ef6efb 26157 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
554f62e9 26158 {
554f62e9
RD
26159 delete arg1;
26160
554f62e9
RD
26161 if (PyErr_Occurred()) SWIG_fail;
26162 }
26163 resultobj = SWIG_Py_Void();
26164 return resultobj;
26165fail:
26166 return NULL;
26167}
26168
26169
70d7cb34
RD
26170SWIGINTERN PyObject *_wrap_GraphicsPath_Clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26171 PyObject *resultobj = 0;
26172 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26173 wxGraphicsPath *result = 0 ;
26174 void *argp1 = 0 ;
26175 int res1 = 0 ;
26176 PyObject *swig_obj[1] ;
26177
26178 if (!args) SWIG_fail;
26179 swig_obj[0] = args;
26180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26181 if (!SWIG_IsOK(res1)) {
26182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Clone" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
26183 }
26184 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26185 {
26186 result = (wxGraphicsPath *)((wxGraphicsPath const *)arg1)->Clone();
26187 if (PyErr_Occurred()) SWIG_fail;
26188 }
26189 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26190 return resultobj;
26191fail:
26192 return NULL;
26193}
26194
26195
26196SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
554f62e9 26197 PyObject *resultobj = 0;
72ef6efb
RD
26198 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26199 wxDouble arg2 ;
26200 wxDouble arg3 ;
554f62e9
RD
26201 void *argp1 = 0 ;
26202 int res1 = 0 ;
72ef6efb
RD
26203 double val2 ;
26204 int ecode2 = 0 ;
26205 double val3 ;
26206 int ecode3 = 0 ;
554f62e9 26207
70d7cb34
RD
26208 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
554f62e9 26210 if (!SWIG_IsOK(res1)) {
72ef6efb 26211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
554f62e9 26212 }
72ef6efb 26213 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26214 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
72ef6efb
RD
26215 if (!SWIG_IsOK(ecode2)) {
26216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26217 }
26218 arg2 = static_cast< wxDouble >(val2);
70d7cb34 26219 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
72ef6efb
RD
26220 if (!SWIG_IsOK(ecode3)) {
26221 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26222 }
26223 arg3 = static_cast< wxDouble >(val3);
554f62e9 26224 {
72ef6efb 26225 (arg1)->MoveToPoint(arg2,arg3);
554f62e9
RD
26226 if (PyErr_Occurred()) SWIG_fail;
26227 }
72ef6efb 26228 resultobj = SWIG_Py_Void();
554f62e9
RD
26229 return resultobj;
26230fail:
26231 return NULL;
26232}
26233
26234
70d7cb34
RD
26235SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26236 PyObject *resultobj = 0;
26237 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26238 wxPoint2D *arg2 = 0 ;
26239 void *argp1 = 0 ;
26240 int res1 = 0 ;
26241 wxPoint2D temp2 ;
26242
26243 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26245 if (!SWIG_IsOK(res1)) {
26246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26247 }
26248 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26249 {
26250 arg2 = &temp2;
26251 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26252 }
26253 {
26254 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
26255 if (PyErr_Occurred()) SWIG_fail;
26256 }
26257 resultobj = SWIG_Py_Void();
26258 return resultobj;
26259fail:
26260 return NULL;
26261}
26262
26263
26264SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
26265 int argc;
26266 PyObject *argv[4];
26267
26268 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
26269 --argc;
26270 if (argc == 2) {
26271 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
26272 }
26273 if (argc == 3) {
26274 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
26275 }
26276
26277fail:
26278 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
26279 return NULL;
26280}
26281
26282
26283SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
554f62e9 26284 PyObject *resultobj = 0;
72ef6efb
RD
26285 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26286 wxDouble arg2 ;
26287 wxDouble arg3 ;
554f62e9
RD
26288 void *argp1 = 0 ;
26289 int res1 = 0 ;
72ef6efb
RD
26290 double val2 ;
26291 int ecode2 = 0 ;
26292 double val3 ;
26293 int ecode3 = 0 ;
554f62e9 26294
70d7cb34
RD
26295 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
554f62e9 26297 if (!SWIG_IsOK(res1)) {
72ef6efb 26298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
554f62e9 26299 }
72ef6efb 26300 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26301 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
72ef6efb
RD
26302 if (!SWIG_IsOK(ecode2)) {
26303 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26304 }
26305 arg2 = static_cast< wxDouble >(val2);
70d7cb34 26306 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
72ef6efb
RD
26307 if (!SWIG_IsOK(ecode3)) {
26308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26309 }
26310 arg3 = static_cast< wxDouble >(val3);
554f62e9 26311 {
72ef6efb 26312 (arg1)->AddLineToPoint(arg2,arg3);
554f62e9
RD
26313 if (PyErr_Occurred()) SWIG_fail;
26314 }
72ef6efb 26315 resultobj = SWIG_Py_Void();
554f62e9
RD
26316 return resultobj;
26317fail:
26318 return NULL;
26319}
26320
26321
70d7cb34
RD
26322SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26323 PyObject *resultobj = 0;
26324 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26325 wxPoint2D *arg2 = 0 ;
26326 void *argp1 = 0 ;
26327 int res1 = 0 ;
26328 wxPoint2D temp2 ;
26329
26330 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26332 if (!SWIG_IsOK(res1)) {
26333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26334 }
26335 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26336 {
26337 arg2 = &temp2;
26338 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26339 }
26340 {
26341 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
26342 if (PyErr_Occurred()) SWIG_fail;
26343 }
26344 resultobj = SWIG_Py_Void();
26345 return resultobj;
26346fail:
26347 return NULL;
26348}
26349
26350
26351SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26352 int argc;
26353 PyObject *argv[4];
26354
26355 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26356 --argc;
26357 if (argc == 2) {
26358 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
26359 }
26360 if (argc == 3) {
26361 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
26362 }
26363
26364fail:
26365 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
26366 return NULL;
26367}
26368
26369
26370SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
554f62e9 26371 PyObject *resultobj = 0;
72ef6efb
RD
26372 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26373 wxDouble arg2 ;
26374 wxDouble arg3 ;
26375 wxDouble arg4 ;
26376 wxDouble arg5 ;
26377 wxDouble arg6 ;
26378 wxDouble arg7 ;
554f62e9
RD
26379 void *argp1 = 0 ;
26380 int res1 = 0 ;
72ef6efb
RD
26381 double val2 ;
26382 int ecode2 = 0 ;
26383 double val3 ;
26384 int ecode3 = 0 ;
26385 double val4 ;
26386 int ecode4 = 0 ;
26387 double val5 ;
26388 int ecode5 = 0 ;
26389 double val6 ;
26390 int ecode6 = 0 ;
26391 double val7 ;
26392 int ecode7 = 0 ;
72ef6efb 26393
70d7cb34
RD
26394 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
72ef6efb
RD
26396 if (!SWIG_IsOK(res1)) {
26397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26398 }
26399 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26400 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
72ef6efb
RD
26401 if (!SWIG_IsOK(ecode2)) {
26402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26403 }
26404 arg2 = static_cast< wxDouble >(val2);
70d7cb34 26405 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
72ef6efb
RD
26406 if (!SWIG_IsOK(ecode3)) {
26407 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26408 }
26409 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26410 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
72ef6efb
RD
26411 if (!SWIG_IsOK(ecode4)) {
26412 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26413 }
26414 arg4 = static_cast< wxDouble >(val4);
70d7cb34 26415 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
72ef6efb
RD
26416 if (!SWIG_IsOK(ecode5)) {
26417 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26418 }
26419 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26420 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
72ef6efb
RD
26421 if (!SWIG_IsOK(ecode6)) {
26422 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
26423 }
26424 arg6 = static_cast< wxDouble >(val6);
70d7cb34 26425 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
72ef6efb
RD
26426 if (!SWIG_IsOK(ecode7)) {
26427 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26428 }
26429 arg7 = static_cast< wxDouble >(val7);
26430 {
72ef6efb 26431 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
26432 if (PyErr_Occurred()) SWIG_fail;
26433 }
26434 resultobj = SWIG_Py_Void();
26435 return resultobj;
26436fail:
26437 return NULL;
26438}
26439
26440
70d7cb34
RD
26441SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26442 PyObject *resultobj = 0;
26443 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26444 wxPoint2D *arg2 = 0 ;
26445 wxPoint2D *arg3 = 0 ;
26446 wxPoint2D *arg4 = 0 ;
26447 void *argp1 = 0 ;
26448 int res1 = 0 ;
26449 wxPoint2D temp2 ;
26450 wxPoint2D temp3 ;
26451 wxPoint2D temp4 ;
26452
26453 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26455 if (!SWIG_IsOK(res1)) {
26456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26457 }
26458 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26459 {
26460 arg2 = &temp2;
26461 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26462 }
26463 {
26464 arg3 = &temp3;
26465 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
26466 }
26467 {
26468 arg4 = &temp4;
26469 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26470 }
26471 {
26472 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
26473 if (PyErr_Occurred()) SWIG_fail;
26474 }
26475 resultobj = SWIG_Py_Void();
26476 return resultobj;
26477fail:
26478 return NULL;
26479}
26480
26481
26482SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26483 int argc;
26484 PyObject *argv[8];
26485
26486 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26487 --argc;
26488 if (argc == 4) {
26489 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
26490 }
26491 if (argc == 7) {
26492 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
26493 }
26494
26495fail:
26496 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
26497 return NULL;
26498}
26499
26500
26501SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26502 PyObject *resultobj = 0;
26503 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26504 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26505 void *argp1 = 0 ;
26506 int res1 = 0 ;
26507 void *argp2 = 0 ;
26508 int res2 = 0 ;
26509 PyObject * obj0 = 0 ;
26510 PyObject * obj1 = 0 ;
26511 char * kwnames[] = {
26512 (char *) "self",(char *) "path", NULL
26513 };
26514
26515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
26516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26517 if (!SWIG_IsOK(res1)) {
26518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26519 }
26520 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26521 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26522 if (!SWIG_IsOK(res2)) {
26523 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26524 }
26525 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26526 {
26527 (arg1)->AddPath((wxGraphicsPath const *)arg2);
26528 if (PyErr_Occurred()) SWIG_fail;
26529 }
26530 resultobj = SWIG_Py_Void();
26531 return resultobj;
26532fail:
26533 return NULL;
26534}
26535
26536
72ef6efb
RD
26537SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26538 PyObject *resultobj = 0;
26539 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26540 void *argp1 = 0 ;
26541 int res1 = 0 ;
26542 PyObject *swig_obj[1] ;
26543
26544 if (!args) SWIG_fail;
26545 swig_obj[0] = args;
26546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26547 if (!SWIG_IsOK(res1)) {
26548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26549 }
26550 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26551 {
72ef6efb 26552 (arg1)->CloseSubpath();
72ef6efb
RD
26553 if (PyErr_Occurred()) SWIG_fail;
26554 }
26555 resultobj = SWIG_Py_Void();
26556 return resultobj;
26557fail:
26558 return NULL;
26559}
26560
26561
26562SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26563 PyObject *resultobj = 0;
26564 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26565 wxPoint2D result;
26566 void *argp1 = 0 ;
26567 int res1 = 0 ;
26568 PyObject *swig_obj[1] ;
26569
26570 if (!args) SWIG_fail;
26571 swig_obj[0] = args;
26572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26573 if (!SWIG_IsOK(res1)) {
26574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26575 }
26576 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26577 {
72ef6efb 26578 result = (arg1)->GetCurrentPoint();
72ef6efb
RD
26579 if (PyErr_Occurred()) SWIG_fail;
26580 }
70d7cb34
RD
26581 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
26582 return resultobj;
26583fail:
26584 return NULL;
26585}
26586
26587
26588SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26589 PyObject *resultobj = 0;
26590 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26591 wxDouble arg2 ;
26592 wxDouble arg3 ;
26593 wxDouble arg4 ;
26594 wxDouble arg5 ;
26595 wxDouble arg6 ;
26596 bool arg7 ;
26597 void *argp1 = 0 ;
26598 int res1 = 0 ;
26599 double val2 ;
26600 int ecode2 = 0 ;
26601 double val3 ;
26602 int ecode3 = 0 ;
26603 double val4 ;
26604 int ecode4 = 0 ;
26605 double val5 ;
26606 int ecode5 = 0 ;
26607 double val6 ;
26608 int ecode6 = 0 ;
26609 bool val7 ;
26610 int ecode7 = 0 ;
26611
26612 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26614 if (!SWIG_IsOK(res1)) {
26615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26616 }
26617 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26618 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26619 if (!SWIG_IsOK(ecode2)) {
26620 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
26621 }
26622 arg2 = static_cast< wxDouble >(val2);
26623 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26624 if (!SWIG_IsOK(ecode3)) {
26625 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26626 }
26627 arg3 = static_cast< wxDouble >(val3);
26628 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26629 if (!SWIG_IsOK(ecode4)) {
26630 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26631 }
26632 arg4 = static_cast< wxDouble >(val4);
26633 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26634 if (!SWIG_IsOK(ecode5)) {
26635 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26636 }
26637 arg5 = static_cast< wxDouble >(val5);
26638 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26639 if (!SWIG_IsOK(ecode6)) {
26640 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
26641 }
26642 arg6 = static_cast< wxDouble >(val6);
26643 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
26644 if (!SWIG_IsOK(ecode7)) {
26645 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
26646 }
26647 arg7 = static_cast< bool >(val7);
26648 {
26649 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
26650 if (PyErr_Occurred()) SWIG_fail;
26651 }
26652 resultobj = SWIG_Py_Void();
26653 return resultobj;
26654fail:
26655 return NULL;
26656}
26657
26658
26659SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26660 PyObject *resultobj = 0;
26661 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26662 wxPoint2D *arg2 = 0 ;
26663 wxDouble arg3 ;
26664 wxDouble arg4 ;
26665 wxDouble arg5 ;
26666 bool arg6 ;
26667 void *argp1 = 0 ;
26668 int res1 = 0 ;
26669 wxPoint2D temp2 ;
26670 double val3 ;
26671 int ecode3 = 0 ;
26672 double val4 ;
26673 int ecode4 = 0 ;
26674 double val5 ;
26675 int ecode5 = 0 ;
26676 bool val6 ;
26677 int ecode6 = 0 ;
26678
26679 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
26680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26681 if (!SWIG_IsOK(res1)) {
26682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26683 }
26684 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26685 {
26686 arg2 = &temp2;
26687 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26688 }
26689 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26690 if (!SWIG_IsOK(ecode3)) {
26691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26692 }
26693 arg3 = static_cast< wxDouble >(val3);
26694 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26695 if (!SWIG_IsOK(ecode4)) {
26696 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26697 }
26698 arg4 = static_cast< wxDouble >(val4);
26699 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26700 if (!SWIG_IsOK(ecode5)) {
26701 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26702 }
26703 arg5 = static_cast< wxDouble >(val5);
26704 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
26705 if (!SWIG_IsOK(ecode6)) {
26706 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
26707 }
26708 arg6 = static_cast< bool >(val6);
26709 {
26710 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
26711 if (PyErr_Occurred()) SWIG_fail;
26712 }
26713 resultobj = SWIG_Py_Void();
26714 return resultobj;
26715fail:
26716 return NULL;
26717}
26718
26719
26720SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
26721 int argc;
26722 PyObject *argv[8];
26723
26724 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
26725 --argc;
26726 if (argc == 6) {
26727 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
26728 }
26729 if (argc == 7) {
26730 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
26731 }
26732
26733fail:
26734 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
26735 return NULL;
26736}
26737
26738
26739SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26740 PyObject *resultobj = 0;
26741 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26742 wxDouble arg2 ;
26743 wxDouble arg3 ;
26744 wxDouble arg4 ;
26745 wxDouble arg5 ;
26746 void *argp1 = 0 ;
26747 int res1 = 0 ;
26748 double val2 ;
26749 int ecode2 = 0 ;
26750 double val3 ;
26751 int ecode3 = 0 ;
26752 double val4 ;
26753 int ecode4 = 0 ;
26754 double val5 ;
26755 int ecode5 = 0 ;
26756 PyObject * obj0 = 0 ;
26757 PyObject * obj1 = 0 ;
26758 PyObject * obj2 = 0 ;
26759 PyObject * obj3 = 0 ;
26760 PyObject * obj4 = 0 ;
26761 char * kwnames[] = {
26762 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
26763 };
26764
26765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26767 if (!SWIG_IsOK(res1)) {
26768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26769 }
26770 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26771 ecode2 = SWIG_AsVal_double(obj1, &val2);
26772 if (!SWIG_IsOK(ecode2)) {
26773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26774 }
26775 arg2 = static_cast< wxDouble >(val2);
26776 ecode3 = SWIG_AsVal_double(obj2, &val3);
26777 if (!SWIG_IsOK(ecode3)) {
26778 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26779 }
26780 arg3 = static_cast< wxDouble >(val3);
26781 ecode4 = SWIG_AsVal_double(obj3, &val4);
26782 if (!SWIG_IsOK(ecode4)) {
26783 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26784 }
26785 arg4 = static_cast< wxDouble >(val4);
26786 ecode5 = SWIG_AsVal_double(obj4, &val5);
26787 if (!SWIG_IsOK(ecode5)) {
26788 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26789 }
26790 arg5 = static_cast< wxDouble >(val5);
26791 {
26792 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
26793 if (PyErr_Occurred()) SWIG_fail;
26794 }
26795 resultobj = SWIG_Py_Void();
26796 return resultobj;
26797fail:
26798 return NULL;
26799}
26800
26801
26802SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26803 PyObject *resultobj = 0;
26804 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26805 wxDouble arg2 ;
26806 wxDouble arg3 ;
26807 wxDouble arg4 ;
26808 wxDouble arg5 ;
26809 void *argp1 = 0 ;
26810 int res1 = 0 ;
26811 double val2 ;
26812 int ecode2 = 0 ;
26813 double val3 ;
26814 int ecode3 = 0 ;
26815 double val4 ;
26816 int ecode4 = 0 ;
26817 double val5 ;
26818 int ecode5 = 0 ;
26819 PyObject * obj0 = 0 ;
26820 PyObject * obj1 = 0 ;
26821 PyObject * obj2 = 0 ;
26822 PyObject * obj3 = 0 ;
26823 PyObject * obj4 = 0 ;
26824 char * kwnames[] = {
26825 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26826 };
26827
26828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26830 if (!SWIG_IsOK(res1)) {
26831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26832 }
26833 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26834 ecode2 = SWIG_AsVal_double(obj1, &val2);
26835 if (!SWIG_IsOK(ecode2)) {
26836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26837 }
26838 arg2 = static_cast< wxDouble >(val2);
26839 ecode3 = SWIG_AsVal_double(obj2, &val3);
26840 if (!SWIG_IsOK(ecode3)) {
26841 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26842 }
26843 arg3 = static_cast< wxDouble >(val3);
26844 ecode4 = SWIG_AsVal_double(obj3, &val4);
26845 if (!SWIG_IsOK(ecode4)) {
26846 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26847 }
26848 arg4 = static_cast< wxDouble >(val4);
26849 ecode5 = SWIG_AsVal_double(obj4, &val5);
26850 if (!SWIG_IsOK(ecode5)) {
26851 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26852 }
26853 arg5 = static_cast< wxDouble >(val5);
26854 {
26855 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
26856 if (PyErr_Occurred()) SWIG_fail;
26857 }
26858 resultobj = SWIG_Py_Void();
26859 return resultobj;
26860fail:
26861 return NULL;
26862}
26863
26864
26865SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26866 PyObject *resultobj = 0;
26867 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26868 wxDouble arg2 ;
26869 wxDouble arg3 ;
26870 wxDouble arg4 ;
26871 void *argp1 = 0 ;
26872 int res1 = 0 ;
26873 double val2 ;
26874 int ecode2 = 0 ;
26875 double val3 ;
26876 int ecode3 = 0 ;
26877 double val4 ;
26878 int ecode4 = 0 ;
26879 PyObject * obj0 = 0 ;
26880 PyObject * obj1 = 0 ;
26881 PyObject * obj2 = 0 ;
26882 PyObject * obj3 = 0 ;
26883 char * kwnames[] = {
26884 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
26885 };
26886
26887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26889 if (!SWIG_IsOK(res1)) {
26890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26891 }
26892 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26893 ecode2 = SWIG_AsVal_double(obj1, &val2);
26894 if (!SWIG_IsOK(ecode2)) {
26895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
26896 }
26897 arg2 = static_cast< wxDouble >(val2);
26898 ecode3 = SWIG_AsVal_double(obj2, &val3);
26899 if (!SWIG_IsOK(ecode3)) {
26900 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
26901 }
26902 arg3 = static_cast< wxDouble >(val3);
26903 ecode4 = SWIG_AsVal_double(obj3, &val4);
26904 if (!SWIG_IsOK(ecode4)) {
26905 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
26906 }
26907 arg4 = static_cast< wxDouble >(val4);
26908 {
26909 (arg1)->AddCircle(arg2,arg3,arg4);
26910 if (PyErr_Occurred()) SWIG_fail;
26911 }
26912 resultobj = SWIG_Py_Void();
26913 return resultobj;
26914fail:
26915 return NULL;
26916}
26917
26918
26919SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26920 PyObject *resultobj = 0;
26921 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26922 wxDouble arg2 ;
26923 wxDouble arg3 ;
26924 wxDouble arg4 ;
26925 wxDouble arg5 ;
26926 wxDouble arg6 ;
26927 void *argp1 = 0 ;
26928 int res1 = 0 ;
26929 double val2 ;
26930 int ecode2 = 0 ;
26931 double val3 ;
26932 int ecode3 = 0 ;
26933 double val4 ;
26934 int ecode4 = 0 ;
26935 double val5 ;
26936 int ecode5 = 0 ;
26937 double val6 ;
26938 int ecode6 = 0 ;
26939 PyObject * obj0 = 0 ;
26940 PyObject * obj1 = 0 ;
26941 PyObject * obj2 = 0 ;
26942 PyObject * obj3 = 0 ;
26943 PyObject * obj4 = 0 ;
26944 PyObject * obj5 = 0 ;
26945 char * kwnames[] = {
26946 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
26947 };
26948
26949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26951 if (!SWIG_IsOK(res1)) {
26952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26953 }
26954 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26955 ecode2 = SWIG_AsVal_double(obj1, &val2);
26956 if (!SWIG_IsOK(ecode2)) {
26957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26958 }
26959 arg2 = static_cast< wxDouble >(val2);
26960 ecode3 = SWIG_AsVal_double(obj2, &val3);
26961 if (!SWIG_IsOK(ecode3)) {
26962 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26963 }
26964 arg3 = static_cast< wxDouble >(val3);
26965 ecode4 = SWIG_AsVal_double(obj3, &val4);
26966 if (!SWIG_IsOK(ecode4)) {
26967 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26968 }
26969 arg4 = static_cast< wxDouble >(val4);
26970 ecode5 = SWIG_AsVal_double(obj4, &val5);
26971 if (!SWIG_IsOK(ecode5)) {
26972 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26973 }
26974 arg5 = static_cast< wxDouble >(val5);
26975 ecode6 = SWIG_AsVal_double(obj5, &val6);
26976 if (!SWIG_IsOK(ecode6)) {
26977 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
26978 }
26979 arg6 = static_cast< wxDouble >(val6);
26980 {
26981 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
26982 if (PyErr_Occurred()) SWIG_fail;
26983 }
26984 resultobj = SWIG_Py_Void();
26985 return resultobj;
26986fail:
26987 return NULL;
26988}
26989
26990
26991SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26992 PyObject *resultobj = 0;
26993 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26994 wxDouble arg2 ;
26995 wxDouble arg3 ;
26996 wxDouble arg4 ;
26997 wxDouble arg5 ;
26998 void *argp1 = 0 ;
26999 int res1 = 0 ;
27000 double val2 ;
27001 int ecode2 = 0 ;
27002 double val3 ;
27003 int ecode3 = 0 ;
27004 double val4 ;
27005 int ecode4 = 0 ;
27006 double val5 ;
27007 int ecode5 = 0 ;
27008 PyObject * obj0 = 0 ;
27009 PyObject * obj1 = 0 ;
27010 PyObject * obj2 = 0 ;
27011 PyObject * obj3 = 0 ;
27012 PyObject * obj4 = 0 ;
27013 char * kwnames[] = {
27014 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27015 };
27016
27017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27019 if (!SWIG_IsOK(res1)) {
27020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27021 }
27022 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27023 ecode2 = SWIG_AsVal_double(obj1, &val2);
27024 if (!SWIG_IsOK(ecode2)) {
27025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27026 }
27027 arg2 = static_cast< wxDouble >(val2);
27028 ecode3 = SWIG_AsVal_double(obj2, &val3);
27029 if (!SWIG_IsOK(ecode3)) {
27030 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27031 }
27032 arg3 = static_cast< wxDouble >(val3);
27033 ecode4 = SWIG_AsVal_double(obj3, &val4);
27034 if (!SWIG_IsOK(ecode4)) {
27035 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27036 }
27037 arg4 = static_cast< wxDouble >(val4);
27038 ecode5 = SWIG_AsVal_double(obj4, &val5);
27039 if (!SWIG_IsOK(ecode5)) {
27040 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27041 }
27042 arg5 = static_cast< wxDouble >(val5);
27043 {
27044 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
27045 if (PyErr_Occurred()) SWIG_fail;
27046 }
27047 resultobj = SWIG_Py_Void();
27048 return resultobj;
27049fail:
27050 return NULL;
27051}
27052
27053
27054SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27055 PyObject *resultobj = 0;
27056 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27057 wxDouble arg2 ;
27058 wxDouble arg3 ;
27059 wxDouble arg4 ;
27060 wxDouble arg5 ;
27061 wxDouble arg6 ;
27062 void *argp1 = 0 ;
27063 int res1 = 0 ;
27064 double val2 ;
27065 int ecode2 = 0 ;
27066 double val3 ;
27067 int ecode3 = 0 ;
27068 double val4 ;
27069 int ecode4 = 0 ;
27070 double val5 ;
27071 int ecode5 = 0 ;
27072 double val6 ;
27073 int ecode6 = 0 ;
27074 PyObject * obj0 = 0 ;
27075 PyObject * obj1 = 0 ;
27076 PyObject * obj2 = 0 ;
27077 PyObject * obj3 = 0 ;
27078 PyObject * obj4 = 0 ;
27079 PyObject * obj5 = 0 ;
27080 char * kwnames[] = {
27081 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
27082 };
27083
27084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27086 if (!SWIG_IsOK(res1)) {
27087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27088 }
27089 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27090 ecode2 = SWIG_AsVal_double(obj1, &val2);
27091 if (!SWIG_IsOK(ecode2)) {
27092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27093 }
27094 arg2 = static_cast< wxDouble >(val2);
27095 ecode3 = SWIG_AsVal_double(obj2, &val3);
27096 if (!SWIG_IsOK(ecode3)) {
27097 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27098 }
27099 arg3 = static_cast< wxDouble >(val3);
27100 ecode4 = SWIG_AsVal_double(obj3, &val4);
27101 if (!SWIG_IsOK(ecode4)) {
27102 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27103 }
27104 arg4 = static_cast< wxDouble >(val4);
27105 ecode5 = SWIG_AsVal_double(obj4, &val5);
27106 if (!SWIG_IsOK(ecode5)) {
27107 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27108 }
27109 arg5 = static_cast< wxDouble >(val5);
27110 ecode6 = SWIG_AsVal_double(obj5, &val6);
27111 if (!SWIG_IsOK(ecode6)) {
27112 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27113 }
27114 arg6 = static_cast< wxDouble >(val6);
27115 {
27116 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
27117 if (PyErr_Occurred()) SWIG_fail;
27118 }
27119 resultobj = SWIG_Py_Void();
27120 return resultobj;
27121fail:
27122 return NULL;
27123}
27124
27125
27126SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27127 PyObject *resultobj = 0;
27128 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27129 void *result = 0 ;
27130 void *argp1 = 0 ;
27131 int res1 = 0 ;
27132 PyObject *swig_obj[1] ;
27133
27134 if (!args) SWIG_fail;
27135 swig_obj[0] = args;
27136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27137 if (!SWIG_IsOK(res1)) {
27138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27139 }
27140 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27141 {
27142 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
27143 if (PyErr_Occurred()) SWIG_fail;
27144 }
27145 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
27146 return resultobj;
27147fail:
27148 return NULL;
27149}
27150
27151
27152SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27153 PyObject *resultobj = 0;
27154 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27155 void *arg2 = (void *) 0 ;
27156 void *argp1 = 0 ;
27157 int res1 = 0 ;
27158 int res2 ;
27159 PyObject * obj0 = 0 ;
27160 PyObject * obj1 = 0 ;
27161 char * kwnames[] = {
27162 (char *) "self",(char *) "p", NULL
27163 };
27164
27165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27167 if (!SWIG_IsOK(res1)) {
27168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27169 }
27170 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27171 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27172 if (!SWIG_IsOK(res2)) {
27173 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
27174 }
27175 {
27176 (arg1)->UnGetNativePath(arg2);
27177 if (PyErr_Occurred()) SWIG_fail;
27178 }
27179 resultobj = SWIG_Py_Void();
27180 return resultobj;
27181fail:
27182 return NULL;
27183}
27184
27185
27186SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27187 PyObject *resultobj = 0;
27188 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27189 wxGraphicsMatrix *arg2 = (wxGraphicsMatrix *) 0 ;
27190 void *argp1 = 0 ;
27191 int res1 = 0 ;
27192 void *argp2 = 0 ;
27193 int res2 = 0 ;
27194 PyObject * obj0 = 0 ;
27195 PyObject * obj1 = 0 ;
27196 char * kwnames[] = {
27197 (char *) "self",(char *) "matrix", NULL
27198 };
27199
27200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27202 if (!SWIG_IsOK(res1)) {
27203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27204 }
27205 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27206 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27207 if (!SWIG_IsOK(res2)) {
27208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix *""'");
27209 }
27210 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
27211 {
27212 (arg1)->Transform(arg2);
27213 if (PyErr_Occurred()) SWIG_fail;
27214 }
27215 resultobj = SWIG_Py_Void();
27216 return resultobj;
27217fail:
27218 return NULL;
27219}
27220
27221
27222SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27223 PyObject *resultobj = 0;
27224 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27225 wxRect2DDouble result;
27226 void *argp1 = 0 ;
27227 int res1 = 0 ;
27228 PyObject *swig_obj[1] ;
27229
27230 if (!args) SWIG_fail;
27231 swig_obj[0] = args;
27232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27233 if (!SWIG_IsOK(res1)) {
27234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27235 }
27236 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27237 {
27238 result = (arg1)->GetBox();
27239 if (PyErr_Occurred()) SWIG_fail;
27240 }
27241 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
27242 return resultobj;
27243fail:
27244 return NULL;
27245}
27246
27247
27248SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27249 PyObject *resultobj = 0;
27250 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27251 wxDouble arg2 ;
27252 wxDouble arg3 ;
27253 int arg4 = (int) wxWINDING_RULE ;
27254 bool result;
27255 void *argp1 = 0 ;
27256 int res1 = 0 ;
27257 double val2 ;
27258 int ecode2 = 0 ;
27259 double val3 ;
27260 int ecode3 = 0 ;
27261 int val4 ;
27262 int ecode4 = 0 ;
27263
27264 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27266 if (!SWIG_IsOK(res1)) {
27267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27268 }
27269 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27270 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27271 if (!SWIG_IsOK(ecode2)) {
27272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27273 }
27274 arg2 = static_cast< wxDouble >(val2);
27275 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27276 if (!SWIG_IsOK(ecode3)) {
27277 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27278 }
27279 arg3 = static_cast< wxDouble >(val3);
27280 if (swig_obj[3]) {
27281 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27282 if (!SWIG_IsOK(ecode4)) {
27283 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27284 }
27285 arg4 = static_cast< int >(val4);
27286 }
27287 {
27288 result = (bool)(arg1)->Contains(arg2,arg3,arg4);
27289 if (PyErr_Occurred()) SWIG_fail;
27290 }
27291 {
27292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27293 }
27294 return resultobj;
27295fail:
27296 return NULL;
27297}
27298
27299
27300SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27301 PyObject *resultobj = 0;
27302 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27303 wxPoint2DDouble *arg2 = 0 ;
27304 int arg3 = (int) wxWINDING_RULE ;
27305 bool result;
27306 void *argp1 = 0 ;
27307 int res1 = 0 ;
27308 void *argp2 = 0 ;
27309 int res2 = 0 ;
27310 int val3 ;
27311 int ecode3 = 0 ;
27312
27313 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27315 if (!SWIG_IsOK(res1)) {
27316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27317 }
27318 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27319 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
27320 if (!SWIG_IsOK(res2)) {
27321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27322 }
27323 if (!argp2) {
27324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27325 }
27326 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
27327 if (swig_obj[2]) {
27328 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27329 if (!SWIG_IsOK(ecode3)) {
27330 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27331 }
27332 arg3 = static_cast< int >(val3);
27333 }
27334 {
27335 result = (bool)(arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
27336 if (PyErr_Occurred()) SWIG_fail;
27337 }
27338 {
27339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27340 }
27341 return resultobj;
27342fail:
27343 return NULL;
27344}
27345
27346
27347SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27348 int argc;
27349 PyObject *argv[5];
27350
27351 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27352 --argc;
27353 if ((argc >= 2) && (argc <= 3)) {
27354 int _v = 0;
27355 {
27356 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
27357 _v = SWIG_CheckState(res);
27358 }
27359 if (!_v) goto check_1;
27360 if (argc > 2) {
27361 {
27362 {
27363 int res = SWIG_AsVal_int(argv[2], NULL);
27364 _v = SWIG_CheckState(res);
27365 }
27366 }
27367 if (!_v) goto check_1;
27368 }
27369 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
27370 }
27371check_1:
27372
27373 if ((argc >= 3) && (argc <= 4)) {
27374 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
27375 }
27376
27377fail:
27378 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
27379 return NULL;
27380}
27381
27382
27383SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27384 PyObject *obj;
27385 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27386 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
27387 return SWIG_Py_Void();
27388}
27389
27390SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27391 PyObject *resultobj = 0;
27392 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27393 void *argp1 = 0 ;
27394 int res1 = 0 ;
27395 PyObject *swig_obj[1] ;
27396
27397 if (!args) SWIG_fail;
27398 swig_obj[0] = args;
27399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
27400 if (!SWIG_IsOK(res1)) {
27401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27402 }
27403 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27404 {
27405 delete arg1;
27406
27407 if (PyErr_Occurred()) SWIG_fail;
27408 }
27409 resultobj = SWIG_Py_Void();
27410 return resultobj;
27411fail:
27412 return NULL;
27413}
27414
27415
27416SWIGINTERN PyObject *_wrap_GraphicsMatrix_Clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27417 PyObject *resultobj = 0;
27418 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27419 wxGraphicsMatrix *result = 0 ;
27420 void *argp1 = 0 ;
27421 int res1 = 0 ;
27422 PyObject *swig_obj[1] ;
27423
27424 if (!args) SWIG_fail;
27425 swig_obj[0] = args;
27426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27427 if (!SWIG_IsOK(res1)) {
27428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Clone" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
27429 }
27430 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27431 {
27432 result = (wxGraphicsMatrix *)((wxGraphicsMatrix const *)arg1)->Clone();
27433 if (PyErr_Occurred()) SWIG_fail;
27434 }
27435 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27436 return resultobj;
27437fail:
27438 return NULL;
27439}
27440
27441
27442SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27443 PyObject *resultobj = 0;
27444 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27445 wxGraphicsMatrix *arg2 = (wxGraphicsMatrix *) 0 ;
27446 void *argp1 = 0 ;
27447 int res1 = 0 ;
27448 void *argp2 = 0 ;
27449 int res2 = 0 ;
27450 PyObject * obj0 = 0 ;
27451 PyObject * obj1 = 0 ;
27452 char * kwnames[] = {
27453 (char *) "self",(char *) "t", NULL
27454 };
27455
27456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
27457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27458 if (!SWIG_IsOK(res1)) {
27459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27460 }
27461 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27462 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27463 if (!SWIG_IsOK(res2)) {
27464 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const *""'");
27465 }
27466 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
27467 {
27468 (arg1)->Concat((wxGraphicsMatrix const *)arg2);
27469 if (PyErr_Occurred()) SWIG_fail;
27470 }
27471 resultobj = SWIG_Py_Void();
27472 return resultobj;
27473fail:
27474 return NULL;
27475}
27476
27477
27478SWIGINTERN PyObject *_wrap_GraphicsMatrix_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27479 PyObject *resultobj = 0;
27480 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27481 wxGraphicsMatrix *arg2 = (wxGraphicsMatrix *) 0 ;
27482 void *argp1 = 0 ;
27483 int res1 = 0 ;
27484 void *argp2 = 0 ;
27485 int res2 = 0 ;
27486 PyObject * obj0 = 0 ;
27487 PyObject * obj1 = 0 ;
27488 char * kwnames[] = {
27489 (char *) "self",(char *) "t", NULL
27490 };
27491
27492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Copy",kwnames,&obj0,&obj1)) SWIG_fail;
27493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27494 if (!SWIG_IsOK(res1)) {
27495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Copy" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27496 }
27497 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27498 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27499 if (!SWIG_IsOK(res2)) {
27500 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const *""'");
27501 }
27502 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
27503 {
27504 (arg1)->Copy((wxGraphicsMatrix const *)arg2);
27505 if (PyErr_Occurred()) SWIG_fail;
27506 }
27507 resultobj = SWIG_Py_Void();
27508 return resultobj;
27509fail:
27510 return NULL;
27511}
27512
27513
27514SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27515 PyObject *resultobj = 0;
27516 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27517 wxDouble arg2 = (wxDouble) 1.0 ;
27518 wxDouble arg3 = (wxDouble) 0.0 ;
27519 wxDouble arg4 = (wxDouble) 0.0 ;
27520 wxDouble arg5 = (wxDouble) 1.0 ;
27521 wxDouble arg6 = (wxDouble) 0.0 ;
27522 wxDouble arg7 = (wxDouble) 0.0 ;
27523 void *argp1 = 0 ;
27524 int res1 = 0 ;
27525 double val2 ;
27526 int ecode2 = 0 ;
27527 double val3 ;
27528 int ecode3 = 0 ;
27529 double val4 ;
27530 int ecode4 = 0 ;
27531 double val5 ;
27532 int ecode5 = 0 ;
27533 double val6 ;
27534 int ecode6 = 0 ;
27535 double val7 ;
27536 int ecode7 = 0 ;
27537 PyObject * obj0 = 0 ;
27538 PyObject * obj1 = 0 ;
27539 PyObject * obj2 = 0 ;
27540 PyObject * obj3 = 0 ;
27541 PyObject * obj4 = 0 ;
27542 PyObject * obj5 = 0 ;
27543 PyObject * obj6 = 0 ;
27544 char * kwnames[] = {
27545 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
27546 };
27547
27548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27550 if (!SWIG_IsOK(res1)) {
27551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27552 }
27553 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27554 if (obj1) {
27555 ecode2 = SWIG_AsVal_double(obj1, &val2);
27556 if (!SWIG_IsOK(ecode2)) {
27557 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
27558 }
27559 arg2 = static_cast< wxDouble >(val2);
27560 }
27561 if (obj2) {
27562 ecode3 = SWIG_AsVal_double(obj2, &val3);
27563 if (!SWIG_IsOK(ecode3)) {
27564 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
27565 }
27566 arg3 = static_cast< wxDouble >(val3);
27567 }
27568 if (obj3) {
27569 ecode4 = SWIG_AsVal_double(obj3, &val4);
27570 if (!SWIG_IsOK(ecode4)) {
27571 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
27572 }
27573 arg4 = static_cast< wxDouble >(val4);
27574 }
27575 if (obj4) {
27576 ecode5 = SWIG_AsVal_double(obj4, &val5);
27577 if (!SWIG_IsOK(ecode5)) {
27578 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
27579 }
27580 arg5 = static_cast< wxDouble >(val5);
27581 }
27582 if (obj5) {
27583 ecode6 = SWIG_AsVal_double(obj5, &val6);
27584 if (!SWIG_IsOK(ecode6)) {
27585 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
27586 }
27587 arg6 = static_cast< wxDouble >(val6);
27588 }
27589 if (obj6) {
27590 ecode7 = SWIG_AsVal_double(obj6, &val7);
27591 if (!SWIG_IsOK(ecode7)) {
27592 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
27593 }
27594 arg7 = static_cast< wxDouble >(val7);
27595 }
27596 {
27597 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
27598 if (PyErr_Occurred()) SWIG_fail;
27599 }
27600 resultobj = SWIG_Py_Void();
27601 return resultobj;
27602fail:
27603 return NULL;
27604}
27605
27606
27607SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27608 PyObject *resultobj = 0;
27609 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27610 void *argp1 = 0 ;
27611 int res1 = 0 ;
27612 PyObject *swig_obj[1] ;
27613
27614 if (!args) SWIG_fail;
27615 swig_obj[0] = args;
27616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27617 if (!SWIG_IsOK(res1)) {
27618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27619 }
27620 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27621 {
27622 (arg1)->Invert();
27623 if (PyErr_Occurred()) SWIG_fail;
27624 }
27625 resultobj = SWIG_Py_Void();
27626 return resultobj;
27627fail:
27628 return NULL;
27629}
27630
27631
27632SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27633 PyObject *resultobj = 0;
27634 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27635 wxGraphicsMatrix *arg2 = (wxGraphicsMatrix *) 0 ;
27636 bool result;
27637 void *argp1 = 0 ;
27638 int res1 = 0 ;
27639 void *argp2 = 0 ;
27640 int res2 = 0 ;
27641 PyObject * obj0 = 0 ;
27642 PyObject * obj1 = 0 ;
27643 char * kwnames[] = {
27644 (char *) "self",(char *) "t", NULL
27645 };
27646
27647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
27648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27649 if (!SWIG_IsOK(res1)) {
27650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
27651 }
27652 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27653 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27654 if (!SWIG_IsOK(res2)) {
27655 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const *""'");
27656 }
27657 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
27658 {
27659 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const *)arg2);
27660 if (PyErr_Occurred()) SWIG_fail;
27661 }
27662 {
27663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27664 }
27665 return resultobj;
27666fail:
27667 return NULL;
27668}
27669
27670
27671SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27672 PyObject *resultobj = 0;
27673 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27674 bool result;
27675 void *argp1 = 0 ;
27676 int res1 = 0 ;
27677 PyObject *swig_obj[1] ;
27678
27679 if (!args) SWIG_fail;
27680 swig_obj[0] = args;
27681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27682 if (!SWIG_IsOK(res1)) {
27683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27684 }
27685 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27686 {
27687 result = (bool)(arg1)->IsIdentity();
27688 if (PyErr_Occurred()) SWIG_fail;
27689 }
27690 {
27691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27692 }
27693 return resultobj;
27694fail:
27695 return NULL;
27696}
27697
27698
27699SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27700 PyObject *resultobj = 0;
27701 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27702 wxDouble arg2 ;
27703 wxDouble arg3 ;
27704 void *argp1 = 0 ;
27705 int res1 = 0 ;
27706 double val2 ;
27707 int ecode2 = 0 ;
27708 double val3 ;
27709 int ecode3 = 0 ;
27710 PyObject * obj0 = 0 ;
27711 PyObject * obj1 = 0 ;
27712 PyObject * obj2 = 0 ;
27713 char * kwnames[] = {
27714 (char *) "self",(char *) "dx",(char *) "dy", NULL
27715 };
27716
27717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27719 if (!SWIG_IsOK(res1)) {
27720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27721 }
27722 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27723 ecode2 = SWIG_AsVal_double(obj1, &val2);
27724 if (!SWIG_IsOK(ecode2)) {
27725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
27726 }
27727 arg2 = static_cast< wxDouble >(val2);
27728 ecode3 = SWIG_AsVal_double(obj2, &val3);
27729 if (!SWIG_IsOK(ecode3)) {
27730 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
27731 }
27732 arg3 = static_cast< wxDouble >(val3);
27733 {
27734 (arg1)->Translate(arg2,arg3);
27735 if (PyErr_Occurred()) SWIG_fail;
27736 }
27737 resultobj = SWIG_Py_Void();
27738 return resultobj;
27739fail:
27740 return NULL;
27741}
27742
27743
27744SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27745 PyObject *resultobj = 0;
27746 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27747 wxDouble arg2 ;
27748 wxDouble arg3 ;
27749 void *argp1 = 0 ;
27750 int res1 = 0 ;
27751 double val2 ;
27752 int ecode2 = 0 ;
27753 double val3 ;
27754 int ecode3 = 0 ;
27755 PyObject * obj0 = 0 ;
27756 PyObject * obj1 = 0 ;
27757 PyObject * obj2 = 0 ;
27758 char * kwnames[] = {
27759 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
27760 };
27761
27762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27764 if (!SWIG_IsOK(res1)) {
27765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27766 }
27767 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27768 ecode2 = SWIG_AsVal_double(obj1, &val2);
27769 if (!SWIG_IsOK(ecode2)) {
27770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
27771 }
27772 arg2 = static_cast< wxDouble >(val2);
27773 ecode3 = SWIG_AsVal_double(obj2, &val3);
27774 if (!SWIG_IsOK(ecode3)) {
27775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
27776 }
27777 arg3 = static_cast< wxDouble >(val3);
27778 {
27779 (arg1)->Scale(arg2,arg3);
27780 if (PyErr_Occurred()) SWIG_fail;
27781 }
27782 resultobj = SWIG_Py_Void();
27783 return resultobj;
27784fail:
27785 return NULL;
27786}
27787
27788
27789SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27790 PyObject *resultobj = 0;
27791 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27792 wxDouble arg2 ;
27793 void *argp1 = 0 ;
27794 int res1 = 0 ;
27795 double val2 ;
27796 int ecode2 = 0 ;
27797 PyObject * obj0 = 0 ;
27798 PyObject * obj1 = 0 ;
27799 char * kwnames[] = {
27800 (char *) "self",(char *) "angle", NULL
27801 };
27802
27803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
27804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27805 if (!SWIG_IsOK(res1)) {
27806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27807 }
27808 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27809 ecode2 = SWIG_AsVal_double(obj1, &val2);
27810 if (!SWIG_IsOK(ecode2)) {
27811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
27812 }
27813 arg2 = static_cast< wxDouble >(val2);
27814 {
27815 (arg1)->Rotate(arg2);
27816 if (PyErr_Occurred()) SWIG_fail;
27817 }
27818 resultobj = SWIG_Py_Void();
27819 return resultobj;
27820fail:
27821 return NULL;
27822}
27823
27824
27825SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27826 PyObject *resultobj = 0;
27827 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27828 wxDouble *arg2 = (wxDouble *) 0 ;
27829 wxDouble *arg3 = (wxDouble *) 0 ;
27830 void *argp1 = 0 ;
27831 int res1 = 0 ;
27832 wxDouble temp2 ;
27833 int res2 = 0 ;
27834 wxDouble temp3 ;
27835 int res3 = 0 ;
27836 PyObject * obj0 = 0 ;
27837 PyObject * obj1 = 0 ;
27838 PyObject * obj2 = 0 ;
27839 char * kwnames[] = {
27840 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
27841 };
27842
27843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27845 if (!SWIG_IsOK(res1)) {
27846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27847 }
27848 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27849 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
27850 double val;
27851 int ecode = SWIG_AsVal_double(obj1, &val);
27852 if (!SWIG_IsOK(ecode)) {
27853 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27854 }
27855 temp2 = static_cast< wxDouble >(val);
27856 arg2 = &temp2;
27857 res2 = SWIG_AddTmpMask(ecode);
27858 }
27859 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
27860 double val;
27861 int ecode = SWIG_AsVal_double(obj2, &val);
27862 if (!SWIG_IsOK(ecode)) {
27863 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27864 }
27865 temp3 = static_cast< wxDouble >(val);
27866 arg3 = &temp3;
27867 res3 = SWIG_AddTmpMask(ecode);
27868 }
27869 {
27870 (arg1)->TransformPoint(arg2,arg3);
27871 if (PyErr_Occurred()) SWIG_fail;
27872 }
27873 resultobj = SWIG_Py_Void();
27874 if (SWIG_IsTmpObj(res2)) {
27875 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
27876 } else {
27877 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27878 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
27879 }
27880 if (SWIG_IsTmpObj(res3)) {
27881 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
27882 } else {
27883 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27884 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
27885 }
27886 return resultobj;
27887fail:
27888 return NULL;
27889}
27890
27891
27892SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27893 PyObject *resultobj = 0;
27894 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27895 wxDouble *arg2 = (wxDouble *) 0 ;
27896 wxDouble *arg3 = (wxDouble *) 0 ;
27897 void *argp1 = 0 ;
27898 int res1 = 0 ;
27899 wxDouble temp2 ;
27900 int res2 = 0 ;
27901 wxDouble temp3 ;
27902 int res3 = 0 ;
27903 PyObject * obj0 = 0 ;
27904 PyObject * obj1 = 0 ;
27905 PyObject * obj2 = 0 ;
27906 char * kwnames[] = {
27907 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
27908 };
27909
27910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27912 if (!SWIG_IsOK(res1)) {
27913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27914 }
27915 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27916 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
27917 double val;
27918 int ecode = SWIG_AsVal_double(obj1, &val);
27919 if (!SWIG_IsOK(ecode)) {
27920 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
27921 }
27922 temp2 = static_cast< wxDouble >(val);
27923 arg2 = &temp2;
27924 res2 = SWIG_AddTmpMask(ecode);
27925 }
27926 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
27927 double val;
27928 int ecode = SWIG_AsVal_double(obj2, &val);
27929 if (!SWIG_IsOK(ecode)) {
27930 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
27931 }
27932 temp3 = static_cast< wxDouble >(val);
27933 arg3 = &temp3;
27934 res3 = SWIG_AddTmpMask(ecode);
27935 }
27936 {
27937 (arg1)->TransformDistance(arg2,arg3);
27938 if (PyErr_Occurred()) SWIG_fail;
27939 }
27940 resultobj = SWIG_Py_Void();
27941 if (SWIG_IsTmpObj(res2)) {
27942 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
27943 } else {
27944 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27945 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
27946 }
27947 if (SWIG_IsTmpObj(res3)) {
27948 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
27949 } else {
27950 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27951 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
27952 }
27953 return resultobj;
27954fail:
27955 return NULL;
27956}
27957
27958
27959SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27960 PyObject *resultobj = 0;
27961 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27962 void *result = 0 ;
27963 void *argp1 = 0 ;
27964 int res1 = 0 ;
27965 PyObject *swig_obj[1] ;
27966
27967 if (!args) SWIG_fail;
27968 swig_obj[0] = args;
27969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27970 if (!SWIG_IsOK(res1)) {
27971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
27972 }
27973 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27974 {
27975 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
27976 if (PyErr_Occurred()) SWIG_fail;
27977 }
27978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
27979 return resultobj;
27980fail:
27981 return NULL;
27982}
27983
27984
27985SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27986 PyObject *obj;
27987 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27988 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
27989 return SWIG_Py_Void();
27990}
27991
27992SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27993 PyObject *resultobj = 0;
27994 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27995 void *argp1 = 0 ;
27996 int res1 = 0 ;
27997 PyObject *swig_obj[1] ;
27998
27999 if (!args) SWIG_fail;
28000 swig_obj[0] = args;
28001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
28002 if (!SWIG_IsOK(res1)) {
28003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28004 }
28005 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28006 {
28007 delete arg1;
28008
28009 if (PyErr_Occurred()) SWIG_fail;
28010 }
28011 resultobj = SWIG_Py_Void();
28012 return resultobj;
28013fail:
28014 return NULL;
28015}
28016
28017
28018SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28019 PyObject *resultobj = 0;
28020 wxWindowDC *arg1 = 0 ;
28021 wxGraphicsContext *result = 0 ;
28022 void *argp1 = 0 ;
28023 int res1 = 0 ;
28024
28025 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
28027 if (!SWIG_IsOK(res1)) {
28028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28029 }
28030 if (!argp1) {
28031 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28032 }
28033 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
28034 {
28035 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
28036 if (PyErr_Occurred()) SWIG_fail;
28037 }
28038 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28039 return resultobj;
28040fail:
28041 return NULL;
28042}
28043
28044
28045SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28046 PyObject *resultobj = 0;
28047 wxWindow *arg1 = (wxWindow *) 0 ;
28048 wxGraphicsContext *result = 0 ;
28049 void *argp1 = 0 ;
28050 int res1 = 0 ;
28051
28052 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28054 if (!SWIG_IsOK(res1)) {
28055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
28056 }
28057 arg1 = reinterpret_cast< wxWindow * >(argp1);
28058 {
28059 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
28060 if (PyErr_Occurred()) SWIG_fail;
28061 }
28062 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28063 return resultobj;
28064fail:
28065 return NULL;
28066}
28067
28068
28069SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
28070 int argc;
28071 PyObject *argv[2];
28072
28073 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
28074 --argc;
28075 if (argc == 1) {
28076 int _v = 0;
28077 {
28078 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
28079 _v = SWIG_CheckState(res);
28080 }
28081 if (!_v) goto check_1;
28082 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
28083 }
28084check_1:
28085
28086 if (argc == 1) {
28087 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
28088 }
28089
28090fail:
28091 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
28092 return NULL;
28093}
28094
28095
28096SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28097 PyObject *resultobj = 0;
28098 void *arg1 = (void *) 0 ;
28099 wxGraphicsContext *result = 0 ;
28100 int res1 ;
28101 PyObject * obj0 = 0 ;
28102 char * kwnames[] = {
28103 (char *) "context", NULL
28104 };
28105
28106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
28107 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28108 if (!SWIG_IsOK(res1)) {
28109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
28110 }
28111 {
28112 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
28113 if (PyErr_Occurred()) SWIG_fail;
28114 }
28115 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28116 return resultobj;
28117fail:
28118 return NULL;
28119}
28120
28121
28122SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28123 PyObject *resultobj = 0;
28124 void *arg1 = (void *) 0 ;
28125 wxGraphicsContext *result = 0 ;
28126 int res1 ;
28127 PyObject * obj0 = 0 ;
28128 char * kwnames[] = {
28129 (char *) "window", NULL
28130 };
28131
28132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
28133 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28134 if (!SWIG_IsOK(res1)) {
28135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
28136 }
28137 {
28138 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
28139 if (PyErr_Occurred()) SWIG_fail;
28140 }
28141 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28142 return resultobj;
28143fail:
28144 return NULL;
28145}
28146
28147
28148SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28149 PyObject *resultobj = 0;
28150 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28151 wxGraphicsPath *result = 0 ;
28152 void *argp1 = 0 ;
28153 int res1 = 0 ;
28154 PyObject *swig_obj[1] ;
28155
28156 if (!args) SWIG_fail;
28157 swig_obj[0] = args;
28158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28159 if (!SWIG_IsOK(res1)) {
28160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28161 }
28162 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28163 {
28164 result = (wxGraphicsPath *)(arg1)->CreatePath();
28165 if (PyErr_Occurred()) SWIG_fail;
28166 }
28167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28168 return resultobj;
28169fail:
28170 return NULL;
28171}
28172
28173
70d7cb34 28174SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28175 PyObject *resultobj = 0;
70d7cb34
RD
28176 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28177 wxPen *arg2 = 0 ;
28178 wxGraphicsPen result;
72ef6efb
RD
28179 void *argp1 = 0 ;
28180 int res1 = 0 ;
70d7cb34
RD
28181 void *argp2 = 0 ;
28182 int res2 = 0 ;
72ef6efb
RD
28183 PyObject * obj0 = 0 ;
28184 PyObject * obj1 = 0 ;
72ef6efb 28185 char * kwnames[] = {
70d7cb34 28186 (char *) "self",(char *) "pen", NULL
72ef6efb
RD
28187 };
28188
70d7cb34
RD
28189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
28190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28191 if (!SWIG_IsOK(res1)) {
70d7cb34 28192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28193 }
70d7cb34
RD
28194 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28195 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28196 if (!SWIG_IsOK(res2)) {
28197 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28198 }
28199 if (!argp2) {
28200 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28201 }
28202 arg2 = reinterpret_cast< wxPen * >(argp2);
72ef6efb 28203 {
70d7cb34 28204 result = (arg1)->CreatePen((wxPen const &)*arg2);
72ef6efb
RD
28205 if (PyErr_Occurred()) SWIG_fail;
28206 }
70d7cb34 28207 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28208 return resultobj;
28209fail:
28210 return NULL;
28211}
28212
28213
70d7cb34 28214SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28215 PyObject *resultobj = 0;
70d7cb34
RD
28216 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28217 wxBrush *arg2 = 0 ;
28218 wxGraphicsBrush result;
72ef6efb
RD
28219 void *argp1 = 0 ;
28220 int res1 = 0 ;
70d7cb34
RD
28221 void *argp2 = 0 ;
28222 int res2 = 0 ;
72ef6efb
RD
28223 PyObject * obj0 = 0 ;
28224 PyObject * obj1 = 0 ;
72ef6efb 28225 char * kwnames[] = {
70d7cb34 28226 (char *) "self",(char *) "brush", NULL
72ef6efb
RD
28227 };
28228
70d7cb34
RD
28229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28231 if (!SWIG_IsOK(res1)) {
70d7cb34 28232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28233 }
70d7cb34
RD
28234 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28235 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28236 if (!SWIG_IsOK(res2)) {
28237 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28238 }
28239 if (!argp2) {
28240 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28241 }
28242 arg2 = reinterpret_cast< wxBrush * >(argp2);
72ef6efb 28243 {
70d7cb34 28244 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
72ef6efb
RD
28245 if (PyErr_Occurred()) SWIG_fail;
28246 }
70d7cb34 28247 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28248 return resultobj;
28249fail:
28250 return NULL;
28251}
28252
28253
70d7cb34 28254SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28255 PyObject *resultobj = 0;
70d7cb34 28256 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
28257 wxDouble arg2 ;
28258 wxDouble arg3 ;
28259 wxDouble arg4 ;
28260 wxDouble arg5 ;
70d7cb34
RD
28261 wxColour *arg6 = 0 ;
28262 wxColour *arg7 = 0 ;
28263 wxGraphicsBrush result;
72ef6efb
RD
28264 void *argp1 = 0 ;
28265 int res1 = 0 ;
28266 double val2 ;
28267 int ecode2 = 0 ;
28268 double val3 ;
28269 int ecode3 = 0 ;
28270 double val4 ;
28271 int ecode4 = 0 ;
28272 double val5 ;
28273 int ecode5 = 0 ;
70d7cb34
RD
28274 wxColour temp6 ;
28275 wxColour temp7 ;
72ef6efb
RD
28276 PyObject * obj0 = 0 ;
28277 PyObject * obj1 = 0 ;
28278 PyObject * obj2 = 0 ;
28279 PyObject * obj3 = 0 ;
28280 PyObject * obj4 = 0 ;
70d7cb34
RD
28281 PyObject * obj5 = 0 ;
28282 PyObject * obj6 = 0 ;
72ef6efb 28283 char * kwnames[] = {
70d7cb34 28284 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
28285 };
28286
70d7cb34
RD
28287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28289 if (!SWIG_IsOK(res1)) {
70d7cb34 28290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28291 }
70d7cb34 28292 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
28293 ecode2 = SWIG_AsVal_double(obj1, &val2);
28294 if (!SWIG_IsOK(ecode2)) {
70d7cb34 28295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
28296 }
28297 arg2 = static_cast< wxDouble >(val2);
28298 ecode3 = SWIG_AsVal_double(obj2, &val3);
28299 if (!SWIG_IsOK(ecode3)) {
70d7cb34 28300 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
28301 }
28302 arg3 = static_cast< wxDouble >(val3);
28303 ecode4 = SWIG_AsVal_double(obj3, &val4);
28304 if (!SWIG_IsOK(ecode4)) {
70d7cb34 28305 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28306 }
28307 arg4 = static_cast< wxDouble >(val4);
28308 ecode5 = SWIG_AsVal_double(obj4, &val5);
28309 if (!SWIG_IsOK(ecode5)) {
70d7cb34 28310 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28311 }
28312 arg5 = static_cast< wxDouble >(val5);
28313 {
70d7cb34
RD
28314 arg6 = &temp6;
28315 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
72ef6efb 28316 }
70d7cb34
RD
28317 {
28318 arg7 = &temp7;
28319 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
72ef6efb 28320 }
72ef6efb 28321 {
70d7cb34 28322 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
28323 if (PyErr_Occurred()) SWIG_fail;
28324 }
70d7cb34 28325 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28326 return resultobj;
28327fail:
28328 return NULL;
28329}
28330
28331
70d7cb34 28332SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28333 PyObject *resultobj = 0;
70d7cb34 28334 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
28335 wxDouble arg2 ;
28336 wxDouble arg3 ;
28337 wxDouble arg4 ;
28338 wxDouble arg5 ;
28339 wxDouble arg6 ;
70d7cb34
RD
28340 wxColour *arg7 = 0 ;
28341 wxColour *arg8 = 0 ;
28342 wxGraphicsBrush result;
72ef6efb
RD
28343 void *argp1 = 0 ;
28344 int res1 = 0 ;
28345 double val2 ;
28346 int ecode2 = 0 ;
28347 double val3 ;
28348 int ecode3 = 0 ;
28349 double val4 ;
28350 int ecode4 = 0 ;
28351 double val5 ;
28352 int ecode5 = 0 ;
28353 double val6 ;
28354 int ecode6 = 0 ;
70d7cb34
RD
28355 wxColour temp7 ;
28356 wxColour temp8 ;
72ef6efb
RD
28357 PyObject * obj0 = 0 ;
28358 PyObject * obj1 = 0 ;
28359 PyObject * obj2 = 0 ;
28360 PyObject * obj3 = 0 ;
28361 PyObject * obj4 = 0 ;
28362 PyObject * obj5 = 0 ;
70d7cb34
RD
28363 PyObject * obj6 = 0 ;
28364 PyObject * obj7 = 0 ;
72ef6efb 28365 char * kwnames[] = {
70d7cb34 28366 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
28367 };
28368
70d7cb34
RD
28369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28371 if (!SWIG_IsOK(res1)) {
70d7cb34 28372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28373 }
70d7cb34 28374 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
28375 ecode2 = SWIG_AsVal_double(obj1, &val2);
28376 if (!SWIG_IsOK(ecode2)) {
70d7cb34 28377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
28378 }
28379 arg2 = static_cast< wxDouble >(val2);
28380 ecode3 = SWIG_AsVal_double(obj2, &val3);
28381 if (!SWIG_IsOK(ecode3)) {
70d7cb34 28382 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
28383 }
28384 arg3 = static_cast< wxDouble >(val3);
28385 ecode4 = SWIG_AsVal_double(obj3, &val4);
28386 if (!SWIG_IsOK(ecode4)) {
70d7cb34 28387 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28388 }
28389 arg4 = static_cast< wxDouble >(val4);
28390 ecode5 = SWIG_AsVal_double(obj4, &val5);
28391 if (!SWIG_IsOK(ecode5)) {
70d7cb34 28392 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28393 }
28394 arg5 = static_cast< wxDouble >(val5);
28395 ecode6 = SWIG_AsVal_double(obj5, &val6);
28396 if (!SWIG_IsOK(ecode6)) {
70d7cb34 28397 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
28398 }
28399 arg6 = static_cast< wxDouble >(val6);
28400 {
70d7cb34
RD
28401 arg7 = &temp7;
28402 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28403 }
28404 {
28405 arg8 = &temp8;
28406 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
28407 }
28408 {
28409 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
28410 if (PyErr_Occurred()) SWIG_fail;
28411 }
70d7cb34 28412 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28413 return resultobj;
28414fail:
28415 return NULL;
28416}
28417
28418
70d7cb34 28419SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28420 PyObject *resultobj = 0;
28421 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34
RD
28422 wxFont *arg2 = 0 ;
28423 wxColour const &arg3_defvalue = *wxBLACK ;
28424 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28425 wxGraphicsFont result;
72ef6efb
RD
28426 void *argp1 = 0 ;
28427 int res1 = 0 ;
70d7cb34
RD
28428 void *argp2 = 0 ;
28429 int res2 = 0 ;
28430 wxColour temp3 ;
28431 PyObject * obj0 = 0 ;
28432 PyObject * obj1 = 0 ;
28433 PyObject * obj2 = 0 ;
28434 char * kwnames[] = {
28435 (char *) "self",(char *) "font",(char *) "col", NULL
28436 };
72ef6efb 28437
70d7cb34
RD
28438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28440 if (!SWIG_IsOK(res1)) {
70d7cb34 28441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28442 }
28443 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28444 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28445 if (!SWIG_IsOK(res2)) {
28446 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 28447 }
70d7cb34
RD
28448 if (!argp2) {
28449 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 28450 }
70d7cb34
RD
28451 arg2 = reinterpret_cast< wxFont * >(argp2);
28452 if (obj2) {
28453 {
28454 arg3 = &temp3;
28455 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28456 }
72ef6efb 28457 }
72ef6efb 28458 {
70d7cb34 28459 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28460 if (PyErr_Occurred()) SWIG_fail;
28461 }
70d7cb34 28462 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28463 return resultobj;
28464fail:
28465 return NULL;
28466}
28467
28468
70d7cb34 28469SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0a27f394 28470 PyObject *resultobj = 0;
70d7cb34
RD
28471 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28472 wxDouble arg2 = (wxDouble) 1.0 ;
28473 wxDouble arg3 = (wxDouble) 0.0 ;
28474 wxDouble arg4 = (wxDouble) 0.0 ;
28475 wxDouble arg5 = (wxDouble) 1.0 ;
28476 wxDouble arg6 = (wxDouble) 0.0 ;
28477 wxDouble arg7 = (wxDouble) 0.0 ;
28478 wxGraphicsMatrix *result = 0 ;
0a27f394
RD
28479 void *argp1 = 0 ;
28480 int res1 = 0 ;
70d7cb34
RD
28481 double val2 ;
28482 int ecode2 = 0 ;
28483 double val3 ;
28484 int ecode3 = 0 ;
28485 double val4 ;
28486 int ecode4 = 0 ;
28487 double val5 ;
28488 int ecode5 = 0 ;
28489 double val6 ;
28490 int ecode6 = 0 ;
28491 double val7 ;
28492 int ecode7 = 0 ;
28493 PyObject * obj0 = 0 ;
28494 PyObject * obj1 = 0 ;
28495 PyObject * obj2 = 0 ;
28496 PyObject * obj3 = 0 ;
28497 PyObject * obj4 = 0 ;
28498 PyObject * obj5 = 0 ;
28499 PyObject * obj6 = 0 ;
28500 char * kwnames[] = {
28501 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28502 };
0a27f394 28503
70d7cb34
RD
28504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
0a27f394 28506 if (!SWIG_IsOK(res1)) {
70d7cb34 28507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
0a27f394 28508 }
70d7cb34
RD
28509 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28510 if (obj1) {
28511 ecode2 = SWIG_AsVal_double(obj1, &val2);
28512 if (!SWIG_IsOK(ecode2)) {
28513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28514 }
28515 arg2 = static_cast< wxDouble >(val2);
0a27f394 28516 }
70d7cb34
RD
28517 if (obj2) {
28518 ecode3 = SWIG_AsVal_double(obj2, &val3);
28519 if (!SWIG_IsOK(ecode3)) {
28520 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28521 }
28522 arg3 = static_cast< wxDouble >(val3);
0a27f394 28523 }
70d7cb34
RD
28524 if (obj3) {
28525 ecode4 = SWIG_AsVal_double(obj3, &val4);
28526 if (!SWIG_IsOK(ecode4)) {
28527 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28528 }
28529 arg4 = static_cast< wxDouble >(val4);
0a27f394 28530 }
70d7cb34
RD
28531 if (obj4) {
28532 ecode5 = SWIG_AsVal_double(obj4, &val5);
28533 if (!SWIG_IsOK(ecode5)) {
28534 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28535 }
28536 arg5 = static_cast< wxDouble >(val5);
0a27f394 28537 }
70d7cb34
RD
28538 if (obj5) {
28539 ecode6 = SWIG_AsVal_double(obj5, &val6);
28540 if (!SWIG_IsOK(ecode6)) {
28541 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28542 }
28543 arg6 = static_cast< wxDouble >(val6);
0a27f394 28544 }
70d7cb34
RD
28545 if (obj6) {
28546 ecode7 = SWIG_AsVal_double(obj6, &val7);
28547 if (!SWIG_IsOK(ecode7)) {
28548 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28549 }
28550 arg7 = static_cast< wxDouble >(val7);
72ef6efb 28551 }
72ef6efb 28552 {
70d7cb34 28553 result = (wxGraphicsMatrix *)(arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
28554 if (PyErr_Occurred()) SWIG_fail;
28555 }
70d7cb34 28556 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28557 return resultobj;
28558fail:
28559 return NULL;
28560}
28561
28562
28563SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28564 PyObject *resultobj = 0;
28565 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28566 void *argp1 = 0 ;
28567 int res1 = 0 ;
28568 PyObject *swig_obj[1] ;
28569
28570 if (!args) SWIG_fail;
28571 swig_obj[0] = args;
28572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28573 if (!SWIG_IsOK(res1)) {
28574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28575 }
28576 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28577 {
72ef6efb 28578 (arg1)->PushState();
72ef6efb
RD
28579 if (PyErr_Occurred()) SWIG_fail;
28580 }
28581 resultobj = SWIG_Py_Void();
28582 return resultobj;
28583fail:
28584 return NULL;
28585}
28586
28587
28588SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28589 PyObject *resultobj = 0;
28590 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28591 void *argp1 = 0 ;
28592 int res1 = 0 ;
28593 PyObject *swig_obj[1] ;
28594
28595 if (!args) SWIG_fail;
28596 swig_obj[0] = args;
28597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28598 if (!SWIG_IsOK(res1)) {
28599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28600 }
28601 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28602 {
72ef6efb 28603 (arg1)->PopState();
72ef6efb
RD
28604 if (PyErr_Occurred()) SWIG_fail;
28605 }
28606 resultobj = SWIG_Py_Void();
28607 return resultobj;
28608fail:
28609 return NULL;
28610}
28611
28612
0a27f394 28613SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28614 PyObject *resultobj = 0;
28615 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28616 wxRegion *arg2 = 0 ;
28617 void *argp1 = 0 ;
28618 int res1 = 0 ;
28619 void *argp2 = 0 ;
28620 int res2 = 0 ;
28621 PyObject * obj0 = 0 ;
28622 PyObject * obj1 = 0 ;
28623 char * kwnames[] = {
28624 (char *) "self",(char *) "region", NULL
28625 };
28626
0a27f394 28627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
28628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28629 if (!SWIG_IsOK(res1)) {
0a27f394 28630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28631 }
28632 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28633 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28634 if (!SWIG_IsOK(res2)) {
0a27f394 28635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28636 }
28637 if (!argp2) {
0a27f394 28638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28639 }
28640 arg2 = reinterpret_cast< wxRegion * >(argp2);
28641 {
72ef6efb 28642 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
28643 if (PyErr_Occurred()) SWIG_fail;
28644 }
28645 resultobj = SWIG_Py_Void();
28646 return resultobj;
28647fail:
28648 return NULL;
28649}
28650
28651
0a27f394
RD
28652SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28653 PyObject *resultobj = 0;
28654 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28655 wxDouble arg2 ;
28656 wxDouble arg3 ;
28657 wxDouble arg4 ;
28658 wxDouble arg5 ;
28659 void *argp1 = 0 ;
28660 int res1 = 0 ;
28661 double val2 ;
28662 int ecode2 = 0 ;
28663 double val3 ;
28664 int ecode3 = 0 ;
28665 double val4 ;
28666 int ecode4 = 0 ;
28667 double val5 ;
28668 int ecode5 = 0 ;
28669 PyObject * obj0 = 0 ;
28670 PyObject * obj1 = 0 ;
28671 PyObject * obj2 = 0 ;
28672 PyObject * obj3 = 0 ;
28673 PyObject * obj4 = 0 ;
28674 char * kwnames[] = {
28675 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28676 };
28677
28678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28680 if (!SWIG_IsOK(res1)) {
28681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28682 }
28683 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28684 ecode2 = SWIG_AsVal_double(obj1, &val2);
28685 if (!SWIG_IsOK(ecode2)) {
28686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28687 }
28688 arg2 = static_cast< wxDouble >(val2);
28689 ecode3 = SWIG_AsVal_double(obj2, &val3);
28690 if (!SWIG_IsOK(ecode3)) {
28691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28692 }
28693 arg3 = static_cast< wxDouble >(val3);
28694 ecode4 = SWIG_AsVal_double(obj3, &val4);
28695 if (!SWIG_IsOK(ecode4)) {
28696 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28697 }
28698 arg4 = static_cast< wxDouble >(val4);
28699 ecode5 = SWIG_AsVal_double(obj4, &val5);
28700 if (!SWIG_IsOK(ecode5)) {
28701 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28702 }
28703 arg5 = static_cast< wxDouble >(val5);
28704 {
28705 (arg1)->Clip(arg2,arg3,arg4,arg5);
28706 if (PyErr_Occurred()) SWIG_fail;
28707 }
28708 resultobj = SWIG_Py_Void();
28709 return resultobj;
28710fail:
28711 return NULL;
28712}
28713
28714
28715SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28716 PyObject *resultobj = 0;
28717 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28718 void *argp1 = 0 ;
28719 int res1 = 0 ;
28720 PyObject *swig_obj[1] ;
28721
28722 if (!args) SWIG_fail;
28723 swig_obj[0] = args;
28724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28725 if (!SWIG_IsOK(res1)) {
28726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28727 }
28728 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28729 {
28730 (arg1)->ResetClip();
28731 if (PyErr_Occurred()) SWIG_fail;
28732 }
28733 resultobj = SWIG_Py_Void();
28734 return resultobj;
28735fail:
28736 return NULL;
28737}
28738
28739
28740SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28741 PyObject *resultobj = 0;
28742 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28743 void *result = 0 ;
28744 void *argp1 = 0 ;
28745 int res1 = 0 ;
28746 PyObject *swig_obj[1] ;
28747
28748 if (!args) SWIG_fail;
28749 swig_obj[0] = args;
28750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28751 if (!SWIG_IsOK(res1)) {
28752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28753 }
28754 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28755 {
28756 result = (void *)(arg1)->GetNativeContext();
28757 if (PyErr_Occurred()) SWIG_fail;
28758 }
28759 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28760 return resultobj;
28761fail:
28762 return NULL;
28763}
28764
28765
72ef6efb
RD
28766SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28767 PyObject *resultobj = 0;
28768 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28769 wxDouble arg2 ;
28770 wxDouble arg3 ;
28771 void *argp1 = 0 ;
28772 int res1 = 0 ;
28773 double val2 ;
28774 int ecode2 = 0 ;
28775 double val3 ;
28776 int ecode3 = 0 ;
28777 PyObject * obj0 = 0 ;
28778 PyObject * obj1 = 0 ;
28779 PyObject * obj2 = 0 ;
28780 char * kwnames[] = {
28781 (char *) "self",(char *) "dx",(char *) "dy", NULL
28782 };
28783
28784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28786 if (!SWIG_IsOK(res1)) {
28787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28788 }
28789 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28790 ecode2 = SWIG_AsVal_double(obj1, &val2);
28791 if (!SWIG_IsOK(ecode2)) {
28792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28793 }
28794 arg2 = static_cast< wxDouble >(val2);
28795 ecode3 = SWIG_AsVal_double(obj2, &val3);
28796 if (!SWIG_IsOK(ecode3)) {
28797 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28798 }
28799 arg3 = static_cast< wxDouble >(val3);
28800 {
72ef6efb 28801 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
28802 if (PyErr_Occurred()) SWIG_fail;
28803 }
28804 resultobj = SWIG_Py_Void();
28805 return resultobj;
28806fail:
28807 return NULL;
28808}
28809
28810
28811SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28812 PyObject *resultobj = 0;
28813 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28814 wxDouble arg2 ;
28815 wxDouble arg3 ;
28816 void *argp1 = 0 ;
28817 int res1 = 0 ;
28818 double val2 ;
28819 int ecode2 = 0 ;
28820 double val3 ;
28821 int ecode3 = 0 ;
28822 PyObject * obj0 = 0 ;
28823 PyObject * obj1 = 0 ;
28824 PyObject * obj2 = 0 ;
28825 char * kwnames[] = {
28826 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28827 };
28828
28829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28831 if (!SWIG_IsOK(res1)) {
28832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28833 }
28834 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28835 ecode2 = SWIG_AsVal_double(obj1, &val2);
28836 if (!SWIG_IsOK(ecode2)) {
28837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28838 }
28839 arg2 = static_cast< wxDouble >(val2);
28840 ecode3 = SWIG_AsVal_double(obj2, &val3);
28841 if (!SWIG_IsOK(ecode3)) {
28842 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28843 }
28844 arg3 = static_cast< wxDouble >(val3);
28845 {
72ef6efb 28846 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
28847 if (PyErr_Occurred()) SWIG_fail;
28848 }
28849 resultobj = SWIG_Py_Void();
28850 return resultobj;
28851fail:
28852 return NULL;
28853}
28854
28855
28856SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28857 PyObject *resultobj = 0;
28858 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28859 wxDouble arg2 ;
28860 void *argp1 = 0 ;
28861 int res1 = 0 ;
28862 double val2 ;
28863 int ecode2 = 0 ;
28864 PyObject * obj0 = 0 ;
28865 PyObject * obj1 = 0 ;
28866 char * kwnames[] = {
28867 (char *) "self",(char *) "angle", NULL
28868 };
28869
28870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28872 if (!SWIG_IsOK(res1)) {
28873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28874 }
28875 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28876 ecode2 = SWIG_AsVal_double(obj1, &val2);
28877 if (!SWIG_IsOK(ecode2)) {
28878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28879 }
28880 arg2 = static_cast< wxDouble >(val2);
28881 {
72ef6efb 28882 (arg1)->Rotate(arg2);
72ef6efb
RD
28883 if (PyErr_Occurred()) SWIG_fail;
28884 }
28885 resultobj = SWIG_Py_Void();
28886 return resultobj;
28887fail:
28888 return NULL;
28889}
28890
28891
70d7cb34
RD
28892SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28893 PyObject *resultobj = 0;
28894 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28895 wxGraphicsPen *arg2 = 0 ;
28896 void *argp1 = 0 ;
28897 int res1 = 0 ;
28898 void *argp2 = 0 ;
28899 int res2 = 0 ;
28900
28901 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28903 if (!SWIG_IsOK(res1)) {
28904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28905 }
28906 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28907 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28908 if (!SWIG_IsOK(res2)) {
28909 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28910 }
28911 if (!argp2) {
28912 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28913 }
28914 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
28915 {
28916 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
28917 if (PyErr_Occurred()) SWIG_fail;
28918 }
28919 resultobj = SWIG_Py_Void();
28920 return resultobj;
28921fail:
28922 return NULL;
28923}
28924
28925
28926SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28927 PyObject *resultobj = 0;
28928 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28929 wxPen *arg2 = 0 ;
28930 void *argp1 = 0 ;
28931 int res1 = 0 ;
28932 void *argp2 = 0 ;
28933 int res2 = 0 ;
72ef6efb 28934
70d7cb34
RD
28935 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28937 if (!SWIG_IsOK(res1)) {
28938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28939 }
28940 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28941 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
72ef6efb
RD
28942 if (!SWIG_IsOK(res2)) {
28943 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28944 }
28945 if (!argp2) {
28946 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28947 }
28948 arg2 = reinterpret_cast< wxPen * >(argp2);
28949 {
72ef6efb 28950 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
28951 if (PyErr_Occurred()) SWIG_fail;
28952 }
28953 resultobj = SWIG_Py_Void();
28954 return resultobj;
28955fail:
28956 return NULL;
28957}
28958
28959
70d7cb34
RD
28960SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28961 int argc;
28962 PyObject *argv[3];
28963
28964 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28965 --argc;
28966 if (argc == 2) {
28967 int _v = 0;
28968 {
28969 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28970 _v = SWIG_CheckState(res);
28971 }
28972 if (!_v) goto check_1;
28973 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28974 }
28975check_1:
28976
28977 if (argc == 2) {
28978 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28979 }
28980
28981fail:
28982 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28983 return NULL;
28984}
28985
28986
28987SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28988 PyObject *resultobj = 0;
28989 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28990 wxGraphicsBrush *arg2 = 0 ;
28991 void *argp1 = 0 ;
28992 int res1 = 0 ;
28993 void *argp2 = 0 ;
28994 int res2 = 0 ;
28995
28996 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28998 if (!SWIG_IsOK(res1)) {
28999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29000 }
29001 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29002 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29003 if (!SWIG_IsOK(res2)) {
29004 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29005 }
29006 if (!argp2) {
29007 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29008 }
29009 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
29010 {
29011 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
29012 if (PyErr_Occurred()) SWIG_fail;
29013 }
29014 resultobj = SWIG_Py_Void();
29015 return resultobj;
29016fail:
29017 return NULL;
29018}
29019
29020
29021SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29022 PyObject *resultobj = 0;
29023 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29024 wxBrush *arg2 = 0 ;
29025 void *argp1 = 0 ;
29026 int res1 = 0 ;
29027 void *argp2 = 0 ;
29028 int res2 = 0 ;
72ef6efb 29029
70d7cb34
RD
29030 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29032 if (!SWIG_IsOK(res1)) {
29033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29034 }
29035 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 29036 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
72ef6efb
RD
29037 if (!SWIG_IsOK(res2)) {
29038 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29039 }
29040 if (!argp2) {
29041 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29042 }
29043 arg2 = reinterpret_cast< wxBrush * >(argp2);
29044 {
72ef6efb 29045 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
29046 if (PyErr_Occurred()) SWIG_fail;
29047 }
29048 resultobj = SWIG_Py_Void();
29049 return resultobj;
29050fail:
29051 return NULL;
29052}
29053
29054
70d7cb34
RD
29055SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
29056 int argc;
29057 PyObject *argv[3];
72ef6efb 29058
70d7cb34
RD
29059 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
29060 --argc;
29061 if (argc == 2) {
29062 int _v = 0;
29063 {
29064 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
29065 _v = SWIG_CheckState(res);
29066 }
29067 if (!_v) goto check_1;
29068 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
72ef6efb 29069 }
70d7cb34
RD
29070check_1:
29071
29072 if (argc == 2) {
29073 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
72ef6efb 29074 }
70d7cb34 29075
72ef6efb 29076fail:
70d7cb34 29077 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
72ef6efb
RD
29078 return NULL;
29079}
29080
29081
70d7cb34 29082SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29083 PyObject *resultobj = 0;
29084 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 29085 wxGraphicsFont *arg2 = 0 ;
72ef6efb
RD
29086 void *argp1 = 0 ;
29087 int res1 = 0 ;
70d7cb34
RD
29088 void *argp2 = 0 ;
29089 int res2 = 0 ;
72ef6efb 29090
70d7cb34
RD
29091 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29093 if (!SWIG_IsOK(res1)) {
70d7cb34 29094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29095 }
29096 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
29097 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
29098 if (!SWIG_IsOK(res2)) {
29099 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 29100 }
70d7cb34
RD
29101 if (!argp2) {
29102 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 29103 }
70d7cb34 29104 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
72ef6efb 29105 {
70d7cb34 29106 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
72ef6efb
RD
29107 if (PyErr_Occurred()) SWIG_fail;
29108 }
29109 resultobj = SWIG_Py_Void();
29110 return resultobj;
29111fail:
29112 return NULL;
29113}
29114
29115
70d7cb34 29116SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29117 PyObject *resultobj = 0;
29118 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29119 wxFont *arg2 = 0 ;
70d7cb34
RD
29120 wxColour const &arg3_defvalue = *wxBLACK ;
29121 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
72ef6efb
RD
29122 void *argp1 = 0 ;
29123 int res1 = 0 ;
29124 void *argp2 = 0 ;
29125 int res2 = 0 ;
70d7cb34 29126 wxColour temp3 ;
72ef6efb 29127
70d7cb34
RD
29128 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
29129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29130 if (!SWIG_IsOK(res1)) {
29131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29132 }
29133 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 29134 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
72ef6efb
RD
29135 if (!SWIG_IsOK(res2)) {
29136 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29137 }
29138 if (!argp2) {
29139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29140 }
29141 arg2 = reinterpret_cast< wxFont * >(argp2);
70d7cb34
RD
29142 if (swig_obj[2]) {
29143 {
29144 arg3 = &temp3;
29145 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
29146 }
29147 }
72ef6efb 29148 {
70d7cb34 29149 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
29150 if (PyErr_Occurred()) SWIG_fail;
29151 }
29152 resultobj = SWIG_Py_Void();
29153 return resultobj;
29154fail:
29155 return NULL;
29156}
29157
29158
70d7cb34
RD
29159SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
29160 int argc;
29161 PyObject *argv[4];
72ef6efb 29162
70d7cb34
RD
29163 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
29164 --argc;
29165 if (argc == 2) {
29166 int _v = 0;
29167 {
29168 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
29169 _v = SWIG_CheckState(res);
29170 }
29171 if (!_v) goto check_1;
29172 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
72ef6efb 29173 }
70d7cb34
RD
29174check_1:
29175
29176 if ((argc >= 2) && (argc <= 3)) {
29177 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
72ef6efb 29178 }
70d7cb34 29179
72ef6efb 29180fail:
70d7cb34 29181 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
72ef6efb
RD
29182 return NULL;
29183}
29184
29185
29186SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29187 PyObject *resultobj = 0;
29188 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29189 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
29190 void *argp1 = 0 ;
29191 int res1 = 0 ;
29192 void *argp2 = 0 ;
29193 int res2 = 0 ;
29194 PyObject * obj0 = 0 ;
29195 PyObject * obj1 = 0 ;
29196 char * kwnames[] = {
29197 (char *) "self",(char *) "path", NULL
29198 };
29199
29200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
29201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29202 if (!SWIG_IsOK(res1)) {
29203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29204 }
29205 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29206 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
29207 if (!SWIG_IsOK(res2)) {
29208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
29209 }
29210 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29211 {
72ef6efb 29212 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
72ef6efb
RD
29213 if (PyErr_Occurred()) SWIG_fail;
29214 }
29215 resultobj = SWIG_Py_Void();
29216 return resultobj;
29217fail:
29218 return NULL;
29219}
29220
29221
29222SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29223 PyObject *resultobj = 0;
29224 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29225 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
29226 int arg3 = (int) wxWINDING_RULE ;
29227 void *argp1 = 0 ;
29228 int res1 = 0 ;
29229 void *argp2 = 0 ;
29230 int res2 = 0 ;
29231 int val3 ;
29232 int ecode3 = 0 ;
29233 PyObject * obj0 = 0 ;
29234 PyObject * obj1 = 0 ;
29235 PyObject * obj2 = 0 ;
29236 char * kwnames[] = {
29237 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29238 };
29239
29240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29242 if (!SWIG_IsOK(res1)) {
29243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29244 }
29245 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29246 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
29247 if (!SWIG_IsOK(res2)) {
29248 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
29249 }
29250 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29251 if (obj2) {
29252 ecode3 = SWIG_AsVal_int(obj2, &val3);
29253 if (!SWIG_IsOK(ecode3)) {
29254 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
29255 }
29256 arg3 = static_cast< int >(val3);
29257 }
29258 {
72ef6efb 29259 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
72ef6efb
RD
29260 if (PyErr_Occurred()) SWIG_fail;
29261 }
29262 resultobj = SWIG_Py_Void();
29263 return resultobj;
29264fail:
29265 return NULL;
29266}
29267
29268
29269SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29270 PyObject *resultobj = 0;
29271 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29272 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
29273 int arg3 = (int) wxWINDING_RULE ;
29274 void *argp1 = 0 ;
29275 int res1 = 0 ;
29276 void *argp2 = 0 ;
29277 int res2 = 0 ;
29278 int val3 ;
29279 int ecode3 = 0 ;
29280 PyObject * obj0 = 0 ;
29281 PyObject * obj1 = 0 ;
29282 PyObject * obj2 = 0 ;
29283 char * kwnames[] = {
29284 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29285 };
29286
29287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29289 if (!SWIG_IsOK(res1)) {
29290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29291 }
29292 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29293 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
29294 if (!SWIG_IsOK(res2)) {
29295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
29296 }
29297 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29298 if (obj2) {
29299 ecode3 = SWIG_AsVal_int(obj2, &val3);
29300 if (!SWIG_IsOK(ecode3)) {
29301 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
29302 }
29303 arg3 = static_cast< int >(val3);
29304 }
29305 {
72ef6efb 29306 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
72ef6efb
RD
29307 if (PyErr_Occurred()) SWIG_fail;
29308 }
29309 resultobj = SWIG_Py_Void();
29310 return resultobj;
29311fail:
29312 return NULL;
29313}
29314
29315
b39fe951 29316SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29317 PyObject *resultobj = 0;
29318 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29319 wxString *arg2 = 0 ;
29320 wxDouble arg3 ;
29321 wxDouble arg4 ;
29322 void *argp1 = 0 ;
29323 int res1 = 0 ;
29324 bool temp2 = false ;
29325 double val3 ;
29326 int ecode3 = 0 ;
29327 double val4 ;
29328 int ecode4 = 0 ;
b39fe951
RD
29329 PyObject * obj0 = 0 ;
29330 PyObject * obj1 = 0 ;
29331 PyObject * obj2 = 0 ;
29332 PyObject * obj3 = 0 ;
29333 char * kwnames[] = {
29334 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
29335 };
72ef6efb 29336
b39fe951
RD
29337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29339 if (!SWIG_IsOK(res1)) {
29340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29341 }
29342 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29343 {
b39fe951 29344 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29345 if (arg2 == NULL) SWIG_fail;
29346 temp2 = true;
29347 }
b39fe951 29348 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
29349 if (!SWIG_IsOK(ecode3)) {
29350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29351 }
29352 arg3 = static_cast< wxDouble >(val3);
b39fe951 29353 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
29354 if (!SWIG_IsOK(ecode4)) {
29355 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29356 }
29357 arg4 = static_cast< wxDouble >(val4);
29358 {
72ef6efb 29359 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
72ef6efb
RD
29360 if (PyErr_Occurred()) SWIG_fail;
29361 }
29362 resultobj = SWIG_Py_Void();
29363 {
29364 if (temp2)
29365 delete arg2;
29366 }
29367 return resultobj;
29368fail:
29369 {
29370 if (temp2)
29371 delete arg2;
29372 }
29373 return NULL;
29374}
29375
29376
b39fe951 29377SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29378 PyObject *resultobj = 0;
29379 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29380 wxString *arg2 = 0 ;
29381 wxDouble arg3 ;
29382 wxDouble arg4 ;
29383 wxDouble arg5 ;
29384 void *argp1 = 0 ;
29385 int res1 = 0 ;
29386 bool temp2 = false ;
29387 double val3 ;
29388 int ecode3 = 0 ;
29389 double val4 ;
29390 int ecode4 = 0 ;
29391 double val5 ;
29392 int ecode5 = 0 ;
b39fe951
RD
29393 PyObject * obj0 = 0 ;
29394 PyObject * obj1 = 0 ;
29395 PyObject * obj2 = 0 ;
29396 PyObject * obj3 = 0 ;
29397 PyObject * obj4 = 0 ;
29398 char * kwnames[] = {
29399 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
29400 };
72ef6efb 29401
b39fe951
RD
29402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29404 if (!SWIG_IsOK(res1)) {
b39fe951 29405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29406 }
29407 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29408 {
b39fe951 29409 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29410 if (arg2 == NULL) SWIG_fail;
29411 temp2 = true;
29412 }
b39fe951 29413 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 29414 if (!SWIG_IsOK(ecode3)) {
b39fe951 29415 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29416 }
29417 arg3 = static_cast< wxDouble >(val3);
b39fe951 29418 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 29419 if (!SWIG_IsOK(ecode4)) {
b39fe951 29420 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29421 }
29422 arg4 = static_cast< wxDouble >(val4);
b39fe951 29423 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 29424 if (!SWIG_IsOK(ecode5)) {
b39fe951 29425 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29426 }
29427 arg5 = static_cast< wxDouble >(val5);
29428 {
72ef6efb 29429 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
72ef6efb
RD
29430 if (PyErr_Occurred()) SWIG_fail;
29431 }
29432 resultobj = SWIG_Py_Void();
29433 {
29434 if (temp2)
29435 delete arg2;
29436 }
29437 return resultobj;
29438fail:
29439 {
29440 if (temp2)
29441 delete arg2;
29442 }
29443 return NULL;
29444}
29445
29446
be68621e 29447SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29448 PyObject *resultobj = 0;
29449 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29450 wxString *arg2 = 0 ;
29451 wxDouble *arg3 = (wxDouble *) 0 ;
29452 wxDouble *arg4 = (wxDouble *) 0 ;
29453 wxDouble *arg5 = (wxDouble *) 0 ;
29454 wxDouble *arg6 = (wxDouble *) 0 ;
29455 void *argp1 = 0 ;
29456 int res1 = 0 ;
29457 bool temp2 = false ;
29458 wxDouble temp3 ;
29459 int res3 = SWIG_TMPOBJ ;
29460 wxDouble temp4 ;
29461 int res4 = SWIG_TMPOBJ ;
29462 wxDouble temp5 ;
29463 int res5 = SWIG_TMPOBJ ;
29464 wxDouble temp6 ;
29465 int res6 = SWIG_TMPOBJ ;
29466 PyObject * obj0 = 0 ;
29467 PyObject * obj1 = 0 ;
29468 char * kwnames[] = {
29469 (char *) "self",(char *) "text", NULL
29470 };
29471
29472 arg3 = &temp3;
29473 arg4 = &temp4;
29474 arg5 = &temp5;
29475 arg6 = &temp6;
be68621e 29476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29478 if (!SWIG_IsOK(res1)) {
be68621e 29479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29480 }
29481 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29482 {
29483 arg2 = wxString_in_helper(obj1);
29484 if (arg2 == NULL) SWIG_fail;
29485 temp2 = true;
29486 }
29487 {
72ef6efb 29488 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29489 if (PyErr_Occurred()) SWIG_fail;
29490 }
29491 resultobj = SWIG_Py_Void();
29492 if (SWIG_IsTmpObj(res3)) {
29493 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29494 } else {
29495 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29496 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29497 }
29498 if (SWIG_IsTmpObj(res4)) {
29499 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29500 } else {
29501 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29502 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29503 }
29504 if (SWIG_IsTmpObj(res5)) {
29505 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29506 } else {
29507 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29508 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29509 }
29510 if (SWIG_IsTmpObj(res6)) {
29511 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29512 } else {
29513 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29514 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29515 }
29516 {
29517 if (temp2)
29518 delete arg2;
29519 }
29520 return resultobj;
29521fail:
29522 {
29523 if (temp2)
29524 delete arg2;
29525 }
29526 return NULL;
29527}
29528
29529
be68621e
RD
29530SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29531 PyObject *resultobj = 0;
29532 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29533 wxString *arg2 = 0 ;
29534 PyObject *result = 0 ;
29535 void *argp1 = 0 ;
29536 int res1 = 0 ;
29537 bool temp2 = false ;
29538 PyObject * obj0 = 0 ;
29539 PyObject * obj1 = 0 ;
29540 char * kwnames[] = {
29541 (char *) "self",(char *) "text", NULL
29542 };
29543
29544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29546 if (!SWIG_IsOK(res1)) {
29547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29548 }
29549 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29550 {
29551 arg2 = wxString_in_helper(obj1);
29552 if (arg2 == NULL) SWIG_fail;
29553 temp2 = true;
29554 }
29555 {
29556 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29557 if (PyErr_Occurred()) SWIG_fail;
29558 }
29559 resultobj = result;
29560 {
29561 if (temp2)
29562 delete arg2;
29563 }
29564 return resultobj;
29565fail:
29566 {
29567 if (temp2)
29568 delete arg2;
29569 }
29570 return NULL;
29571}
29572
29573
72ef6efb
RD
29574SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29575 PyObject *resultobj = 0;
29576 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29577 wxString *arg2 = 0 ;
b39fe951 29578 wxArrayDouble result;
72ef6efb
RD
29579 void *argp1 = 0 ;
29580 int res1 = 0 ;
29581 bool temp2 = false ;
72ef6efb
RD
29582 PyObject * obj0 = 0 ;
29583 PyObject * obj1 = 0 ;
72ef6efb 29584 char * kwnames[] = {
b39fe951 29585 (char *) "self",(char *) "text", NULL
72ef6efb
RD
29586 };
29587
b39fe951 29588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29590 if (!SWIG_IsOK(res1)) {
b39fe951 29591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29592 }
29593 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29594 {
29595 arg2 = wxString_in_helper(obj1);
29596 if (arg2 == NULL) SWIG_fail;
29597 temp2 = true;
29598 }
72ef6efb 29599 {
b39fe951 29600 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
29601 if (PyErr_Occurred()) SWIG_fail;
29602 }
b39fe951
RD
29603 {
29604 resultobj = wxArrayDouble2PyList_helper(result);
29605 }
72ef6efb
RD
29606 {
29607 if (temp2)
29608 delete arg2;
29609 }
29610 return resultobj;
29611fail:
29612 {
29613 if (temp2)
29614 delete arg2;
29615 }
29616 return NULL;
29617}
29618
29619
29620SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29621 PyObject *resultobj = 0;
29622 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29623 wxBitmap *arg2 = 0 ;
29624 wxDouble arg3 ;
29625 wxDouble arg4 ;
29626 wxDouble arg5 ;
29627 wxDouble arg6 ;
29628 void *argp1 = 0 ;
29629 int res1 = 0 ;
29630 void *argp2 = 0 ;
29631 int res2 = 0 ;
29632 double val3 ;
29633 int ecode3 = 0 ;
29634 double val4 ;
29635 int ecode4 = 0 ;
29636 double val5 ;
29637 int ecode5 = 0 ;
29638 double val6 ;
29639 int ecode6 = 0 ;
29640 PyObject * obj0 = 0 ;
29641 PyObject * obj1 = 0 ;
29642 PyObject * obj2 = 0 ;
29643 PyObject * obj3 = 0 ;
29644 PyObject * obj4 = 0 ;
29645 PyObject * obj5 = 0 ;
29646 char * kwnames[] = {
29647 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29648 };
29649
29650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29652 if (!SWIG_IsOK(res1)) {
29653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29654 }
29655 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29656 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29657 if (!SWIG_IsOK(res2)) {
29658 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29659 }
29660 if (!argp2) {
29661 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29662 }
29663 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29664 ecode3 = SWIG_AsVal_double(obj2, &val3);
29665 if (!SWIG_IsOK(ecode3)) {
29666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29667 }
29668 arg3 = static_cast< wxDouble >(val3);
29669 ecode4 = SWIG_AsVal_double(obj3, &val4);
29670 if (!SWIG_IsOK(ecode4)) {
29671 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29672 }
29673 arg4 = static_cast< wxDouble >(val4);
29674 ecode5 = SWIG_AsVal_double(obj4, &val5);
29675 if (!SWIG_IsOK(ecode5)) {
29676 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29677 }
29678 arg5 = static_cast< wxDouble >(val5);
29679 ecode6 = SWIG_AsVal_double(obj5, &val6);
29680 if (!SWIG_IsOK(ecode6)) {
29681 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29682 }
29683 arg6 = static_cast< wxDouble >(val6);
29684 {
72ef6efb 29685 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29686 if (PyErr_Occurred()) SWIG_fail;
29687 }
29688 resultobj = SWIG_Py_Void();
29689 return resultobj;
29690fail:
29691 return NULL;
29692}
29693
29694
29695SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29696 PyObject *resultobj = 0;
29697 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29698 wxIcon *arg2 = 0 ;
29699 wxDouble arg3 ;
29700 wxDouble arg4 ;
29701 wxDouble arg5 ;
29702 wxDouble arg6 ;
29703 void *argp1 = 0 ;
29704 int res1 = 0 ;
29705 void *argp2 = 0 ;
29706 int res2 = 0 ;
29707 double val3 ;
29708 int ecode3 = 0 ;
29709 double val4 ;
29710 int ecode4 = 0 ;
29711 double val5 ;
29712 int ecode5 = 0 ;
70d7cb34
RD
29713 double val6 ;
29714 int ecode6 = 0 ;
29715 PyObject * obj0 = 0 ;
29716 PyObject * obj1 = 0 ;
29717 PyObject * obj2 = 0 ;
29718 PyObject * obj3 = 0 ;
29719 PyObject * obj4 = 0 ;
29720 PyObject * obj5 = 0 ;
29721 char * kwnames[] = {
29722 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29723 };
29724
29725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29727 if (!SWIG_IsOK(res1)) {
29728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29729 }
29730 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29731 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29732 if (!SWIG_IsOK(res2)) {
29733 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29734 }
29735 if (!argp2) {
29736 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29737 }
29738 arg2 = reinterpret_cast< wxIcon * >(argp2);
29739 ecode3 = SWIG_AsVal_double(obj2, &val3);
29740 if (!SWIG_IsOK(ecode3)) {
29741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29742 }
29743 arg3 = static_cast< wxDouble >(val3);
29744 ecode4 = SWIG_AsVal_double(obj3, &val4);
29745 if (!SWIG_IsOK(ecode4)) {
29746 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29747 }
29748 arg4 = static_cast< wxDouble >(val4);
29749 ecode5 = SWIG_AsVal_double(obj4, &val5);
29750 if (!SWIG_IsOK(ecode5)) {
29751 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29752 }
29753 arg5 = static_cast< wxDouble >(val5);
29754 ecode6 = SWIG_AsVal_double(obj5, &val6);
29755 if (!SWIG_IsOK(ecode6)) {
29756 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29757 }
29758 arg6 = static_cast< wxDouble >(val6);
29759 {
29760 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29761 if (PyErr_Occurred()) SWIG_fail;
29762 }
29763 resultobj = SWIG_Py_Void();
29764 return resultobj;
29765fail:
29766 return NULL;
29767}
29768
29769
29770SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29771 PyObject *resultobj = 0;
29772 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29773 wxDouble arg2 ;
29774 wxDouble arg3 ;
29775 wxDouble arg4 ;
29776 wxDouble arg5 ;
29777 void *argp1 = 0 ;
29778 int res1 = 0 ;
29779 double val2 ;
29780 int ecode2 = 0 ;
29781 double val3 ;
29782 int ecode3 = 0 ;
29783 double val4 ;
29784 int ecode4 = 0 ;
29785 double val5 ;
29786 int ecode5 = 0 ;
29787 PyObject * obj0 = 0 ;
29788 PyObject * obj1 = 0 ;
29789 PyObject * obj2 = 0 ;
29790 PyObject * obj3 = 0 ;
29791 PyObject * obj4 = 0 ;
29792 char * kwnames[] = {
29793 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29794 };
29795
29796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29798 if (!SWIG_IsOK(res1)) {
29799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29800 }
29801 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29802 ecode2 = SWIG_AsVal_double(obj1, &val2);
29803 if (!SWIG_IsOK(ecode2)) {
29804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29805 }
29806 arg2 = static_cast< wxDouble >(val2);
29807 ecode3 = SWIG_AsVal_double(obj2, &val3);
29808 if (!SWIG_IsOK(ecode3)) {
29809 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29810 }
29811 arg3 = static_cast< wxDouble >(val3);
29812 ecode4 = SWIG_AsVal_double(obj3, &val4);
29813 if (!SWIG_IsOK(ecode4)) {
29814 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29815 }
29816 arg4 = static_cast< wxDouble >(val4);
29817 ecode5 = SWIG_AsVal_double(obj4, &val5);
29818 if (!SWIG_IsOK(ecode5)) {
29819 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29820 }
29821 arg5 = static_cast< wxDouble >(val5);
29822 {
29823 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29824 if (PyErr_Occurred()) SWIG_fail;
29825 }
29826 resultobj = SWIG_Py_Void();
29827 return resultobj;
29828fail:
29829 return NULL;
29830}
29831
29832
29833SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29834 PyObject *resultobj = 0;
29835 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29836 size_t arg2 ;
29837 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29838 void *argp1 = 0 ;
29839 int res1 = 0 ;
29840 PyObject * obj0 = 0 ;
29841 PyObject * obj1 = 0 ;
29842 char * kwnames[] = {
29843 (char *) "self",(char *) "points", NULL
29844 };
29845
29846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29848 if (!SWIG_IsOK(res1)) {
29849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29850 }
29851 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29852 {
29853 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29854 if (arg3 == NULL) SWIG_fail;
29855 }
29856 {
29857 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29858 if (PyErr_Occurred()) SWIG_fail;
29859 }
29860 resultobj = SWIG_Py_Void();
29861 {
29862 if (arg3) delete [] arg3;
29863 }
29864 return resultobj;
29865fail:
29866 {
29867 if (arg3) delete [] arg3;
29868 }
29869 return NULL;
29870}
29871
29872
29873SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29874 PyObject *resultobj = 0;
29875 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29876 PyObject *arg2 = (PyObject *) 0 ;
29877 PyObject *arg3 = (PyObject *) 0 ;
29878 void *argp1 = 0 ;
29879 int res1 = 0 ;
29880 PyObject * obj0 = 0 ;
29881 PyObject * obj1 = 0 ;
29882 PyObject * obj2 = 0 ;
29883 char * kwnames[] = {
29884 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29885 };
29886
29887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29889 if (!SWIG_IsOK(res1)) {
29890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29891 }
29892 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29893 arg2 = obj1;
29894 arg3 = obj2;
29895 {
29896 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
29897 if (PyErr_Occurred()) SWIG_fail;
29898 }
29899 resultobj = SWIG_Py_Void();
29900 return resultobj;
29901fail:
29902 return NULL;
29903}
29904
29905
29906SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29907 PyObject *resultobj = 0;
29908 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29909 size_t arg2 ;
29910 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29911 int arg4 = (int) wxWINDING_RULE ;
29912 void *argp1 = 0 ;
29913 int res1 = 0 ;
29914 int val4 ;
29915 int ecode4 = 0 ;
29916 PyObject * obj0 = 0 ;
29917 PyObject * obj1 = 0 ;
29918 PyObject * obj2 = 0 ;
29919 char * kwnames[] = {
29920 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
29921 };
29922
29923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29925 if (!SWIG_IsOK(res1)) {
29926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29927 }
29928 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29929 {
29930 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29931 if (arg3 == NULL) SWIG_fail;
29932 }
29933 if (obj2) {
29934 ecode4 = SWIG_AsVal_int(obj2, &val4);
29935 if (!SWIG_IsOK(ecode4)) {
29936 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
29937 }
29938 arg4 = static_cast< int >(val4);
29939 }
29940 {
29941 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
29942 if (PyErr_Occurred()) SWIG_fail;
29943 }
29944 resultobj = SWIG_Py_Void();
29945 {
29946 if (arg3) delete [] arg3;
29947 }
29948 return resultobj;
29949fail:
29950 {
29951 if (arg3) delete [] arg3;
29952 }
29953 return NULL;
29954}
29955
29956
29957SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29958 PyObject *resultobj = 0;
29959 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29960 wxDouble arg2 ;
29961 wxDouble arg3 ;
29962 wxDouble arg4 ;
29963 wxDouble arg5 ;
29964 void *argp1 = 0 ;
29965 int res1 = 0 ;
29966 double val2 ;
29967 int ecode2 = 0 ;
29968 double val3 ;
29969 int ecode3 = 0 ;
29970 double val4 ;
29971 int ecode4 = 0 ;
29972 double val5 ;
29973 int ecode5 = 0 ;
29974 PyObject * obj0 = 0 ;
29975 PyObject * obj1 = 0 ;
29976 PyObject * obj2 = 0 ;
29977 PyObject * obj3 = 0 ;
29978 PyObject * obj4 = 0 ;
29979 char * kwnames[] = {
29980 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29981 };
29982
29983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29985 if (!SWIG_IsOK(res1)) {
29986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29987 }
29988 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29989 ecode2 = SWIG_AsVal_double(obj1, &val2);
29990 if (!SWIG_IsOK(ecode2)) {
29991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29992 }
29993 arg2 = static_cast< wxDouble >(val2);
29994 ecode3 = SWIG_AsVal_double(obj2, &val3);
29995 if (!SWIG_IsOK(ecode3)) {
29996 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29997 }
29998 arg3 = static_cast< wxDouble >(val3);
29999 ecode4 = SWIG_AsVal_double(obj3, &val4);
30000 if (!SWIG_IsOK(ecode4)) {
30001 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30002 }
30003 arg4 = static_cast< wxDouble >(val4);
30004 ecode5 = SWIG_AsVal_double(obj4, &val5);
30005 if (!SWIG_IsOK(ecode5)) {
30006 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30007 }
30008 arg5 = static_cast< wxDouble >(val5);
30009 {
30010 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
30011 if (PyErr_Occurred()) SWIG_fail;
30012 }
30013 resultobj = SWIG_Py_Void();
30014 return resultobj;
30015fail:
30016 return NULL;
30017}
30018
30019
30020SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30021 PyObject *resultobj = 0;
30022 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30023 wxDouble arg2 ;
30024 wxDouble arg3 ;
30025 wxDouble arg4 ;
30026 wxDouble arg5 ;
30027 void *argp1 = 0 ;
30028 int res1 = 0 ;
30029 double val2 ;
30030 int ecode2 = 0 ;
30031 double val3 ;
30032 int ecode3 = 0 ;
30033 double val4 ;
30034 int ecode4 = 0 ;
30035 double val5 ;
30036 int ecode5 = 0 ;
72ef6efb
RD
30037 PyObject * obj0 = 0 ;
30038 PyObject * obj1 = 0 ;
30039 PyObject * obj2 = 0 ;
30040 PyObject * obj3 = 0 ;
30041 PyObject * obj4 = 0 ;
72ef6efb 30042 char * kwnames[] = {
70d7cb34 30043 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
72ef6efb
RD
30044 };
30045
70d7cb34 30046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
72ef6efb
RD
30047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30048 if (!SWIG_IsOK(res1)) {
70d7cb34 30049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
30050 }
30051 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
30052 ecode2 = SWIG_AsVal_double(obj1, &val2);
30053 if (!SWIG_IsOK(ecode2)) {
30054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
30055 }
30056 arg2 = static_cast< wxDouble >(val2);
72ef6efb
RD
30057 ecode3 = SWIG_AsVal_double(obj2, &val3);
30058 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30059 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30060 }
30061 arg3 = static_cast< wxDouble >(val3);
30062 ecode4 = SWIG_AsVal_double(obj3, &val4);
30063 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30064 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30065 }
30066 arg4 = static_cast< wxDouble >(val4);
30067 ecode5 = SWIG_AsVal_double(obj4, &val5);
30068 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30069 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30070 }
30071 arg5 = static_cast< wxDouble >(val5);
72ef6efb 30072 {
70d7cb34 30073 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
30074 if (PyErr_Occurred()) SWIG_fail;
30075 }
30076 resultobj = SWIG_Py_Void();
30077 return resultobj;
30078fail:
30079 return NULL;
30080}
30081
30082
70d7cb34 30083SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
30084 PyObject *resultobj = 0;
30085 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30086 wxDouble arg2 ;
30087 wxDouble arg3 ;
30088 wxDouble arg4 ;
30089 wxDouble arg5 ;
70d7cb34 30090 wxDouble arg6 ;
72ef6efb
RD
30091 void *argp1 = 0 ;
30092 int res1 = 0 ;
30093 double val2 ;
30094 int ecode2 = 0 ;
30095 double val3 ;
30096 int ecode3 = 0 ;
30097 double val4 ;
30098 int ecode4 = 0 ;
30099 double val5 ;
30100 int ecode5 = 0 ;
70d7cb34
RD
30101 double val6 ;
30102 int ecode6 = 0 ;
72ef6efb
RD
30103 PyObject * obj0 = 0 ;
30104 PyObject * obj1 = 0 ;
30105 PyObject * obj2 = 0 ;
30106 PyObject * obj3 = 0 ;
30107 PyObject * obj4 = 0 ;
70d7cb34 30108 PyObject * obj5 = 0 ;
72ef6efb 30109 char * kwnames[] = {
70d7cb34 30110 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
72ef6efb
RD
30111 };
30112
70d7cb34 30113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72ef6efb
RD
30114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30115 if (!SWIG_IsOK(res1)) {
70d7cb34 30116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
30117 }
30118 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30119 ecode2 = SWIG_AsVal_double(obj1, &val2);
30120 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30122 }
30123 arg2 = static_cast< wxDouble >(val2);
30124 ecode3 = SWIG_AsVal_double(obj2, &val3);
30125 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30126 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30127 }
30128 arg3 = static_cast< wxDouble >(val3);
30129 ecode4 = SWIG_AsVal_double(obj3, &val4);
30130 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30131 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30132 }
30133 arg4 = static_cast< wxDouble >(val4);
30134 ecode5 = SWIG_AsVal_double(obj4, &val5);
30135 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30136 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30137 }
30138 arg5 = static_cast< wxDouble >(val5);
70d7cb34
RD
30139 ecode6 = SWIG_AsVal_double(obj5, &val6);
30140 if (!SWIG_IsOK(ecode6)) {
30141 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
30142 }
30143 arg6 = static_cast< wxDouble >(val6);
72ef6efb 30144 {
70d7cb34 30145 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
30146 if (PyErr_Occurred()) SWIG_fail;
30147 }
30148 resultobj = SWIG_Py_Void();
30149 return resultobj;
30150fail:
30151 return NULL;
30152}
30153
30154
70d7cb34 30155SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30156 PyObject *resultobj = 0;
30157 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 30158 bool result;
72ef6efb
RD
30159 void *argp1 = 0 ;
30160 int res1 = 0 ;
70d7cb34 30161 PyObject *swig_obj[1] ;
72ef6efb 30162
70d7cb34
RD
30163 if (!args) SWIG_fail;
30164 swig_obj[0] = args;
30165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 30166 if (!SWIG_IsOK(res1)) {
70d7cb34 30167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
30168 }
30169 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951 30170 {
70d7cb34
RD
30171 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
30172 if (PyErr_Occurred()) SWIG_fail;
72ef6efb 30173 }
72ef6efb 30174 {
70d7cb34
RD
30175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30176 }
30177 return resultobj;
30178fail:
30179 return NULL;
30180}
30181
30182
30183SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30184 PyObject *obj;
30185 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30186 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
30187 return SWIG_Py_Void();
30188}
30189
30190SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30191 PyObject *resultobj = 0;
30192 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30193 void *argp1 = 0 ;
30194 int res1 = 0 ;
30195 PyObject *swig_obj[1] ;
30196
30197 if (!args) SWIG_fail;
30198 swig_obj[0] = args;
30199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
30200 if (!SWIG_IsOK(res1)) {
30201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30202 }
30203 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30204 {
30205 delete arg1;
30206
72ef6efb
RD
30207 if (PyErr_Occurred()) SWIG_fail;
30208 }
30209 resultobj = SWIG_Py_Void();
70d7cb34
RD
30210 return resultobj;
30211fail:
30212 return NULL;
30213}
30214
30215
30216SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30217 PyObject *resultobj = 0;
30218 wxGraphicsRenderer *result = 0 ;
30219
30220 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
b39fe951 30221 {
70d7cb34
RD
30222 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
30223 if (PyErr_Occurred()) SWIG_fail;
30224 }
30225 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30226 return resultobj;
30227fail:
30228 return NULL;
30229}
30230
30231
30232SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30233 PyObject *resultobj = 0;
30234 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30235 wxWindowDC *arg2 = 0 ;
30236 wxGraphicsContext *result = 0 ;
30237 void *argp1 = 0 ;
30238 int res1 = 0 ;
30239 void *argp2 = 0 ;
30240 int res2 = 0 ;
30241
30242 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30244 if (!SWIG_IsOK(res1)) {
30245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30246 }
30247 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30248 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
30249 if (!SWIG_IsOK(res2)) {
30250 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30251 }
30252 if (!argp2) {
30253 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30254 }
30255 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30256 {
30257 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
30258 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30259 }
70d7cb34 30260 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30261 return resultobj;
30262fail:
70d7cb34
RD
30263 return NULL;
30264}
30265
30266
30267SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30268 PyObject *resultobj = 0;
30269 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30270 wxWindow *arg2 = (wxWindow *) 0 ;
30271 wxGraphicsContext *result = 0 ;
30272 void *argp1 = 0 ;
30273 int res1 = 0 ;
30274 void *argp2 = 0 ;
30275 int res2 = 0 ;
30276
30277 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30279 if (!SWIG_IsOK(res1)) {
30280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30281 }
30282 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30283 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30284 if (!SWIG_IsOK(res2)) {
30285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
30286 }
30287 arg2 = reinterpret_cast< wxWindow * >(argp2);
b39fe951 30288 {
70d7cb34
RD
30289 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
30290 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30291 }
70d7cb34
RD
30292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30293 return resultobj;
30294fail:
72ef6efb
RD
30295 return NULL;
30296}
30297
30298
70d7cb34
RD
30299SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
30300 int argc;
30301 PyObject *argv[3];
30302
30303 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
30304 --argc;
30305 if (argc == 2) {
30306 int _v = 0;
30307 {
30308 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
30309 _v = SWIG_CheckState(res);
30310 }
30311 if (!_v) goto check_1;
30312 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30313 }
30314check_1:
30315
30316 if (argc == 2) {
30317 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30318 }
30319
30320fail:
30321 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30322 return NULL;
30323}
30324
30325
30326SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30327 PyObject *resultobj = 0;
70d7cb34
RD
30328 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30329 void *arg2 = (void *) 0 ;
30330 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30331 void *argp1 = 0 ;
30332 int res1 = 0 ;
70d7cb34 30333 int res2 ;
b39fe951
RD
30334 PyObject * obj0 = 0 ;
30335 PyObject * obj1 = 0 ;
b39fe951 30336 char * kwnames[] = {
70d7cb34 30337 (char *) "self",(char *) "context", NULL
b39fe951 30338 };
72ef6efb 30339
70d7cb34
RD
30340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30342 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30344 }
30345 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30346 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30347 if (!SWIG_IsOK(res2)) {
30348 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
72ef6efb 30349 }
72ef6efb 30350 {
70d7cb34 30351 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
72ef6efb
RD
30352 if (PyErr_Occurred()) SWIG_fail;
30353 }
70d7cb34 30354 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30355 return resultobj;
30356fail:
30357 return NULL;
30358}
30359
30360
70d7cb34 30361SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30362 PyObject *resultobj = 0;
70d7cb34
RD
30363 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30364 void *arg2 = (void *) 0 ;
30365 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30366 void *argp1 = 0 ;
30367 int res1 = 0 ;
70d7cb34 30368 int res2 ;
72ef6efb
RD
30369 PyObject * obj0 = 0 ;
30370 PyObject * obj1 = 0 ;
72ef6efb 30371 char * kwnames[] = {
70d7cb34 30372 (char *) "self",(char *) "window", NULL
72ef6efb
RD
30373 };
30374
70d7cb34
RD
30375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30377 if (!SWIG_IsOK(res1)) {
70d7cb34 30378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30379 }
70d7cb34
RD
30380 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30381 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30382 if (!SWIG_IsOK(res2)) {
30383 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
72ef6efb
RD
30384 }
30385 {
70d7cb34 30386 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
72ef6efb
RD
30387 if (PyErr_Occurred()) SWIG_fail;
30388 }
70d7cb34 30389 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30390 return resultobj;
30391fail:
70d7cb34
RD
30392 return NULL;
30393}
30394
30395
30396SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30397 PyObject *resultobj = 0;
30398 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30399 wxGraphicsPath *result = 0 ;
30400 void *argp1 = 0 ;
30401 int res1 = 0 ;
30402 PyObject *swig_obj[1] ;
30403
30404 if (!args) SWIG_fail;
30405 swig_obj[0] = args;
30406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30407 if (!SWIG_IsOK(res1)) {
30408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30409 }
30410 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
b39fe951 30411 {
70d7cb34
RD
30412 result = (wxGraphicsPath *)(arg1)->CreatePath();
30413 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30414 }
70d7cb34
RD
30415 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
30416 return resultobj;
30417fail:
72ef6efb
RD
30418 return NULL;
30419}
30420
30421
70d7cb34 30422SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30423 PyObject *resultobj = 0;
70d7cb34
RD
30424 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30425 wxDouble arg2 = (wxDouble) 1.0 ;
30426 wxDouble arg3 = (wxDouble) 0.0 ;
30427 wxDouble arg4 = (wxDouble) 0.0 ;
30428 wxDouble arg5 = (wxDouble) 1.0 ;
30429 wxDouble arg6 = (wxDouble) 0.0 ;
30430 wxDouble arg7 = (wxDouble) 0.0 ;
30431 wxGraphicsMatrix *result = 0 ;
72ef6efb
RD
30432 void *argp1 = 0 ;
30433 int res1 = 0 ;
30434 double val2 ;
30435 int ecode2 = 0 ;
30436 double val3 ;
30437 int ecode3 = 0 ;
30438 double val4 ;
30439 int ecode4 = 0 ;
30440 double val5 ;
30441 int ecode5 = 0 ;
70d7cb34
RD
30442 double val6 ;
30443 int ecode6 = 0 ;
30444 double val7 ;
30445 int ecode7 = 0 ;
72ef6efb
RD
30446 PyObject * obj0 = 0 ;
30447 PyObject * obj1 = 0 ;
30448 PyObject * obj2 = 0 ;
30449 PyObject * obj3 = 0 ;
30450 PyObject * obj4 = 0 ;
70d7cb34
RD
30451 PyObject * obj5 = 0 ;
30452 PyObject * obj6 = 0 ;
72ef6efb 30453 char * kwnames[] = {
70d7cb34 30454 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
72ef6efb
RD
30455 };
30456
70d7cb34
RD
30457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30459 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30461 }
30462 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30463 if (obj1) {
30464 ecode2 = SWIG_AsVal_double(obj1, &val2);
30465 if (!SWIG_IsOK(ecode2)) {
30466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30467 }
30468 arg2 = static_cast< wxDouble >(val2);
30469 }
30470 if (obj2) {
30471 ecode3 = SWIG_AsVal_double(obj2, &val3);
30472 if (!SWIG_IsOK(ecode3)) {
30473 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30474 }
30475 arg3 = static_cast< wxDouble >(val3);
30476 }
30477 if (obj3) {
30478 ecode4 = SWIG_AsVal_double(obj3, &val4);
30479 if (!SWIG_IsOK(ecode4)) {
30480 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30481 }
30482 arg4 = static_cast< wxDouble >(val4);
30483 }
30484 if (obj4) {
30485 ecode5 = SWIG_AsVal_double(obj4, &val5);
30486 if (!SWIG_IsOK(ecode5)) {
30487 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30488 }
30489 arg5 = static_cast< wxDouble >(val5);
30490 }
30491 if (obj5) {
30492 ecode6 = SWIG_AsVal_double(obj5, &val6);
30493 if (!SWIG_IsOK(ecode6)) {
30494 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30495 }
30496 arg6 = static_cast< wxDouble >(val6);
30497 }
30498 if (obj6) {
30499 ecode7 = SWIG_AsVal_double(obj6, &val7);
30500 if (!SWIG_IsOK(ecode7)) {
30501 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30502 }
30503 arg7 = static_cast< wxDouble >(val7);
72ef6efb 30504 }
72ef6efb 30505 {
70d7cb34 30506 result = (wxGraphicsMatrix *)(arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
30507 if (PyErr_Occurred()) SWIG_fail;
30508 }
70d7cb34 30509 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30510 return resultobj;
30511fail:
30512 return NULL;
30513}
30514
30515
70d7cb34 30516SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30517 PyObject *resultobj = 0;
70d7cb34
RD
30518 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30519 wxPen *arg2 = 0 ;
30520 wxGraphicsPen result;
30521 void *argp1 = 0 ;
30522 int res1 = 0 ;
30523 void *argp2 = 0 ;
30524 int res2 = 0 ;
30525 PyObject * obj0 = 0 ;
30526 PyObject * obj1 = 0 ;
30527 char * kwnames[] = {
30528 (char *) "self",(char *) "pen", NULL
30529 };
30530
30531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30533 if (!SWIG_IsOK(res1)) {
30534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30535 }
30536 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30537 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30538 if (!SWIG_IsOK(res2)) {
30539 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30540 }
30541 if (!argp2) {
30542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30543 }
30544 arg2 = reinterpret_cast< wxPen * >(argp2);
30545 {
30546 result = (arg1)->CreatePen((wxPen const &)*arg2);
30547 if (PyErr_Occurred()) SWIG_fail;
30548 }
30549 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30550 return resultobj;
30551fail:
30552 return NULL;
30553}
30554
30555
30556SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30557 PyObject *resultobj = 0;
30558 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30559 wxBrush *arg2 = 0 ;
30560 wxGraphicsBrush result;
30561 void *argp1 = 0 ;
30562 int res1 = 0 ;
30563 void *argp2 = 0 ;
30564 int res2 = 0 ;
30565 PyObject * obj0 = 0 ;
30566 PyObject * obj1 = 0 ;
30567 char * kwnames[] = {
30568 (char *) "self",(char *) "brush", NULL
30569 };
30570
30571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30573 if (!SWIG_IsOK(res1)) {
30574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30575 }
30576 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30577 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30578 if (!SWIG_IsOK(res2)) {
30579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30580 }
30581 if (!argp2) {
30582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30583 }
30584 arg2 = reinterpret_cast< wxBrush * >(argp2);
30585 {
30586 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30587 if (PyErr_Occurred()) SWIG_fail;
30588 }
30589 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30590 return resultobj;
30591fail:
30592 return NULL;
30593}
30594
30595
30596SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30597 PyObject *resultobj = 0;
30598 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30599 wxDouble arg2 ;
30600 wxDouble arg3 ;
30601 wxDouble arg4 ;
30602 wxDouble arg5 ;
70d7cb34
RD
30603 wxColour *arg6 = 0 ;
30604 wxColour *arg7 = 0 ;
30605 wxGraphicsBrush result;
72ef6efb
RD
30606 void *argp1 = 0 ;
30607 int res1 = 0 ;
30608 double val2 ;
30609 int ecode2 = 0 ;
30610 double val3 ;
30611 int ecode3 = 0 ;
30612 double val4 ;
30613 int ecode4 = 0 ;
30614 double val5 ;
30615 int ecode5 = 0 ;
70d7cb34
RD
30616 wxColour temp6 ;
30617 wxColour temp7 ;
72ef6efb
RD
30618 PyObject * obj0 = 0 ;
30619 PyObject * obj1 = 0 ;
30620 PyObject * obj2 = 0 ;
30621 PyObject * obj3 = 0 ;
30622 PyObject * obj4 = 0 ;
70d7cb34
RD
30623 PyObject * obj5 = 0 ;
30624 PyObject * obj6 = 0 ;
72ef6efb 30625 char * kwnames[] = {
70d7cb34 30626 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
30627 };
30628
70d7cb34
RD
30629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30631 if (!SWIG_IsOK(res1)) {
70d7cb34 30632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30633 }
70d7cb34 30634 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30635 ecode2 = SWIG_AsVal_double(obj1, &val2);
30636 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30638 }
30639 arg2 = static_cast< wxDouble >(val2);
30640 ecode3 = SWIG_AsVal_double(obj2, &val3);
30641 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30642 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30643 }
30644 arg3 = static_cast< wxDouble >(val3);
30645 ecode4 = SWIG_AsVal_double(obj3, &val4);
30646 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30647 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30648 }
30649 arg4 = static_cast< wxDouble >(val4);
30650 ecode5 = SWIG_AsVal_double(obj4, &val5);
30651 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30652 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30653 }
30654 arg5 = static_cast< wxDouble >(val5);
30655 {
70d7cb34
RD
30656 arg6 = &temp6;
30657 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30658 }
30659 {
30660 arg7 = &temp7;
30661 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30662 }
30663 {
30664 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
30665 if (PyErr_Occurred()) SWIG_fail;
30666 }
70d7cb34 30667 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30668 return resultobj;
30669fail:
30670 return NULL;
30671}
30672
30673
70d7cb34 30674SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30675 PyObject *resultobj = 0;
70d7cb34 30676 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30677 wxDouble arg2 ;
30678 wxDouble arg3 ;
30679 wxDouble arg4 ;
30680 wxDouble arg5 ;
30681 wxDouble arg6 ;
70d7cb34
RD
30682 wxColour *arg7 = 0 ;
30683 wxColour *arg8 = 0 ;
30684 wxGraphicsBrush result;
72ef6efb
RD
30685 void *argp1 = 0 ;
30686 int res1 = 0 ;
30687 double val2 ;
30688 int ecode2 = 0 ;
30689 double val3 ;
30690 int ecode3 = 0 ;
30691 double val4 ;
30692 int ecode4 = 0 ;
30693 double val5 ;
30694 int ecode5 = 0 ;
30695 double val6 ;
30696 int ecode6 = 0 ;
70d7cb34
RD
30697 wxColour temp7 ;
30698 wxColour temp8 ;
72ef6efb
RD
30699 PyObject * obj0 = 0 ;
30700 PyObject * obj1 = 0 ;
30701 PyObject * obj2 = 0 ;
30702 PyObject * obj3 = 0 ;
30703 PyObject * obj4 = 0 ;
30704 PyObject * obj5 = 0 ;
70d7cb34
RD
30705 PyObject * obj6 = 0 ;
30706 PyObject * obj7 = 0 ;
72ef6efb 30707 char * kwnames[] = {
70d7cb34 30708 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
30709 };
30710
70d7cb34
RD
30711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30713 if (!SWIG_IsOK(res1)) {
70d7cb34 30714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30715 }
70d7cb34 30716 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30717 ecode2 = SWIG_AsVal_double(obj1, &val2);
30718 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30720 }
30721 arg2 = static_cast< wxDouble >(val2);
30722 ecode3 = SWIG_AsVal_double(obj2, &val3);
30723 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30724 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30725 }
30726 arg3 = static_cast< wxDouble >(val3);
30727 ecode4 = SWIG_AsVal_double(obj3, &val4);
30728 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30729 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30730 }
30731 arg4 = static_cast< wxDouble >(val4);
30732 ecode5 = SWIG_AsVal_double(obj4, &val5);
30733 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30734 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30735 }
30736 arg5 = static_cast< wxDouble >(val5);
30737 ecode6 = SWIG_AsVal_double(obj5, &val6);
30738 if (!SWIG_IsOK(ecode6)) {
70d7cb34 30739 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
30740 }
30741 arg6 = static_cast< wxDouble >(val6);
30742 {
70d7cb34
RD
30743 arg7 = &temp7;
30744 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30745 }
30746 {
30747 arg8 = &temp8;
30748 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30749 }
30750 {
30751 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
30752 if (PyErr_Occurred()) SWIG_fail;
30753 }
70d7cb34 30754 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30755 return resultobj;
30756fail:
30757 return NULL;
30758}
30759
30760
70d7cb34
RD
30761SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30762 PyObject *resultobj = 0;
30763 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30764 wxFont *arg2 = 0 ;
30765 wxColour const &arg3_defvalue = *wxBLACK ;
30766 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30767 wxGraphicsFont result;
30768 void *argp1 = 0 ;
30769 int res1 = 0 ;
30770 void *argp2 = 0 ;
30771 int res2 = 0 ;
30772 wxColour temp3 ;
30773 PyObject * obj0 = 0 ;
30774 PyObject * obj1 = 0 ;
30775 PyObject * obj2 = 0 ;
30776 char * kwnames[] = {
30777 (char *) "self",(char *) "font",(char *) "col", NULL
30778 };
30779
30780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30782 if (!SWIG_IsOK(res1)) {
30783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30784 }
30785 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30786 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30787 if (!SWIG_IsOK(res2)) {
30788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30789 }
30790 if (!argp2) {
30791 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30792 }
30793 arg2 = reinterpret_cast< wxFont * >(argp2);
30794 if (obj2) {
30795 {
30796 arg3 = &temp3;
30797 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30798 }
30799 }
30800 {
30801 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30802 if (PyErr_Occurred()) SWIG_fail;
30803 }
30804 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30805 return resultobj;
30806fail:
30807 return NULL;
30808}
30809
30810
30811SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30812 PyObject *obj;
30813 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
70d7cb34 30814 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
72ef6efb
RD
30815 return SWIG_Py_Void();
30816}
30817
30818SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30819 PyObject *resultobj = 0;
30820 wxWindowDC *arg1 = 0 ;
30821 wxGCDC *result = 0 ;
30822 void *argp1 = 0 ;
30823 int res1 = 0 ;
30824 PyObject * obj0 = 0 ;
30825 char * kwnames[] = {
30826 (char *) "dc", NULL
30827 };
30828
30829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
30830 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
30831 if (!SWIG_IsOK(res1)) {
30832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30833 }
30834 if (!argp1) {
30835 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30836 }
30837 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30838 {
30839 if (!wxPyCheckForApp()) SWIG_fail;
30840 PyThreadState* __tstate = wxPyBeginAllowThreads();
30841 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30842 wxPyEndAllowThreads(__tstate);
30843 if (PyErr_Occurred()) SWIG_fail;
30844 }
30845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30846 return resultobj;
30847fail:
30848 return NULL;
30849}
30850
30851
30852SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30853 PyObject *resultobj = 0;
30854 wxGCDC *arg1 = (wxGCDC *) 0 ;
30855 void *argp1 = 0 ;
30856 int res1 = 0 ;
30857 PyObject *swig_obj[1] ;
30858
30859 if (!args) SWIG_fail;
30860 swig_obj[0] = args;
30861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30862 if (!SWIG_IsOK(res1)) {
30863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30864 }
30865 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30866 {
72ef6efb
RD
30867 delete arg1;
30868
72ef6efb
RD
30869 if (PyErr_Occurred()) SWIG_fail;
30870 }
30871 resultobj = SWIG_Py_Void();
30872 return resultobj;
30873fail:
30874 return NULL;
30875}
30876
30877
0a27f394 30878SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30879 PyObject *resultobj = 0;
30880 wxGCDC *arg1 = (wxGCDC *) 0 ;
30881 wxGraphicsContext *result = 0 ;
30882 void *argp1 = 0 ;
30883 int res1 = 0 ;
30884 PyObject *swig_obj[1] ;
30885
30886 if (!args) SWIG_fail;
30887 swig_obj[0] = args;
30888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30889 if (!SWIG_IsOK(res1)) {
0a27f394 30890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
30891 }
30892 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30893 {
0a27f394 30894 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
30895 if (PyErr_Occurred()) SWIG_fail;
30896 }
30897 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30898 return resultobj;
30899fail:
30900 return NULL;
30901}
30902
30903
0a27f394
RD
30904SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30905 PyObject *resultobj = 0;
30906 wxGCDC *arg1 = (wxGCDC *) 0 ;
30907 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
30908 void *argp1 = 0 ;
30909 int res1 = 0 ;
30910 void *argp2 = 0 ;
30911 int res2 = 0 ;
30912 PyObject * obj0 = 0 ;
30913 PyObject * obj1 = 0 ;
30914 char * kwnames[] = {
30915 (char *) "self",(char *) "ctx", NULL
30916 };
30917
30918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
30919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30920 if (!SWIG_IsOK(res1)) {
30921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30922 }
30923 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30924 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30925 if (!SWIG_IsOK(res2)) {
30926 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
30927 }
30928 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
30929 {
30930 (arg1)->SetGraphicsContext(arg2);
30931 if (PyErr_Occurred()) SWIG_fail;
30932 }
30933 resultobj = SWIG_Py_Void();
30934 return resultobj;
30935fail:
30936 return NULL;
30937}
30938
30939
72ef6efb
RD
30940SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30941 PyObject *obj;
30942 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30943 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
30944 return SWIG_Py_Void();
30945}
30946
30947SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30948 return SWIG_Python_InitShadowInstance(args);
30949}
30950
b39fe951
RD
30951SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30952 PyObject *resultobj = 0;
30953 wxOverlay *result = 0 ;
30954
30955 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30956 {
30957 PyThreadState* __tstate = wxPyBeginAllowThreads();
30958 result = (wxOverlay *)new wxOverlay();
30959 wxPyEndAllowThreads(__tstate);
30960 if (PyErr_Occurred()) SWIG_fail;
30961 }
30962 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
30963 return resultobj;
30964fail:
30965 return NULL;
30966}
30967
30968
30969SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30970 PyObject *resultobj = 0;
30971 wxOverlay *arg1 = (wxOverlay *) 0 ;
30972 void *argp1 = 0 ;
30973 int res1 = 0 ;
30974 PyObject *swig_obj[1] ;
30975
30976 if (!args) SWIG_fail;
30977 swig_obj[0] = args;
30978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
30979 if (!SWIG_IsOK(res1)) {
30980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
30981 }
30982 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30983 {
30984 PyThreadState* __tstate = wxPyBeginAllowThreads();
30985 delete arg1;
30986
30987 wxPyEndAllowThreads(__tstate);
30988 if (PyErr_Occurred()) SWIG_fail;
30989 }
30990 resultobj = SWIG_Py_Void();
30991 return resultobj;
30992fail:
30993 return NULL;
30994}
30995
30996
30997SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30998 PyObject *resultobj = 0;
30999 wxOverlay *arg1 = (wxOverlay *) 0 ;
31000 void *argp1 = 0 ;
31001 int res1 = 0 ;
31002 PyObject *swig_obj[1] ;
31003
31004 if (!args) SWIG_fail;
31005 swig_obj[0] = args;
31006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
31007 if (!SWIG_IsOK(res1)) {
31008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
31009 }
31010 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31011 {
31012 PyThreadState* __tstate = wxPyBeginAllowThreads();
31013 (arg1)->Reset();
31014 wxPyEndAllowThreads(__tstate);
31015 if (PyErr_Occurred()) SWIG_fail;
31016 }
31017 resultobj = SWIG_Py_Void();
31018 return resultobj;
31019fail:
31020 return NULL;
31021}
31022
31023
31024SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31025 PyObject *obj;
31026 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31027 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
31028 return SWIG_Py_Void();
31029}
31030
31031SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31032 return SWIG_Python_InitShadowInstance(args);
31033}
31034
31035SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31036 PyObject *resultobj = 0;
31037 wxOverlay *arg1 = 0 ;
31038 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31039 int arg3 ;
31040 int arg4 ;
31041 int arg5 ;
31042 int arg6 ;
31043 wxDCOverlay *result = 0 ;
31044 void *argp1 = 0 ;
31045 int res1 = 0 ;
31046 void *argp2 = 0 ;
31047 int res2 = 0 ;
31048 int val3 ;
31049 int ecode3 = 0 ;
31050 int val4 ;
31051 int ecode4 = 0 ;
31052 int val5 ;
31053 int ecode5 = 0 ;
31054 int val6 ;
31055 int ecode6 = 0 ;
31056
31057 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
31058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31059 if (!SWIG_IsOK(res1)) {
31060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31061 }
31062 if (!argp1) {
31063 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31064 }
31065 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31066 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31067 if (!SWIG_IsOK(res2)) {
31068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31069 }
31070 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31071 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31072 if (!SWIG_IsOK(ecode3)) {
31073 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
31074 }
31075 arg3 = static_cast< int >(val3);
31076 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
31077 if (!SWIG_IsOK(ecode4)) {
31078 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
31079 }
31080 arg4 = static_cast< int >(val4);
31081 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
31082 if (!SWIG_IsOK(ecode5)) {
31083 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
31084 }
31085 arg5 = static_cast< int >(val5);
31086 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
31087 if (!SWIG_IsOK(ecode6)) {
31088 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
31089 }
31090 arg6 = static_cast< int >(val6);
31091 {
31092 PyThreadState* __tstate = wxPyBeginAllowThreads();
31093 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
31094 wxPyEndAllowThreads(__tstate);
31095 if (PyErr_Occurred()) SWIG_fail;
31096 }
31097 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31098 return resultobj;
31099fail:
31100 return NULL;
31101}
31102
31103
31104SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31105 PyObject *resultobj = 0;
31106 wxOverlay *arg1 = 0 ;
31107 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31108 wxDCOverlay *result = 0 ;
31109 void *argp1 = 0 ;
31110 int res1 = 0 ;
31111 void *argp2 = 0 ;
31112 int res2 = 0 ;
31113
31114 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31116 if (!SWIG_IsOK(res1)) {
31117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31118 }
31119 if (!argp1) {
31120 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31121 }
31122 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31123 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31124 if (!SWIG_IsOK(res2)) {
31125 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31126 }
31127 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31128 {
31129 PyThreadState* __tstate = wxPyBeginAllowThreads();
31130 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
31131 wxPyEndAllowThreads(__tstate);
31132 if (PyErr_Occurred()) SWIG_fail;
31133 }
31134 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31135 return resultobj;
31136fail:
31137 return NULL;
31138}
31139
31140
31141SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
31142 int argc;
31143 PyObject *argv[7];
31144
31145 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
31146 --argc;
31147 if (argc == 2) {
31148 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
31149 }
31150 if (argc == 6) {
31151 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
31152 }
31153
31154fail:
31155 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
31156 return NULL;
31157}
31158
31159
31160SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31161 PyObject *resultobj = 0;
31162 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31163 void *argp1 = 0 ;
31164 int res1 = 0 ;
31165 PyObject *swig_obj[1] ;
31166
31167 if (!args) SWIG_fail;
31168 swig_obj[0] = args;
31169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
31170 if (!SWIG_IsOK(res1)) {
31171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31172 }
31173 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31174 {
31175 PyThreadState* __tstate = wxPyBeginAllowThreads();
31176 delete arg1;
31177
31178 wxPyEndAllowThreads(__tstate);
31179 if (PyErr_Occurred()) SWIG_fail;
31180 }
31181 resultobj = SWIG_Py_Void();
31182 return resultobj;
31183fail:
31184 return NULL;
31185}
31186
31187
31188SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31189 PyObject *resultobj = 0;
31190 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31191 void *argp1 = 0 ;
31192 int res1 = 0 ;
31193 PyObject *swig_obj[1] ;
31194
31195 if (!args) SWIG_fail;
31196 swig_obj[0] = args;
31197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
31198 if (!SWIG_IsOK(res1)) {
31199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31200 }
31201 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31202 {
31203 PyThreadState* __tstate = wxPyBeginAllowThreads();
31204 (arg1)->Clear();
31205 wxPyEndAllowThreads(__tstate);
31206 if (PyErr_Occurred()) SWIG_fail;
31207 }
31208 resultobj = SWIG_Py_Void();
31209 return resultobj;
31210fail:
31211 return NULL;
31212}
31213
31214
31215SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31216 PyObject *obj;
31217 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31218 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
31219 return SWIG_Py_Void();
31220}
31221
31222SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31223 return SWIG_Python_InitShadowInstance(args);
31224}
31225
72ef6efb
RD
31226SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31227 PyObject *resultobj = 0;
31228 int arg1 ;
31229 int arg2 ;
31230 int arg3 = (int) true ;
31231 int arg4 = (int) 1 ;
31232 wxImageList *result = 0 ;
31233 int val1 ;
31234 int ecode1 = 0 ;
31235 int val2 ;
31236 int ecode2 = 0 ;
31237 int val3 ;
31238 int ecode3 = 0 ;
31239 int val4 ;
31240 int ecode4 = 0 ;
31241 PyObject * obj0 = 0 ;
31242 PyObject * obj1 = 0 ;
31243 PyObject * obj2 = 0 ;
31244 PyObject * obj3 = 0 ;
31245 char * kwnames[] = {
31246 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
31247 };
31248
31249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31250 ecode1 = SWIG_AsVal_int(obj0, &val1);
31251 if (!SWIG_IsOK(ecode1)) {
31252 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
31253 }
31254 arg1 = static_cast< int >(val1);
31255 ecode2 = SWIG_AsVal_int(obj1, &val2);
31256 if (!SWIG_IsOK(ecode2)) {
31257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
31258 }
31259 arg2 = static_cast< int >(val2);
31260 if (obj2) {
31261 ecode3 = SWIG_AsVal_int(obj2, &val3);
31262 if (!SWIG_IsOK(ecode3)) {
31263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
31264 }
31265 arg3 = static_cast< int >(val3);
31266 }
31267 if (obj3) {
31268 ecode4 = SWIG_AsVal_int(obj3, &val4);
31269 if (!SWIG_IsOK(ecode4)) {
31270 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31271 }
31272 arg4 = static_cast< int >(val4);
31273 }
31274 {
31275 if (!wxPyCheckForApp()) SWIG_fail;
31276 PyThreadState* __tstate = wxPyBeginAllowThreads();
31277 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31278 wxPyEndAllowThreads(__tstate);
31279 if (PyErr_Occurred()) SWIG_fail;
31280 }
e02c0a13 31281 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
31282 return resultobj;
31283fail:
31284 return NULL;
31285}
31286
31287
31288SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31289 PyObject *resultobj = 0;
31290 wxImageList *arg1 = (wxImageList *) 0 ;
31291 void *argp1 = 0 ;
31292 int res1 = 0 ;
31293 PyObject *swig_obj[1] ;
31294
31295 if (!args) SWIG_fail;
31296 swig_obj[0] = args;
31297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
31298 if (!SWIG_IsOK(res1)) {
31299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
31300 }
31301 arg1 = reinterpret_cast< wxImageList * >(argp1);
31302 {
31303 PyThreadState* __tstate = wxPyBeginAllowThreads();
31304 delete arg1;
31305
31306 wxPyEndAllowThreads(__tstate);
31307 if (PyErr_Occurred()) SWIG_fail;
31308 }
31309 resultobj = SWIG_Py_Void();
31310 return resultobj;
31311fail:
31312 return NULL;
31313}
31314
31315
31316SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31317 PyObject *resultobj = 0;
31318 wxImageList *arg1 = (wxImageList *) 0 ;
31319 wxBitmap *arg2 = 0 ;
31320 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31321 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31322 int result;
31323 void *argp1 = 0 ;
31324 int res1 = 0 ;
31325 void *argp2 = 0 ;
31326 int res2 = 0 ;
31327 void *argp3 = 0 ;
31328 int res3 = 0 ;
31329 PyObject * obj0 = 0 ;
31330 PyObject * obj1 = 0 ;
31331 PyObject * obj2 = 0 ;
31332 char * kwnames[] = {
31333 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
31334 };
31335
31336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31338 if (!SWIG_IsOK(res1)) {
31339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
31340 }
31341 arg1 = reinterpret_cast< wxImageList * >(argp1);
31342 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31343 if (!SWIG_IsOK(res2)) {
31344 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31345 }
31346 if (!argp2) {
31347 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31348 }
31349 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31350 if (obj2) {
31351 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31352 if (!SWIG_IsOK(res3)) {
31353 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31354 }
31355 if (!argp3) {
31356 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31357 }
31358 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31359 }
31360 {
31361 PyThreadState* __tstate = wxPyBeginAllowThreads();
31362 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31363 wxPyEndAllowThreads(__tstate);
31364 if (PyErr_Occurred()) SWIG_fail;
31365 }
31366 resultobj = SWIG_From_int(static_cast< int >(result));
31367 return resultobj;
31368fail:
31369 return NULL;
31370}
31371
31372
31373SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31374 PyObject *resultobj = 0;
31375 wxImageList *arg1 = (wxImageList *) 0 ;
31376 wxBitmap *arg2 = 0 ;
31377 wxColour *arg3 = 0 ;
31378 int result;
31379 void *argp1 = 0 ;
31380 int res1 = 0 ;
31381 void *argp2 = 0 ;
31382 int res2 = 0 ;
31383 wxColour temp3 ;
31384 PyObject * obj0 = 0 ;
31385 PyObject * obj1 = 0 ;
31386 PyObject * obj2 = 0 ;
31387 char * kwnames[] = {
31388 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31389 };
31390
31391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31393 if (!SWIG_IsOK(res1)) {
31394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31395 }
31396 arg1 = reinterpret_cast< wxImageList * >(argp1);
31397 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31398 if (!SWIG_IsOK(res2)) {
31399 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31400 }
31401 if (!argp2) {
31402 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31403 }
31404 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31405 {
31406 arg3 = &temp3;
31407 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31408 }
31409 {
31410 PyThreadState* __tstate = wxPyBeginAllowThreads();
31411 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31412 wxPyEndAllowThreads(__tstate);
31413 if (PyErr_Occurred()) SWIG_fail;
31414 }
31415 resultobj = SWIG_From_int(static_cast< int >(result));
31416 return resultobj;
31417fail:
31418 return NULL;
31419}
31420
31421
31422SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31423 PyObject *resultobj = 0;
31424 wxImageList *arg1 = (wxImageList *) 0 ;
31425 wxIcon *arg2 = 0 ;
31426 int result;
31427 void *argp1 = 0 ;
31428 int res1 = 0 ;
31429 void *argp2 = 0 ;
31430 int res2 = 0 ;
31431 PyObject * obj0 = 0 ;
31432 PyObject * obj1 = 0 ;
31433 char * kwnames[] = {
31434 (char *) "self",(char *) "icon", NULL
31435 };
31436
31437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31439 if (!SWIG_IsOK(res1)) {
31440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31441 }
554f62e9
RD
31442 arg1 = reinterpret_cast< wxImageList * >(argp1);
31443 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31444 if (!SWIG_IsOK(res2)) {
31445 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31446 }
31447 if (!argp2) {
31448 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31449 }
31450 arg2 = reinterpret_cast< wxIcon * >(argp2);
31451 {
31452 PyThreadState* __tstate = wxPyBeginAllowThreads();
31453 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31454 wxPyEndAllowThreads(__tstate);
31455 if (PyErr_Occurred()) SWIG_fail;
31456 }
31457 resultobj = SWIG_From_int(static_cast< int >(result));
31458 return resultobj;
31459fail:
31460 return NULL;
31461}
31462
31463
31464SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31465 PyObject *resultobj = 0;
31466 wxImageList *arg1 = (wxImageList *) 0 ;
31467 int arg2 ;
31468 SwigValueWrapper<wxBitmap > result;
31469 void *argp1 = 0 ;
31470 int res1 = 0 ;
31471 int val2 ;
31472 int ecode2 = 0 ;
31473 PyObject * obj0 = 0 ;
31474 PyObject * obj1 = 0 ;
31475 char * kwnames[] = {
31476 (char *) "self",(char *) "index", NULL
31477 };
31478
31479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31481 if (!SWIG_IsOK(res1)) {
31482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31483 }
31484 arg1 = reinterpret_cast< wxImageList * >(argp1);
31485 ecode2 = SWIG_AsVal_int(obj1, &val2);
31486 if (!SWIG_IsOK(ecode2)) {
31487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31488 }
31489 arg2 = static_cast< int >(val2);
31490 {
31491 PyThreadState* __tstate = wxPyBeginAllowThreads();
31492 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31493 wxPyEndAllowThreads(__tstate);
31494 if (PyErr_Occurred()) SWIG_fail;
31495 }
31496 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31497 return resultobj;
31498fail:
31499 return NULL;
31500}
31501
31502
31503SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31504 PyObject *resultobj = 0;
31505 wxImageList *arg1 = (wxImageList *) 0 ;
31506 int arg2 ;
31507 wxIcon result;
31508 void *argp1 = 0 ;
31509 int res1 = 0 ;
31510 int val2 ;
31511 int ecode2 = 0 ;
31512 PyObject * obj0 = 0 ;
31513 PyObject * obj1 = 0 ;
31514 char * kwnames[] = {
31515 (char *) "self",(char *) "index", NULL
31516 };
31517
31518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31520 if (!SWIG_IsOK(res1)) {
31521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31522 }
31523 arg1 = reinterpret_cast< wxImageList * >(argp1);
31524 ecode2 = SWIG_AsVal_int(obj1, &val2);
31525 if (!SWIG_IsOK(ecode2)) {
31526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31527 }
31528 arg2 = static_cast< int >(val2);
31529 {
31530 PyThreadState* __tstate = wxPyBeginAllowThreads();
31531 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31532 wxPyEndAllowThreads(__tstate);
31533 if (PyErr_Occurred()) SWIG_fail;
31534 }
31535 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31536 return resultobj;
31537fail:
31538 return NULL;
31539}
31540
31541
31542SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31543 PyObject *resultobj = 0;
31544 wxImageList *arg1 = (wxImageList *) 0 ;
31545 int arg2 ;
31546 wxBitmap *arg3 = 0 ;
31547 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31548 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
31549 bool result;
31550 void *argp1 = 0 ;
31551 int res1 = 0 ;
31552 int val2 ;
31553 int ecode2 = 0 ;
31554 void *argp3 = 0 ;
31555 int res3 = 0 ;
31556 void *argp4 = 0 ;
31557 int res4 = 0 ;
31558 PyObject * obj0 = 0 ;
31559 PyObject * obj1 = 0 ;
31560 PyObject * obj2 = 0 ;
31561 PyObject * obj3 = 0 ;
31562 char * kwnames[] = {
31563 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
31564 };
31565
31566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31568 if (!SWIG_IsOK(res1)) {
31569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31570 }
31571 arg1 = reinterpret_cast< wxImageList * >(argp1);
31572 ecode2 = SWIG_AsVal_int(obj1, &val2);
31573 if (!SWIG_IsOK(ecode2)) {
31574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31575 }
31576 arg2 = static_cast< int >(val2);
31577 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31578 if (!SWIG_IsOK(res3)) {
31579 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31580 }
31581 if (!argp3) {
31582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31583 }
31584 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31585 if (obj3) {
31586 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31587 if (!SWIG_IsOK(res4)) {
31588 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
093d3ff1 31589 }
554f62e9
RD
31590 if (!argp4) {
31591 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
093d3ff1 31592 }
554f62e9
RD
31593 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31594 }
31595 {
31596 PyThreadState* __tstate = wxPyBeginAllowThreads();
31597 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
31598 wxPyEndAllowThreads(__tstate);
31599 if (PyErr_Occurred()) SWIG_fail;
31600 }
31601 {
31602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31603 }
31604 return resultobj;
31605fail:
31606 return NULL;
31607}
31608
31609
31610SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31611 PyObject *resultobj = 0;
31612 wxImageList *arg1 = (wxImageList *) 0 ;
31613 int arg2 ;
31614 wxDC *arg3 = 0 ;
31615 int arg4 ;
31616 int arg5 ;
31617 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31618 bool arg7 = (bool) (bool)false ;
31619 bool result;
31620 void *argp1 = 0 ;
31621 int res1 = 0 ;
31622 int val2 ;
31623 int ecode2 = 0 ;
31624 void *argp3 = 0 ;
31625 int res3 = 0 ;
31626 int val4 ;
31627 int ecode4 = 0 ;
31628 int val5 ;
31629 int ecode5 = 0 ;
31630 int val6 ;
31631 int ecode6 = 0 ;
31632 bool val7 ;
31633 int ecode7 = 0 ;
31634 PyObject * obj0 = 0 ;
31635 PyObject * obj1 = 0 ;
31636 PyObject * obj2 = 0 ;
31637 PyObject * obj3 = 0 ;
31638 PyObject * obj4 = 0 ;
31639 PyObject * obj5 = 0 ;
31640 PyObject * obj6 = 0 ;
31641 char * kwnames[] = {
31642 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31643 };
31644
31645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31647 if (!SWIG_IsOK(res1)) {
31648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31649 }
31650 arg1 = reinterpret_cast< wxImageList * >(argp1);
31651 ecode2 = SWIG_AsVal_int(obj1, &val2);
31652 if (!SWIG_IsOK(ecode2)) {
31653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31654 }
31655 arg2 = static_cast< int >(val2);
31656 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31657 if (!SWIG_IsOK(res3)) {
31658 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31659 }
31660 if (!argp3) {
31661 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31662 }
31663 arg3 = reinterpret_cast< wxDC * >(argp3);
31664 ecode4 = SWIG_AsVal_int(obj3, &val4);
31665 if (!SWIG_IsOK(ecode4)) {
31666 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31667 }
31668 arg4 = static_cast< int >(val4);
31669 ecode5 = SWIG_AsVal_int(obj4, &val5);
31670 if (!SWIG_IsOK(ecode5)) {
31671 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31672 }
31673 arg5 = static_cast< int >(val5);
31674 if (obj5) {
31675 ecode6 = SWIG_AsVal_int(obj5, &val6);
31676 if (!SWIG_IsOK(ecode6)) {
31677 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31678 }
31679 arg6 = static_cast< int >(val6);
31680 }
31681 if (obj6) {
31682 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31683 if (!SWIG_IsOK(ecode7)) {
31684 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31685 }
31686 arg7 = static_cast< bool >(val7);
31687 }
31688 {
31689 PyThreadState* __tstate = wxPyBeginAllowThreads();
31690 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31691 wxPyEndAllowThreads(__tstate);
31692 if (PyErr_Occurred()) SWIG_fail;
31693 }
31694 {
31695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31696 }
31697 return resultobj;
31698fail:
31699 return NULL;
31700}
31701
31702
31703SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31704 PyObject *resultobj = 0;
31705 wxImageList *arg1 = (wxImageList *) 0 ;
31706 int result;
31707 void *argp1 = 0 ;
31708 int res1 = 0 ;
31709 PyObject *swig_obj[1] ;
31710
31711 if (!args) SWIG_fail;
31712 swig_obj[0] = args;
31713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31714 if (!SWIG_IsOK(res1)) {
31715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31716 }
31717 arg1 = reinterpret_cast< wxImageList * >(argp1);
31718 {
31719 PyThreadState* __tstate = wxPyBeginAllowThreads();
31720 result = (int)(arg1)->GetImageCount();
31721 wxPyEndAllowThreads(__tstate);
31722 if (PyErr_Occurred()) SWIG_fail;
31723 }
31724 resultobj = SWIG_From_int(static_cast< int >(result));
31725 return resultobj;
31726fail:
31727 return NULL;
31728}
31729
31730
31731SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31732 PyObject *resultobj = 0;
31733 wxImageList *arg1 = (wxImageList *) 0 ;
31734 int arg2 ;
31735 bool result;
31736 void *argp1 = 0 ;
31737 int res1 = 0 ;
31738 int val2 ;
31739 int ecode2 = 0 ;
31740 PyObject * obj0 = 0 ;
31741 PyObject * obj1 = 0 ;
31742 char * kwnames[] = {
31743 (char *) "self",(char *) "index", NULL
31744 };
31745
31746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31748 if (!SWIG_IsOK(res1)) {
31749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31750 }
31751 arg1 = reinterpret_cast< wxImageList * >(argp1);
31752 ecode2 = SWIG_AsVal_int(obj1, &val2);
31753 if (!SWIG_IsOK(ecode2)) {
31754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31755 }
31756 arg2 = static_cast< int >(val2);
31757 {
31758 PyThreadState* __tstate = wxPyBeginAllowThreads();
31759 result = (bool)(arg1)->Remove(arg2);
31760 wxPyEndAllowThreads(__tstate);
31761 if (PyErr_Occurred()) SWIG_fail;
31762 }
31763 {
31764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31765 }
31766 return resultobj;
31767fail:
31768 return NULL;
31769}
31770
31771
31772SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31773 PyObject *resultobj = 0;
31774 wxImageList *arg1 = (wxImageList *) 0 ;
31775 bool result;
31776 void *argp1 = 0 ;
31777 int res1 = 0 ;
31778 PyObject *swig_obj[1] ;
31779
31780 if (!args) SWIG_fail;
31781 swig_obj[0] = args;
31782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31783 if (!SWIG_IsOK(res1)) {
31784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31785 }
31786 arg1 = reinterpret_cast< wxImageList * >(argp1);
31787 {
31788 PyThreadState* __tstate = wxPyBeginAllowThreads();
31789 result = (bool)(arg1)->RemoveAll();
31790 wxPyEndAllowThreads(__tstate);
31791 if (PyErr_Occurred()) SWIG_fail;
31792 }
31793 {
31794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31795 }
31796 return resultobj;
31797fail:
31798 return NULL;
31799}
31800
31801
31802SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31803 PyObject *resultobj = 0;
31804 wxImageList *arg1 = (wxImageList *) 0 ;
31805 int arg2 ;
31806 int *arg3 = 0 ;
31807 int *arg4 = 0 ;
31808 void *argp1 = 0 ;
31809 int res1 = 0 ;
31810 int val2 ;
31811 int ecode2 = 0 ;
31812 int temp3 ;
31813 int res3 = SWIG_TMPOBJ ;
31814 int temp4 ;
31815 int res4 = SWIG_TMPOBJ ;
31816 PyObject * obj0 = 0 ;
31817 PyObject * obj1 = 0 ;
31818 char * kwnames[] = {
31819 (char *) "self",(char *) "index", NULL
31820 };
31821
31822 arg3 = &temp3;
31823 arg4 = &temp4;
31824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31826 if (!SWIG_IsOK(res1)) {
31827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31828 }
31829 arg1 = reinterpret_cast< wxImageList * >(argp1);
31830 ecode2 = SWIG_AsVal_int(obj1, &val2);
31831 if (!SWIG_IsOK(ecode2)) {
31832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31833 }
31834 arg2 = static_cast< int >(val2);
31835 {
31836 PyThreadState* __tstate = wxPyBeginAllowThreads();
31837 (arg1)->GetSize(arg2,*arg3,*arg4);
31838 wxPyEndAllowThreads(__tstate);
31839 if (PyErr_Occurred()) SWIG_fail;
31840 }
31841 resultobj = SWIG_Py_Void();
31842 if (SWIG_IsTmpObj(res3)) {
31843 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31844 } else {
31845 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31846 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31847 }
31848 if (SWIG_IsTmpObj(res4)) {
31849 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31850 } else {
31851 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31852 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31853 }
31854 return resultobj;
31855fail:
31856 return NULL;
31857}
31858
31859
31860SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31861 PyObject *obj;
31862 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31863 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31864 return SWIG_Py_Void();
31865}
31866
31867SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31868 return SWIG_Python_InitShadowInstance(args);
31869}
31870
50efceee
RD
31871SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31872 PyObject *resultobj = 0;
31873 wxStockGDI *result = 0 ;
554f62e9 31874
50efceee
RD
31875 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31876 {
31877 PyThreadState* __tstate = wxPyBeginAllowThreads();
31878 result = (wxStockGDI *)new wxStockGDI();
31879 wxPyEndAllowThreads(__tstate);
31880 if (PyErr_Occurred()) SWIG_fail;
31881 }
31882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31883 return resultobj;
31884fail:
31885 return NULL;
554f62e9
RD
31886}
31887
31888
50efceee
RD
31889SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31890 PyObject *resultobj = 0;
31891 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31892 void *argp1 = 0 ;
31893 int res1 = 0 ;
31894 PyObject *swig_obj[1] ;
554f62e9 31895
50efceee
RD
31896 if (!args) SWIG_fail;
31897 swig_obj[0] = args;
31898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
31899 if (!SWIG_IsOK(res1)) {
31900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31901 }
31902 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31903 {
31904 PyThreadState* __tstate = wxPyBeginAllowThreads();
31905 delete arg1;
31906
31907 wxPyEndAllowThreads(__tstate);
31908 if (PyErr_Occurred()) SWIG_fail;
31909 }
31910 resultobj = SWIG_Py_Void();
31911 return resultobj;
31912fail:
31913 return NULL;
554f62e9
RD
31914}
31915
31916
50efceee
RD
31917SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31918 PyObject *resultobj = 0;
554f62e9 31919
50efceee
RD
31920 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
31921 {
31922 PyThreadState* __tstate = wxPyBeginAllowThreads();
31923 wxStockGDI::DeleteAll();
31924 wxPyEndAllowThreads(__tstate);
31925 if (PyErr_Occurred()) SWIG_fail;
31926 }
31927 resultobj = SWIG_Py_Void();
31928 return resultobj;
31929fail:
31930 return NULL;
554f62e9
RD
31931}
31932
31933
50efceee
RD
31934SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31935 PyObject *resultobj = 0;
31936 wxStockGDI *result = 0 ;
554f62e9 31937
50efceee
RD
31938 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
31939 {
31940 PyThreadState* __tstate = wxPyBeginAllowThreads();
31941 {
31942 wxStockGDI &_result_ref = wxStockGDI::instance();
31943 result = (wxStockGDI *) &_result_ref;
31944 }
31945 wxPyEndAllowThreads(__tstate);
31946 if (PyErr_Occurred()) SWIG_fail;
31947 }
31948 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31949 return resultobj;
31950fail:
31951 return NULL;
554f62e9
RD
31952}
31953
31954
50efceee
RD
31955SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31956 PyObject *resultobj = 0;
31957 wxStockGDI::Item arg1 ;
31958 wxBrush *result = 0 ;
31959 int val1 ;
31960 int ecode1 = 0 ;
31961 PyObject * obj0 = 0 ;
31962 char * kwnames[] = {
31963 (char *) "item", NULL
31964 };
31965
31966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
31967 ecode1 = SWIG_AsVal_int(obj0, &val1);
31968 if (!SWIG_IsOK(ecode1)) {
31969 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31970 }
31971 arg1 = static_cast< wxStockGDI::Item >(val1);
31972 {
31973 PyThreadState* __tstate = wxPyBeginAllowThreads();
31974 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
31975 wxPyEndAllowThreads(__tstate);
31976 if (PyErr_Occurred()) SWIG_fail;
31977 }
31978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31979 return resultobj;
31980fail:
31981 return NULL;
554f62e9
RD
31982}
31983
31984
50efceee
RD
31985SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31986 PyObject *resultobj = 0;
31987 wxStockGDI::Item arg1 ;
31988 wxColour *result = 0 ;
31989 int val1 ;
31990 int ecode1 = 0 ;
31991 PyObject * obj0 = 0 ;
31992 char * kwnames[] = {
31993 (char *) "item", NULL
31994 };
554f62e9 31995
50efceee
RD
31996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
31997 ecode1 = SWIG_AsVal_int(obj0, &val1);
31998 if (!SWIG_IsOK(ecode1)) {
31999 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32000 }
32001 arg1 = static_cast< wxStockGDI::Item >(val1);
32002 {
32003 PyThreadState* __tstate = wxPyBeginAllowThreads();
32004 result = (wxColour *)wxStockGDI::GetColour(arg1);
32005 wxPyEndAllowThreads(__tstate);
32006 if (PyErr_Occurred()) SWIG_fail;
32007 }
32008 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
32009 return resultobj;
32010fail:
32011 return NULL;
554f62e9
RD
32012}
32013
32014
50efceee
RD
32015SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32016 PyObject *resultobj = 0;
32017 wxStockGDI::Item arg1 ;
32018 wxCursor *result = 0 ;
32019 int val1 ;
32020 int ecode1 = 0 ;
32021 PyObject * obj0 = 0 ;
32022 char * kwnames[] = {
32023 (char *) "item", NULL
32024 };
32025
32026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
32027 ecode1 = SWIG_AsVal_int(obj0, &val1);
32028 if (!SWIG_IsOK(ecode1)) {
32029 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32030 }
32031 arg1 = static_cast< wxStockGDI::Item >(val1);
32032 {
32033 PyThreadState* __tstate = wxPyBeginAllowThreads();
32034 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
32035 wxPyEndAllowThreads(__tstate);
32036 if (PyErr_Occurred()) SWIG_fail;
32037 }
32038 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
32039 return resultobj;
32040fail:
32041 return NULL;
554f62e9
RD
32042}
32043
32044
50efceee
RD
32045SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32046 PyObject *resultobj = 0;
32047 wxStockGDI::Item arg1 ;
32048 wxPen *result = 0 ;
32049 int val1 ;
32050 int ecode1 = 0 ;
32051 PyObject * obj0 = 0 ;
32052 char * kwnames[] = {
32053 (char *) "item", NULL
32054 };
32055
32056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
32057 ecode1 = SWIG_AsVal_int(obj0, &val1);
32058 if (!SWIG_IsOK(ecode1)) {
32059 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32060 }
32061 arg1 = static_cast< wxStockGDI::Item >(val1);
32062 {
32063 PyThreadState* __tstate = wxPyBeginAllowThreads();
32064 result = (wxPen *)wxStockGDI::GetPen(arg1);
32065 wxPyEndAllowThreads(__tstate);
32066 if (PyErr_Occurred()) SWIG_fail;
32067 }
32068 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32069 return resultobj;
32070fail:
32071 return NULL;
554f62e9
RD
32072}
32073
32074
50efceee
RD
32075SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32076 PyObject *resultobj = 0;
32077 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32078 wxStockGDI::Item arg2 ;
32079 wxFont *result = 0 ;
32080 void *argp1 = 0 ;
32081 int res1 = 0 ;
32082 int val2 ;
32083 int ecode2 = 0 ;
32084 PyObject * obj0 = 0 ;
32085 PyObject * obj1 = 0 ;
32086 char * kwnames[] = {
32087 (char *) "self",(char *) "item", NULL
32088 };
554f62e9 32089
50efceee
RD
32090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
32091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
32092 if (!SWIG_IsOK(res1)) {
32093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32094 }
32095 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32096 ecode2 = SWIG_AsVal_int(obj1, &val2);
32097 if (!SWIG_IsOK(ecode2)) {
32098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
32099 }
32100 arg2 = static_cast< wxStockGDI::Item >(val2);
32101 {
32102 PyThreadState* __tstate = wxPyBeginAllowThreads();
32103 result = (wxFont *)(arg1)->GetFont(arg2);
32104 wxPyEndAllowThreads(__tstate);
32105 if (PyErr_Occurred()) SWIG_fail;
32106 }
32107 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32108 return resultobj;
32109fail:
32110 return NULL;
554f62e9
RD
32111}
32112
32113
50efceee
RD
32114SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32115 PyObject *obj;
32116 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32117 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
32118 return SWIG_Py_Void();
554f62e9
RD
32119}
32120
50efceee
RD
32121SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32122 return SWIG_Python_InitShadowInstance(args);
554f62e9
RD
32123}
32124
554f62e9
RD
32125SWIGINTERN int NullBitmap_set(PyObject *) {
32126 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
32127 return 1;
32128}
32129
32130
32131SWIGINTERN PyObject *NullBitmap_get(void) {
32132 PyObject *pyobj = 0;
32133
32134 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
32135 return pyobj;
32136}
32137
32138
32139SWIGINTERN int NullIcon_set(PyObject *) {
32140 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
32141 return 1;
32142}
32143
32144
32145SWIGINTERN PyObject *NullIcon_get(void) {
32146 PyObject *pyobj = 0;
32147
32148 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
32149 return pyobj;
32150}
32151
32152
32153SWIGINTERN int NullCursor_set(PyObject *) {
32154 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
32155 return 1;
32156}
32157
32158
32159SWIGINTERN PyObject *NullCursor_get(void) {
32160 PyObject *pyobj = 0;
32161
32162 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
32163 return pyobj;
32164}
32165
32166
32167SWIGINTERN int NullPen_set(PyObject *) {
32168 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
32169 return 1;
32170}
32171
32172
32173SWIGINTERN PyObject *NullPen_get(void) {
32174 PyObject *pyobj = 0;
32175
32176 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
32177 return pyobj;
32178}
32179
32180
32181SWIGINTERN int NullBrush_set(PyObject *) {
32182 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
32183 return 1;
32184}
32185
32186
32187SWIGINTERN PyObject *NullBrush_get(void) {
32188 PyObject *pyobj = 0;
32189
32190 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
32191 return pyobj;
32192}
32193
32194
32195SWIGINTERN int NullPalette_set(PyObject *) {
32196 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
32197 return 1;
32198}
32199
32200
32201SWIGINTERN PyObject *NullPalette_get(void) {
32202 PyObject *pyobj = 0;
32203
32204 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
32205 return pyobj;
32206}
32207
32208
32209SWIGINTERN int NullFont_set(PyObject *) {
32210 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
32211 return 1;
32212}
32213
32214
32215SWIGINTERN PyObject *NullFont_get(void) {
32216 PyObject *pyobj = 0;
32217
32218 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
32219 return pyobj;
32220}
32221
32222
32223SWIGINTERN int NullColour_set(PyObject *) {
32224 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
32225 return 1;
32226}
32227
32228
32229SWIGINTERN PyObject *NullColour_get(void) {
32230 PyObject *pyobj = 0;
32231
32232 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
32233 return pyobj;
32234}
32235
32236
50efceee 32237SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 32238 PyObject *resultobj = 0;
50efceee
RD
32239 wxGDIObjListBase *result = 0 ;
32240
32241 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
32242 {
32243 PyThreadState* __tstate = wxPyBeginAllowThreads();
32244 result = (wxGDIObjListBase *)new wxGDIObjListBase();
32245 wxPyEndAllowThreads(__tstate);
32246 if (PyErr_Occurred()) SWIG_fail;
32247 }
32248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
32249 return resultobj;
32250fail:
32251 return NULL;
32252}
32253
32254
32255SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32256 PyObject *resultobj = 0;
32257 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
554f62e9
RD
32258 void *argp1 = 0 ;
32259 int res1 = 0 ;
50efceee 32260 PyObject *swig_obj[1] ;
554f62e9 32261
50efceee
RD
32262 if (!args) SWIG_fail;
32263 swig_obj[0] = args;
32264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
554f62e9 32265 if (!SWIG_IsOK(res1)) {
50efceee 32266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
554f62e9 32267 }
50efceee 32268 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
554f62e9
RD
32269 {
32270 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee
RD
32271 delete arg1;
32272
554f62e9
RD
32273 wxPyEndAllowThreads(__tstate);
32274 if (PyErr_Occurred()) SWIG_fail;
32275 }
32276 resultobj = SWIG_Py_Void();
32277 return resultobj;
32278fail:
32279 return NULL;
32280}
32281
32282
50efceee
RD
32283SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32284 PyObject *obj;
32285 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32286 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
32287 return SWIG_Py_Void();
32288}
32289
32290SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32291 return SWIG_Python_InitShadowInstance(args);
32292}
32293
554f62e9
RD
32294SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32295 PyObject *resultobj = 0;
32296 wxPenList *arg1 = (wxPenList *) 0 ;
32297 wxColour *arg2 = 0 ;
32298 int arg3 ;
32299 int arg4 ;
32300 wxPen *result = 0 ;
32301 void *argp1 = 0 ;
32302 int res1 = 0 ;
32303 wxColour temp2 ;
32304 int val3 ;
32305 int ecode3 = 0 ;
32306 int val4 ;
32307 int ecode4 = 0 ;
32308 PyObject * obj0 = 0 ;
32309 PyObject * obj1 = 0 ;
32310 PyObject * obj2 = 0 ;
32311 PyObject * obj3 = 0 ;
32312 char * kwnames[] = {
32313 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
32314 };
32315
32316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32318 if (!SWIG_IsOK(res1)) {
32319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32320 }
32321 arg1 = reinterpret_cast< wxPenList * >(argp1);
32322 {
32323 arg2 = &temp2;
32324 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32325 }
32326 ecode3 = SWIG_AsVal_int(obj2, &val3);
32327 if (!SWIG_IsOK(ecode3)) {
32328 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
32329 }
32330 arg3 = static_cast< int >(val3);
32331 ecode4 = SWIG_AsVal_int(obj3, &val4);
32332 if (!SWIG_IsOK(ecode4)) {
32333 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
32334 }
32335 arg4 = static_cast< int >(val4);
32336 {
32337 PyThreadState* __tstate = wxPyBeginAllowThreads();
32338 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
32339 wxPyEndAllowThreads(__tstate);
32340 if (PyErr_Occurred()) SWIG_fail;
32341 }
32342 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32343 return resultobj;
32344fail:
32345 return NULL;
32346}
32347
32348
50efceee 32349SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
32350 PyObject *resultobj = 0;
32351 wxPenList *arg1 = (wxPenList *) 0 ;
32352 wxPen *arg2 = (wxPen *) 0 ;
32353 void *argp1 = 0 ;
32354 int res1 = 0 ;
32355 void *argp2 = 0 ;
32356 int res2 = 0 ;
32357 PyObject * obj0 = 0 ;
32358 PyObject * obj1 = 0 ;
32359 char * kwnames[] = {
32360 (char *) "self",(char *) "pen", NULL
32361 };
32362
50efceee 32363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
554f62e9
RD
32364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32365 if (!SWIG_IsOK(res1)) {
50efceee 32366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
554f62e9
RD
32367 }
32368 arg1 = reinterpret_cast< wxPenList * >(argp1);
32369 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32370 if (!SWIG_IsOK(res2)) {
50efceee 32371 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
554f62e9
RD
32372 }
32373 arg2 = reinterpret_cast< wxPen * >(argp2);
32374 {
32375 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32376 (arg1)->AddPen(arg2);
554f62e9
RD
32377 wxPyEndAllowThreads(__tstate);
32378 if (PyErr_Occurred()) SWIG_fail;
32379 }
32380 resultobj = SWIG_Py_Void();
32381 return resultobj;
32382fail:
32383 return NULL;
32384}
32385
32386
50efceee 32387SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
32388 PyObject *resultobj = 0;
32389 wxPenList *arg1 = (wxPenList *) 0 ;
50efceee 32390 wxPen *arg2 = (wxPen *) 0 ;
554f62e9
RD
32391 void *argp1 = 0 ;
32392 int res1 = 0 ;
50efceee
RD
32393 void *argp2 = 0 ;
32394 int res2 = 0 ;
32395 PyObject * obj0 = 0 ;
32396 PyObject * obj1 = 0 ;
32397 char * kwnames[] = {
32398 (char *) "self",(char *) "pen", NULL
32399 };
554f62e9 32400
50efceee
RD
32401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
32402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
554f62e9 32403 if (!SWIG_IsOK(res1)) {
50efceee 32404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
554f62e9
RD
32405 }
32406 arg1 = reinterpret_cast< wxPenList * >(argp1);
50efceee
RD
32407 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32408 if (!SWIG_IsOK(res2)) {
32409 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
32410 }
32411 arg2 = reinterpret_cast< wxPen * >(argp2);
554f62e9
RD
32412 {
32413 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32414 (arg1)->RemovePen(arg2);
554f62e9
RD
32415 wxPyEndAllowThreads(__tstate);
32416 if (PyErr_Occurred()) SWIG_fail;
32417 }
50efceee 32418 resultobj = SWIG_Py_Void();
554f62e9
RD
32419 return resultobj;
32420fail:
32421 return NULL;
32422}
32423
32424
32425SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32426 PyObject *obj;
32427 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32428 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32429 return SWIG_Py_Void();
32430}
32431
50efceee
RD
32432SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32433 PyObject *resultobj = 0;
32434 wxBrushList *arg1 = (wxBrushList *) 0 ;
32435 wxColour *arg2 = 0 ;
32436 int arg3 = (int) wxSOLID ;
32437 wxBrush *result = 0 ;
32438 void *argp1 = 0 ;
32439 int res1 = 0 ;
32440 wxColour temp2 ;
32441 int val3 ;
32442 int ecode3 = 0 ;
32443 PyObject * obj0 = 0 ;
32444 PyObject * obj1 = 0 ;
32445 PyObject * obj2 = 0 ;
32446 char * kwnames[] = {
32447 (char *) "self",(char *) "colour",(char *) "style", NULL
32448 };
32449
32450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32452 if (!SWIG_IsOK(res1)) {
32453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32454 }
32455 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32456 {
32457 arg2 = &temp2;
32458 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32459 }
32460 if (obj2) {
32461 ecode3 = SWIG_AsVal_int(obj2, &val3);
32462 if (!SWIG_IsOK(ecode3)) {
32463 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32464 }
32465 arg3 = static_cast< int >(val3);
32466 }
32467 {
32468 PyThreadState* __tstate = wxPyBeginAllowThreads();
32469 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32470 wxPyEndAllowThreads(__tstate);
32471 if (PyErr_Occurred()) SWIG_fail;
32472 }
32473 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32474 return resultobj;
32475fail:
32476 return NULL;
32477}
32478
32479
554f62e9
RD
32480SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32481 PyObject *resultobj = 0;
32482 wxBrushList *arg1 = (wxBrushList *) 0 ;
32483 wxBrush *arg2 = (wxBrush *) 0 ;
32484 void *argp1 = 0 ;
32485 int res1 = 0 ;
32486 void *argp2 = 0 ;
32487 int res2 = 0 ;
32488 PyObject * obj0 = 0 ;
32489 PyObject * obj1 = 0 ;
32490 char * kwnames[] = {
32491 (char *) "self",(char *) "brush", NULL
32492 };
32493
32494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32496 if (!SWIG_IsOK(res1)) {
32497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32498 }
32499 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32500 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32501 if (!SWIG_IsOK(res2)) {
32502 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32503 }
32504 arg2 = reinterpret_cast< wxBrush * >(argp2);
32505 {
32506 PyThreadState* __tstate = wxPyBeginAllowThreads();
32507 (arg1)->AddBrush(arg2);
32508 wxPyEndAllowThreads(__tstate);
32509 if (PyErr_Occurred()) SWIG_fail;
32510 }
32511 resultobj = SWIG_Py_Void();
32512 return resultobj;
32513fail:
32514 return NULL;
32515}
32516
32517
50efceee 32518SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
32519 PyObject *resultobj = 0;
32520 wxBrushList *arg1 = (wxBrushList *) 0 ;
50efceee 32521 wxBrush *arg2 = (wxBrush *) 0 ;
554f62e9
RD
32522 void *argp1 = 0 ;
32523 int res1 = 0 ;
50efceee
RD
32524 void *argp2 = 0 ;
32525 int res2 = 0 ;
32526 PyObject * obj0 = 0 ;
32527 PyObject * obj1 = 0 ;
32528 char * kwnames[] = {
32529 (char *) "self",(char *) "brush", NULL
32530 };
32531
32532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32534 if (!SWIG_IsOK(res1)) {
32535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32536 }
32537 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32538 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32539 if (!SWIG_IsOK(res2)) {
32540 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32541 }
32542 arg2 = reinterpret_cast< wxBrush * >(argp2);
32543 {
32544 PyThreadState* __tstate = wxPyBeginAllowThreads();
32545 (arg1)->RemoveBrush(arg2);
32546 wxPyEndAllowThreads(__tstate);
32547 if (PyErr_Occurred()) SWIG_fail;
32548 }
32549 resultobj = SWIG_Py_Void();
32550 return resultobj;
32551fail:
32552 return NULL;
32553}
32554
32555
32556SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32557 PyObject *obj;
32558 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32559 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32560 return SWIG_Py_Void();
32561}
32562
32563SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32564 PyObject *resultobj = 0;
32565 wxFontList *arg1 = (wxFontList *) 0 ;
32566 int arg2 ;
32567 int arg3 ;
32568 int arg4 ;
32569 int arg5 ;
32570 bool arg6 = (bool) false ;
32571 wxString const &arg7_defvalue = wxPyEmptyString ;
32572 wxString *arg7 = (wxString *) &arg7_defvalue ;
32573 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32574 wxFont *result = 0 ;
32575 void *argp1 = 0 ;
32576 int res1 = 0 ;
32577 int val2 ;
32578 int ecode2 = 0 ;
554f62e9
RD
32579 int val3 ;
32580 int ecode3 = 0 ;
50efceee
RD
32581 int val4 ;
32582 int ecode4 = 0 ;
32583 int val5 ;
32584 int ecode5 = 0 ;
32585 bool val6 ;
32586 int ecode6 = 0 ;
32587 bool temp7 = false ;
32588 int val8 ;
32589 int ecode8 = 0 ;
554f62e9
RD
32590 PyObject * obj0 = 0 ;
32591 PyObject * obj1 = 0 ;
32592 PyObject * obj2 = 0 ;
50efceee
RD
32593 PyObject * obj3 = 0 ;
32594 PyObject * obj4 = 0 ;
32595 PyObject * obj5 = 0 ;
32596 PyObject * obj6 = 0 ;
32597 PyObject * obj7 = 0 ;
554f62e9 32598 char * kwnames[] = {
50efceee 32599 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
554f62e9
RD
32600 };
32601
50efceee
RD
32602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 32604 if (!SWIG_IsOK(res1)) {
50efceee 32605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 32606 }
50efceee
RD
32607 arg1 = reinterpret_cast< wxFontList * >(argp1);
32608 ecode2 = SWIG_AsVal_int(obj1, &val2);
32609 if (!SWIG_IsOK(ecode2)) {
32610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32611 }
32612 arg2 = static_cast< int >(val2);
32613 ecode3 = SWIG_AsVal_int(obj2, &val3);
32614 if (!SWIG_IsOK(ecode3)) {
32615 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32616 }
32617 arg3 = static_cast< int >(val3);
32618 ecode4 = SWIG_AsVal_int(obj3, &val4);
32619 if (!SWIG_IsOK(ecode4)) {
32620 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32621 }
32622 arg4 = static_cast< int >(val4);
32623 ecode5 = SWIG_AsVal_int(obj4, &val5);
32624 if (!SWIG_IsOK(ecode5)) {
32625 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32626 }
32627 arg5 = static_cast< int >(val5);
32628 if (obj5) {
32629 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32630 if (!SWIG_IsOK(ecode6)) {
32631 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32632 }
32633 arg6 = static_cast< bool >(val6);
554f62e9 32634 }
50efceee
RD
32635 if (obj6) {
32636 {
32637 arg7 = wxString_in_helper(obj6);
32638 if (arg7 == NULL) SWIG_fail;
32639 temp7 = true;
32640 }
32641 }
32642 if (obj7) {
32643 ecode8 = SWIG_AsVal_int(obj7, &val8);
32644 if (!SWIG_IsOK(ecode8)) {
32645 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
554f62e9 32646 }
50efceee 32647 arg8 = static_cast< wxFontEncoding >(val8);
554f62e9
RD
32648 }
32649 {
32650 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32651 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
554f62e9
RD
32652 wxPyEndAllowThreads(__tstate);
32653 if (PyErr_Occurred()) SWIG_fail;
32654 }
50efceee
RD
32655 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32656 {
32657 if (temp7)
32658 delete arg7;
32659 }
554f62e9
RD
32660 return resultobj;
32661fail:
50efceee
RD
32662 {
32663 if (temp7)
32664 delete arg7;
32665 }
554f62e9
RD
32666 return NULL;
32667}
32668
32669
50efceee 32670SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 32671 PyObject *resultobj = 0;
50efceee
RD
32672 wxFontList *arg1 = (wxFontList *) 0 ;
32673 wxFont *arg2 = (wxFont *) 0 ;
554f62e9
RD
32674 void *argp1 = 0 ;
32675 int res1 = 0 ;
32676 void *argp2 = 0 ;
32677 int res2 = 0 ;
32678 PyObject * obj0 = 0 ;
32679 PyObject * obj1 = 0 ;
32680 char * kwnames[] = {
50efceee 32681 (char *) "self",(char *) "font", NULL
554f62e9
RD
32682 };
32683
50efceee
RD
32684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
32685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 32686 if (!SWIG_IsOK(res1)) {
50efceee 32687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 32688 }
50efceee
RD
32689 arg1 = reinterpret_cast< wxFontList * >(argp1);
32690 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
554f62e9 32691 if (!SWIG_IsOK(res2)) {
50efceee 32692 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
554f62e9 32693 }
50efceee 32694 arg2 = reinterpret_cast< wxFont * >(argp2);
554f62e9
RD
32695 {
32696 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32697 (arg1)->AddFont(arg2);
554f62e9
RD
32698 wxPyEndAllowThreads(__tstate);
32699 if (PyErr_Occurred()) SWIG_fail;
32700 }
32701 resultobj = SWIG_Py_Void();
32702 return resultobj;
32703fail:
32704 return NULL;
32705}
32706
32707
50efceee 32708SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 32709 PyObject *resultobj = 0;
50efceee
RD
32710 wxFontList *arg1 = (wxFontList *) 0 ;
32711 wxFont *arg2 = (wxFont *) 0 ;
554f62e9
RD
32712 void *argp1 = 0 ;
32713 int res1 = 0 ;
50efceee
RD
32714 void *argp2 = 0 ;
32715 int res2 = 0 ;
32716 PyObject * obj0 = 0 ;
32717 PyObject * obj1 = 0 ;
32718 char * kwnames[] = {
32719 (char *) "self",(char *) "font", NULL
32720 };
554f62e9 32721
50efceee
RD
32722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
32723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 32724 if (!SWIG_IsOK(res1)) {
50efceee 32725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 32726 }
50efceee
RD
32727 arg1 = reinterpret_cast< wxFontList * >(argp1);
32728 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32729 if (!SWIG_IsOK(res2)) {
32730 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
32731 }
32732 arg2 = reinterpret_cast< wxFont * >(argp2);
554f62e9
RD
32733 {
32734 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32735 (arg1)->RemoveFont(arg2);
554f62e9
RD
32736 wxPyEndAllowThreads(__tstate);
32737 if (PyErr_Occurred()) SWIG_fail;
32738 }
50efceee 32739 resultobj = SWIG_Py_Void();
554f62e9
RD
32740 return resultobj;
32741fail:
32742 return NULL;
32743}
32744
32745
50efceee 32746SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
32747 PyObject *obj;
32748 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
50efceee 32749 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
554f62e9
RD
32750 return SWIG_Py_Void();
32751}
32752
32753SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32754 PyObject *resultobj = 0;
32755 wxColourDatabase *result = 0 ;
32756
32757 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32758 {
32759 if (!wxPyCheckForApp()) SWIG_fail;
32760 PyThreadState* __tstate = wxPyBeginAllowThreads();
32761 result = (wxColourDatabase *)new wxColourDatabase();
32762 wxPyEndAllowThreads(__tstate);
32763 if (PyErr_Occurred()) SWIG_fail;
32764 }
32765 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32766 return resultobj;
32767fail:
32768 return NULL;
32769}
32770
32771
32772SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32773 PyObject *resultobj = 0;
32774 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32775 void *argp1 = 0 ;
32776 int res1 = 0 ;
32777 PyObject *swig_obj[1] ;
32778
32779 if (!args) SWIG_fail;
32780 swig_obj[0] = args;
32781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32782 if (!SWIG_IsOK(res1)) {
32783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32784 }
32785 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32786 {
32787 PyThreadState* __tstate = wxPyBeginAllowThreads();
32788 delete arg1;
32789
32790 wxPyEndAllowThreads(__tstate);
32791 if (PyErr_Occurred()) SWIG_fail;
32792 }
32793 resultobj = SWIG_Py_Void();
32794 return resultobj;
32795fail:
32796 return NULL;
32797}
32798
32799
32800SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32801 PyObject *resultobj = 0;
32802 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32803 wxString *arg2 = 0 ;
32804 wxColour result;
32805 void *argp1 = 0 ;
32806 int res1 = 0 ;
32807 bool temp2 = false ;
32808 PyObject * obj0 = 0 ;
32809 PyObject * obj1 = 0 ;
32810 char * kwnames[] = {
32811 (char *) "self",(char *) "name", NULL
32812 };
32813
32814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32816 if (!SWIG_IsOK(res1)) {
32817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32818 }
32819 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32820 {
32821 arg2 = wxString_in_helper(obj1);
32822 if (arg2 == NULL) SWIG_fail;
32823 temp2 = true;
32824 }
32825 {
32826 PyThreadState* __tstate = wxPyBeginAllowThreads();
32827 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32828 wxPyEndAllowThreads(__tstate);
32829 if (PyErr_Occurred()) SWIG_fail;
32830 }
32831 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32832 {
32833 if (temp2)
32834 delete arg2;
32835 }
32836 return resultobj;
32837fail:
32838 {
32839 if (temp2)
32840 delete arg2;
32841 }
32842 return NULL;
32843}
32844
32845
32846SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32847 PyObject *resultobj = 0;
32848 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32849 wxColour *arg2 = 0 ;
32850 wxString result;
32851 void *argp1 = 0 ;
32852 int res1 = 0 ;
32853 wxColour temp2 ;
32854 PyObject * obj0 = 0 ;
32855 PyObject * obj1 = 0 ;
32856 char * kwnames[] = {
32857 (char *) "self",(char *) "colour", NULL
32858 };
32859
32860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32862 if (!SWIG_IsOK(res1)) {
32863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32864 }
32865 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32866 {
32867 arg2 = &temp2;
32868 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32869 }
32870 {
32871 PyThreadState* __tstate = wxPyBeginAllowThreads();
32872 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32873 wxPyEndAllowThreads(__tstate);
32874 if (PyErr_Occurred()) SWIG_fail;
32875 }
32876 {
32877#if wxUSE_UNICODE
32878 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32879#else
32880 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32881#endif
32882 }
32883 return resultobj;
32884fail:
32885 return NULL;
32886}
32887
32888
32889SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32890 PyObject *resultobj = 0;
32891 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32892 wxString *arg2 = 0 ;
32893 wxColour *arg3 = 0 ;
32894 void *argp1 = 0 ;
32895 int res1 = 0 ;
32896 bool temp2 = false ;
32897 wxColour temp3 ;
32898 PyObject * obj0 = 0 ;
32899 PyObject * obj1 = 0 ;
32900 PyObject * obj2 = 0 ;
32901 char * kwnames[] = {
32902 (char *) "self",(char *) "name",(char *) "colour", NULL
32903 };
32904
32905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32907 if (!SWIG_IsOK(res1)) {
32908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32909 }
32910 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32911 {
32912 arg2 = wxString_in_helper(obj1);
32913 if (arg2 == NULL) SWIG_fail;
32914 temp2 = true;
32915 }
32916 {
32917 arg3 = &temp3;
32918 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32919 }
32920 {
32921 PyThreadState* __tstate = wxPyBeginAllowThreads();
32922 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32923 wxPyEndAllowThreads(__tstate);
32924 if (PyErr_Occurred()) SWIG_fail;
32925 }
32926 resultobj = SWIG_Py_Void();
32927 {
32928 if (temp2)
32929 delete arg2;
32930 }
32931 return resultobj;
32932fail:
32933 {
32934 if (temp2)
32935 delete arg2;
32936 }
32937 return NULL;
32938}
32939
32940
32941SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32942 PyObject *resultobj = 0;
32943 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32944 wxString *arg2 = 0 ;
32945 int arg3 ;
32946 int arg4 ;
32947 int arg5 ;
32948 void *argp1 = 0 ;
32949 int res1 = 0 ;
32950 bool temp2 = false ;
32951 int val3 ;
32952 int ecode3 = 0 ;
32953 int val4 ;
32954 int ecode4 = 0 ;
50efceee
RD
32955 int val5 ;
32956 int ecode5 = 0 ;
554f62e9
RD
32957 PyObject * obj0 = 0 ;
32958 PyObject * obj1 = 0 ;
32959 PyObject * obj2 = 0 ;
32960 PyObject * obj3 = 0 ;
32961 PyObject * obj4 = 0 ;
554f62e9 32962 char * kwnames[] = {
50efceee 32963 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
554f62e9
RD
32964 };
32965
50efceee
RD
32966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
554f62e9 32968 if (!SWIG_IsOK(res1)) {
50efceee
RD
32969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32970 }
32971 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32972 {
32973 arg2 = wxString_in_helper(obj1);
32974 if (arg2 == NULL) SWIG_fail;
32975 temp2 = true;
554f62e9 32976 }
554f62e9
RD
32977 ecode3 = SWIG_AsVal_int(obj2, &val3);
32978 if (!SWIG_IsOK(ecode3)) {
50efceee 32979 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
554f62e9
RD
32980 }
32981 arg3 = static_cast< int >(val3);
32982 ecode4 = SWIG_AsVal_int(obj3, &val4);
32983 if (!SWIG_IsOK(ecode4)) {
50efceee 32984 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
554f62e9
RD
32985 }
32986 arg4 = static_cast< int >(val4);
32987 ecode5 = SWIG_AsVal_int(obj4, &val5);
32988 if (!SWIG_IsOK(ecode5)) {
50efceee 32989 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
554f62e9
RD
32990 }
32991 arg5 = static_cast< int >(val5);
554f62e9
RD
32992 {
32993 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32994 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
554f62e9
RD
32995 wxPyEndAllowThreads(__tstate);
32996 if (PyErr_Occurred()) SWIG_fail;
32997 }
50efceee 32998 resultobj = SWIG_Py_Void();
554f62e9 32999 {
50efceee
RD
33000 if (temp2)
33001 delete arg2;
554f62e9
RD
33002 }
33003 return resultobj;
33004fail:
33005 {
50efceee
RD
33006 if (temp2)
33007 delete arg2;
554f62e9
RD
33008 }
33009 return NULL;
33010}
33011
33012
50efceee
RD
33013SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33014 PyObject *obj;
33015 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33016 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
33017 return SWIG_Py_Void();
33018}
33019
33020SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33021 return SWIG_Python_InitShadowInstance(args);
33022}
33023
33024SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 33025 PyObject *resultobj = 0;
50efceee 33026 wxFontList *result = 0 ;
554f62e9 33027
50efceee 33028 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
554f62e9
RD
33029 {
33030 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33031 result = (wxFontList *)_wxPyInitTheFontList();
554f62e9
RD
33032 wxPyEndAllowThreads(__tstate);
33033 if (PyErr_Occurred()) SWIG_fail;
33034 }
50efceee 33035 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9
RD
33036 return resultobj;
33037fail:
33038 return NULL;
33039}
33040
33041
50efceee 33042SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 33043 PyObject *resultobj = 0;
50efceee 33044 wxPenList *result = 0 ;
554f62e9 33045
50efceee 33046 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
554f62e9
RD
33047 {
33048 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 33049 result = (wxPenList *)_wxPyInitThePenList();
554f62e9
RD
33050 wxPyEndAllowThreads(__tstate);
33051 if (PyErr_Occurred()) SWIG_fail;
33052 }
50efceee 33053 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
554f62e9
RD
33054 return resultobj;
33055fail:
33056 return NULL;
33057}
33058
33059
50efceee
RD
33060SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33061 PyObject *resultobj = 0;
33062 wxBrushList *result = 0 ;
554f62e9 33063
50efceee
RD
33064 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
33065 {
33066 PyThreadState* __tstate = wxPyBeginAllowThreads();
33067 result = (wxBrushList *)_wxPyInitTheBrushList();
33068 wxPyEndAllowThreads(__tstate);
33069 if (PyErr_Occurred()) SWIG_fail;
33070 }
33071 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
33072 return resultobj;
33073fail:
33074 return NULL;
554f62e9
RD
33075}
33076
33077
50efceee
RD
33078SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33079 PyObject *resultobj = 0;
33080 wxColourDatabase *result = 0 ;
554f62e9 33081
50efceee
RD
33082 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
33083 {
33084 PyThreadState* __tstate = wxPyBeginAllowThreads();
33085 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
33086 wxPyEndAllowThreads(__tstate);
33087 if (PyErr_Occurred()) SWIG_fail;
33088 }
33089 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33090 return resultobj;
33091fail:
33092 return NULL;
554f62e9
RD
33093}
33094
33095
33096SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33097 PyObject *resultobj = 0;
33098 wxEffects *result = 0 ;
33099
33100 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
33101 {
33102 PyThreadState* __tstate = wxPyBeginAllowThreads();
33103 result = (wxEffects *)new wxEffects();
33104 wxPyEndAllowThreads(__tstate);
33105 if (PyErr_Occurred()) SWIG_fail;
33106 }
33107 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
33108 return resultobj;
33109fail:
33110 return NULL;
33111}
33112
33113
33114SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33115 PyObject *resultobj = 0;
33116 wxEffects *arg1 = (wxEffects *) 0 ;
33117 wxColour result;
33118 void *argp1 = 0 ;
33119 int res1 = 0 ;
33120 PyObject *swig_obj[1] ;
33121
33122 if (!args) SWIG_fail;
33123 swig_obj[0] = args;
33124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33125 if (!SWIG_IsOK(res1)) {
33126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33127 }
33128 arg1 = reinterpret_cast< wxEffects * >(argp1);
33129 {
33130 PyThreadState* __tstate = wxPyBeginAllowThreads();
33131 result = ((wxEffects const *)arg1)->GetHighlightColour();
33132 wxPyEndAllowThreads(__tstate);
33133 if (PyErr_Occurred()) SWIG_fail;
33134 }
33135 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33136 return resultobj;
33137fail:
33138 return NULL;
33139}
33140
33141
33142SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33143 PyObject *resultobj = 0;
33144 wxEffects *arg1 = (wxEffects *) 0 ;
33145 wxColour result;
33146 void *argp1 = 0 ;
33147 int res1 = 0 ;
33148 PyObject *swig_obj[1] ;
33149
33150 if (!args) SWIG_fail;
33151 swig_obj[0] = args;
33152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33153 if (!SWIG_IsOK(res1)) {
33154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33155 }
33156 arg1 = reinterpret_cast< wxEffects * >(argp1);
33157 {
33158 PyThreadState* __tstate = wxPyBeginAllowThreads();
33159 result = ((wxEffects const *)arg1)->GetLightShadow();
33160 wxPyEndAllowThreads(__tstate);
33161 if (PyErr_Occurred()) SWIG_fail;
33162 }
33163 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33164 return resultobj;
33165fail:
33166 return NULL;
33167}
33168
33169
33170SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33171 PyObject *resultobj = 0;
33172 wxEffects *arg1 = (wxEffects *) 0 ;
33173 wxColour result;
33174 void *argp1 = 0 ;
33175 int res1 = 0 ;
33176 PyObject *swig_obj[1] ;
33177
33178 if (!args) SWIG_fail;
33179 swig_obj[0] = args;
33180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33181 if (!SWIG_IsOK(res1)) {
33182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33183 }
33184 arg1 = reinterpret_cast< wxEffects * >(argp1);
33185 {
33186 PyThreadState* __tstate = wxPyBeginAllowThreads();
33187 result = ((wxEffects const *)arg1)->GetFaceColour();
33188 wxPyEndAllowThreads(__tstate);
33189 if (PyErr_Occurred()) SWIG_fail;
33190 }
33191 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33192 return resultobj;
33193fail:
33194 return NULL;
33195}
33196
33197
33198SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33199 PyObject *resultobj = 0;
33200 wxEffects *arg1 = (wxEffects *) 0 ;
33201 wxColour result;
33202 void *argp1 = 0 ;
33203 int res1 = 0 ;
33204 PyObject *swig_obj[1] ;
33205
33206 if (!args) SWIG_fail;
33207 swig_obj[0] = args;
33208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33209 if (!SWIG_IsOK(res1)) {
33210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33211 }
33212 arg1 = reinterpret_cast< wxEffects * >(argp1);
33213 {
33214 PyThreadState* __tstate = wxPyBeginAllowThreads();
33215 result = ((wxEffects const *)arg1)->GetMediumShadow();
33216 wxPyEndAllowThreads(__tstate);
33217 if (PyErr_Occurred()) SWIG_fail;
33218 }
33219 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33220 return resultobj;
33221fail:
33222 return NULL;
33223}
33224
33225
33226SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33227 PyObject *resultobj = 0;
33228 wxEffects *arg1 = (wxEffects *) 0 ;
33229 wxColour result;
33230 void *argp1 = 0 ;
33231 int res1 = 0 ;
33232 PyObject *swig_obj[1] ;
33233
33234 if (!args) SWIG_fail;
33235 swig_obj[0] = args;
33236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33237 if (!SWIG_IsOK(res1)) {
33238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33239 }
33240 arg1 = reinterpret_cast< wxEffects * >(argp1);
33241 {
33242 PyThreadState* __tstate = wxPyBeginAllowThreads();
33243 result = ((wxEffects const *)arg1)->GetDarkShadow();
33244 wxPyEndAllowThreads(__tstate);
33245 if (PyErr_Occurred()) SWIG_fail;
33246 }
33247 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33248 return resultobj;
33249fail:
33250 return NULL;
33251}
33252
33253
33254SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33255 PyObject *resultobj = 0;
33256 wxEffects *arg1 = (wxEffects *) 0 ;
33257 wxColour *arg2 = 0 ;
33258 void *argp1 = 0 ;
33259 int res1 = 0 ;
33260 wxColour temp2 ;
33261 PyObject * obj0 = 0 ;
33262 PyObject * obj1 = 0 ;
33263 char * kwnames[] = {
33264 (char *) "self",(char *) "c", NULL
33265 };
33266
33267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
33268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33269 if (!SWIG_IsOK(res1)) {
33270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33271 }
33272 arg1 = reinterpret_cast< wxEffects * >(argp1);
33273 {
33274 arg2 = &temp2;
33275 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33276 }
33277 {
33278 PyThreadState* __tstate = wxPyBeginAllowThreads();
33279 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33280 wxPyEndAllowThreads(__tstate);
33281 if (PyErr_Occurred()) SWIG_fail;
33282 }
33283 resultobj = SWIG_Py_Void();
33284 return resultobj;
33285fail:
33286 return NULL;
33287}
33288
33289
33290SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33291 PyObject *resultobj = 0;
33292 wxEffects *arg1 = (wxEffects *) 0 ;
33293 wxColour *arg2 = 0 ;
33294 void *argp1 = 0 ;
33295 int res1 = 0 ;
33296 wxColour temp2 ;
33297 PyObject * obj0 = 0 ;
33298 PyObject * obj1 = 0 ;
33299 char * kwnames[] = {
33300 (char *) "self",(char *) "c", NULL
33301 };
33302
33303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33305 if (!SWIG_IsOK(res1)) {
33306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33307 }
33308 arg1 = reinterpret_cast< wxEffects * >(argp1);
33309 {
33310 arg2 = &temp2;
33311 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33312 }
33313 {
33314 PyThreadState* __tstate = wxPyBeginAllowThreads();
33315 (arg1)->SetLightShadow((wxColour const &)*arg2);
33316 wxPyEndAllowThreads(__tstate);
33317 if (PyErr_Occurred()) SWIG_fail;
33318 }
33319 resultobj = SWIG_Py_Void();
33320 return resultobj;
33321fail:
33322 return NULL;
33323}
33324
33325
33326SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33327 PyObject *resultobj = 0;
33328 wxEffects *arg1 = (wxEffects *) 0 ;
33329 wxColour *arg2 = 0 ;
33330 void *argp1 = 0 ;
33331 int res1 = 0 ;
33332 wxColour temp2 ;
33333 PyObject * obj0 = 0 ;
33334 PyObject * obj1 = 0 ;
33335 char * kwnames[] = {
33336 (char *) "self",(char *) "c", NULL
33337 };
33338
33339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
33340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33341 if (!SWIG_IsOK(res1)) {
33342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33343 }
33344 arg1 = reinterpret_cast< wxEffects * >(argp1);
33345 {
33346 arg2 = &temp2;
33347 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33348 }
33349 {
33350 PyThreadState* __tstate = wxPyBeginAllowThreads();
33351 (arg1)->SetFaceColour((wxColour const &)*arg2);
33352 wxPyEndAllowThreads(__tstate);
33353 if (PyErr_Occurred()) SWIG_fail;
33354 }
33355 resultobj = SWIG_Py_Void();
33356 return resultobj;
33357fail:
33358 return NULL;
33359}
33360
33361
33362SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33363 PyObject *resultobj = 0;
33364 wxEffects *arg1 = (wxEffects *) 0 ;
33365 wxColour *arg2 = 0 ;
33366 void *argp1 = 0 ;
33367 int res1 = 0 ;
33368 wxColour temp2 ;
33369 PyObject * obj0 = 0 ;
33370 PyObject * obj1 = 0 ;
33371 char * kwnames[] = {
33372 (char *) "self",(char *) "c", NULL
33373 };
33374
33375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33377 if (!SWIG_IsOK(res1)) {
33378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33379 }
33380 arg1 = reinterpret_cast< wxEffects * >(argp1);
33381 {
33382 arg2 = &temp2;
33383 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33384 }
33385 {
33386 PyThreadState* __tstate = wxPyBeginAllowThreads();
33387 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33388 wxPyEndAllowThreads(__tstate);
33389 if (PyErr_Occurred()) SWIG_fail;
33390 }
33391 resultobj = SWIG_Py_Void();
33392 return resultobj;
33393fail:
33394 return NULL;
33395}
33396
33397
33398SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33399 PyObject *resultobj = 0;
33400 wxEffects *arg1 = (wxEffects *) 0 ;
33401 wxColour *arg2 = 0 ;
33402 void *argp1 = 0 ;
33403 int res1 = 0 ;
33404 wxColour temp2 ;
33405 PyObject * obj0 = 0 ;
33406 PyObject * obj1 = 0 ;
33407 char * kwnames[] = {
33408 (char *) "self",(char *) "c", NULL
33409 };
33410
33411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33413 if (!SWIG_IsOK(res1)) {
33414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33415 }
33416 arg1 = reinterpret_cast< wxEffects * >(argp1);
33417 {
33418 arg2 = &temp2;
33419 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33420 }
33421 {
33422 PyThreadState* __tstate = wxPyBeginAllowThreads();
33423 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33424 wxPyEndAllowThreads(__tstate);
33425 if (PyErr_Occurred()) SWIG_fail;
33426 }
33427 resultobj = SWIG_Py_Void();
33428 return resultobj;
33429fail:
33430 return NULL;
33431}
33432
33433
33434SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33435 PyObject *resultobj = 0;
33436 wxEffects *arg1 = (wxEffects *) 0 ;
33437 wxColour *arg2 = 0 ;
33438 wxColour *arg3 = 0 ;
33439 wxColour *arg4 = 0 ;
33440 wxColour *arg5 = 0 ;
33441 wxColour *arg6 = 0 ;
33442 void *argp1 = 0 ;
33443 int res1 = 0 ;
33444 wxColour temp2 ;
33445 wxColour temp3 ;
33446 wxColour temp4 ;
33447 wxColour temp5 ;
33448 wxColour temp6 ;
33449 PyObject * obj0 = 0 ;
33450 PyObject * obj1 = 0 ;
33451 PyObject * obj2 = 0 ;
33452 PyObject * obj3 = 0 ;
33453 PyObject * obj4 = 0 ;
33454 PyObject * obj5 = 0 ;
33455 char * kwnames[] = {
33456 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33457 };
33458
33459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33461 if (!SWIG_IsOK(res1)) {
33462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33463 }
33464 arg1 = reinterpret_cast< wxEffects * >(argp1);
33465 {
33466 arg2 = &temp2;
33467 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33468 }
33469 {
33470 arg3 = &temp3;
33471 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33472 }
33473 {
33474 arg4 = &temp4;
33475 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33476 }
33477 {
33478 arg5 = &temp5;
33479 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33480 }
33481 {
33482 arg6 = &temp6;
33483 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33484 }
33485 {
33486 PyThreadState* __tstate = wxPyBeginAllowThreads();
33487 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33488 wxPyEndAllowThreads(__tstate);
33489 if (PyErr_Occurred()) SWIG_fail;
33490 }
33491 resultobj = SWIG_Py_Void();
33492 return resultobj;
33493fail:
33494 return NULL;
33495}
33496
33497
33498SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33499 PyObject *resultobj = 0;
33500 wxEffects *arg1 = (wxEffects *) 0 ;
33501 wxDC *arg2 = 0 ;
33502 wxRect *arg3 = 0 ;
33503 int arg4 = (int) 1 ;
33504 void *argp1 = 0 ;
33505 int res1 = 0 ;
33506 void *argp2 = 0 ;
33507 int res2 = 0 ;
33508 wxRect temp3 ;
33509 int val4 ;
33510 int ecode4 = 0 ;
33511 PyObject * obj0 = 0 ;
33512 PyObject * obj1 = 0 ;
33513 PyObject * obj2 = 0 ;
33514 PyObject * obj3 = 0 ;
33515 char * kwnames[] = {
33516 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33517 };
33518
33519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33521 if (!SWIG_IsOK(res1)) {
33522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33523 }
33524 arg1 = reinterpret_cast< wxEffects * >(argp1);
33525 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33526 if (!SWIG_IsOK(res2)) {
33527 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33528 }
33529 if (!argp2) {
33530 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33531 }
33532 arg2 = reinterpret_cast< wxDC * >(argp2);
33533 {
33534 arg3 = &temp3;
33535 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33536 }
33537 if (obj3) {
33538 ecode4 = SWIG_AsVal_int(obj3, &val4);
33539 if (!SWIG_IsOK(ecode4)) {
33540 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33541 }
33542 arg4 = static_cast< int >(val4);
33543 }
33544 {
33545 PyThreadState* __tstate = wxPyBeginAllowThreads();
33546 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33547 wxPyEndAllowThreads(__tstate);
33548 if (PyErr_Occurred()) SWIG_fail;
33549 }
33550 resultobj = SWIG_Py_Void();
33551 return resultobj;
33552fail:
33553 return NULL;
33554}
33555
33556
33557SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33558 PyObject *resultobj = 0;
33559 wxEffects *arg1 = (wxEffects *) 0 ;
33560 wxRect *arg2 = 0 ;
33561 wxDC *arg3 = 0 ;
33562 wxBitmap *arg4 = 0 ;
33563 bool result;
33564 void *argp1 = 0 ;
33565 int res1 = 0 ;
33566 wxRect temp2 ;
33567 void *argp3 = 0 ;
33568 int res3 = 0 ;
33569 void *argp4 = 0 ;
33570 int res4 = 0 ;
33571 PyObject * obj0 = 0 ;
33572 PyObject * obj1 = 0 ;
33573 PyObject * obj2 = 0 ;
33574 PyObject * obj3 = 0 ;
33575 char * kwnames[] = {
33576 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33577 };
33578
33579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33581 if (!SWIG_IsOK(res1)) {
33582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33583 }
33584 arg1 = reinterpret_cast< wxEffects * >(argp1);
33585 {
33586 arg2 = &temp2;
33587 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33588 }
33589 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33590 if (!SWIG_IsOK(res3)) {
33591 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33592 }
33593 if (!argp3) {
33594 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33595 }
33596 arg3 = reinterpret_cast< wxDC * >(argp3);
33597 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33598 if (!SWIG_IsOK(res4)) {
33599 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33600 }
33601 if (!argp4) {
33602 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33603 }
33604 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33605 {
33606 PyThreadState* __tstate = wxPyBeginAllowThreads();
33607 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33608 wxPyEndAllowThreads(__tstate);
33609 if (PyErr_Occurred()) SWIG_fail;
33610 }
33611 {
33612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33613 }
33614 return resultobj;
33615fail:
33616 return NULL;
33617}
33618
33619
33620SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33621 PyObject *obj;
33622 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33623 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33624 return SWIG_Py_Void();
33625}
33626
33627SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33628 return SWIG_Python_InitShadowInstance(args);
33629}
33630
33631SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33632 PyObject *resultobj = 0;
33633 int arg1 ;
33634 int arg2 ;
33635 bool arg3 ;
33636 wxSplitterRenderParams *result = 0 ;
33637 int val1 ;
33638 int ecode1 = 0 ;
33639 int val2 ;
33640 int ecode2 = 0 ;
33641 bool val3 ;
33642 int ecode3 = 0 ;
33643 PyObject * obj0 = 0 ;
33644 PyObject * obj1 = 0 ;
33645 PyObject * obj2 = 0 ;
33646 char * kwnames[] = {
33647 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33648 };
33649
33650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33651 ecode1 = SWIG_AsVal_int(obj0, &val1);
33652 if (!SWIG_IsOK(ecode1)) {
33653 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33654 }
33655 arg1 = static_cast< int >(val1);
33656 ecode2 = SWIG_AsVal_int(obj1, &val2);
33657 if (!SWIG_IsOK(ecode2)) {
33658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33659 }
33660 arg2 = static_cast< int >(val2);
33661 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33662 if (!SWIG_IsOK(ecode3)) {
33663 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33664 }
33665 arg3 = static_cast< bool >(val3);
33666 {
33667 PyThreadState* __tstate = wxPyBeginAllowThreads();
33668 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33669 wxPyEndAllowThreads(__tstate);
33670 if (PyErr_Occurred()) SWIG_fail;
33671 }
33672 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33673 return resultobj;
33674fail:
33675 return NULL;
33676}
33677
33678
33679SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33680 PyObject *resultobj = 0;
33681 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33682 void *argp1 = 0 ;
33683 int res1 = 0 ;
33684 PyObject *swig_obj[1] ;
33685
33686 if (!args) SWIG_fail;
33687 swig_obj[0] = args;
33688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33689 if (!SWIG_IsOK(res1)) {
33690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33691 }
33692 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33693 {
33694 PyThreadState* __tstate = wxPyBeginAllowThreads();
33695 delete arg1;
33696
33697 wxPyEndAllowThreads(__tstate);
33698 if (PyErr_Occurred()) SWIG_fail;
33699 }
33700 resultobj = SWIG_Py_Void();
33701 return resultobj;
33702fail:
33703 return NULL;
33704}
33705
33706
33707SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33708 PyObject *resultobj = 0;
33709 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33710 int result;
33711 void *argp1 = 0 ;
33712 int res1 = 0 ;
33713 PyObject *swig_obj[1] ;
33714
33715 if (!args) SWIG_fail;
33716 swig_obj[0] = args;
33717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33718 if (!SWIG_IsOK(res1)) {
33719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33720 }
33721 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33722 result = (int)(int) ((arg1)->widthSash);
33723 resultobj = SWIG_From_int(static_cast< int >(result));
33724 return resultobj;
33725fail:
33726 return NULL;
33727}
33728
33729
33730SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33731 PyObject *resultobj = 0;
33732 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33733 int result;
33734 void *argp1 = 0 ;
33735 int res1 = 0 ;
33736 PyObject *swig_obj[1] ;
33737
33738 if (!args) SWIG_fail;
33739 swig_obj[0] = args;
33740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33741 if (!SWIG_IsOK(res1)) {
33742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33743 }
33744 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33745 result = (int)(int) ((arg1)->border);
33746 resultobj = SWIG_From_int(static_cast< int >(result));
33747 return resultobj;
33748fail:
33749 return NULL;
33750}
33751
33752
33753SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33754 PyObject *resultobj = 0;
33755 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33756 bool result;
33757 void *argp1 = 0 ;
33758 int res1 = 0 ;
33759 PyObject *swig_obj[1] ;
33760
33761 if (!args) SWIG_fail;
33762 swig_obj[0] = args;
33763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33764 if (!SWIG_IsOK(res1)) {
33765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33766 }
33767 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33768 result = (bool)(bool) ((arg1)->isHotSensitive);
33769 resultobj = SWIG_From_bool(static_cast< bool >(result));
33770 return resultobj;
33771fail:
33772 return NULL;
33773}
33774
33775
33776SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33777 PyObject *obj;
33778 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33779 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33780 return SWIG_Py_Void();
33781}
33782
33783SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33784 return SWIG_Python_InitShadowInstance(args);
33785}
33786
33d6fd3b
RD
33787SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33788 PyObject *resultobj = 0;
33789 wxHeaderButtonParams *result = 0 ;
33790
33791 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33792 {
33793 PyThreadState* __tstate = wxPyBeginAllowThreads();
33794 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33795 wxPyEndAllowThreads(__tstate);
33796 if (PyErr_Occurred()) SWIG_fail;
33797 }
33798 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33799 return resultobj;
33800fail:
33801 return NULL;
33802}
33803
33804
33805SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33806 PyObject *resultobj = 0;
33807 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33808 void *argp1 = 0 ;
33809 int res1 = 0 ;
33810 PyObject *swig_obj[1] ;
33811
33812 if (!args) SWIG_fail;
33813 swig_obj[0] = args;
33814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33815 if (!SWIG_IsOK(res1)) {
33816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33817 }
33818 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33819 {
33820 PyThreadState* __tstate = wxPyBeginAllowThreads();
33821 delete arg1;
33822
33823 wxPyEndAllowThreads(__tstate);
33824 if (PyErr_Occurred()) SWIG_fail;
33825 }
33826 resultobj = SWIG_Py_Void();
33827 return resultobj;
33828fail:
33829 return NULL;
33830}
33831
33832
33833SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33834 PyObject *resultobj = 0;
33835 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33836 wxColour *arg2 = (wxColour *) 0 ;
33837 void *argp1 = 0 ;
33838 int res1 = 0 ;
33839 wxColour temp2 ;
33840 PyObject *swig_obj[2] ;
33841
33842 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33844 if (!SWIG_IsOK(res1)) {
33845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33846 }
33847 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33848 {
33849 arg2 = &temp2;
33850 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33851 }
33852 if (arg1) (arg1)->m_arrowColour = *arg2;
33853
33854 resultobj = SWIG_Py_Void();
33855 return resultobj;
33856fail:
33857 return NULL;
33858}
33859
33860
33861SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33862 PyObject *resultobj = 0;
33863 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33864 wxColour *result = 0 ;
33865 void *argp1 = 0 ;
33866 int res1 = 0 ;
33867 PyObject *swig_obj[1] ;
33868
33869 if (!args) SWIG_fail;
33870 swig_obj[0] = args;
33871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33872 if (!SWIG_IsOK(res1)) {
33873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33874 }
33875 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33876 result = (wxColour *)& ((arg1)->m_arrowColour);
33877 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33878 return resultobj;
33879fail:
33880 return NULL;
33881}
33882
33883
33884SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33885 PyObject *resultobj = 0;
33886 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33887 wxColour *arg2 = (wxColour *) 0 ;
33888 void *argp1 = 0 ;
33889 int res1 = 0 ;
33890 wxColour temp2 ;
33891 PyObject *swig_obj[2] ;
33892
33893 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33895 if (!SWIG_IsOK(res1)) {
33896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33897 }
33898 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33899 {
33900 arg2 = &temp2;
33901 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33902 }
33903 if (arg1) (arg1)->m_selectionColour = *arg2;
33904
33905 resultobj = SWIG_Py_Void();
33906 return resultobj;
33907fail:
33908 return NULL;
33909}
33910
33911
33912SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33913 PyObject *resultobj = 0;
33914 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33915 wxColour *result = 0 ;
33916 void *argp1 = 0 ;
33917 int res1 = 0 ;
33918 PyObject *swig_obj[1] ;
33919
33920 if (!args) SWIG_fail;
33921 swig_obj[0] = args;
33922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33923 if (!SWIG_IsOK(res1)) {
33924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33925 }
33926 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33927 result = (wxColour *)& ((arg1)->m_selectionColour);
33928 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33929 return resultobj;
33930fail:
33931 return NULL;
33932}
33933
33934
33935SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33936 PyObject *resultobj = 0;
33937 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33938 wxString *arg2 = (wxString *) 0 ;
33939 void *argp1 = 0 ;
33940 int res1 = 0 ;
33941 bool temp2 = false ;
33942 PyObject *swig_obj[2] ;
33943
33944 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33946 if (!SWIG_IsOK(res1)) {
33947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33948 }
33949 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33950 {
33951 arg2 = wxString_in_helper(swig_obj[1]);
33952 if (arg2 == NULL) SWIG_fail;
33953 temp2 = true;
33954 }
33955 if (arg1) (arg1)->m_labelText = *arg2;
33956
33957 resultobj = SWIG_Py_Void();
33958 {
33959 if (temp2)
33960 delete arg2;
33961 }
33962 return resultobj;
33963fail:
33964 {
33965 if (temp2)
33966 delete arg2;
33967 }
33968 return NULL;
33969}
33970
33971
33972SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33973 PyObject *resultobj = 0;
33974 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33975 wxString *result = 0 ;
33976 void *argp1 = 0 ;
33977 int res1 = 0 ;
33978 PyObject *swig_obj[1] ;
33979
33980 if (!args) SWIG_fail;
33981 swig_obj[0] = args;
33982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33983 if (!SWIG_IsOK(res1)) {
33984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33985 }
33986 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33987 result = (wxString *)& ((arg1)->m_labelText);
33988 {
33989#if wxUSE_UNICODE
33990 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33991#else
33992 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33993#endif
33994 }
33995 return resultobj;
33996fail:
33997 return NULL;
33998}
33999
34000
34001SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34002 PyObject *resultobj = 0;
34003 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34004 wxFont *arg2 = (wxFont *) 0 ;
34005 void *argp1 = 0 ;
34006 int res1 = 0 ;
34007 void *argp2 = 0 ;
34008 int res2 = 0 ;
34009 PyObject *swig_obj[2] ;
34010
34011 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
34012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34013 if (!SWIG_IsOK(res1)) {
34014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34015 }
34016 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34017 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
34018 if (!SWIG_IsOK(res2)) {
34019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
34020 }
34021 arg2 = reinterpret_cast< wxFont * >(argp2);
34022 if (arg1) (arg1)->m_labelFont = *arg2;
34023
34024 resultobj = SWIG_Py_Void();
34025 return resultobj;
34026fail:
34027 return NULL;
34028}
34029
34030
34031SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34032 PyObject *resultobj = 0;
34033 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34034 wxFont *result = 0 ;
34035 void *argp1 = 0 ;
34036 int res1 = 0 ;
34037 PyObject *swig_obj[1] ;
34038
34039 if (!args) SWIG_fail;
34040 swig_obj[0] = args;
34041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34042 if (!SWIG_IsOK(res1)) {
34043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34044 }
34045 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34046 result = (wxFont *)& ((arg1)->m_labelFont);
34047 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
34048 return resultobj;
34049fail:
34050 return NULL;
34051}
34052
34053
34054SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34055 PyObject *resultobj = 0;
34056 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34057 wxColour *arg2 = (wxColour *) 0 ;
34058 void *argp1 = 0 ;
34059 int res1 = 0 ;
34060 wxColour temp2 ;
34061 PyObject *swig_obj[2] ;
34062
34063 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
34064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34065 if (!SWIG_IsOK(res1)) {
34066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34067 }
34068 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34069 {
34070 arg2 = &temp2;
34071 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34072 }
34073 if (arg1) (arg1)->m_labelColour = *arg2;
34074
34075 resultobj = SWIG_Py_Void();
34076 return resultobj;
34077fail:
34078 return NULL;
34079}
34080
34081
34082SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34083 PyObject *resultobj = 0;
34084 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34085 wxColour *result = 0 ;
34086 void *argp1 = 0 ;
34087 int res1 = 0 ;
34088 PyObject *swig_obj[1] ;
34089
34090 if (!args) SWIG_fail;
34091 swig_obj[0] = args;
34092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34093 if (!SWIG_IsOK(res1)) {
34094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34095 }
34096 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34097 result = (wxColour *)& ((arg1)->m_labelColour);
34098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34099 return resultobj;
34100fail:
34101 return NULL;
34102}
34103
34104
34105SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34106 PyObject *resultobj = 0;
34107 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34108 wxBitmap *arg2 = (wxBitmap *) 0 ;
34109 void *argp1 = 0 ;
34110 int res1 = 0 ;
34111 void *argp2 = 0 ;
34112 int res2 = 0 ;
34113 PyObject *swig_obj[2] ;
34114
34115 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
34116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34117 if (!SWIG_IsOK(res1)) {
34118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34119 }
34120 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34121 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
34122 if (!SWIG_IsOK(res2)) {
34123 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
34124 }
34125 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34126 if (arg1) (arg1)->m_labelBitmap = *arg2;
34127
34128 resultobj = SWIG_Py_Void();
34129 return resultobj;
34130fail:
34131 return NULL;
34132}
34133
34134
34135SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34136 PyObject *resultobj = 0;
34137 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34138 wxBitmap *result = 0 ;
34139 void *argp1 = 0 ;
34140 int res1 = 0 ;
34141 PyObject *swig_obj[1] ;
34142
34143 if (!args) SWIG_fail;
34144 swig_obj[0] = args;
34145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34146 if (!SWIG_IsOK(res1)) {
34147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34148 }
34149 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34150 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
34151 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
34152 return resultobj;
34153fail:
34154 return NULL;
34155}
34156
34157
34158SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34159 PyObject *resultobj = 0;
34160 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34161 int arg2 ;
34162 void *argp1 = 0 ;
34163 int res1 = 0 ;
34164 int val2 ;
34165 int ecode2 = 0 ;
34166 PyObject *swig_obj[2] ;
34167
34168 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
34169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34170 if (!SWIG_IsOK(res1)) {
34171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34172 }
34173 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34174 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34175 if (!SWIG_IsOK(ecode2)) {
34176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
34177 }
34178 arg2 = static_cast< int >(val2);
34179 if (arg1) (arg1)->m_labelAlignment = arg2;
34180
34181 resultobj = SWIG_Py_Void();
34182 return resultobj;
34183fail:
34184 return NULL;
34185}
34186
34187
34188SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34189 PyObject *resultobj = 0;
34190 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34191 int result;
34192 void *argp1 = 0 ;
34193 int res1 = 0 ;
34194 PyObject *swig_obj[1] ;
34195
34196 if (!args) SWIG_fail;
34197 swig_obj[0] = args;
34198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34199 if (!SWIG_IsOK(res1)) {
34200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34201 }
34202 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34203 result = (int) ((arg1)->m_labelAlignment);
34204 resultobj = SWIG_From_int(static_cast< int >(result));
34205 return resultobj;
34206fail:
34207 return NULL;
34208}
34209
34210
34211SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34212 PyObject *obj;
34213 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34214 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
34215 return SWIG_Py_Void();
34216}
34217
34218SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34219 return SWIG_Python_InitShadowInstance(args);
34220}
34221
554f62e9
RD
34222SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34223 PyObject *resultobj = 0;
34224 int arg1 ;
34225 int arg2 ;
34226 wxRendererVersion *result = 0 ;
34227 int val1 ;
34228 int ecode1 = 0 ;
34229 int val2 ;
34230 int ecode2 = 0 ;
34231 PyObject * obj0 = 0 ;
34232 PyObject * obj1 = 0 ;
34233 char * kwnames[] = {
34234 (char *) "version_",(char *) "age_", NULL
34235 };
34236
34237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
34238 ecode1 = SWIG_AsVal_int(obj0, &val1);
34239 if (!SWIG_IsOK(ecode1)) {
34240 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
34241 }
34242 arg1 = static_cast< int >(val1);
34243 ecode2 = SWIG_AsVal_int(obj1, &val2);
34244 if (!SWIG_IsOK(ecode2)) {
34245 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
34246 }
34247 arg2 = static_cast< int >(val2);
34248 {
34249 PyThreadState* __tstate = wxPyBeginAllowThreads();
34250 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
34251 wxPyEndAllowThreads(__tstate);
34252 if (PyErr_Occurred()) SWIG_fail;
34253 }
34254 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
34255 return resultobj;
34256fail:
34257 return NULL;
34258}
34259
34260
34261SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34262 PyObject *resultobj = 0;
34263 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34264 void *argp1 = 0 ;
34265 int res1 = 0 ;
34266 PyObject *swig_obj[1] ;
34267
34268 if (!args) SWIG_fail;
34269 swig_obj[0] = args;
34270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34271 if (!SWIG_IsOK(res1)) {
34272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34273 }
34274 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34275 {
34276 PyThreadState* __tstate = wxPyBeginAllowThreads();
34277 delete arg1;
34278
34279 wxPyEndAllowThreads(__tstate);
34280 if (PyErr_Occurred()) SWIG_fail;
34281 }
34282 resultobj = SWIG_Py_Void();
34283 return resultobj;
34284fail:
34285 return NULL;
34286}
34287
34288
34289SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34290 PyObject *resultobj = 0;
34291 wxRendererVersion *arg1 = 0 ;
34292 bool result;
34293 void *argp1 = 0 ;
34294 int res1 = 0 ;
34295 PyObject * obj0 = 0 ;
34296 char * kwnames[] = {
34297 (char *) "ver", NULL
34298 };
34299
34300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
34301 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
34302 if (!SWIG_IsOK(res1)) {
34303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34304 }
34305 if (!argp1) {
34306 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34307 }
34308 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34309 {
34310 PyThreadState* __tstate = wxPyBeginAllowThreads();
34311 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
34312 wxPyEndAllowThreads(__tstate);
34313 if (PyErr_Occurred()) SWIG_fail;
34314 }
34315 {
34316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34317 }
34318 return resultobj;
34319fail:
34320 return NULL;
34321}
34322
34323
34324SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34325 PyObject *resultobj = 0;
34326 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34327 int result;
34328 void *argp1 = 0 ;
34329 int res1 = 0 ;
34330 PyObject *swig_obj[1] ;
34331
34332 if (!args) SWIG_fail;
34333 swig_obj[0] = args;
34334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34335 if (!SWIG_IsOK(res1)) {
34336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34337 }
34338 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34339 result = (int)(int) ((arg1)->version);
34340 resultobj = SWIG_From_int(static_cast< int >(result));
34341 return resultobj;
34342fail:
34343 return NULL;
34344}
34345
34346
34347SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34348 PyObject *resultobj = 0;
34349 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34350 int result;
34351 void *argp1 = 0 ;
34352 int res1 = 0 ;
34353 PyObject *swig_obj[1] ;
34354
34355 if (!args) SWIG_fail;
34356 swig_obj[0] = args;
34357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34358 if (!SWIG_IsOK(res1)) {
34359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34360 }
34361 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34362 result = (int)(int) ((arg1)->age);
34363 resultobj = SWIG_From_int(static_cast< int >(result));
34364 return resultobj;
34365fail:
34366 return NULL;
34367}
34368
34369
34370SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34371 PyObject *obj;
34372 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34373 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
34374 return SWIG_Py_Void();
34375}
34376
34377SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34378 return SWIG_Python_InitShadowInstance(args);
34379}
34380
34381SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34382 PyObject *resultobj = 0;
34383 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34384 wxWindow *arg2 = (wxWindow *) 0 ;
34385 wxDC *arg3 = 0 ;
34386 wxRect *arg4 = 0 ;
34387 int arg5 = (int) 0 ;
33d6fd3b
RD
34388 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34389 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
554f62e9
RD
34390 void *argp1 = 0 ;
34391 int res1 = 0 ;
34392 void *argp2 = 0 ;
34393 int res2 = 0 ;
34394 void *argp3 = 0 ;
34395 int res3 = 0 ;
34396 wxRect temp4 ;
34397 int val5 ;
34398 int ecode5 = 0 ;
33d6fd3b
RD
34399 int val6 ;
34400 int ecode6 = 0 ;
34401 void *argp7 = 0 ;
34402 int res7 = 0 ;
554f62e9
RD
34403 PyObject * obj0 = 0 ;
34404 PyObject * obj1 = 0 ;
34405 PyObject * obj2 = 0 ;
34406 PyObject * obj3 = 0 ;
34407 PyObject * obj4 = 0 ;
33d6fd3b
RD
34408 PyObject * obj5 = 0 ;
34409 PyObject * obj6 = 0 ;
554f62e9 34410 char * kwnames[] = {
33d6fd3b 34411 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
554f62e9
RD
34412 };
34413
33d6fd3b 34414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
554f62e9
RD
34415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34416 if (!SWIG_IsOK(res1)) {
34417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34418 }
34419 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34420 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34421 if (!SWIG_IsOK(res2)) {
34422 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34423 }
34424 arg2 = reinterpret_cast< wxWindow * >(argp2);
34425 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34426 if (!SWIG_IsOK(res3)) {
34427 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34428 }
34429 if (!argp3) {
34430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34431 }
34432 arg3 = reinterpret_cast< wxDC * >(argp3);
34433 {
34434 arg4 = &temp4;
34435 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34436 }
34437 if (obj4) {
34438 ecode5 = SWIG_AsVal_int(obj4, &val5);
34439 if (!SWIG_IsOK(ecode5)) {
34440 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34441 }
34442 arg5 = static_cast< int >(val5);
34443 }
33d6fd3b
RD
34444 if (obj5) {
34445 ecode6 = SWIG_AsVal_int(obj5, &val6);
34446 if (!SWIG_IsOK(ecode6)) {
34447 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34448 }
34449 arg6 = static_cast< wxHeaderSortIconType >(val6);
34450 }
34451 if (obj6) {
34452 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34453 if (!SWIG_IsOK(res7)) {
34454 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34455 }
34456 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34457 }
34458 {
34459 PyThreadState* __tstate = wxPyBeginAllowThreads();
34460 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34461 wxPyEndAllowThreads(__tstate);
34462 if (PyErr_Occurred()) SWIG_fail;
34463 }
34464 resultobj = SWIG_Py_Void();
34465 return resultobj;
34466fail:
34467 return NULL;
34468}
34469
34470
34471SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34472 PyObject *resultobj = 0;
34473 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34474 wxWindow *arg2 = (wxWindow *) 0 ;
34475 wxDC *arg3 = 0 ;
34476 wxRect *arg4 = 0 ;
34477 int arg5 = (int) 0 ;
34478 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34479 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34480 void *argp1 = 0 ;
34481 int res1 = 0 ;
34482 void *argp2 = 0 ;
34483 int res2 = 0 ;
34484 void *argp3 = 0 ;
34485 int res3 = 0 ;
34486 wxRect temp4 ;
34487 int val5 ;
34488 int ecode5 = 0 ;
34489 int val6 ;
34490 int ecode6 = 0 ;
34491 void *argp7 = 0 ;
34492 int res7 = 0 ;
34493 PyObject * obj0 = 0 ;
34494 PyObject * obj1 = 0 ;
34495 PyObject * obj2 = 0 ;
34496 PyObject * obj3 = 0 ;
34497 PyObject * obj4 = 0 ;
34498 PyObject * obj5 = 0 ;
34499 PyObject * obj6 = 0 ;
34500 char * kwnames[] = {
34501 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34502 };
34503
34504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34506 if (!SWIG_IsOK(res1)) {
34507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34508 }
34509 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34510 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34511 if (!SWIG_IsOK(res2)) {
34512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34513 }
34514 arg2 = reinterpret_cast< wxWindow * >(argp2);
34515 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34516 if (!SWIG_IsOK(res3)) {
34517 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34518 }
34519 if (!argp3) {
34520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34521 }
34522 arg3 = reinterpret_cast< wxDC * >(argp3);
34523 {
34524 arg4 = &temp4;
34525 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34526 }
34527 if (obj4) {
34528 ecode5 = SWIG_AsVal_int(obj4, &val5);
34529 if (!SWIG_IsOK(ecode5)) {
34530 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34531 }
34532 arg5 = static_cast< int >(val5);
34533 }
34534 if (obj5) {
34535 ecode6 = SWIG_AsVal_int(obj5, &val6);
34536 if (!SWIG_IsOK(ecode6)) {
34537 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34538 }
34539 arg6 = static_cast< wxHeaderSortIconType >(val6);
34540 }
34541 if (obj6) {
34542 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34543 if (!SWIG_IsOK(res7)) {
34544 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34545 }
34546 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34547 }
554f62e9
RD
34548 {
34549 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 34550 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
554f62e9
RD
34551 wxPyEndAllowThreads(__tstate);
34552 if (PyErr_Occurred()) SWIG_fail;
34553 }
34554 resultobj = SWIG_Py_Void();
34555 return resultobj;
34556fail:
34557 return NULL;
34558}
34559
34560
33d6fd3b
RD
34561SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34562 PyObject *resultobj = 0;
34563 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34564 wxWindow *arg2 = (wxWindow *) 0 ;
34565 int result;
34566 void *argp1 = 0 ;
34567 int res1 = 0 ;
34568 void *argp2 = 0 ;
34569 int res2 = 0 ;
34570 PyObject * obj0 = 0 ;
34571 PyObject * obj1 = 0 ;
34572 char * kwnames[] = {
34573 (char *) "self",(char *) "win", NULL
34574 };
34575
34576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34578 if (!SWIG_IsOK(res1)) {
34579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34580 }
34581 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34582 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34583 if (!SWIG_IsOK(res2)) {
34584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34585 }
34586 arg2 = reinterpret_cast< wxWindow * >(argp2);
34587 {
34588 PyThreadState* __tstate = wxPyBeginAllowThreads();
34589 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34590 wxPyEndAllowThreads(__tstate);
34591 if (PyErr_Occurred()) SWIG_fail;
34592 }
34593 resultobj = SWIG_From_int(static_cast< int >(result));
34594 return resultobj;
34595fail:
34596 return NULL;
34597}
34598
34599
554f62e9
RD
34600SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34601 PyObject *resultobj = 0;
34602 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34603 wxWindow *arg2 = (wxWindow *) 0 ;
34604 wxDC *arg3 = 0 ;
34605 wxRect *arg4 = 0 ;
34606 int arg5 = (int) 0 ;
34607 void *argp1 = 0 ;
34608 int res1 = 0 ;
34609 void *argp2 = 0 ;
34610 int res2 = 0 ;
34611 void *argp3 = 0 ;
34612 int res3 = 0 ;
34613 wxRect temp4 ;
34614 int val5 ;
34615 int ecode5 = 0 ;
34616 PyObject * obj0 = 0 ;
34617 PyObject * obj1 = 0 ;
34618 PyObject * obj2 = 0 ;
34619 PyObject * obj3 = 0 ;
34620 PyObject * obj4 = 0 ;
34621 char * kwnames[] = {
34622 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34623 };
34624
34625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34627 if (!SWIG_IsOK(res1)) {
34628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34629 }
34630 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34631 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34632 if (!SWIG_IsOK(res2)) {
34633 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34634 }
34635 arg2 = reinterpret_cast< wxWindow * >(argp2);
34636 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34637 if (!SWIG_IsOK(res3)) {
34638 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34639 }
34640 if (!argp3) {
34641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34642 }
34643 arg3 = reinterpret_cast< wxDC * >(argp3);
34644 {
34645 arg4 = &temp4;
34646 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34647 }
34648 if (obj4) {
34649 ecode5 = SWIG_AsVal_int(obj4, &val5);
34650 if (!SWIG_IsOK(ecode5)) {
34651 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34652 }
34653 arg5 = static_cast< int >(val5);
34654 }
34655 {
34656 PyThreadState* __tstate = wxPyBeginAllowThreads();
34657 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34658 wxPyEndAllowThreads(__tstate);
34659 if (PyErr_Occurred()) SWIG_fail;
34660 }
34661 resultobj = SWIG_Py_Void();
34662 return resultobj;
34663fail:
34664 return NULL;
34665}
34666
34667
34668SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34669 PyObject *resultobj = 0;
34670 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34671 wxWindow *arg2 = (wxWindow *) 0 ;
34672 wxDC *arg3 = 0 ;
34673 wxRect *arg4 = 0 ;
34674 int arg5 = (int) 0 ;
34675 void *argp1 = 0 ;
34676 int res1 = 0 ;
34677 void *argp2 = 0 ;
34678 int res2 = 0 ;
34679 void *argp3 = 0 ;
34680 int res3 = 0 ;
34681 wxRect temp4 ;
34682 int val5 ;
34683 int ecode5 = 0 ;
34684 PyObject * obj0 = 0 ;
34685 PyObject * obj1 = 0 ;
34686 PyObject * obj2 = 0 ;
34687 PyObject * obj3 = 0 ;
34688 PyObject * obj4 = 0 ;
34689 char * kwnames[] = {
34690 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34691 };
34692
34693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34695 if (!SWIG_IsOK(res1)) {
34696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34697 }
34698 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34699 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34700 if (!SWIG_IsOK(res2)) {
34701 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34702 }
34703 arg2 = reinterpret_cast< wxWindow * >(argp2);
34704 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34705 if (!SWIG_IsOK(res3)) {
34706 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34707 }
34708 if (!argp3) {
34709 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34710 }
34711 arg3 = reinterpret_cast< wxDC * >(argp3);
34712 {
34713 arg4 = &temp4;
34714 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34715 }
34716 if (obj4) {
34717 ecode5 = SWIG_AsVal_int(obj4, &val5);
34718 if (!SWIG_IsOK(ecode5)) {
34719 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34720 }
34721 arg5 = static_cast< int >(val5);
34722 }
34723 {
34724 PyThreadState* __tstate = wxPyBeginAllowThreads();
34725 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34726 wxPyEndAllowThreads(__tstate);
34727 if (PyErr_Occurred()) SWIG_fail;
34728 }
34729 resultobj = SWIG_Py_Void();
34730 return resultobj;
34731fail:
34732 return NULL;
34733}
34734
34735
34736SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34737 PyObject *resultobj = 0;
34738 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34739 wxWindow *arg2 = (wxWindow *) 0 ;
34740 wxDC *arg3 = 0 ;
34741 wxSize *arg4 = 0 ;
34742 int arg5 ;
34743 wxOrientation arg6 ;
34744 int arg7 = (int) 0 ;
34745 void *argp1 = 0 ;
34746 int res1 = 0 ;
34747 void *argp2 = 0 ;
34748 int res2 = 0 ;
34749 void *argp3 = 0 ;
34750 int res3 = 0 ;
34751 wxSize temp4 ;
34752 int val5 ;
34753 int ecode5 = 0 ;
34754 int val6 ;
34755 int ecode6 = 0 ;
34756 int val7 ;
34757 int ecode7 = 0 ;
34758 PyObject * obj0 = 0 ;
34759 PyObject * obj1 = 0 ;
34760 PyObject * obj2 = 0 ;
34761 PyObject * obj3 = 0 ;
34762 PyObject * obj4 = 0 ;
34763 PyObject * obj5 = 0 ;
34764 PyObject * obj6 = 0 ;
34765 char * kwnames[] = {
34766 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34767 };
34768
34769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34771 if (!SWIG_IsOK(res1)) {
34772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34773 }
34774 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34775 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34776 if (!SWIG_IsOK(res2)) {
34777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34778 }
34779 arg2 = reinterpret_cast< wxWindow * >(argp2);
34780 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34781 if (!SWIG_IsOK(res3)) {
34782 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34783 }
34784 if (!argp3) {
34785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34786 }
34787 arg3 = reinterpret_cast< wxDC * >(argp3);
34788 {
34789 arg4 = &temp4;
34790 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34791 }
34792 ecode5 = SWIG_AsVal_int(obj4, &val5);
34793 if (!SWIG_IsOK(ecode5)) {
34794 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34795 }
34796 arg5 = static_cast< int >(val5);
34797 ecode6 = SWIG_AsVal_int(obj5, &val6);
34798 if (!SWIG_IsOK(ecode6)) {
34799 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34800 }
34801 arg6 = static_cast< wxOrientation >(val6);
34802 if (obj6) {
34803 ecode7 = SWIG_AsVal_int(obj6, &val7);
34804 if (!SWIG_IsOK(ecode7)) {
34805 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34806 }
34807 arg7 = static_cast< int >(val7);
34808 }
34809 {
34810 PyThreadState* __tstate = wxPyBeginAllowThreads();
34811 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34812 wxPyEndAllowThreads(__tstate);
34813 if (PyErr_Occurred()) SWIG_fail;
34814 }
34815 resultobj = SWIG_Py_Void();
34816 return resultobj;
34817fail:
34818 return NULL;
34819}
34820
34821
34822SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34823 PyObject *resultobj = 0;
34824 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34825 wxWindow *arg2 = (wxWindow *) 0 ;
34826 wxDC *arg3 = 0 ;
34827 wxRect *arg4 = 0 ;
34828 int arg5 = (int) 0 ;
34829 void *argp1 = 0 ;
34830 int res1 = 0 ;
34831 void *argp2 = 0 ;
34832 int res2 = 0 ;
34833 void *argp3 = 0 ;
34834 int res3 = 0 ;
34835 wxRect temp4 ;
34836 int val5 ;
34837 int ecode5 = 0 ;
34838 PyObject * obj0 = 0 ;
34839 PyObject * obj1 = 0 ;
34840 PyObject * obj2 = 0 ;
34841 PyObject * obj3 = 0 ;
34842 PyObject * obj4 = 0 ;
34843 char * kwnames[] = {
34844 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34845 };
34846
34847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34849 if (!SWIG_IsOK(res1)) {
34850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34851 }
34852 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34853 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34854 if (!SWIG_IsOK(res2)) {
34855 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34856 }
34857 arg2 = reinterpret_cast< wxWindow * >(argp2);
34858 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34859 if (!SWIG_IsOK(res3)) {
34860 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34861 }
34862 if (!argp3) {
34863 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34864 }
34865 arg3 = reinterpret_cast< wxDC * >(argp3);
34866 {
34867 arg4 = &temp4;
34868 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34869 }
34870 if (obj4) {
34871 ecode5 = SWIG_AsVal_int(obj4, &val5);
34872 if (!SWIG_IsOK(ecode5)) {
34873 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34874 }
34875 arg5 = static_cast< int >(val5);
34876 }
34877 {
34878 PyThreadState* __tstate = wxPyBeginAllowThreads();
34879 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34880 wxPyEndAllowThreads(__tstate);
34881 if (PyErr_Occurred()) SWIG_fail;
34882 }
34883 resultobj = SWIG_Py_Void();
34884 return resultobj;
34885fail:
34886 return NULL;
34887}
34888
34889
34890SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34891 PyObject *resultobj = 0;
34892 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34893 wxWindow *arg2 = (wxWindow *) 0 ;
34894 wxDC *arg3 = 0 ;
34895 wxRect *arg4 = 0 ;
34896 int arg5 = (int) 0 ;
34897 void *argp1 = 0 ;
34898 int res1 = 0 ;
34899 void *argp2 = 0 ;
34900 int res2 = 0 ;
34901 void *argp3 = 0 ;
34902 int res3 = 0 ;
34903 wxRect temp4 ;
34904 int val5 ;
34905 int ecode5 = 0 ;
34906 PyObject * obj0 = 0 ;
34907 PyObject * obj1 = 0 ;
34908 PyObject * obj2 = 0 ;
34909 PyObject * obj3 = 0 ;
34910 PyObject * obj4 = 0 ;
34911 char * kwnames[] = {
34912 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34913 };
34914
34915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34917 if (!SWIG_IsOK(res1)) {
34918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34919 }
34920 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34921 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34922 if (!SWIG_IsOK(res2)) {
34923 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34924 }
34925 arg2 = reinterpret_cast< wxWindow * >(argp2);
34926 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34927 if (!SWIG_IsOK(res3)) {
34928 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34929 }
34930 if (!argp3) {
34931 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34932 }
34933 arg3 = reinterpret_cast< wxDC * >(argp3);
34934 {
34935 arg4 = &temp4;
34936 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34937 }
34938 if (obj4) {
34939 ecode5 = SWIG_AsVal_int(obj4, &val5);
34940 if (!SWIG_IsOK(ecode5)) {
34941 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34942 }
34943 arg5 = static_cast< int >(val5);
34944 }
34945 {
34946 PyThreadState* __tstate = wxPyBeginAllowThreads();
34947 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34948 wxPyEndAllowThreads(__tstate);
34949 if (PyErr_Occurred()) SWIG_fail;
34950 }
34951 resultobj = SWIG_Py_Void();
34952 return resultobj;
34953fail:
34954 return NULL;
34955}
34956
34957
f460c29d
RD
34958SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34959 PyObject *resultobj = 0;
34960 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34961 wxWindow *arg2 = (wxWindow *) 0 ;
34962 wxDC *arg3 = 0 ;
34963 wxRect *arg4 = 0 ;
34964 int arg5 = (int) 0 ;
34965 void *argp1 = 0 ;
34966 int res1 = 0 ;
34967 void *argp2 = 0 ;
34968 int res2 = 0 ;
34969 void *argp3 = 0 ;
34970 int res3 = 0 ;
34971 wxRect temp4 ;
34972 int val5 ;
34973 int ecode5 = 0 ;
34974 PyObject * obj0 = 0 ;
34975 PyObject * obj1 = 0 ;
34976 PyObject * obj2 = 0 ;
34977 PyObject * obj3 = 0 ;
34978 PyObject * obj4 = 0 ;
34979 char * kwnames[] = {
34980 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34981 };
34982
34983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34985 if (!SWIG_IsOK(res1)) {
34986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34987 }
34988 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34989 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34990 if (!SWIG_IsOK(res2)) {
34991 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
34992 }
34993 arg2 = reinterpret_cast< wxWindow * >(argp2);
34994 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34995 if (!SWIG_IsOK(res3)) {
34996 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34997 }
34998 if (!argp3) {
34999 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35000 }
35001 arg3 = reinterpret_cast< wxDC * >(argp3);
35002 {
35003 arg4 = &temp4;
35004 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35005 }
35006 if (obj4) {
35007 ecode5 = SWIG_AsVal_int(obj4, &val5);
35008 if (!SWIG_IsOK(ecode5)) {
35009 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
35010 }
35011 arg5 = static_cast< int >(val5);
35012 }
35013 {
35014 PyThreadState* __tstate = wxPyBeginAllowThreads();
35015 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
35016 wxPyEndAllowThreads(__tstate);
35017 if (PyErr_Occurred()) SWIG_fail;
35018 }
35019 resultobj = SWIG_Py_Void();
35020 return resultobj;
35021fail:
35022 return NULL;
35023}
35024
35025
35026SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35027 PyObject *resultobj = 0;
35028 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35029 wxWindow *arg2 = (wxWindow *) 0 ;
35030 wxDC *arg3 = 0 ;
35031 wxRect *arg4 = 0 ;
35032 int arg5 = (int) 0 ;
35033 void *argp1 = 0 ;
35034 int res1 = 0 ;
35035 void *argp2 = 0 ;
35036 int res2 = 0 ;
35037 void *argp3 = 0 ;
35038 int res3 = 0 ;
35039 wxRect temp4 ;
35040 int val5 ;
35041 int ecode5 = 0 ;
35042 PyObject * obj0 = 0 ;
35043 PyObject * obj1 = 0 ;
35044 PyObject * obj2 = 0 ;
35045 PyObject * obj3 = 0 ;
35046 PyObject * obj4 = 0 ;
35047 char * kwnames[] = {
35048 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35049 };
35050
35051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35053 if (!SWIG_IsOK(res1)) {
35054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35055 }
35056 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35057 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35058 if (!SWIG_IsOK(res2)) {
35059 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35060 }
35061 arg2 = reinterpret_cast< wxWindow * >(argp2);
35062 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35063 if (!SWIG_IsOK(res3)) {
35064 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35065 }
35066 if (!argp3) {
35067 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35068 }
35069 arg3 = reinterpret_cast< wxDC * >(argp3);
35070 {
35071 arg4 = &temp4;
35072 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35073 }
35074 if (obj4) {
35075 ecode5 = SWIG_AsVal_int(obj4, &val5);
35076 if (!SWIG_IsOK(ecode5)) {
35077 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
35078 }
35079 arg5 = static_cast< int >(val5);
35080 }
35081 {
35082 PyThreadState* __tstate = wxPyBeginAllowThreads();
35083 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35084 wxPyEndAllowThreads(__tstate);
35085 if (PyErr_Occurred()) SWIG_fail;
35086 }
35087 resultobj = SWIG_Py_Void();
35088 return resultobj;
35089fail:
35090 return NULL;
35091}
35092
35093
35094SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50efceee
RD
35095 PyObject *resultobj = 0;
35096 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35097 wxWindow *arg2 = (wxWindow *) 0 ;
35098 wxDC *arg3 = 0 ;
35099 wxRect *arg4 = 0 ;
35100 int arg5 = (int) 0 ;
35101 void *argp1 = 0 ;
35102 int res1 = 0 ;
35103 void *argp2 = 0 ;
35104 int res2 = 0 ;
35105 void *argp3 = 0 ;
35106 int res3 = 0 ;
35107 wxRect temp4 ;
35108 int val5 ;
35109 int ecode5 = 0 ;
35110 PyObject * obj0 = 0 ;
35111 PyObject * obj1 = 0 ;
35112 PyObject * obj2 = 0 ;
35113 PyObject * obj3 = 0 ;
35114 PyObject * obj4 = 0 ;
35115 char * kwnames[] = {
35116 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35117 };
35118
f460c29d 35119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
50efceee
RD
35120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35121 if (!SWIG_IsOK(res1)) {
f460c29d 35122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
50efceee
RD
35123 }
35124 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35125 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35126 if (!SWIG_IsOK(res2)) {
f460c29d 35127 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
50efceee
RD
35128 }
35129 arg2 = reinterpret_cast< wxWindow * >(argp2);
35130 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35131 if (!SWIG_IsOK(res3)) {
f460c29d 35132 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
35133 }
35134 if (!argp3) {
f460c29d 35135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
35136 }
35137 arg3 = reinterpret_cast< wxDC * >(argp3);
35138 {
35139 arg4 = &temp4;
35140 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35141 }
35142 if (obj4) {
35143 ecode5 = SWIG_AsVal_int(obj4, &val5);
35144 if (!SWIG_IsOK(ecode5)) {
f460c29d 35145 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
50efceee
RD
35146 }
35147 arg5 = static_cast< int >(val5);
35148 }
35149 {
35150 PyThreadState* __tstate = wxPyBeginAllowThreads();
f460c29d 35151 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
50efceee
RD
35152 wxPyEndAllowThreads(__tstate);
35153 if (PyErr_Occurred()) SWIG_fail;
35154 }
35155 resultobj = SWIG_Py_Void();
35156 return resultobj;
35157fail:
35158 return NULL;
35159}
35160
35161
554f62e9
RD
35162SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35163 PyObject *resultobj = 0;
35164 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35165 wxWindow *arg2 = (wxWindow *) 0 ;
35166 SwigValueWrapper<wxSplitterRenderParams > result;
35167 void *argp1 = 0 ;
35168 int res1 = 0 ;
35169 void *argp2 = 0 ;
35170 int res2 = 0 ;
35171 PyObject * obj0 = 0 ;
35172 PyObject * obj1 = 0 ;
35173 char * kwnames[] = {
35174 (char *) "self",(char *) "win", NULL
35175 };
35176
35177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
35178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35179 if (!SWIG_IsOK(res1)) {
35180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35181 }
35182 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35183 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35184 if (!SWIG_IsOK(res2)) {
35185 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
35186 }
35187 arg2 = reinterpret_cast< wxWindow * >(argp2);
35188 {
35189 PyThreadState* __tstate = wxPyBeginAllowThreads();
35190 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
35191 wxPyEndAllowThreads(__tstate);
35192 if (PyErr_Occurred()) SWIG_fail;
35193 }
35194 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
35195 return resultobj;
35196fail:
35197 return NULL;
35198}
35199
35200
35201SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35202 PyObject *resultobj = 0;
35203 wxRendererNative *result = 0 ;
35204
35205 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
35206 {
704eda0c 35207 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 35208 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 35209 {
554f62e9
RD
35210 wxRendererNative &_result_ref = wxRendererNative::Get();
35211 result = (wxRendererNative *) &_result_ref;
093d3ff1 35212 }
554f62e9
RD
35213 wxPyEndAllowThreads(__tstate);
35214 if (PyErr_Occurred()) SWIG_fail;
35215 }
35216 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35217 return resultobj;
35218fail:
35219 return NULL;
35220}
35221
35222
35223SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35224 PyObject *resultobj = 0;
35225 wxRendererNative *result = 0 ;
35226
35227 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
35228 {
704eda0c 35229 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 35230 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35231 {
554f62e9
RD
35232 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
35233 result = (wxRendererNative *) &_result_ref;
be9b1dca 35234 }
554f62e9
RD
35235 wxPyEndAllowThreads(__tstate);
35236 if (PyErr_Occurred()) SWIG_fail;
35237 }
35238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35239 return resultobj;
35240fail:
35241 return NULL;
35242}
35243
35244
35245SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35246 PyObject *resultobj = 0;
35247 wxRendererNative *result = 0 ;
35248
35249 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
35250 {
704eda0c 35251 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 35252 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35253 {
554f62e9
RD
35254 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
35255 result = (wxRendererNative *) &_result_ref;
be9b1dca 35256 }
554f62e9
RD
35257 wxPyEndAllowThreads(__tstate);
35258 if (PyErr_Occurred()) SWIG_fail;
35259 }
35260 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35261 return resultobj;
35262fail:
35263 return NULL;
35264}
35265
35266
35267SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35268 PyObject *resultobj = 0;
35269 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35270 wxRendererNative *result = 0 ;
35271 void *argp1 = 0 ;
35272 int res1 = 0 ;
35273 PyObject * obj0 = 0 ;
35274 char * kwnames[] = {
35275 (char *) "renderer", NULL
35276 };
35277
35278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35280 if (!SWIG_IsOK(res1)) {
35281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35282 }
35283 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35284 {
704eda0c 35285 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9
RD
35286 PyThreadState* __tstate = wxPyBeginAllowThreads();
35287 result = (wxRendererNative *)wxRendererNative::Set(arg1);
35288 wxPyEndAllowThreads(__tstate);
35289 if (PyErr_Occurred()) SWIG_fail;
35290 }
35291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35292 return resultobj;
35293fail:
35294 return NULL;
35295}
35296
35297
35298SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35299 PyObject *resultobj = 0;
35300 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35301 SwigValueWrapper<wxRendererVersion > result;
35302 void *argp1 = 0 ;
35303 int res1 = 0 ;
35304 PyObject *swig_obj[1] ;
35305
35306 if (!args) SWIG_fail;
35307 swig_obj[0] = args;
35308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35309 if (!SWIG_IsOK(res1)) {
35310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
35311 }
35312 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35313 {
35314 PyThreadState* __tstate = wxPyBeginAllowThreads();
35315 result = ((wxRendererNative const *)arg1)->GetVersion();
35316 wxPyEndAllowThreads(__tstate);
35317 if (PyErr_Occurred()) SWIG_fail;
35318 }
35319 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
35320 return resultobj;
35321fail:
35322 return NULL;
35323}
35324
35325
35326SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35327 PyObject *obj;
35328 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35329 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
35330 return SWIG_Py_Void();
35331}
35332
27e45892
RD
35333SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35334 PyObject *resultobj = 0;
35335 wxPseudoDC *result = 0 ;
35336
35337 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
35338 {
35339 PyThreadState* __tstate = wxPyBeginAllowThreads();
35340 result = (wxPseudoDC *)new wxPseudoDC();
35341 wxPyEndAllowThreads(__tstate);
35342 if (PyErr_Occurred()) SWIG_fail;
35343 }
35344 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
35345 return resultobj;
35346fail:
35347 return NULL;
35348}
35349
35350
35351SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35352 PyObject *resultobj = 0;
35353 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35354 void *argp1 = 0 ;
35355 int res1 = 0 ;
35356 PyObject *swig_obj[1] ;
35357
35358 if (!args) SWIG_fail;
35359 swig_obj[0] = args;
35360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35361 if (!SWIG_IsOK(res1)) {
35362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35363 }
35364 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35365 {
35366 PyThreadState* __tstate = wxPyBeginAllowThreads();
35367 (arg1)->BeginDrawing();
35368 wxPyEndAllowThreads(__tstate);
35369 if (PyErr_Occurred()) SWIG_fail;
35370 }
35371 resultobj = SWIG_Py_Void();
35372 return resultobj;
35373fail:
35374 return NULL;
35375}
35376
35377
35378SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35379 PyObject *resultobj = 0;
35380 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35381 void *argp1 = 0 ;
35382 int res1 = 0 ;
35383 PyObject *swig_obj[1] ;
35384
35385 if (!args) SWIG_fail;
35386 swig_obj[0] = args;
35387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35388 if (!SWIG_IsOK(res1)) {
35389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35390 }
35391 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35392 {
35393 PyThreadState* __tstate = wxPyBeginAllowThreads();
35394 (arg1)->EndDrawing();
35395 wxPyEndAllowThreads(__tstate);
35396 if (PyErr_Occurred()) SWIG_fail;
35397 }
35398 resultobj = SWIG_Py_Void();
35399 return resultobj;
35400fail:
35401 return NULL;
35402}
35403
35404
35405SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35406 PyObject *resultobj = 0;
35407 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35408 void *argp1 = 0 ;
35409 int res1 = 0 ;
35410 PyObject *swig_obj[1] ;
35411
35412 if (!args) SWIG_fail;
35413 swig_obj[0] = args;
35414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35415 if (!SWIG_IsOK(res1)) {
35416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35417 }
35418 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35419 {
35420 PyThreadState* __tstate = wxPyBeginAllowThreads();
35421 delete arg1;
35422
35423 wxPyEndAllowThreads(__tstate);
35424 if (PyErr_Occurred()) SWIG_fail;
35425 }
35426 resultobj = SWIG_Py_Void();
35427 return resultobj;
35428fail:
35429 return NULL;
35430}
35431
35432
35433SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35434 PyObject *resultobj = 0;
35435 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35436 void *argp1 = 0 ;
35437 int res1 = 0 ;
35438 PyObject *swig_obj[1] ;
35439
35440 if (!args) SWIG_fail;
35441 swig_obj[0] = args;
35442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35443 if (!SWIG_IsOK(res1)) {
35444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35445 }
35446 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35447 {
35448 PyThreadState* __tstate = wxPyBeginAllowThreads();
35449 (arg1)->RemoveAll();
35450 wxPyEndAllowThreads(__tstate);
35451 if (PyErr_Occurred()) SWIG_fail;
35452 }
35453 resultobj = SWIG_Py_Void();
35454 return resultobj;
35455fail:
35456 return NULL;
35457}
35458
35459
35460SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35461 PyObject *resultobj = 0;
35462 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35463 int result;
35464 void *argp1 = 0 ;
35465 int res1 = 0 ;
35466 PyObject *swig_obj[1] ;
35467
35468 if (!args) SWIG_fail;
35469 swig_obj[0] = args;
35470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35471 if (!SWIG_IsOK(res1)) {
35472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35473 }
35474 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35475 {
35476 PyThreadState* __tstate = wxPyBeginAllowThreads();
35477 result = (int)(arg1)->GetLen();
35478 wxPyEndAllowThreads(__tstate);
35479 if (PyErr_Occurred()) SWIG_fail;
35480 }
35481 resultobj = SWIG_From_int(static_cast< int >(result));
35482 return resultobj;
35483fail:
35484 return NULL;
35485}
35486
35487
35488SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35489 PyObject *resultobj = 0;
35490 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35491 int arg2 ;
35492 void *argp1 = 0 ;
35493 int res1 = 0 ;
35494 int val2 ;
35495 int ecode2 = 0 ;
35496 PyObject * obj0 = 0 ;
35497 PyObject * obj1 = 0 ;
35498 char * kwnames[] = {
35499 (char *) "self",(char *) "id", NULL
35500 };
35501
35502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35504 if (!SWIG_IsOK(res1)) {
35505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35506 }
35507 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35508 ecode2 = SWIG_AsVal_int(obj1, &val2);
35509 if (!SWIG_IsOK(ecode2)) {
35510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35511 }
35512 arg2 = static_cast< int >(val2);
35513 {
35514 PyThreadState* __tstate = wxPyBeginAllowThreads();
35515 (arg1)->SetId(arg2);
35516 wxPyEndAllowThreads(__tstate);
35517 if (PyErr_Occurred()) SWIG_fail;
35518 }
35519 resultobj = SWIG_Py_Void();
35520 return resultobj;
35521fail:
35522 return NULL;
35523}
35524
35525
35526SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35527 PyObject *resultobj = 0;
35528 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35529 int arg2 ;
35530 void *argp1 = 0 ;
35531 int res1 = 0 ;
35532 int val2 ;
35533 int ecode2 = 0 ;
35534 PyObject * obj0 = 0 ;
35535 PyObject * obj1 = 0 ;
35536 char * kwnames[] = {
35537 (char *) "self",(char *) "id", NULL
35538 };
35539
35540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35542 if (!SWIG_IsOK(res1)) {
35543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35544 }
35545 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35546 ecode2 = SWIG_AsVal_int(obj1, &val2);
35547 if (!SWIG_IsOK(ecode2)) {
35548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35549 }
35550 arg2 = static_cast< int >(val2);
35551 {
35552 PyThreadState* __tstate = wxPyBeginAllowThreads();
35553 (arg1)->ClearId(arg2);
35554 wxPyEndAllowThreads(__tstate);
35555 if (PyErr_Occurred()) SWIG_fail;
35556 }
35557 resultobj = SWIG_Py_Void();
35558 return resultobj;
35559fail:
35560 return NULL;
35561}
35562
35563
35564SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35565 PyObject *resultobj = 0;
35566 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35567 int arg2 ;
35568 void *argp1 = 0 ;
35569 int res1 = 0 ;
35570 int val2 ;
35571 int ecode2 = 0 ;
35572 PyObject * obj0 = 0 ;
35573 PyObject * obj1 = 0 ;
35574 char * kwnames[] = {
35575 (char *) "self",(char *) "id", NULL
35576 };
35577
35578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35580 if (!SWIG_IsOK(res1)) {
35581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35582 }
35583 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35584 ecode2 = SWIG_AsVal_int(obj1, &val2);
35585 if (!SWIG_IsOK(ecode2)) {
35586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35587 }
35588 arg2 = static_cast< int >(val2);
35589 {
35590 PyThreadState* __tstate = wxPyBeginAllowThreads();
35591 (arg1)->RemoveId(arg2);
35592 wxPyEndAllowThreads(__tstate);
35593 if (PyErr_Occurred()) SWIG_fail;
35594 }
35595 resultobj = SWIG_Py_Void();
35596 return resultobj;
35597fail:
35598 return NULL;
35599}
35600
35601
35602SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35603 PyObject *resultobj = 0;
35604 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35605 int arg2 ;
35606 int arg3 ;
35607 int arg4 ;
35608 void *argp1 = 0 ;
35609 int res1 = 0 ;
35610 int val2 ;
35611 int ecode2 = 0 ;
35612 int val3 ;
35613 int ecode3 = 0 ;
35614 int val4 ;
35615 int ecode4 = 0 ;
35616 PyObject * obj0 = 0 ;
35617 PyObject * obj1 = 0 ;
35618 PyObject * obj2 = 0 ;
35619 PyObject * obj3 = 0 ;
35620 char * kwnames[] = {
35621 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35622 };
35623
35624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35626 if (!SWIG_IsOK(res1)) {
35627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35628 }
35629 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35630 ecode2 = SWIG_AsVal_int(obj1, &val2);
35631 if (!SWIG_IsOK(ecode2)) {
35632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35633 }
35634 arg2 = static_cast< int >(val2);
35635 ecode3 = SWIG_AsVal_int(obj2, &val3);
35636 if (!SWIG_IsOK(ecode3)) {
35637 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35638 }
35639 arg3 = static_cast< int >(val3);
35640 ecode4 = SWIG_AsVal_int(obj3, &val4);
35641 if (!SWIG_IsOK(ecode4)) {
35642 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35643 }
35644 arg4 = static_cast< int >(val4);
35645 {
35646 PyThreadState* __tstate = wxPyBeginAllowThreads();
35647 (arg1)->TranslateId(arg2,arg3,arg4);
35648 wxPyEndAllowThreads(__tstate);
35649 if (PyErr_Occurred()) SWIG_fail;
35650 }
35651 resultobj = SWIG_Py_Void();
35652 return resultobj;
35653fail:
35654 return NULL;
35655}
35656
35657
72ef6efb
RD
35658SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35659 PyObject *resultobj = 0;
35660 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35661 int arg2 ;
35662 bool arg3 = (bool) true ;
35663 void *argp1 = 0 ;
35664 int res1 = 0 ;
35665 int val2 ;
35666 int ecode2 = 0 ;
35667 bool val3 ;
35668 int ecode3 = 0 ;
35669 PyObject * obj0 = 0 ;
35670 PyObject * obj1 = 0 ;
35671 PyObject * obj2 = 0 ;
35672 char * kwnames[] = {
35673 (char *) "self",(char *) "id",(char *) "greyout", NULL
35674 };
35675
35676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35678 if (!SWIG_IsOK(res1)) {
35679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35680 }
35681 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35682 ecode2 = SWIG_AsVal_int(obj1, &val2);
35683 if (!SWIG_IsOK(ecode2)) {
35684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35685 }
35686 arg2 = static_cast< int >(val2);
35687 if (obj2) {
35688 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35689 if (!SWIG_IsOK(ecode3)) {
35690 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35691 }
35692 arg3 = static_cast< bool >(val3);
35693 }
35694 {
35695 PyThreadState* __tstate = wxPyBeginAllowThreads();
35696 (arg1)->SetIdGreyedOut(arg2,arg3);
35697 wxPyEndAllowThreads(__tstate);
35698 if (PyErr_Occurred()) SWIG_fail;
35699 }
35700 resultobj = SWIG_Py_Void();
35701 return resultobj;
35702fail:
35703 return NULL;
35704}
35705
35706
35707SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35708 PyObject *resultobj = 0;
35709 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35710 int arg2 ;
35711 bool result;
35712 void *argp1 = 0 ;
35713 int res1 = 0 ;
35714 int val2 ;
35715 int ecode2 = 0 ;
35716 PyObject * obj0 = 0 ;
35717 PyObject * obj1 = 0 ;
35718 char * kwnames[] = {
35719 (char *) "self",(char *) "id", NULL
35720 };
35721
35722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35724 if (!SWIG_IsOK(res1)) {
35725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35726 }
35727 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35728 ecode2 = SWIG_AsVal_int(obj1, &val2);
35729 if (!SWIG_IsOK(ecode2)) {
35730 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35731 }
35732 arg2 = static_cast< int >(val2);
35733 {
35734 PyThreadState* __tstate = wxPyBeginAllowThreads();
35735 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35736 wxPyEndAllowThreads(__tstate);
35737 if (PyErr_Occurred()) SWIG_fail;
35738 }
35739 {
35740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35741 }
35742 return resultobj;
35743fail:
35744 return NULL;
35745}
35746
35747
35748SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35749 PyObject *resultobj = 0;
35750 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35751 int arg2 ;
35752 int arg3 ;
35753 int arg4 = (int) 1 ;
35754 wxColor const &arg5_defvalue = *wxWHITE ;
35755 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
35756 PyObject *result = 0 ;
35757 void *argp1 = 0 ;
35758 int res1 = 0 ;
35759 int val2 ;
35760 int ecode2 = 0 ;
35761 int val3 ;
35762 int ecode3 = 0 ;
35763 int val4 ;
35764 int ecode4 = 0 ;
35765 void *argp5 = 0 ;
35766 int res5 = 0 ;
35767 PyObject * obj0 = 0 ;
35768 PyObject * obj1 = 0 ;
35769 PyObject * obj2 = 0 ;
35770 PyObject * obj3 = 0 ;
35771 PyObject * obj4 = 0 ;
35772 char * kwnames[] = {
35773 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35774 };
35775
35776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35778 if (!SWIG_IsOK(res1)) {
35779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35780 }
35781 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35782 ecode2 = SWIG_AsVal_int(obj1, &val2);
35783 if (!SWIG_IsOK(ecode2)) {
35784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35785 }
35786 arg2 = static_cast< int >(val2);
35787 ecode3 = SWIG_AsVal_int(obj2, &val3);
35788 if (!SWIG_IsOK(ecode3)) {
35789 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35790 }
35791 arg3 = static_cast< int >(val3);
35792 if (obj3) {
35793 ecode4 = SWIG_AsVal_int(obj3, &val4);
35794 if (!SWIG_IsOK(ecode4)) {
35795 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35796 }
35797 arg4 = static_cast< int >(val4);
35798 }
35799 if (obj4) {
35800 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
35801 if (!SWIG_IsOK(res5)) {
35802 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35803 }
35804 if (!argp5) {
35805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35806 }
35807 arg5 = reinterpret_cast< wxColor * >(argp5);
35808 }
35809 {
35810 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
35811 if (PyErr_Occurred()) SWIG_fail;
35812 }
35813 resultobj = result;
35814 return resultobj;
35815fail:
35816 return NULL;
35817}
35818
35819
35820SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35821 PyObject *resultobj = 0;
35822 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35823 int arg2 ;
35824 int arg3 ;
35825 PyObject *result = 0 ;
35826 void *argp1 = 0 ;
35827 int res1 = 0 ;
35828 int val2 ;
35829 int ecode2 = 0 ;
35830 int val3 ;
35831 int ecode3 = 0 ;
35832 PyObject * obj0 = 0 ;
35833 PyObject * obj1 = 0 ;
35834 PyObject * obj2 = 0 ;
35835 char * kwnames[] = {
35836 (char *) "self",(char *) "x",(char *) "y", NULL
35837 };
35838
35839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35841 if (!SWIG_IsOK(res1)) {
35842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35843 }
35844 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35845 ecode2 = SWIG_AsVal_int(obj1, &val2);
35846 if (!SWIG_IsOK(ecode2)) {
35847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35848 }
35849 arg2 = static_cast< int >(val2);
35850 ecode3 = SWIG_AsVal_int(obj2, &val3);
35851 if (!SWIG_IsOK(ecode3)) {
35852 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35853 }
35854 arg3 = static_cast< int >(val3);
35855 {
35856 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35857 if (PyErr_Occurred()) SWIG_fail;
35858 }
35859 resultobj = result;
35860 return resultobj;
35861fail:
35862 return NULL;
35863}
35864
35865
27e45892
RD
35866SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35867 PyObject *resultobj = 0;
35868 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35869 int arg2 ;
35870 wxDC *arg3 = (wxDC *) 0 ;
35871 void *argp1 = 0 ;
35872 int res1 = 0 ;
35873 int val2 ;
35874 int ecode2 = 0 ;
35875 void *argp3 = 0 ;
35876 int res3 = 0 ;
35877 PyObject * obj0 = 0 ;
35878 PyObject * obj1 = 0 ;
35879 PyObject * obj2 = 0 ;
35880 char * kwnames[] = {
35881 (char *) "self",(char *) "id",(char *) "dc", NULL
35882 };
35883
35884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35886 if (!SWIG_IsOK(res1)) {
35887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35888 }
35889 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35890 ecode2 = SWIG_AsVal_int(obj1, &val2);
35891 if (!SWIG_IsOK(ecode2)) {
35892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35893 }
35894 arg2 = static_cast< int >(val2);
35895 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35896 if (!SWIG_IsOK(res3)) {
35897 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35898 }
35899 arg3 = reinterpret_cast< wxDC * >(argp3);
35900 {
35901 PyThreadState* __tstate = wxPyBeginAllowThreads();
35902 (arg1)->DrawIdToDC(arg2,arg3);
35903 wxPyEndAllowThreads(__tstate);
35904 if (PyErr_Occurred()) SWIG_fail;
35905 }
35906 resultobj = SWIG_Py_Void();
35907 return resultobj;
35908fail:
35909 return NULL;
35910}
35911
35912
35913SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35914 PyObject *resultobj = 0;
35915 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35916 int arg2 ;
35917 wxRect *arg3 = 0 ;
35918 void *argp1 = 0 ;
35919 int res1 = 0 ;
35920 int val2 ;
35921 int ecode2 = 0 ;
35922 wxRect temp3 ;
35923 PyObject * obj0 = 0 ;
35924 PyObject * obj1 = 0 ;
35925 PyObject * obj2 = 0 ;
35926 char * kwnames[] = {
35927 (char *) "self",(char *) "id",(char *) "rect", NULL
35928 };
35929
35930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35932 if (!SWIG_IsOK(res1)) {
35933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35934 }
35935 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35936 ecode2 = SWIG_AsVal_int(obj1, &val2);
35937 if (!SWIG_IsOK(ecode2)) {
35938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35939 }
35940 arg2 = static_cast< int >(val2);
35941 {
35942 arg3 = &temp3;
35943 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35944 }
35945 {
35946 PyThreadState* __tstate = wxPyBeginAllowThreads();
35947 (arg1)->SetIdBounds(arg2,*arg3);
35948 wxPyEndAllowThreads(__tstate);
35949 if (PyErr_Occurred()) SWIG_fail;
35950 }
35951 resultobj = SWIG_Py_Void();
35952 return resultobj;
35953fail:
35954 return NULL;
35955}
35956
35957
35958SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35959 PyObject *resultobj = 0;
35960 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35961 int arg2 ;
35962 wxRect result;
35963 void *argp1 = 0 ;
35964 int res1 = 0 ;
35965 int val2 ;
35966 int ecode2 = 0 ;
35967 PyObject * obj0 = 0 ;
35968 PyObject * obj1 = 0 ;
35969 char * kwnames[] = {
35970 (char *) "self",(char *) "id", NULL
35971 };
35972
35973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35975 if (!SWIG_IsOK(res1)) {
35976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35977 }
35978 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35979 ecode2 = SWIG_AsVal_int(obj1, &val2);
35980 if (!SWIG_IsOK(ecode2)) {
35981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35982 }
35983 arg2 = static_cast< int >(val2);
35984 {
35985 PyThreadState* __tstate = wxPyBeginAllowThreads();
35986 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35987 wxPyEndAllowThreads(__tstate);
35988 if (PyErr_Occurred()) SWIG_fail;
35989 }
35990 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35991 return resultobj;
35992fail:
35993 return NULL;
35994}
35995
35996
35997SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35998 PyObject *resultobj = 0;
35999 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36000 wxDC *arg2 = (wxDC *) 0 ;
36001 wxRect *arg3 = 0 ;
36002 void *argp1 = 0 ;
36003 int res1 = 0 ;
36004 void *argp2 = 0 ;
36005 int res2 = 0 ;
36006 wxRect temp3 ;
36007 PyObject * obj0 = 0 ;
36008 PyObject * obj1 = 0 ;
36009 PyObject * obj2 = 0 ;
36010 char * kwnames[] = {
36011 (char *) "self",(char *) "dc",(char *) "rect", NULL
36012 };
36013
36014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36016 if (!SWIG_IsOK(res1)) {
36017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36018 }
36019 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36020 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36021 if (!SWIG_IsOK(res2)) {
36022 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
36023 }
36024 arg2 = reinterpret_cast< wxDC * >(argp2);
36025 {
36026 arg3 = &temp3;
36027 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36028 }
36029 {
36030 PyThreadState* __tstate = wxPyBeginAllowThreads();
36031 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
36032 wxPyEndAllowThreads(__tstate);
36033 if (PyErr_Occurred()) SWIG_fail;
36034 }
36035 resultobj = SWIG_Py_Void();
36036 return resultobj;
36037fail:
36038 return NULL;
36039}
36040
36041
36042SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36043 PyObject *resultobj = 0;
36044 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36045 wxDC *arg2 = (wxDC *) 0 ;
36046 wxRegion *arg3 = 0 ;
36047 void *argp1 = 0 ;
36048 int res1 = 0 ;
36049 void *argp2 = 0 ;
36050 int res2 = 0 ;
36051 void *argp3 = 0 ;
36052 int res3 = 0 ;
36053 PyObject * obj0 = 0 ;
36054 PyObject * obj1 = 0 ;
36055 PyObject * obj2 = 0 ;
36056 char * kwnames[] = {
36057 (char *) "self",(char *) "dc",(char *) "region", NULL
36058 };
36059
36060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36062 if (!SWIG_IsOK(res1)) {
36063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36064 }
36065 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36066 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36067 if (!SWIG_IsOK(res2)) {
36068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
36069 }
36070 arg2 = reinterpret_cast< wxDC * >(argp2);
36071 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
36072 if (!SWIG_IsOK(res3)) {
36073 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36074 }
36075 if (!argp3) {
36076 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36077 }
36078 arg3 = reinterpret_cast< wxRegion * >(argp3);
36079 {
36080 PyThreadState* __tstate = wxPyBeginAllowThreads();
36081 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
36082 wxPyEndAllowThreads(__tstate);
36083 if (PyErr_Occurred()) SWIG_fail;
36084 }
36085 resultobj = SWIG_Py_Void();
36086 return resultobj;
36087fail:
36088 return NULL;
36089}
36090
36091
36092SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36093 PyObject *resultobj = 0;
36094 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36095 wxDC *arg2 = (wxDC *) 0 ;
36096 void *argp1 = 0 ;
36097 int res1 = 0 ;
36098 void *argp2 = 0 ;
36099 int res2 = 0 ;
36100 PyObject * obj0 = 0 ;
36101 PyObject * obj1 = 0 ;
36102 char * kwnames[] = {
36103 (char *) "self",(char *) "dc", NULL
36104 };
36105
36106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
36107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36108 if (!SWIG_IsOK(res1)) {
36109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36110 }
36111 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36112 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36113 if (!SWIG_IsOK(res2)) {
36114 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
36115 }
36116 arg2 = reinterpret_cast< wxDC * >(argp2);
36117 {
36118 PyThreadState* __tstate = wxPyBeginAllowThreads();
36119 (arg1)->DrawToDC(arg2);
36120 wxPyEndAllowThreads(__tstate);
36121 if (PyErr_Occurred()) SWIG_fail;
36122 }
36123 resultobj = SWIG_Py_Void();
36124 return resultobj;
36125fail:
36126 return NULL;
36127}
36128
36129
36130SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36131 PyObject *resultobj = 0;
36132 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36133 int arg2 ;
36134 int arg3 ;
36135 wxColour *arg4 = 0 ;
36136 int arg5 = (int) wxFLOOD_SURFACE ;
36137 void *argp1 = 0 ;
36138 int res1 = 0 ;
36139 int val2 ;
36140 int ecode2 = 0 ;
36141 int val3 ;
36142 int ecode3 = 0 ;
36143 wxColour temp4 ;
36144 int val5 ;
36145 int ecode5 = 0 ;
36146 PyObject * obj0 = 0 ;
36147 PyObject * obj1 = 0 ;
36148 PyObject * obj2 = 0 ;
36149 PyObject * obj3 = 0 ;
36150 PyObject * obj4 = 0 ;
36151 char * kwnames[] = {
36152 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
36153 };
36154
36155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36157 if (!SWIG_IsOK(res1)) {
36158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36159 }
36160 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36161 ecode2 = SWIG_AsVal_int(obj1, &val2);
36162 if (!SWIG_IsOK(ecode2)) {
36163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
36164 }
36165 arg2 = static_cast< int >(val2);
36166 ecode3 = SWIG_AsVal_int(obj2, &val3);
36167 if (!SWIG_IsOK(ecode3)) {
36168 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
36169 }
36170 arg3 = static_cast< int >(val3);
36171 {
36172 arg4 = &temp4;
36173 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
36174 }
36175 if (obj4) {
36176 ecode5 = SWIG_AsVal_int(obj4, &val5);
36177 if (!SWIG_IsOK(ecode5)) {
36178 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
36179 }
36180 arg5 = static_cast< int >(val5);
36181 }
36182 {
36183 PyThreadState* __tstate = wxPyBeginAllowThreads();
36184 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
36185 wxPyEndAllowThreads(__tstate);
36186 if (PyErr_Occurred()) SWIG_fail;
36187 }
36188 resultobj = SWIG_Py_Void();
36189 return resultobj;
36190fail:
36191 return NULL;
36192}
36193
36194
36195SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36196 PyObject *resultobj = 0;
36197 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36198 wxPoint *arg2 = 0 ;
36199 wxColour *arg3 = 0 ;
36200 int arg4 = (int) wxFLOOD_SURFACE ;
36201 void *argp1 = 0 ;
36202 int res1 = 0 ;
36203 wxPoint temp2 ;
36204 wxColour temp3 ;
36205 int val4 ;
36206 int ecode4 = 0 ;
36207 PyObject * obj0 = 0 ;
36208 PyObject * obj1 = 0 ;
36209 PyObject * obj2 = 0 ;
36210 PyObject * obj3 = 0 ;
36211 char * kwnames[] = {
36212 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
36213 };
36214
36215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36217 if (!SWIG_IsOK(res1)) {
36218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36219 }
36220 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36221 {
36222 arg2 = &temp2;
36223 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36224 }
36225 {
36226 arg3 = &temp3;
36227 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
36228 }
36229 if (obj3) {
36230 ecode4 = SWIG_AsVal_int(obj3, &val4);
36231 if (!SWIG_IsOK(ecode4)) {
36232 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
36233 }
36234 arg4 = static_cast< int >(val4);
36235 }
36236 {
36237 PyThreadState* __tstate = wxPyBeginAllowThreads();
36238 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
36239 wxPyEndAllowThreads(__tstate);
36240 if (PyErr_Occurred()) SWIG_fail;
36241 }
36242 resultobj = SWIG_Py_Void();
36243 return resultobj;
36244fail:
36245 return NULL;
36246}
36247
36248
36249SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36250 PyObject *resultobj = 0;
36251 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36252 int arg2 ;
36253 int arg3 ;
36254 int arg4 ;
36255 int arg5 ;
36256 void *argp1 = 0 ;
36257 int res1 = 0 ;
36258 int val2 ;
36259 int ecode2 = 0 ;
36260 int val3 ;
36261 int ecode3 = 0 ;
36262 int val4 ;
36263 int ecode4 = 0 ;
36264 int val5 ;
36265 int ecode5 = 0 ;
36266 PyObject * obj0 = 0 ;
36267 PyObject * obj1 = 0 ;
36268 PyObject * obj2 = 0 ;
36269 PyObject * obj3 = 0 ;
36270 PyObject * obj4 = 0 ;
36271 char * kwnames[] = {
36272 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36273 };
36274
36275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36277 if (!SWIG_IsOK(res1)) {
36278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36279 }
36280 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36281 ecode2 = SWIG_AsVal_int(obj1, &val2);
36282 if (!SWIG_IsOK(ecode2)) {
36283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36284 }
36285 arg2 = static_cast< int >(val2);
36286 ecode3 = SWIG_AsVal_int(obj2, &val3);
36287 if (!SWIG_IsOK(ecode3)) {
36288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
36289 }
36290 arg3 = static_cast< int >(val3);
36291 ecode4 = SWIG_AsVal_int(obj3, &val4);
36292 if (!SWIG_IsOK(ecode4)) {
36293 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
36294 }
36295 arg4 = static_cast< int >(val4);
36296 ecode5 = SWIG_AsVal_int(obj4, &val5);
36297 if (!SWIG_IsOK(ecode5)) {
36298 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
36299 }
36300 arg5 = static_cast< int >(val5);
36301 {
36302 PyThreadState* __tstate = wxPyBeginAllowThreads();
36303 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
36304 wxPyEndAllowThreads(__tstate);
36305 if (PyErr_Occurred()) SWIG_fail;
36306 }
36307 resultobj = SWIG_Py_Void();
36308 return resultobj;
36309fail:
36310 return NULL;
36311}
36312
36313
36314SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36315 PyObject *resultobj = 0;
36316 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36317 wxPoint *arg2 = 0 ;
36318 wxPoint *arg3 = 0 ;
36319 void *argp1 = 0 ;
36320 int res1 = 0 ;
36321 wxPoint temp2 ;
36322 wxPoint temp3 ;
36323 PyObject * obj0 = 0 ;
36324 PyObject * obj1 = 0 ;
36325 PyObject * obj2 = 0 ;
36326 char * kwnames[] = {
36327 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
36328 };
36329
36330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36332 if (!SWIG_IsOK(res1)) {
36333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36334 }
36335 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36336 {
36337 arg2 = &temp2;
36338 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36339 }
36340 {
36341 arg3 = &temp3;
36342 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36343 }
36344 {
36345 PyThreadState* __tstate = wxPyBeginAllowThreads();
36346 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
36347 wxPyEndAllowThreads(__tstate);
36348 if (PyErr_Occurred()) SWIG_fail;
36349 }
36350 resultobj = SWIG_Py_Void();
36351 return resultobj;
36352fail:
36353 return NULL;
36354}
36355
36356
36357SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36358 PyObject *resultobj = 0;
36359 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36360 int arg2 ;
36361 int arg3 ;
36362 void *argp1 = 0 ;
36363 int res1 = 0 ;
36364 int val2 ;
36365 int ecode2 = 0 ;
36366 int val3 ;
36367 int ecode3 = 0 ;
36368 PyObject * obj0 = 0 ;
36369 PyObject * obj1 = 0 ;
36370 PyObject * obj2 = 0 ;
36371 char * kwnames[] = {
36372 (char *) "self",(char *) "x",(char *) "y", NULL
36373 };
36374
36375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36377 if (!SWIG_IsOK(res1)) {
36378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36379 }
36380 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36381 ecode2 = SWIG_AsVal_int(obj1, &val2);
36382 if (!SWIG_IsOK(ecode2)) {
36383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36384 }
36385 arg2 = static_cast< int >(val2);
36386 ecode3 = SWIG_AsVal_int(obj2, &val3);
36387 if (!SWIG_IsOK(ecode3)) {
36388 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36389 }
36390 arg3 = static_cast< int >(val3);
36391 {
36392 PyThreadState* __tstate = wxPyBeginAllowThreads();
36393 (arg1)->CrossHair(arg2,arg3);
36394 wxPyEndAllowThreads(__tstate);
36395 if (PyErr_Occurred()) SWIG_fail;
36396 }
36397 resultobj = SWIG_Py_Void();
36398 return resultobj;
36399fail:
36400 return NULL;
36401}
36402
36403
36404SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36405 PyObject *resultobj = 0;
36406 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36407 wxPoint *arg2 = 0 ;
36408 void *argp1 = 0 ;
36409 int res1 = 0 ;
36410 wxPoint temp2 ;
36411 PyObject * obj0 = 0 ;
36412 PyObject * obj1 = 0 ;
36413 char * kwnames[] = {
36414 (char *) "self",(char *) "pt", NULL
36415 };
36416
36417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36419 if (!SWIG_IsOK(res1)) {
36420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36421 }
36422 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36423 {
36424 arg2 = &temp2;
36425 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36426 }
36427 {
36428 PyThreadState* __tstate = wxPyBeginAllowThreads();
36429 (arg1)->CrossHair((wxPoint const &)*arg2);
36430 wxPyEndAllowThreads(__tstate);
36431 if (PyErr_Occurred()) SWIG_fail;
36432 }
36433 resultobj = SWIG_Py_Void();
36434 return resultobj;
36435fail:
36436 return NULL;
36437}
36438
36439
36440SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36441 PyObject *resultobj = 0;
36442 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36443 int arg2 ;
36444 int arg3 ;
36445 int arg4 ;
36446 int arg5 ;
36447 int arg6 ;
36448 int arg7 ;
36449 void *argp1 = 0 ;
36450 int res1 = 0 ;
36451 int val2 ;
36452 int ecode2 = 0 ;
36453 int val3 ;
36454 int ecode3 = 0 ;
36455 int val4 ;
36456 int ecode4 = 0 ;
36457 int val5 ;
36458 int ecode5 = 0 ;
36459 int val6 ;
36460 int ecode6 = 0 ;
36461 int val7 ;
36462 int ecode7 = 0 ;
36463 PyObject * obj0 = 0 ;
36464 PyObject * obj1 = 0 ;
36465 PyObject * obj2 = 0 ;
36466 PyObject * obj3 = 0 ;
36467 PyObject * obj4 = 0 ;
36468 PyObject * obj5 = 0 ;
36469 PyObject * obj6 = 0 ;
36470 char * kwnames[] = {
36471 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36472 };
36473
36474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36476 if (!SWIG_IsOK(res1)) {
36477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36478 }
36479 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36480 ecode2 = SWIG_AsVal_int(obj1, &val2);
36481 if (!SWIG_IsOK(ecode2)) {
36482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36483 }
36484 arg2 = static_cast< int >(val2);
36485 ecode3 = SWIG_AsVal_int(obj2, &val3);
36486 if (!SWIG_IsOK(ecode3)) {
36487 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36488 }
36489 arg3 = static_cast< int >(val3);
36490 ecode4 = SWIG_AsVal_int(obj3, &val4);
36491 if (!SWIG_IsOK(ecode4)) {
36492 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36493 }
36494 arg4 = static_cast< int >(val4);
36495 ecode5 = SWIG_AsVal_int(obj4, &val5);
36496 if (!SWIG_IsOK(ecode5)) {
36497 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36498 }
36499 arg5 = static_cast< int >(val5);
36500 ecode6 = SWIG_AsVal_int(obj5, &val6);
36501 if (!SWIG_IsOK(ecode6)) {
36502 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36503 }
36504 arg6 = static_cast< int >(val6);
36505 ecode7 = SWIG_AsVal_int(obj6, &val7);
36506 if (!SWIG_IsOK(ecode7)) {
36507 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36508 }
36509 arg7 = static_cast< int >(val7);
36510 {
36511 PyThreadState* __tstate = wxPyBeginAllowThreads();
36512 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36513 wxPyEndAllowThreads(__tstate);
36514 if (PyErr_Occurred()) SWIG_fail;
36515 }
36516 resultobj = SWIG_Py_Void();
36517 return resultobj;
36518fail:
36519 return NULL;
36520}
36521
36522
36523SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36524 PyObject *resultobj = 0;
36525 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36526 wxPoint *arg2 = 0 ;
36527 wxPoint *arg3 = 0 ;
36528 wxPoint *arg4 = 0 ;
36529 void *argp1 = 0 ;
36530 int res1 = 0 ;
36531 wxPoint temp2 ;
36532 wxPoint temp3 ;
36533 wxPoint temp4 ;
36534 PyObject * obj0 = 0 ;
36535 PyObject * obj1 = 0 ;
36536 PyObject * obj2 = 0 ;
36537 PyObject * obj3 = 0 ;
36538 char * kwnames[] = {
36539 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36540 };
36541
36542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36544 if (!SWIG_IsOK(res1)) {
36545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36546 }
36547 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36548 {
36549 arg2 = &temp2;
36550 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36551 }
36552 {
36553 arg3 = &temp3;
36554 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36555 }
36556 {
36557 arg4 = &temp4;
36558 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36559 }
36560 {
36561 PyThreadState* __tstate = wxPyBeginAllowThreads();
36562 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36563 wxPyEndAllowThreads(__tstate);
36564 if (PyErr_Occurred()) SWIG_fail;
36565 }
36566 resultobj = SWIG_Py_Void();
36567 return resultobj;
36568fail:
36569 return NULL;
36570}
36571
36572
36573SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36574 PyObject *resultobj = 0;
36575 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36576 int arg2 ;
36577 int arg3 ;
36578 int arg4 ;
36579 int arg5 ;
36580 void *argp1 = 0 ;
36581 int res1 = 0 ;
36582 int val2 ;
36583 int ecode2 = 0 ;
36584 int val3 ;
36585 int ecode3 = 0 ;
36586 int val4 ;
36587 int ecode4 = 0 ;
36588 int val5 ;
36589 int ecode5 = 0 ;
36590 PyObject * obj0 = 0 ;
36591 PyObject * obj1 = 0 ;
36592 PyObject * obj2 = 0 ;
36593 PyObject * obj3 = 0 ;
36594 PyObject * obj4 = 0 ;
36595 char * kwnames[] = {
36596 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36597 };
36598
36599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36601 if (!SWIG_IsOK(res1)) {
36602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36603 }
36604 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36605 ecode2 = SWIG_AsVal_int(obj1, &val2);
36606 if (!SWIG_IsOK(ecode2)) {
36607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36608 }
36609 arg2 = static_cast< int >(val2);
36610 ecode3 = SWIG_AsVal_int(obj2, &val3);
36611 if (!SWIG_IsOK(ecode3)) {
36612 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36613 }
36614 arg3 = static_cast< int >(val3);
36615 ecode4 = SWIG_AsVal_int(obj3, &val4);
36616 if (!SWIG_IsOK(ecode4)) {
36617 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36618 }
36619 arg4 = static_cast< int >(val4);
36620 ecode5 = SWIG_AsVal_int(obj4, &val5);
36621 if (!SWIG_IsOK(ecode5)) {
36622 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36623 }
36624 arg5 = static_cast< int >(val5);
36625 {
36626 PyThreadState* __tstate = wxPyBeginAllowThreads();
36627 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36628 wxPyEndAllowThreads(__tstate);
36629 if (PyErr_Occurred()) SWIG_fail;
36630 }
36631 resultobj = SWIG_Py_Void();
36632 return resultobj;
36633fail:
36634 return NULL;
36635}
36636
36637
36638SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36639 PyObject *resultobj = 0;
36640 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36641 wxRect *arg2 = 0 ;
36642 void *argp1 = 0 ;
36643 int res1 = 0 ;
36644 wxRect temp2 ;
36645 PyObject * obj0 = 0 ;
36646 PyObject * obj1 = 0 ;
36647 char * kwnames[] = {
36648 (char *) "self",(char *) "rect", NULL
36649 };
36650
36651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36653 if (!SWIG_IsOK(res1)) {
36654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36655 }
36656 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36657 {
36658 arg2 = &temp2;
36659 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36660 }
36661 {
36662 PyThreadState* __tstate = wxPyBeginAllowThreads();
36663 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36664 wxPyEndAllowThreads(__tstate);
36665 if (PyErr_Occurred()) SWIG_fail;
36666 }
36667 resultobj = SWIG_Py_Void();
36668 return resultobj;
36669fail:
36670 return NULL;
36671}
36672
36673
36674SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36675 PyObject *resultobj = 0;
36676 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36677 int arg2 ;
36678 int arg3 ;
36679 int arg4 ;
36680 int arg5 ;
36681 double arg6 ;
36682 double arg7 ;
36683 void *argp1 = 0 ;
36684 int res1 = 0 ;
36685 int val2 ;
36686 int ecode2 = 0 ;
36687 int val3 ;
36688 int ecode3 = 0 ;
36689 int val4 ;
36690 int ecode4 = 0 ;
36691 int val5 ;
36692 int ecode5 = 0 ;
36693 double val6 ;
36694 int ecode6 = 0 ;
36695 double val7 ;
36696 int ecode7 = 0 ;
36697 PyObject * obj0 = 0 ;
36698 PyObject * obj1 = 0 ;
36699 PyObject * obj2 = 0 ;
36700 PyObject * obj3 = 0 ;
36701 PyObject * obj4 = 0 ;
36702 PyObject * obj5 = 0 ;
36703 PyObject * obj6 = 0 ;
36704 char * kwnames[] = {
36705 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36706 };
36707
36708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36710 if (!SWIG_IsOK(res1)) {
36711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36712 }
36713 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36714 ecode2 = SWIG_AsVal_int(obj1, &val2);
36715 if (!SWIG_IsOK(ecode2)) {
36716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36717 }
36718 arg2 = static_cast< int >(val2);
36719 ecode3 = SWIG_AsVal_int(obj2, &val3);
36720 if (!SWIG_IsOK(ecode3)) {
36721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36722 }
36723 arg3 = static_cast< int >(val3);
36724 ecode4 = SWIG_AsVal_int(obj3, &val4);
36725 if (!SWIG_IsOK(ecode4)) {
36726 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36727 }
36728 arg4 = static_cast< int >(val4);
36729 ecode5 = SWIG_AsVal_int(obj4, &val5);
36730 if (!SWIG_IsOK(ecode5)) {
36731 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36732 }
36733 arg5 = static_cast< int >(val5);
36734 ecode6 = SWIG_AsVal_double(obj5, &val6);
36735 if (!SWIG_IsOK(ecode6)) {
36736 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36737 }
36738 arg6 = static_cast< double >(val6);
36739 ecode7 = SWIG_AsVal_double(obj6, &val7);
36740 if (!SWIG_IsOK(ecode7)) {
36741 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36742 }
36743 arg7 = static_cast< double >(val7);
36744 {
36745 PyThreadState* __tstate = wxPyBeginAllowThreads();
36746 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36747 wxPyEndAllowThreads(__tstate);
36748 if (PyErr_Occurred()) SWIG_fail;
36749 }
36750 resultobj = SWIG_Py_Void();
36751 return resultobj;
36752fail:
36753 return NULL;
36754}
36755
36756
36757SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36758 PyObject *resultobj = 0;
36759 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36760 wxPoint *arg2 = 0 ;
36761 wxSize *arg3 = 0 ;
36762 double arg4 ;
36763 double arg5 ;
36764 void *argp1 = 0 ;
36765 int res1 = 0 ;
36766 wxPoint temp2 ;
36767 wxSize temp3 ;
36768 double val4 ;
36769 int ecode4 = 0 ;
36770 double val5 ;
36771 int ecode5 = 0 ;
36772 PyObject * obj0 = 0 ;
36773 PyObject * obj1 = 0 ;
36774 PyObject * obj2 = 0 ;
36775 PyObject * obj3 = 0 ;
36776 PyObject * obj4 = 0 ;
36777 char * kwnames[] = {
36778 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36779 };
36780
36781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36783 if (!SWIG_IsOK(res1)) {
36784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36785 }
36786 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36787 {
36788 arg2 = &temp2;
36789 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36790 }
36791 {
36792 arg3 = &temp3;
36793 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36794 }
36795 ecode4 = SWIG_AsVal_double(obj3, &val4);
36796 if (!SWIG_IsOK(ecode4)) {
36797 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36798 }
36799 arg4 = static_cast< double >(val4);
36800 ecode5 = SWIG_AsVal_double(obj4, &val5);
36801 if (!SWIG_IsOK(ecode5)) {
36802 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36803 }
36804 arg5 = static_cast< double >(val5);
36805 {
36806 PyThreadState* __tstate = wxPyBeginAllowThreads();
36807 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36808 wxPyEndAllowThreads(__tstate);
36809 if (PyErr_Occurred()) SWIG_fail;
36810 }
36811 resultobj = SWIG_Py_Void();
36812 return resultobj;
36813fail:
36814 return NULL;
36815}
36816
36817
36818SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36819 PyObject *resultobj = 0;
36820 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36821 int arg2 ;
36822 int arg3 ;
36823 void *argp1 = 0 ;
36824 int res1 = 0 ;
36825 int val2 ;
36826 int ecode2 = 0 ;
36827 int val3 ;
36828 int ecode3 = 0 ;
36829 PyObject * obj0 = 0 ;
36830 PyObject * obj1 = 0 ;
36831 PyObject * obj2 = 0 ;
36832 char * kwnames[] = {
36833 (char *) "self",(char *) "x",(char *) "y", NULL
36834 };
36835
36836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36838 if (!SWIG_IsOK(res1)) {
36839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36840 }
36841 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36842 ecode2 = SWIG_AsVal_int(obj1, &val2);
36843 if (!SWIG_IsOK(ecode2)) {
36844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36845 }
36846 arg2 = static_cast< int >(val2);
36847 ecode3 = SWIG_AsVal_int(obj2, &val3);
36848 if (!SWIG_IsOK(ecode3)) {
36849 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36850 }
36851 arg3 = static_cast< int >(val3);
36852 {
36853 PyThreadState* __tstate = wxPyBeginAllowThreads();
36854 (arg1)->DrawPoint(arg2,arg3);
36855 wxPyEndAllowThreads(__tstate);
36856 if (PyErr_Occurred()) SWIG_fail;
36857 }
36858 resultobj = SWIG_Py_Void();
36859 return resultobj;
36860fail:
36861 return NULL;
36862}
36863
36864
36865SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36866 PyObject *resultobj = 0;
36867 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36868 wxPoint *arg2 = 0 ;
36869 void *argp1 = 0 ;
36870 int res1 = 0 ;
36871 wxPoint temp2 ;
36872 PyObject * obj0 = 0 ;
36873 PyObject * obj1 = 0 ;
36874 char * kwnames[] = {
36875 (char *) "self",(char *) "pt", NULL
36876 };
36877
36878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36880 if (!SWIG_IsOK(res1)) {
36881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36882 }
36883 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36884 {
36885 arg2 = &temp2;
36886 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36887 }
36888 {
36889 PyThreadState* __tstate = wxPyBeginAllowThreads();
36890 (arg1)->DrawPoint((wxPoint const &)*arg2);
36891 wxPyEndAllowThreads(__tstate);
36892 if (PyErr_Occurred()) SWIG_fail;
36893 }
36894 resultobj = SWIG_Py_Void();
36895 return resultobj;
36896fail:
36897 return NULL;
36898}
36899
36900
36901SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36902 PyObject *resultobj = 0;
36903 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36904 int arg2 ;
36905 int arg3 ;
36906 int arg4 ;
36907 int arg5 ;
36908 void *argp1 = 0 ;
36909 int res1 = 0 ;
36910 int val2 ;
36911 int ecode2 = 0 ;
36912 int val3 ;
36913 int ecode3 = 0 ;
36914 int val4 ;
36915 int ecode4 = 0 ;
36916 int val5 ;
36917 int ecode5 = 0 ;
36918 PyObject * obj0 = 0 ;
36919 PyObject * obj1 = 0 ;
36920 PyObject * obj2 = 0 ;
36921 PyObject * obj3 = 0 ;
36922 PyObject * obj4 = 0 ;
36923 char * kwnames[] = {
36924 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36925 };
36926
36927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36929 if (!SWIG_IsOK(res1)) {
36930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36931 }
36932 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36933 ecode2 = SWIG_AsVal_int(obj1, &val2);
36934 if (!SWIG_IsOK(ecode2)) {
36935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36936 }
36937 arg2 = static_cast< int >(val2);
36938 ecode3 = SWIG_AsVal_int(obj2, &val3);
36939 if (!SWIG_IsOK(ecode3)) {
36940 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36941 }
36942 arg3 = static_cast< int >(val3);
36943 ecode4 = SWIG_AsVal_int(obj3, &val4);
36944 if (!SWIG_IsOK(ecode4)) {
36945 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36946 }
36947 arg4 = static_cast< int >(val4);
36948 ecode5 = SWIG_AsVal_int(obj4, &val5);
36949 if (!SWIG_IsOK(ecode5)) {
36950 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36951 }
36952 arg5 = static_cast< int >(val5);
36953 {
36954 PyThreadState* __tstate = wxPyBeginAllowThreads();
36955 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36956 wxPyEndAllowThreads(__tstate);
36957 if (PyErr_Occurred()) SWIG_fail;
36958 }
36959 resultobj = SWIG_Py_Void();
36960 return resultobj;
36961fail:
36962 return NULL;
36963}
36964
36965
36966SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36967 PyObject *resultobj = 0;
36968 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36969 wxRect *arg2 = 0 ;
36970 void *argp1 = 0 ;
36971 int res1 = 0 ;
36972 wxRect temp2 ;
36973 PyObject * obj0 = 0 ;
36974 PyObject * obj1 = 0 ;
36975 char * kwnames[] = {
36976 (char *) "self",(char *) "rect", NULL
36977 };
36978
36979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36981 if (!SWIG_IsOK(res1)) {
36982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36983 }
36984 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36985 {
36986 arg2 = &temp2;
36987 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36988 }
36989 {
36990 PyThreadState* __tstate = wxPyBeginAllowThreads();
36991 (arg1)->DrawRectangle((wxRect const &)*arg2);
36992 wxPyEndAllowThreads(__tstate);
36993 if (PyErr_Occurred()) SWIG_fail;
36994 }
36995 resultobj = SWIG_Py_Void();
36996 return resultobj;
36997fail:
36998 return NULL;
36999}
37000
37001
37002SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37003 PyObject *resultobj = 0;
37004 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37005 wxPoint *arg2 = 0 ;
37006 wxSize *arg3 = 0 ;
37007 void *argp1 = 0 ;
37008 int res1 = 0 ;
37009 wxPoint temp2 ;
37010 wxSize temp3 ;
37011 PyObject * obj0 = 0 ;
37012 PyObject * obj1 = 0 ;
37013 PyObject * obj2 = 0 ;
37014 char * kwnames[] = {
37015 (char *) "self",(char *) "pt",(char *) "sz", NULL
37016 };
37017
37018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37020 if (!SWIG_IsOK(res1)) {
37021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37022 }
37023 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37024 {
37025 arg2 = &temp2;
37026 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37027 }
37028 {
37029 arg3 = &temp3;
37030 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37031 }
37032 {
37033 PyThreadState* __tstate = wxPyBeginAllowThreads();
37034 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
37035 wxPyEndAllowThreads(__tstate);
37036 if (PyErr_Occurred()) SWIG_fail;
37037 }
37038 resultobj = SWIG_Py_Void();
37039 return resultobj;
37040fail:
37041 return NULL;
37042}
37043
37044
37045SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37046 PyObject *resultobj = 0;
37047 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37048 int arg2 ;
37049 int arg3 ;
37050 int arg4 ;
37051 int arg5 ;
37052 double arg6 ;
37053 void *argp1 = 0 ;
37054 int res1 = 0 ;
37055 int val2 ;
37056 int ecode2 = 0 ;
37057 int val3 ;
37058 int ecode3 = 0 ;
37059 int val4 ;
37060 int ecode4 = 0 ;
37061 int val5 ;
37062 int ecode5 = 0 ;
37063 double val6 ;
37064 int ecode6 = 0 ;
37065 PyObject * obj0 = 0 ;
37066 PyObject * obj1 = 0 ;
37067 PyObject * obj2 = 0 ;
37068 PyObject * obj3 = 0 ;
37069 PyObject * obj4 = 0 ;
37070 PyObject * obj5 = 0 ;
37071 char * kwnames[] = {
37072 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
37073 };
37074
37075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37077 if (!SWIG_IsOK(res1)) {
37078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37079 }
37080 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37081 ecode2 = SWIG_AsVal_int(obj1, &val2);
37082 if (!SWIG_IsOK(ecode2)) {
37083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
37084 }
37085 arg2 = static_cast< int >(val2);
37086 ecode3 = SWIG_AsVal_int(obj2, &val3);
37087 if (!SWIG_IsOK(ecode3)) {
37088 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
37089 }
37090 arg3 = static_cast< int >(val3);
37091 ecode4 = SWIG_AsVal_int(obj3, &val4);
37092 if (!SWIG_IsOK(ecode4)) {
37093 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
37094 }
37095 arg4 = static_cast< int >(val4);
37096 ecode5 = SWIG_AsVal_int(obj4, &val5);
37097 if (!SWIG_IsOK(ecode5)) {
37098 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
37099 }
37100 arg5 = static_cast< int >(val5);
37101 ecode6 = SWIG_AsVal_double(obj5, &val6);
37102 if (!SWIG_IsOK(ecode6)) {
37103 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
37104 }
37105 arg6 = static_cast< double >(val6);
37106 {
37107 PyThreadState* __tstate = wxPyBeginAllowThreads();
37108 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
37109 wxPyEndAllowThreads(__tstate);
37110 if (PyErr_Occurred()) SWIG_fail;
37111 }
37112 resultobj = SWIG_Py_Void();
37113 return resultobj;
37114fail:
37115 return NULL;
37116}
37117
37118
37119SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37120 PyObject *resultobj = 0;
37121 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37122 wxRect *arg2 = 0 ;
37123 double arg3 ;
37124 void *argp1 = 0 ;
37125 int res1 = 0 ;
37126 wxRect temp2 ;
37127 double val3 ;
37128 int ecode3 = 0 ;
37129 PyObject * obj0 = 0 ;
37130 PyObject * obj1 = 0 ;
37131 PyObject * obj2 = 0 ;
37132 char * kwnames[] = {
37133 (char *) "self",(char *) "r",(char *) "radius", NULL
37134 };
37135
37136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37138 if (!SWIG_IsOK(res1)) {
37139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37140 }
37141 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37142 {
37143 arg2 = &temp2;
37144 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37145 }
37146 ecode3 = SWIG_AsVal_double(obj2, &val3);
37147 if (!SWIG_IsOK(ecode3)) {
37148 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
37149 }
37150 arg3 = static_cast< double >(val3);
37151 {
37152 PyThreadState* __tstate = wxPyBeginAllowThreads();
37153 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
37154 wxPyEndAllowThreads(__tstate);
37155 if (PyErr_Occurred()) SWIG_fail;
37156 }
37157 resultobj = SWIG_Py_Void();
37158 return resultobj;
37159fail:
37160 return NULL;
37161}
37162
37163
37164SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37165 PyObject *resultobj = 0;
37166 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37167 wxPoint *arg2 = 0 ;
37168 wxSize *arg3 = 0 ;
37169 double arg4 ;
37170 void *argp1 = 0 ;
37171 int res1 = 0 ;
37172 wxPoint temp2 ;
37173 wxSize temp3 ;
37174 double val4 ;
37175 int ecode4 = 0 ;
37176 PyObject * obj0 = 0 ;
37177 PyObject * obj1 = 0 ;
37178 PyObject * obj2 = 0 ;
37179 PyObject * obj3 = 0 ;
37180 char * kwnames[] = {
37181 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
37182 };
37183
37184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37186 if (!SWIG_IsOK(res1)) {
37187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37188 }
37189 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37190 {
37191 arg2 = &temp2;
37192 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37193 }
37194 {
37195 arg3 = &temp3;
37196 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37197 }
37198 ecode4 = SWIG_AsVal_double(obj3, &val4);
37199 if (!SWIG_IsOK(ecode4)) {
37200 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
37201 }
37202 arg4 = static_cast< double >(val4);
37203 {
37204 PyThreadState* __tstate = wxPyBeginAllowThreads();
37205 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
37206 wxPyEndAllowThreads(__tstate);
37207 if (PyErr_Occurred()) SWIG_fail;
37208 }
37209 resultobj = SWIG_Py_Void();
37210 return resultobj;
37211fail:
37212 return NULL;
37213}
37214
37215
37216SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37217 PyObject *resultobj = 0;
37218 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37219 int arg2 ;
37220 int arg3 ;
37221 int arg4 ;
37222 void *argp1 = 0 ;
37223 int res1 = 0 ;
37224 int val2 ;
37225 int ecode2 = 0 ;
37226 int val3 ;
37227 int ecode3 = 0 ;
37228 int val4 ;
37229 int ecode4 = 0 ;
37230 PyObject * obj0 = 0 ;
37231 PyObject * obj1 = 0 ;
37232 PyObject * obj2 = 0 ;
37233 PyObject * obj3 = 0 ;
37234 char * kwnames[] = {
37235 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
37236 };
37237
37238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37240 if (!SWIG_IsOK(res1)) {
37241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37242 }
37243 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37244 ecode2 = SWIG_AsVal_int(obj1, &val2);
37245 if (!SWIG_IsOK(ecode2)) {
37246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
37247 }
37248 arg2 = static_cast< int >(val2);
37249 ecode3 = SWIG_AsVal_int(obj2, &val3);
37250 if (!SWIG_IsOK(ecode3)) {
37251 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
37252 }
37253 arg3 = static_cast< int >(val3);
37254 ecode4 = SWIG_AsVal_int(obj3, &val4);
37255 if (!SWIG_IsOK(ecode4)) {
37256 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
37257 }
37258 arg4 = static_cast< int >(val4);
37259 {
37260 PyThreadState* __tstate = wxPyBeginAllowThreads();
37261 (arg1)->DrawCircle(arg2,arg3,arg4);
37262 wxPyEndAllowThreads(__tstate);
37263 if (PyErr_Occurred()) SWIG_fail;
37264 }
37265 resultobj = SWIG_Py_Void();
37266 return resultobj;
37267fail:
37268 return NULL;
37269}
37270
37271
37272SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37273 PyObject *resultobj = 0;
37274 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37275 wxPoint *arg2 = 0 ;
37276 int arg3 ;
37277 void *argp1 = 0 ;
37278 int res1 = 0 ;
37279 wxPoint temp2 ;
37280 int val3 ;
37281 int ecode3 = 0 ;
37282 PyObject * obj0 = 0 ;
37283 PyObject * obj1 = 0 ;
37284 PyObject * obj2 = 0 ;
37285 char * kwnames[] = {
37286 (char *) "self",(char *) "pt",(char *) "radius", NULL
37287 };
37288
37289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37291 if (!SWIG_IsOK(res1)) {
37292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37293 }
37294 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37295 {
37296 arg2 = &temp2;
37297 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37298 }
37299 ecode3 = SWIG_AsVal_int(obj2, &val3);
37300 if (!SWIG_IsOK(ecode3)) {
37301 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
37302 }
37303 arg3 = static_cast< int >(val3);
37304 {
37305 PyThreadState* __tstate = wxPyBeginAllowThreads();
37306 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
37307 wxPyEndAllowThreads(__tstate);
37308 if (PyErr_Occurred()) SWIG_fail;
37309 }
37310 resultobj = SWIG_Py_Void();
37311 return resultobj;
37312fail:
37313 return NULL;
37314}
37315
37316
37317SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37318 PyObject *resultobj = 0;
37319 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37320 int arg2 ;
37321 int arg3 ;
37322 int arg4 ;
37323 int arg5 ;
37324 void *argp1 = 0 ;
37325 int res1 = 0 ;
37326 int val2 ;
37327 int ecode2 = 0 ;
37328 int val3 ;
37329 int ecode3 = 0 ;
37330 int val4 ;
37331 int ecode4 = 0 ;
37332 int val5 ;
37333 int ecode5 = 0 ;
37334 PyObject * obj0 = 0 ;
37335 PyObject * obj1 = 0 ;
37336 PyObject * obj2 = 0 ;
37337 PyObject * obj3 = 0 ;
37338 PyObject * obj4 = 0 ;
37339 char * kwnames[] = {
37340 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37341 };
37342
37343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37345 if (!SWIG_IsOK(res1)) {
37346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37347 }
37348 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37349 ecode2 = SWIG_AsVal_int(obj1, &val2);
37350 if (!SWIG_IsOK(ecode2)) {
37351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
37352 }
37353 arg2 = static_cast< int >(val2);
37354 ecode3 = SWIG_AsVal_int(obj2, &val3);
37355 if (!SWIG_IsOK(ecode3)) {
37356 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
37357 }
37358 arg3 = static_cast< int >(val3);
37359 ecode4 = SWIG_AsVal_int(obj3, &val4);
37360 if (!SWIG_IsOK(ecode4)) {
37361 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
37362 }
37363 arg4 = static_cast< int >(val4);
37364 ecode5 = SWIG_AsVal_int(obj4, &val5);
37365 if (!SWIG_IsOK(ecode5)) {
37366 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
37367 }
37368 arg5 = static_cast< int >(val5);
37369 {
37370 PyThreadState* __tstate = wxPyBeginAllowThreads();
37371 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
37372 wxPyEndAllowThreads(__tstate);
37373 if (PyErr_Occurred()) SWIG_fail;
37374 }
37375 resultobj = SWIG_Py_Void();
37376 return resultobj;
37377fail:
37378 return NULL;
37379}
37380
37381
37382SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37383 PyObject *resultobj = 0;
37384 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37385 wxRect *arg2 = 0 ;
37386 void *argp1 = 0 ;
37387 int res1 = 0 ;
37388 wxRect temp2 ;
37389 PyObject * obj0 = 0 ;
37390 PyObject * obj1 = 0 ;
37391 char * kwnames[] = {
37392 (char *) "self",(char *) "rect", NULL
37393 };
37394
37395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37397 if (!SWIG_IsOK(res1)) {
37398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37399 }
37400 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37401 {
37402 arg2 = &temp2;
37403 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37404 }
37405 {
37406 PyThreadState* __tstate = wxPyBeginAllowThreads();
37407 (arg1)->DrawEllipse((wxRect const &)*arg2);
37408 wxPyEndAllowThreads(__tstate);
37409 if (PyErr_Occurred()) SWIG_fail;
37410 }
37411 resultobj = SWIG_Py_Void();
37412 return resultobj;
37413fail:
37414 return NULL;
37415}
37416
37417
37418SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37419 PyObject *resultobj = 0;
37420 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37421 wxPoint *arg2 = 0 ;
37422 wxSize *arg3 = 0 ;
37423 void *argp1 = 0 ;
37424 int res1 = 0 ;
37425 wxPoint temp2 ;
37426 wxSize temp3 ;
37427 PyObject * obj0 = 0 ;
37428 PyObject * obj1 = 0 ;
37429 PyObject * obj2 = 0 ;
37430 char * kwnames[] = {
37431 (char *) "self",(char *) "pt",(char *) "sz", NULL
37432 };
37433
37434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37436 if (!SWIG_IsOK(res1)) {
37437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37438 }
37439 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37440 {
37441 arg2 = &temp2;
37442 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37443 }
37444 {
37445 arg3 = &temp3;
37446 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37447 }
37448 {
37449 PyThreadState* __tstate = wxPyBeginAllowThreads();
37450 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37451 wxPyEndAllowThreads(__tstate);
37452 if (PyErr_Occurred()) SWIG_fail;
37453 }
37454 resultobj = SWIG_Py_Void();
37455 return resultobj;
37456fail:
37457 return NULL;
37458}
37459
37460
37461SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37462 PyObject *resultobj = 0;
37463 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37464 wxIcon *arg2 = 0 ;
37465 int arg3 ;
37466 int arg4 ;
37467 void *argp1 = 0 ;
37468 int res1 = 0 ;
37469 void *argp2 = 0 ;
37470 int res2 = 0 ;
37471 int val3 ;
37472 int ecode3 = 0 ;
37473 int val4 ;
37474 int ecode4 = 0 ;
37475 PyObject * obj0 = 0 ;
37476 PyObject * obj1 = 0 ;
37477 PyObject * obj2 = 0 ;
37478 PyObject * obj3 = 0 ;
37479 char * kwnames[] = {
37480 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37481 };
37482
37483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37485 if (!SWIG_IsOK(res1)) {
37486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37487 }
37488 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37489 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37490 if (!SWIG_IsOK(res2)) {
37491 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37492 }
37493 if (!argp2) {
37494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37495 }
37496 arg2 = reinterpret_cast< wxIcon * >(argp2);
37497 ecode3 = SWIG_AsVal_int(obj2, &val3);
37498 if (!SWIG_IsOK(ecode3)) {
37499 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37500 }
37501 arg3 = static_cast< int >(val3);
37502 ecode4 = SWIG_AsVal_int(obj3, &val4);
37503 if (!SWIG_IsOK(ecode4)) {
37504 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37505 }
37506 arg4 = static_cast< int >(val4);
37507 {
37508 PyThreadState* __tstate = wxPyBeginAllowThreads();
37509 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37510 wxPyEndAllowThreads(__tstate);
37511 if (PyErr_Occurred()) SWIG_fail;
37512 }
37513 resultobj = SWIG_Py_Void();
37514 return resultobj;
37515fail:
37516 return NULL;
37517}
37518
37519
37520SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37521 PyObject *resultobj = 0;
37522 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37523 wxIcon *arg2 = 0 ;
37524 wxPoint *arg3 = 0 ;
37525 void *argp1 = 0 ;
37526 int res1 = 0 ;
37527 void *argp2 = 0 ;
37528 int res2 = 0 ;
37529 wxPoint temp3 ;
37530 PyObject * obj0 = 0 ;
37531 PyObject * obj1 = 0 ;
37532 PyObject * obj2 = 0 ;
37533 char * kwnames[] = {
37534 (char *) "self",(char *) "icon",(char *) "pt", NULL
37535 };
37536
37537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37539 if (!SWIG_IsOK(res1)) {
37540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37541 }
37542 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37543 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37544 if (!SWIG_IsOK(res2)) {
37545 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37546 }
37547 if (!argp2) {
37548 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37549 }
37550 arg2 = reinterpret_cast< wxIcon * >(argp2);
37551 {
37552 arg3 = &temp3;
37553 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37554 }
37555 {
37556 PyThreadState* __tstate = wxPyBeginAllowThreads();
37557 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37558 wxPyEndAllowThreads(__tstate);
37559 if (PyErr_Occurred()) SWIG_fail;
37560 }
37561 resultobj = SWIG_Py_Void();
37562 return resultobj;
37563fail:
37564 return NULL;
37565}
37566
37567
37568SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37569 PyObject *resultobj = 0;
37570 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37571 wxBitmap *arg2 = 0 ;
37572 int arg3 ;
37573 int arg4 ;
37574 bool arg5 = (bool) false ;
37575 void *argp1 = 0 ;
37576 int res1 = 0 ;
37577 void *argp2 = 0 ;
37578 int res2 = 0 ;
37579 int val3 ;
37580 int ecode3 = 0 ;
37581 int val4 ;
37582 int ecode4 = 0 ;
37583 bool val5 ;
37584 int ecode5 = 0 ;
37585 PyObject * obj0 = 0 ;
37586 PyObject * obj1 = 0 ;
37587 PyObject * obj2 = 0 ;
37588 PyObject * obj3 = 0 ;
37589 PyObject * obj4 = 0 ;
37590 char * kwnames[] = {
37591 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37592 };
37593
37594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37596 if (!SWIG_IsOK(res1)) {
37597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37598 }
37599 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37600 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37601 if (!SWIG_IsOK(res2)) {
37602 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37603 }
37604 if (!argp2) {
37605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37606 }
37607 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37608 ecode3 = SWIG_AsVal_int(obj2, &val3);
37609 if (!SWIG_IsOK(ecode3)) {
37610 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37611 }
37612 arg3 = static_cast< int >(val3);
37613 ecode4 = SWIG_AsVal_int(obj3, &val4);
37614 if (!SWIG_IsOK(ecode4)) {
37615 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37616 }
37617 arg4 = static_cast< int >(val4);
37618 if (obj4) {
37619 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37620 if (!SWIG_IsOK(ecode5)) {
37621 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37622 }
37623 arg5 = static_cast< bool >(val5);
37624 }
37625 {
37626 PyThreadState* __tstate = wxPyBeginAllowThreads();
37627 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37628 wxPyEndAllowThreads(__tstate);
37629 if (PyErr_Occurred()) SWIG_fail;
37630 }
37631 resultobj = SWIG_Py_Void();
37632 return resultobj;
37633fail:
37634 return NULL;
37635}
37636
37637
37638SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37639 PyObject *resultobj = 0;
37640 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37641 wxBitmap *arg2 = 0 ;
37642 wxPoint *arg3 = 0 ;
37643 bool arg4 = (bool) false ;
37644 void *argp1 = 0 ;
37645 int res1 = 0 ;
37646 void *argp2 = 0 ;
37647 int res2 = 0 ;
37648 wxPoint temp3 ;
37649 bool val4 ;
37650 int ecode4 = 0 ;
37651 PyObject * obj0 = 0 ;
37652 PyObject * obj1 = 0 ;
37653 PyObject * obj2 = 0 ;
37654 PyObject * obj3 = 0 ;
37655 char * kwnames[] = {
37656 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37657 };
37658
37659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37661 if (!SWIG_IsOK(res1)) {
37662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37663 }
37664 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37665 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37666 if (!SWIG_IsOK(res2)) {
37667 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37668 }
37669 if (!argp2) {
37670 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37671 }
37672 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37673 {
37674 arg3 = &temp3;
37675 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37676 }
37677 if (obj3) {
37678 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37679 if (!SWIG_IsOK(ecode4)) {
37680 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37681 }
37682 arg4 = static_cast< bool >(val4);
37683 }
37684 {
37685 PyThreadState* __tstate = wxPyBeginAllowThreads();
37686 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37687 wxPyEndAllowThreads(__tstate);
37688 if (PyErr_Occurred()) SWIG_fail;
37689 }
37690 resultobj = SWIG_Py_Void();
37691 return resultobj;
37692fail:
37693 return NULL;
37694}
37695
37696
37697SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37698 PyObject *resultobj = 0;
37699 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37700 wxString *arg2 = 0 ;
37701 int arg3 ;
37702 int arg4 ;
37703 void *argp1 = 0 ;
37704 int res1 = 0 ;
37705 bool temp2 = false ;
37706 int val3 ;
37707 int ecode3 = 0 ;
37708 int val4 ;
37709 int ecode4 = 0 ;
37710 PyObject * obj0 = 0 ;
37711 PyObject * obj1 = 0 ;
37712 PyObject * obj2 = 0 ;
37713 PyObject * obj3 = 0 ;
37714 char * kwnames[] = {
37715 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37716 };
37717
37718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37720 if (!SWIG_IsOK(res1)) {
37721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37722 }
37723 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37724 {
37725 arg2 = wxString_in_helper(obj1);
37726 if (arg2 == NULL) SWIG_fail;
37727 temp2 = true;
37728 }
37729 ecode3 = SWIG_AsVal_int(obj2, &val3);
37730 if (!SWIG_IsOK(ecode3)) {
37731 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37732 }
37733 arg3 = static_cast< int >(val3);
37734 ecode4 = SWIG_AsVal_int(obj3, &val4);
37735 if (!SWIG_IsOK(ecode4)) {
37736 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37737 }
37738 arg4 = static_cast< int >(val4);
37739 {
37740 PyThreadState* __tstate = wxPyBeginAllowThreads();
37741 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37742 wxPyEndAllowThreads(__tstate);
37743 if (PyErr_Occurred()) SWIG_fail;
37744 }
37745 resultobj = SWIG_Py_Void();
37746 {
37747 if (temp2)
37748 delete arg2;
37749 }
37750 return resultobj;
37751fail:
37752 {
37753 if (temp2)
37754 delete arg2;
37755 }
37756 return NULL;
37757}
37758
37759
37760SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37761 PyObject *resultobj = 0;
37762 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37763 wxString *arg2 = 0 ;
37764 wxPoint *arg3 = 0 ;
37765 void *argp1 = 0 ;
37766 int res1 = 0 ;
37767 bool temp2 = false ;
37768 wxPoint temp3 ;
37769 PyObject * obj0 = 0 ;
37770 PyObject * obj1 = 0 ;
37771 PyObject * obj2 = 0 ;
37772 char * kwnames[] = {
37773 (char *) "self",(char *) "text",(char *) "pt", NULL
37774 };
37775
37776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37778 if (!SWIG_IsOK(res1)) {
37779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37780 }
37781 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37782 {
37783 arg2 = wxString_in_helper(obj1);
37784 if (arg2 == NULL) SWIG_fail;
37785 temp2 = true;
37786 }
37787 {
37788 arg3 = &temp3;
37789 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37790 }
37791 {
37792 PyThreadState* __tstate = wxPyBeginAllowThreads();
37793 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37794 wxPyEndAllowThreads(__tstate);
37795 if (PyErr_Occurred()) SWIG_fail;
37796 }
37797 resultobj = SWIG_Py_Void();
37798 {
37799 if (temp2)
37800 delete arg2;
37801 }
37802 return resultobj;
37803fail:
37804 {
37805 if (temp2)
37806 delete arg2;
37807 }
37808 return NULL;
37809}
37810
37811
37812SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37813 PyObject *resultobj = 0;
37814 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37815 wxString *arg2 = 0 ;
37816 int arg3 ;
37817 int arg4 ;
37818 double arg5 ;
37819 void *argp1 = 0 ;
37820 int res1 = 0 ;
37821 bool temp2 = false ;
37822 int val3 ;
37823 int ecode3 = 0 ;
37824 int val4 ;
37825 int ecode4 = 0 ;
37826 double val5 ;
37827 int ecode5 = 0 ;
37828 PyObject * obj0 = 0 ;
37829 PyObject * obj1 = 0 ;
37830 PyObject * obj2 = 0 ;
37831 PyObject * obj3 = 0 ;
37832 PyObject * obj4 = 0 ;
37833 char * kwnames[] = {
37834 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37835 };
37836
37837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37839 if (!SWIG_IsOK(res1)) {
37840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37841 }
37842 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37843 {
37844 arg2 = wxString_in_helper(obj1);
37845 if (arg2 == NULL) SWIG_fail;
37846 temp2 = true;
37847 }
37848 ecode3 = SWIG_AsVal_int(obj2, &val3);
37849 if (!SWIG_IsOK(ecode3)) {
37850 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37851 }
37852 arg3 = static_cast< int >(val3);
37853 ecode4 = SWIG_AsVal_int(obj3, &val4);
37854 if (!SWIG_IsOK(ecode4)) {
37855 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37856 }
37857 arg4 = static_cast< int >(val4);
37858 ecode5 = SWIG_AsVal_double(obj4, &val5);
37859 if (!SWIG_IsOK(ecode5)) {
37860 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37861 }
37862 arg5 = static_cast< double >(val5);
37863 {
37864 PyThreadState* __tstate = wxPyBeginAllowThreads();
37865 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37866 wxPyEndAllowThreads(__tstate);
37867 if (PyErr_Occurred()) SWIG_fail;
37868 }
37869 resultobj = SWIG_Py_Void();
37870 {
37871 if (temp2)
37872 delete arg2;
37873 }
37874 return resultobj;
37875fail:
37876 {
37877 if (temp2)
37878 delete arg2;
37879 }
37880 return NULL;
37881}
37882
37883
37884SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37885 PyObject *resultobj = 0;
37886 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37887 wxString *arg2 = 0 ;
37888 wxPoint *arg3 = 0 ;
37889 double arg4 ;
37890 void *argp1 = 0 ;
37891 int res1 = 0 ;
37892 bool temp2 = false ;
37893 wxPoint temp3 ;
37894 double val4 ;
37895 int ecode4 = 0 ;
37896 PyObject * obj0 = 0 ;
37897 PyObject * obj1 = 0 ;
37898 PyObject * obj2 = 0 ;
37899 PyObject * obj3 = 0 ;
37900 char * kwnames[] = {
37901 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37902 };
37903
37904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37906 if (!SWIG_IsOK(res1)) {
37907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37908 }
37909 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37910 {
37911 arg2 = wxString_in_helper(obj1);
37912 if (arg2 == NULL) SWIG_fail;
37913 temp2 = true;
37914 }
37915 {
37916 arg3 = &temp3;
37917 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37918 }
37919 ecode4 = SWIG_AsVal_double(obj3, &val4);
37920 if (!SWIG_IsOK(ecode4)) {
37921 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37922 }
37923 arg4 = static_cast< double >(val4);
37924 {
37925 PyThreadState* __tstate = wxPyBeginAllowThreads();
37926 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37927 wxPyEndAllowThreads(__tstate);
37928 if (PyErr_Occurred()) SWIG_fail;
37929 }
37930 resultobj = SWIG_Py_Void();
37931 {
37932 if (temp2)
37933 delete arg2;
37934 }
37935 return resultobj;
37936fail:
37937 {
37938 if (temp2)
37939 delete arg2;
37940 }
37941 return NULL;
37942}
37943
37944
37945SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37946 PyObject *resultobj = 0;
37947 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37948 int arg2 ;
37949 wxPoint *arg3 = (wxPoint *) 0 ;
37950 int arg4 = (int) 0 ;
37951 int arg5 = (int) 0 ;
37952 void *argp1 = 0 ;
37953 int res1 = 0 ;
37954 int val4 ;
37955 int ecode4 = 0 ;
37956 int val5 ;
37957 int ecode5 = 0 ;
37958 PyObject * obj0 = 0 ;
37959 PyObject * obj1 = 0 ;
37960 PyObject * obj2 = 0 ;
37961 PyObject * obj3 = 0 ;
37962 char * kwnames[] = {
37963 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37964 };
37965
37966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37968 if (!SWIG_IsOK(res1)) {
37969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37970 }
37971 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37972 {
37973 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37974 if (arg3 == NULL) SWIG_fail;
37975 }
37976 if (obj2) {
37977 ecode4 = SWIG_AsVal_int(obj2, &val4);
37978 if (!SWIG_IsOK(ecode4)) {
37979 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37980 }
37981 arg4 = static_cast< int >(val4);
37982 }
37983 if (obj3) {
37984 ecode5 = SWIG_AsVal_int(obj3, &val5);
37985 if (!SWIG_IsOK(ecode5)) {
37986 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37987 }
37988 arg5 = static_cast< int >(val5);
37989 }
37990 {
37991 PyThreadState* __tstate = wxPyBeginAllowThreads();
37992 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37993 wxPyEndAllowThreads(__tstate);
37994 if (PyErr_Occurred()) SWIG_fail;
37995 }
37996 resultobj = SWIG_Py_Void();
37997 {
37998 if (arg3) delete [] arg3;
37999 }
38000 return resultobj;
38001fail:
38002 {
38003 if (arg3) delete [] arg3;
38004 }
38005 return NULL;
38006}
38007
38008
38009SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38010 PyObject *resultobj = 0;
38011 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38012 int arg2 ;
38013 wxPoint *arg3 = (wxPoint *) 0 ;
38014 int arg4 = (int) 0 ;
38015 int arg5 = (int) 0 ;
38016 int arg6 = (int) wxODDEVEN_RULE ;
38017 void *argp1 = 0 ;
38018 int res1 = 0 ;
38019 int val4 ;
38020 int ecode4 = 0 ;
38021 int val5 ;
38022 int ecode5 = 0 ;
38023 int val6 ;
38024 int ecode6 = 0 ;
38025 PyObject * obj0 = 0 ;
38026 PyObject * obj1 = 0 ;
38027 PyObject * obj2 = 0 ;
38028 PyObject * obj3 = 0 ;
38029 PyObject * obj4 = 0 ;
38030 char * kwnames[] = {
38031 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
38032 };
38033
38034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38036 if (!SWIG_IsOK(res1)) {
38037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38038 }
38039 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38040 {
38041 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38042 if (arg3 == NULL) SWIG_fail;
38043 }
38044 if (obj2) {
38045 ecode4 = SWIG_AsVal_int(obj2, &val4);
38046 if (!SWIG_IsOK(ecode4)) {
38047 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
38048 }
38049 arg4 = static_cast< int >(val4);
38050 }
38051 if (obj3) {
38052 ecode5 = SWIG_AsVal_int(obj3, &val5);
38053 if (!SWIG_IsOK(ecode5)) {
38054 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
38055 }
38056 arg5 = static_cast< int >(val5);
38057 }
38058 if (obj4) {
38059 ecode6 = SWIG_AsVal_int(obj4, &val6);
38060 if (!SWIG_IsOK(ecode6)) {
38061 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
38062 }
38063 arg6 = static_cast< int >(val6);
38064 }
38065 {
38066 PyThreadState* __tstate = wxPyBeginAllowThreads();
38067 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
38068 wxPyEndAllowThreads(__tstate);
38069 if (PyErr_Occurred()) SWIG_fail;
38070 }
38071 resultobj = SWIG_Py_Void();
38072 {
38073 if (arg3) delete [] arg3;
38074 }
38075 return resultobj;
38076fail:
38077 {
38078 if (arg3) delete [] arg3;
38079 }
38080 return NULL;
38081}
38082
38083
38084SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38085 PyObject *resultobj = 0;
38086 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38087 wxString *arg2 = 0 ;
38088 wxRect *arg3 = 0 ;
38089 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38090 int arg5 = (int) -1 ;
38091 void *argp1 = 0 ;
38092 int res1 = 0 ;
38093 bool temp2 = false ;
38094 wxRect temp3 ;
38095 int val4 ;
38096 int ecode4 = 0 ;
38097 int val5 ;
38098 int ecode5 = 0 ;
38099 PyObject * obj0 = 0 ;
38100 PyObject * obj1 = 0 ;
38101 PyObject * obj2 = 0 ;
38102 PyObject * obj3 = 0 ;
38103 PyObject * obj4 = 0 ;
38104 char * kwnames[] = {
38105 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38106 };
38107
38108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38110 if (!SWIG_IsOK(res1)) {
38111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38112 }
38113 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38114 {
38115 arg2 = wxString_in_helper(obj1);
38116 if (arg2 == NULL) SWIG_fail;
38117 temp2 = true;
38118 }
38119 {
38120 arg3 = &temp3;
38121 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
38122 }
38123 if (obj3) {
38124 ecode4 = SWIG_AsVal_int(obj3, &val4);
38125 if (!SWIG_IsOK(ecode4)) {
38126 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
38127 }
38128 arg4 = static_cast< int >(val4);
38129 }
38130 if (obj4) {
38131 ecode5 = SWIG_AsVal_int(obj4, &val5);
38132 if (!SWIG_IsOK(ecode5)) {
38133 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
38134 }
38135 arg5 = static_cast< int >(val5);
38136 }
38137 {
38138 PyThreadState* __tstate = wxPyBeginAllowThreads();
38139 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
38140 wxPyEndAllowThreads(__tstate);
38141 if (PyErr_Occurred()) SWIG_fail;
38142 }
38143 resultobj = SWIG_Py_Void();
38144 {
38145 if (temp2)
38146 delete arg2;
38147 }
38148 return resultobj;
38149fail:
38150 {
38151 if (temp2)
38152 delete arg2;
38153 }
38154 return NULL;
38155}
38156
38157
38158SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38159 PyObject *resultobj = 0;
38160 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38161 wxString *arg2 = 0 ;
38162 wxBitmap *arg3 = 0 ;
38163 wxRect *arg4 = 0 ;
38164 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38165 int arg6 = (int) -1 ;
38166 void *argp1 = 0 ;
38167 int res1 = 0 ;
38168 bool temp2 = false ;
38169 void *argp3 = 0 ;
38170 int res3 = 0 ;
38171 wxRect temp4 ;
38172 int val5 ;
38173 int ecode5 = 0 ;
38174 int val6 ;
38175 int ecode6 = 0 ;
38176 PyObject * obj0 = 0 ;
38177 PyObject * obj1 = 0 ;
38178 PyObject * obj2 = 0 ;
38179 PyObject * obj3 = 0 ;
38180 PyObject * obj4 = 0 ;
38181 PyObject * obj5 = 0 ;
38182 char * kwnames[] = {
38183 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38184 };
38185
38186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38188 if (!SWIG_IsOK(res1)) {
38189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38190 }
38191 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38192 {
38193 arg2 = wxString_in_helper(obj1);
38194 if (arg2 == NULL) SWIG_fail;
38195 temp2 = true;
38196 }
38197 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
38198 if (!SWIG_IsOK(res3)) {
38199 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38200 }
38201 if (!argp3) {
38202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38203 }
38204 arg3 = reinterpret_cast< wxBitmap * >(argp3);
38205 {
38206 arg4 = &temp4;
38207 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
38208 }
38209 if (obj4) {
38210 ecode5 = SWIG_AsVal_int(obj4, &val5);
38211 if (!SWIG_IsOK(ecode5)) {
38212 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
38213 }
38214 arg5 = static_cast< int >(val5);
38215 }
38216 if (obj5) {
38217 ecode6 = SWIG_AsVal_int(obj5, &val6);
38218 if (!SWIG_IsOK(ecode6)) {
38219 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
38220 }
38221 arg6 = static_cast< int >(val6);
38222 }
38223 {
38224 PyThreadState* __tstate = wxPyBeginAllowThreads();
38225 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
38226 wxPyEndAllowThreads(__tstate);
38227 if (PyErr_Occurred()) SWIG_fail;
38228 }
38229 resultobj = SWIG_Py_Void();
38230 {
38231 if (temp2)
38232 delete arg2;
38233 }
38234 return resultobj;
38235fail:
38236 {
38237 if (temp2)
38238 delete arg2;
38239 }
38240 return NULL;
38241}
38242
38243
38244SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38245 PyObject *resultobj = 0;
38246 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38247 int arg2 ;
38248 wxPoint *arg3 = (wxPoint *) 0 ;
38249 void *argp1 = 0 ;
38250 int res1 = 0 ;
38251 PyObject * obj0 = 0 ;
38252 PyObject * obj1 = 0 ;
38253 char * kwnames[] = {
38254 (char *) "self",(char *) "points", NULL
38255 };
38256
38257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
38258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38259 if (!SWIG_IsOK(res1)) {
38260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38261 }
38262 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38263 {
38264 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38265 if (arg3 == NULL) SWIG_fail;
38266 }
38267 {
38268 PyThreadState* __tstate = wxPyBeginAllowThreads();
38269 (arg1)->DrawSpline(arg2,arg3);
38270 wxPyEndAllowThreads(__tstate);
38271 if (PyErr_Occurred()) SWIG_fail;
38272 }
38273 resultobj = SWIG_Py_Void();
38274 {
38275 if (arg3) delete [] arg3;
38276 }
38277 return resultobj;
38278fail:
38279 {
38280 if (arg3) delete [] arg3;
38281 }
38282 return NULL;
38283}
38284
38285
38286SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38287 PyObject *resultobj = 0;
38288 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38289 void *argp1 = 0 ;
38290 int res1 = 0 ;
38291 PyObject *swig_obj[1] ;
38292
38293 if (!args) SWIG_fail;
38294 swig_obj[0] = args;
38295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38296 if (!SWIG_IsOK(res1)) {
38297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38298 }
38299 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38300 {
38301 PyThreadState* __tstate = wxPyBeginAllowThreads();
38302 (arg1)->Clear();
38303 wxPyEndAllowThreads(__tstate);
38304 if (PyErr_Occurred()) SWIG_fail;
38305 }
38306 resultobj = SWIG_Py_Void();
38307 return resultobj;
38308fail:
38309 return NULL;
38310}
38311
38312
38313SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38314 PyObject *resultobj = 0;
38315 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38316 wxFont *arg2 = 0 ;
38317 void *argp1 = 0 ;
38318 int res1 = 0 ;
38319 void *argp2 = 0 ;
38320 int res2 = 0 ;
38321 PyObject * obj0 = 0 ;
38322 PyObject * obj1 = 0 ;
38323 char * kwnames[] = {
38324 (char *) "self",(char *) "font", NULL
38325 };
38326
38327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38329 if (!SWIG_IsOK(res1)) {
38330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38331 }
38332 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38333 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38334 if (!SWIG_IsOK(res2)) {
38335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38336 }
38337 if (!argp2) {
38338 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38339 }
38340 arg2 = reinterpret_cast< wxFont * >(argp2);
38341 {
38342 PyThreadState* __tstate = wxPyBeginAllowThreads();
38343 (arg1)->SetFont((wxFont const &)*arg2);
38344 wxPyEndAllowThreads(__tstate);
38345 if (PyErr_Occurred()) SWIG_fail;
38346 }
38347 resultobj = SWIG_Py_Void();
38348 return resultobj;
38349fail:
38350 return NULL;
38351}
38352
38353
38354SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38355 PyObject *resultobj = 0;
38356 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38357 wxPen *arg2 = 0 ;
38358 void *argp1 = 0 ;
38359 int res1 = 0 ;
38360 void *argp2 = 0 ;
38361 int res2 = 0 ;
38362 PyObject * obj0 = 0 ;
38363 PyObject * obj1 = 0 ;
38364 char * kwnames[] = {
38365 (char *) "self",(char *) "pen", NULL
38366 };
38367
38368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
38369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38370 if (!SWIG_IsOK(res1)) {
38371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38372 }
38373 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38374 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
38375 if (!SWIG_IsOK(res2)) {
38376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38377 }
38378 if (!argp2) {
38379 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38380 }
38381 arg2 = reinterpret_cast< wxPen * >(argp2);
38382 {
38383 PyThreadState* __tstate = wxPyBeginAllowThreads();
38384 (arg1)->SetPen((wxPen const &)*arg2);
38385 wxPyEndAllowThreads(__tstate);
38386 if (PyErr_Occurred()) SWIG_fail;
38387 }
38388 resultobj = SWIG_Py_Void();
38389 return resultobj;
38390fail:
38391 return NULL;
38392}
38393
38394
38395SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38396 PyObject *resultobj = 0;
38397 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38398 wxBrush *arg2 = 0 ;
38399 void *argp1 = 0 ;
38400 int res1 = 0 ;
38401 void *argp2 = 0 ;
38402 int res2 = 0 ;
38403 PyObject * obj0 = 0 ;
38404 PyObject * obj1 = 0 ;
38405 char * kwnames[] = {
38406 (char *) "self",(char *) "brush", NULL
38407 };
38408
38409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38411 if (!SWIG_IsOK(res1)) {
38412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38413 }
38414 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38415 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38416 if (!SWIG_IsOK(res2)) {
38417 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38418 }
38419 if (!argp2) {
38420 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38421 }
38422 arg2 = reinterpret_cast< wxBrush * >(argp2);
38423 {
38424 PyThreadState* __tstate = wxPyBeginAllowThreads();
38425 (arg1)->SetBrush((wxBrush const &)*arg2);
38426 wxPyEndAllowThreads(__tstate);
38427 if (PyErr_Occurred()) SWIG_fail;
38428 }
38429 resultobj = SWIG_Py_Void();
38430 return resultobj;
38431fail:
38432 return NULL;
38433}
38434
38435
38436SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38437 PyObject *resultobj = 0;
38438 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38439 wxBrush *arg2 = 0 ;
38440 void *argp1 = 0 ;
38441 int res1 = 0 ;
38442 void *argp2 = 0 ;
38443 int res2 = 0 ;
38444 PyObject * obj0 = 0 ;
38445 PyObject * obj1 = 0 ;
38446 char * kwnames[] = {
38447 (char *) "self",(char *) "brush", NULL
38448 };
38449
38450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38452 if (!SWIG_IsOK(res1)) {
38453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38454 }
38455 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38456 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38457 if (!SWIG_IsOK(res2)) {
38458 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38459 }
38460 if (!argp2) {
38461 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38462 }
38463 arg2 = reinterpret_cast< wxBrush * >(argp2);
38464 {
38465 PyThreadState* __tstate = wxPyBeginAllowThreads();
38466 (arg1)->SetBackground((wxBrush const &)*arg2);
38467 wxPyEndAllowThreads(__tstate);
38468 if (PyErr_Occurred()) SWIG_fail;
38469 }
38470 resultobj = SWIG_Py_Void();
38471 return resultobj;
38472fail:
38473 return NULL;
38474}
38475
38476
38477SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38478 PyObject *resultobj = 0;
38479 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38480 int arg2 ;
38481 void *argp1 = 0 ;
38482 int res1 = 0 ;
38483 int val2 ;
38484 int ecode2 = 0 ;
38485 PyObject * obj0 = 0 ;
38486 PyObject * obj1 = 0 ;
38487 char * kwnames[] = {
38488 (char *) "self",(char *) "mode", NULL
38489 };
38490
38491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38493 if (!SWIG_IsOK(res1)) {
38494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38495 }
38496 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38497 ecode2 = SWIG_AsVal_int(obj1, &val2);
38498 if (!SWIG_IsOK(ecode2)) {
38499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38500 }
38501 arg2 = static_cast< int >(val2);
38502 {
38503 PyThreadState* __tstate = wxPyBeginAllowThreads();
38504 (arg1)->SetBackgroundMode(arg2);
38505 wxPyEndAllowThreads(__tstate);
38506 if (PyErr_Occurred()) SWIG_fail;
38507 }
38508 resultobj = SWIG_Py_Void();
38509 return resultobj;
38510fail:
38511 return NULL;
38512}
38513
38514
38515SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38516 PyObject *resultobj = 0;
38517 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38518 wxPalette *arg2 = 0 ;
38519 void *argp1 = 0 ;
38520 int res1 = 0 ;
38521 void *argp2 = 0 ;
38522 int res2 = 0 ;
38523 PyObject * obj0 = 0 ;
38524 PyObject * obj1 = 0 ;
38525 char * kwnames[] = {
38526 (char *) "self",(char *) "palette", NULL
38527 };
38528
38529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38531 if (!SWIG_IsOK(res1)) {
38532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38533 }
38534 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38535 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38536 if (!SWIG_IsOK(res2)) {
38537 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38538 }
38539 if (!argp2) {
38540 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38541 }
38542 arg2 = reinterpret_cast< wxPalette * >(argp2);
38543 {
38544 PyThreadState* __tstate = wxPyBeginAllowThreads();
38545 (arg1)->SetPalette((wxPalette const &)*arg2);
38546 wxPyEndAllowThreads(__tstate);
38547 if (PyErr_Occurred()) SWIG_fail;
38548 }
38549 resultobj = SWIG_Py_Void();
38550 return resultobj;
38551fail:
38552 return NULL;
38553}
38554
38555
38556SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38557 PyObject *resultobj = 0;
38558 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38559 wxColour *arg2 = 0 ;
38560 void *argp1 = 0 ;
38561 int res1 = 0 ;
38562 wxColour temp2 ;
38563 PyObject * obj0 = 0 ;
38564 PyObject * obj1 = 0 ;
38565 char * kwnames[] = {
38566 (char *) "self",(char *) "colour", NULL
38567 };
38568
38569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38571 if (!SWIG_IsOK(res1)) {
38572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38573 }
38574 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38575 {
38576 arg2 = &temp2;
38577 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38578 }
38579 {
38580 PyThreadState* __tstate = wxPyBeginAllowThreads();
38581 (arg1)->SetTextForeground((wxColour const &)*arg2);
38582 wxPyEndAllowThreads(__tstate);
38583 if (PyErr_Occurred()) SWIG_fail;
38584 }
38585 resultobj = SWIG_Py_Void();
38586 return resultobj;
38587fail:
38588 return NULL;
38589}
38590
38591
38592SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38593 PyObject *resultobj = 0;
38594 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38595 wxColour *arg2 = 0 ;
38596 void *argp1 = 0 ;
38597 int res1 = 0 ;
38598 wxColour temp2 ;
38599 PyObject * obj0 = 0 ;
38600 PyObject * obj1 = 0 ;
38601 char * kwnames[] = {
38602 (char *) "self",(char *) "colour", NULL
38603 };
38604
38605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38607 if (!SWIG_IsOK(res1)) {
38608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38609 }
38610 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38611 {
38612 arg2 = &temp2;
38613 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38614 }
38615 {
38616 PyThreadState* __tstate = wxPyBeginAllowThreads();
38617 (arg1)->SetTextBackground((wxColour const &)*arg2);
38618 wxPyEndAllowThreads(__tstate);
38619 if (PyErr_Occurred()) SWIG_fail;
38620 }
38621 resultobj = SWIG_Py_Void();
38622 return resultobj;
38623fail:
38624 return NULL;
38625}
38626
38627
38628SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38629 PyObject *resultobj = 0;
38630 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38631 int arg2 ;
38632 void *argp1 = 0 ;
38633 int res1 = 0 ;
38634 int val2 ;
38635 int ecode2 = 0 ;
38636 PyObject * obj0 = 0 ;
38637 PyObject * obj1 = 0 ;
38638 char * kwnames[] = {
38639 (char *) "self",(char *) "function", NULL
38640 };
38641
38642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38644 if (!SWIG_IsOK(res1)) {
38645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38646 }
38647 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38648 ecode2 = SWIG_AsVal_int(obj1, &val2);
38649 if (!SWIG_IsOK(ecode2)) {
38650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38651 }
38652 arg2 = static_cast< int >(val2);
38653 {
38654 PyThreadState* __tstate = wxPyBeginAllowThreads();
38655 (arg1)->SetLogicalFunction(arg2);
38656 wxPyEndAllowThreads(__tstate);
38657 if (PyErr_Occurred()) SWIG_fail;
38658 }
38659 resultobj = SWIG_Py_Void();
38660 return resultobj;
38661fail:
38662 return NULL;
38663}
38664
38665
38666SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38667 PyObject *obj;
38668 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38669 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38670 return SWIG_Py_Void();
38671}
38672
38673SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38674 return SWIG_Python_InitShadowInstance(args);
38675}
38676
38677static PyMethodDef SwigMethods[] = {
38678 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38679 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38680 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38681 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38682 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38683 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38684 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38685 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38686 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38687 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38688 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38689 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 38690 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 38691 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
38692 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38693 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38694 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38695 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38696 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38697 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38698 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 38699 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38700 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38701 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38702 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38703 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38704 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38705 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38706 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38707 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 38708 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
38709 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38710 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38711 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38712 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38713 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38714 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38715 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38716 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38717 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 38718 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
38719 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38720 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38721 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38722 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38723 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38724 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38725 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38726 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38727 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
38728 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
38729 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38730 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38731 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38732 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38733 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38734 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38735 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38736 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38737 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38738 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38739 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38740 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38741 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38742 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38743 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 38744 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
38745 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38746 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38747 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38748 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38749 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38750 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38751 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38752 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38753 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
38754 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
38755 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38756 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
38757 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38758 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38759 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38760 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38761 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38762 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38763 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38764 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38765 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38766 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38767 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38768 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38769 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38770 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38771 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38772 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38773 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38774 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38775 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38776 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38777 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38778 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38779 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38780 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38781 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38782 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38783 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38784 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38785 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38786 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38787 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38788 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38789 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38790 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38791 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38792 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38793 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38794 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38795 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38796 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38797 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38798 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38799 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38800 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38801 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38802 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38803 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38804 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38805 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38806 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38807 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38808 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38809 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38810 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38811 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38812 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38813 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38814 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38815 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38816 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38817 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38818 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38819 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38820 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38821 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38822 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38823 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38824 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38825 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38826 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38827 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38828 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
38829 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38830 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38831 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38832 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38833 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38834 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38835 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38836 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38837 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38838 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38839 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38840 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
38841 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38842 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
38843 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38844 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38845 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38846 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38847 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38848 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38849 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38850 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38851 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38852 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38853 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38854 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38855 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38856 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38857 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38858 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38859 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38860 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38861 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38862 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38863 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38864 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38865 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38866 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38867 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38868 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38869 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38870 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38871 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38872 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38873 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38874 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38875 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
38876 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38877 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
38878 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
38879 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
38880 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
38881 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38882 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38883 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38884 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38885 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38886 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38887 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38888 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38889 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38890 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38891 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38892 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38893 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38894 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38895 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38896 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38897 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38898 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38899 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38900 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38901 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38902 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 38903 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38904 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38905 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38906 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38907 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38908 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38909 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38910 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38911 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38912 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38913 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38914 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38915 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38916 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38917 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38918 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38919 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38920 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38921 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38922 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38923 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38924 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38925 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38926 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38927 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38928 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38929 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38930 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38931 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38932 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38933 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38934 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38935 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38936 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38937 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38938 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
38939 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38940 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38941 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38942 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38943 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38944 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38945 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38946 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38947 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38948 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38949 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38950 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38951 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38952 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38953 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38954 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38955 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38956 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38957 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38958 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38959 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38960 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38961 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38962 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38963 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38964 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38965 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38966 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38967 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38968 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38969 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38970 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38971 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38972 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38973 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38974 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38975 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38976 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38977 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38978 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
38979 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38980 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38981 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38982 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38983 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38984 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38985 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38986 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38987 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38988 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38989 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38990 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38991 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38992 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38993 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38994 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38995 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38996 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38997 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
554f62e9
RD
38998 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38999 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39000 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
39001 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
39002 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
39003 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
39004 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
39005 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
39006 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
39007 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
39008 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
39009 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
39010 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
39011 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
39012 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
39013 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39014 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39015 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39016 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39017 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39018 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39019 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39020 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39021 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39022 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
39023 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
39024 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
39025 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
39026 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
39027 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
39028 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
39029 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
39030 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39031 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
39032 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
39033 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
39034 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
39035 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39036 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
39037 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
39038 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
39039 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
39040 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39041 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
39042 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
39043 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
39044 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
39045 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
39046 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
39047 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
39048 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
39049 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
39050 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
39051 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
39052 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
39053 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
39054 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
39055 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
39056 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
39057 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
39058 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
39059 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
39060 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
39061 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
39062 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
39063 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 39064 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39065 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
39066 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39067 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
39068 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39069 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
39070 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
39071 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
39072 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
39073 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
39074 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
39075 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
39076 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39077 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
39078 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
39079 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
39080 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39081 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
39082 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
39083 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
39084 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
39085 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
39086 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
39087 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39088 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39089 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
39090 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
39091 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
39092 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
39093 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39094 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39095 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
39096 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
39097 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39098 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39099 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39100 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39101 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39102 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39103 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39104 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39105 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39106 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39107 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39108 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39109 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39110 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39111 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39112 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39113 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39114 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39115 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39116 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39117 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39118 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39119 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39120 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39121 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39122 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39123 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39124 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39125 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39126 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39127 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39128 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39129 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39130 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
39131 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39132 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39133 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39134 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39135 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
39136 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39137 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39138 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39139 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39140 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39141 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
39142 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
39143 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
39144 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
39145 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
39146 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39147 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39148 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39149 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39150 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39151 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39152 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
39153 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
39154 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
39155 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
39156 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
39157 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39158 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39159 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39160 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39161 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
39162 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
39163 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
39164 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
39165 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
39166 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
39167 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39168 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39169 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
39170 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
39171 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39172 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39173 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
39174 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
39175 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
39176 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 39177 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
554f62e9
RD
39178 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
39179 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
39180 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
39181 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
39182 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
39183 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
39184 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
39185 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39186 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39187 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
39188 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
39189 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
39190 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
39191 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
39192 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
39193 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
39194 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
39195 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39196 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39197 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
39198 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
39199 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39200 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39201 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
39202 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
39203 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39204 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
39205 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
39206 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39207 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
39208 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
39209 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
39210 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
39211 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
39212 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
39213 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
39214 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39215 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
39216 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
39217 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
39218 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
39219 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
39220 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
39221 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
39222 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39223 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39224 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
39225 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
39226 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
39227 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39228 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
39229 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
39230 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
39231 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39232 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
39233 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
39234 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
39235 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
39236 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
39237 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
39238 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
8e99bda9 39239 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39240 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
39241 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
39242 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
39243 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39244 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
39245 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
39246 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
39247 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
39248 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
39249 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
39250 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
39251 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
39252 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39253 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
39254 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
39255 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
39256 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39257 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
39258 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
39259 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
39260 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
39261 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
39262 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
39263 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
39264 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39265 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
39266 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
39267 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39268 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
39269 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 39270 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39271 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
39272 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
39273 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
39274 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
39275 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
39276 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
39277 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
39278 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
39279 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
39280 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
39281 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
39282 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
b39fe951 39283 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
554f62e9
RD
39284 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
39285 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
39286 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
39287 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
39288 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
39289 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
39290 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
39291 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
39292 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
39293 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
39294 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
39295 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
39296 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
39297 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
39298 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
39299 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
39300 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
39301 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
39302 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
39303 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
39304 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
39305 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
39306 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
39307 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
39308 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
39309 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
39310 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
39311 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
39312 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
39313 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
39314 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
39315 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
72ef6efb 39316 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
70d7cb34
RD
39317 { (char *)"GraphicsPath_Clone", (PyCFunction)_wrap_GraphicsPath_Clone, METH_O, NULL},
39318 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
39319 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
39320 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
39321 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39322 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
39323 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
70d7cb34 39324 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
72ef6efb
RD
39325 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39326 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39327 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39328 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
39329 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39330 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39331 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
39332 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
39333 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
39334 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
39335 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
72ef6efb 39336 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39337 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
39338 { (char *)"GraphicsMatrix_Clone", (PyCFunction)_wrap_GraphicsMatrix_Clone, METH_O, NULL},
39339 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
39340 { (char *)"GraphicsMatrix_Copy", (PyCFunction) _wrap_GraphicsMatrix_Copy, METH_VARARGS | METH_KEYWORDS, NULL},
39341 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39342 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
39343 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39344 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
39345 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39346 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39347 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39348 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39349 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
39350 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
39351 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
72ef6efb 39352 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394
RD
39353 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
39354 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39355 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 39356 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
70d7cb34
RD
39357 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39358 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39359 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39360 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39361 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39362 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39363 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
39364 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 39365 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 39366 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
39367 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
39368 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
72ef6efb
RD
39369 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39370 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39371 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
39372 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
39373 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
39374 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
72ef6efb
RD
39375 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
39376 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
39377 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
39378 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39379 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 39380 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39381 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39382 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39383 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39384 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39385 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39386 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 39387 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39388 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39389 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39390 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39391 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39392 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
72ef6efb 39393 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39394 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39395 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39396 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
39397 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39398 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39399 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39400 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39401 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39402 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39403 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39404 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39405 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39406 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
72ef6efb
RD
39407 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
39408 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
39409 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39410 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39411 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39412 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
39413 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39414 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39415 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39416 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39417 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39418 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39419 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39420 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39421 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39422 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39423 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39424 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39425 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39426 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39427 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39428 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39429 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39430 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39431 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39432 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39433 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39434 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39435 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39436 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39437 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
50efceee
RD
39438 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39439 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39440 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39441 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39442 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39443 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39444 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39445 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39446 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39447 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39448 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39449 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39450 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39451 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39452 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
554f62e9 39453 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 39454 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 39455 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 39456 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
554f62e9 39457 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 39458 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 39459 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 39460 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
50efceee
RD
39461 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39462 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
39463 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
39464 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
554f62e9
RD
39465 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39466 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39467 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39468 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39469 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39470 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39471 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39472 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
50efceee
RD
39473 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39474 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39475 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39476 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
554f62e9
RD
39477 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39478 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39479 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39480 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39481 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39482 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39483 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39484 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39485 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39486 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39487 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39488 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39489 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39490 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39491 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39492 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39493 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39494 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39495 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39496 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39497 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39498 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39499 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
39500 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39501 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39502 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39503 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39504 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39505 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39506 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39507 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39508 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39509 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39510 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39511 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39512 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39513 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39514 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39515 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39516 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39517 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39518 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39519 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39520 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39521 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39522 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39523 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39524 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39525 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
39526 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39527 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39528 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39529 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39530 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39531 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39532 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
f460c29d
RD
39533 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39534 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39535 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
39536 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39537 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39538 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39539 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39540 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39541 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39542 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
39543 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39544 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39545 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39546 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39547 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39548 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39549 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39550 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39551 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39552 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39553 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39554 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39555 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39556 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39557 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39558 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39559 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39560 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39561 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39562 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39563 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39564 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39565 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39566 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39567 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39568 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39569 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39570 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39571 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39572 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39573 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39574 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39575 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39576 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39577 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39578 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39579 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39580 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39581 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39582 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39583 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39584 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39585 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39586 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39587 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39588 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39589 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39590 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39591 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39592 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39593 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39594 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39595 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39596 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39597 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39598 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39599 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39600 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39601 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39602 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39603 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39604 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39605 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39606 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39607 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39608 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39609 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39610 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39611 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39612 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
554f62e9
RD
39613 { NULL, NULL, 0, NULL }
39614};
39615
39616
39617/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39618
72ef6efb
RD
39619static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39620 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39621}
8e99bda9
RD
39622static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39623 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39624}
39625static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39626 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39627}
72ef6efb
RD
39628static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39629 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39630}
39631static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39632 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39633}
fc46b7f3
RD
39634static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39635 return (void *)((wxLocale *) ((wxPyLocale *) x));
39636}
70d7cb34
RD
39637static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39638 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39639}
39640static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39641 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39642}
39643static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39644 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39645}
39646static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39647 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39648}
39649static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39650 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39651}
39652static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39653 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39654}
554f62e9
RD
39655static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39656 return (void *)((wxGDIObject *) ((wxIcon *) x));
39657}
39658static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39659 return (void *)((wxGDIObject *) ((wxPalette *) x));
39660}
39661static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39662 return (void *)((wxGDIObject *) ((wxPen *) x));
39663}
39664static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39665 return (void *)((wxGDIObject *) ((wxFont *) x));
39666}
39667static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39668 return (void *)((wxGDIObject *) ((wxCursor *) x));
39669}
39670static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39671 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39672}
39673static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39674 return (void *)((wxGDIObject *) ((wxRegion *) x));
39675}
39676static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39677 return (void *)((wxGDIObject *) ((wxBrush *) x));
39678}
72ef6efb
RD
39679static void *_p_wxGCDCTo_p_wxDC(void *x) {
39680 return (void *)((wxDC *) ((wxGCDC *) x));
39681}
554f62e9
RD
39682static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39683 return (void *)((wxDC *) ((wxScreenDC *) x));
39684}
24f6c4e8
RD
39685static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
39686 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39687}
554f62e9
RD
39688static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39689 return (void *)((wxDC *) ((wxMirrorDC *) x));
39690}
39691static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39692 return (void *)((wxDC *) ((wxMemoryDC *) x));
39693}
39694static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39695 return (void *)((wxDC *) ((wxWindowDC *) x));
39696}
39697static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39698 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39699}
554f62e9 39700static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 39701 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
554f62e9
RD
39702}
39703static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 39704 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
554f62e9 39705}
24f6c4e8
RD
39706static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
39707 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39708}
39709static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39710 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39711}
554f62e9
RD
39712static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39713 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39714}
39715static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39716 return (void *)((wxDC *) ((wxPrinterDC *) x));
39717}
50efceee
RD
39718static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39719 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39720}
39721static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39722 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39723}
39724static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39725 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39726}
554f62e9
RD
39727static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39728 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39729}
39730static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39731 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39732}
39733static void *_p_wxPenTo_p_wxObject(void *x) {
39734 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39735}
39736static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39737 return (void *)((wxObject *) ((wxRegionIterator *) x));
39738}
554f62e9
RD
39739static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39740 return (void *)((wxObject *) ((wxSizerItem *) x));
39741}
0f83f5da
RD
39742static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39743 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39744}
554f62e9
RD
39745static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39746 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39747}
39748static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39749 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39750}
39751static void *_p_wxIconTo_p_wxObject(void *x) {
39752 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39753}
39754static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39755 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39756}
39757static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39758 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39759}
39760static void *_p_wxSizerTo_p_wxObject(void *x) {
39761 return (void *)((wxObject *) ((wxSizer *) x));
39762}
39763static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39764 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39765}
39766static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39767 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39768}
554f62e9
RD
39769static void *_p_wxEventTo_p_wxObject(void *x) {
39770 return (void *)((wxObject *) ((wxEvent *) x));
39771}
39772static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39773 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39774}
39775static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39776 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39777}
39778static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39779 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39780}
27e45892
RD
39781static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39782 return (void *)((wxObject *) ((wxPseudoDC *) x));
39783}
2131d850
RD
39784static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39785 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39786}
554f62e9
RD
39787static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39788 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39789}
39790static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39791 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39792}
39793static void *_p_wxDCTo_p_wxObject(void *x) {
39794 return (void *)((wxObject *) ((wxDC *) x));
39795}
39796static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39797 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39798}
39799static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39800 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39801}
39802static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39803 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39804}
39805static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39806 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39807}
39808static void *_p_wxControlTo_p_wxObject(void *x) {
39809 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39810}
70d7cb34
RD
39811static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39812 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39813}
554f62e9
RD
39814static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39815 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39816}
39817static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 39818 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
554f62e9
RD
39819}
39820static void *_p_wxFSFileTo_p_wxObject(void *x) {
39821 return (void *)((wxObject *) ((wxFSFile *) x));
39822}
39823static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
39824 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
39825}
39826static void *_p_wxRegionTo_p_wxObject(void *x) {
39827 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39828}
39829static void *_p_wxPySizerTo_p_wxObject(void *x) {
39830 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39831}
39832static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39833 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39834}
39835static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39836 return (void *)((wxObject *) ((wxGDIObject *) x));
39837}
70d7cb34
RD
39838static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39839 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39840}
39841static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39842 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39843}
554f62e9
RD
39844static void *_p_wxEffectsTo_p_wxObject(void *x) {
39845 return (void *)((wxObject *) ((wxEffects *) x));
39846}
39847static void *_p_wxPyEventTo_p_wxObject(void *x) {
39848 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39849}
39850static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39851 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39852}
39853static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39854 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39855}
70d7cb34
RD
39856static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39857 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39858}
554f62e9
RD
39859static void *_p_wxShowEventTo_p_wxObject(void *x) {
39860 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39861}
39862static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39863 return (void *)((wxObject *) ((wxMenuItem *) x));
39864}
39865static void *_p_wxDateEventTo_p_wxObject(void *x) {
39866 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39867}
39868static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39869 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39870}
39871static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39872 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39873}
39874static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39875 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39876}
39877static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39878 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39879}
39880static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39881 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39882}
39883static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39884 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39885}
39886static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39887 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39888}
39889static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39890 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39891}
39892static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39893 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39894}
39895static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39896 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39897}
39898static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39899 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39900}
39901static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39902 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39903}
39904static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39905 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39906}
39907static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39908 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39909}
39910static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39911 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39912}
39913static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39914 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39915}
39916static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39917 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39918}
39919static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39920 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39921}
39922static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39923 return (void *)((wxObject *) ((wxImageHandler *) x));
39924}
39925static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39926 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39927}
39928static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39929 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39930}
39931static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39932 return (void *)((wxObject *) ((wxEvtHandler *) x));
39933}
0f83f5da
RD
39934static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39935 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39936}
24f6c4e8
RD
39937static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39938 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39939}
554f62e9 39940static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
8e99bda9 39941 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
554f62e9 39942}
24f6c4e8
RD
39943static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39944 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
554f62e9
RD
39945}
39946static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39947 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39948}
39949static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39950 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39951}
39952static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39953 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39954}
39955static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39956 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39957}
39958static void *_p_wxImageTo_p_wxObject(void *x) {
39959 return (void *)((wxObject *) ((wxImage *) x));
39960}
39961static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39962 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39963}
70d7cb34
RD
39964static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39965 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39966}
39967static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39968 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39969}
554f62e9
RD
39970static void *_p_wxPaletteTo_p_wxObject(void *x) {
39971 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39972}
39973static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
8e99bda9 39974 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
554f62e9
RD
39975}
39976static void *_p_wxImageListTo_p_wxObject(void *x) {
39977 return (void *)((wxObject *) ((wxImageList *) x));
39978}
72ef6efb
RD
39979static void *_p_wxGCDCTo_p_wxObject(void *x) {
39980 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39981}
554f62e9
RD
39982static void *_p_wxCursorTo_p_wxObject(void *x) {
39983 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39984}
39985static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39986 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39987}
39988static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39989 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39990}
70d7cb34
RD
39991static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39992 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39993}
554f62e9
RD
39994static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39995 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39996}
39997static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39998 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39999}
40000static void *_p_wxKeyEventTo_p_wxObject(void *x) {
40001 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
40002}
40003static void *_p_wxWindowTo_p_wxObject(void *x) {
40004 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
40005}
40006static void *_p_wxMenuTo_p_wxObject(void *x) {
40007 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
40008}
40009static void *_p_wxMenuBarTo_p_wxObject(void *x) {
40010 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
40011}
40012static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
40013 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
40014}
554f62e9
RD
40015static void *_p_wxFileSystemTo_p_wxObject(void *x) {
40016 return (void *)((wxObject *) ((wxFileSystem *) x));
40017}
40018static void *_p_wxBitmapTo_p_wxObject(void *x) {
40019 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
40020}
40021static void *_p_wxMaskTo_p_wxObject(void *x) {
40022 return (void *)((wxObject *) ((wxMask *) x));
40023}
70d7cb34
RD
40024static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
40025 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40026}
554f62e9
RD
40027static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
40028 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
40029}
40030static void *_p_wxMenuEventTo_p_wxObject(void *x) {
40031 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
40032}
40033static void *_p_wxPyAppTo_p_wxObject(void *x) {
40034 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
40035}
40036static void *_p_wxCloseEventTo_p_wxObject(void *x) {
40037 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
40038}
40039static void *_p_wxMouseEventTo_p_wxObject(void *x) {
40040 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
40041}
40042static void *_p_wxEraseEventTo_p_wxObject(void *x) {
40043 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
40044}
40045static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
40046 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
40047}
40048static void *_p_wxCommandEventTo_p_wxObject(void *x) {
40049 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
40050}
40051static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
40052 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
40053}
40054static void *_p_wxFocusEventTo_p_wxObject(void *x) {
40055 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
40056}
40057static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
40058 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
40059}
40060static void *_p_wxFontTo_p_wxObject(void *x) {
40061 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
40062}
40063static void *_p_wxBrushTo_p_wxObject(void *x) {
40064 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
40065}
40066static void *_p_wxMetaFileTo_p_wxObject(void *x) {
40067 return (void *)((wxObject *) ((wxMetaFile *) x));
40068}
40069static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
40070 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40071}
40072static void *_p_wxColourTo_p_wxObject(void *x) {
40073 return (void *)((wxObject *) ((wxColour *) x));
40074}
554f62e9
RD
40075static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
40076 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
40077}
40078static void *_p_wxValidatorTo_p_wxObject(void *x) {
40079 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
40080}
40081static void *_p_wxControlTo_p_wxWindow(void *x) {
40082 return (void *)((wxWindow *) ((wxControl *) x));
40083}
40084static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
40085 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
40086}
40087static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
40088 return (void *)((wxWindow *) ((wxMenuBar *) x));
40089}
fc46b7f3
RD
40090static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
40091 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
40092}
40093static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
40094 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
40095}
40096static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
554f62e9 40097static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 40098static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
554f62e9
RD
40099static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
40100static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
40101static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
40102static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
40103static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 40104static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
40105static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
40106static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 40107static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
554f62e9
RD
40108static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
40109static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
40110static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
40111static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
40112static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 40113static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
554f62e9 40114static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
72ef6efb 40115static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
554f62e9
RD
40116static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
40117static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
40118static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
40119static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
70d7cb34
RD
40120static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
40121static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
b39fe951 40122static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
70d7cb34
RD
40123static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
40124static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
554f62e9
RD
40125static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
40126static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
40127static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
40128static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
40129static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
40130static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
40131static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 40132static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
50efceee 40133static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
554f62e9 40134static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
70d7cb34 40135static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
72ef6efb 40136static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
70d7cb34
RD
40137static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
40138static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
40139static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
72ef6efb 40140static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
70d7cb34
RD
40141static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
40142static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
33d6fd3b 40143static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
554f62e9
RD
40144static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
40145static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
40146static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
40147static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
40148static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
40149static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
40150static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
40151static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
40152static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
40153static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
40154static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
40155static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
40156static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
40157static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
40158static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
40159static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
554f62e9
RD
40160static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
40161static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
554f62e9 40162static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
0f83f5da 40163static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
554f62e9
RD
40164static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
40165static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
40166static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
40167static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
40168static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
40169static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
40170static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
40171static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
40172static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
40173static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
40174static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
40175static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 40176static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
554f62e9
RD
40177static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
40178static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
40179static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
40180static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
40181static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
40182static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
40183static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
40184static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
40185static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
40186static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
40187static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
40188static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
40189static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
40190static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
40191static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
40192static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
40193static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
40194static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
40195static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
40196static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
40197static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40198static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40199static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
554f62e9 40200static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
70d7cb34
RD
40201static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
40202static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40203static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
40204static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
40205static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
40206static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
24f6c4e8 40207static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 40208static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 40209static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 40210static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
554f62e9
RD
40211static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40212static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40213static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
0f83f5da 40214static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
554f62e9
RD
40215static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
40216static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
40217static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40218static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40219static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40220static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40221static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40222static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40223static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40224static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40225static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40226static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40227static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40228static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40229static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40230static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40231static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40232static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40233static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40234static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40235static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40236static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 40237static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
554f62e9
RD
40238static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
40239static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
40240static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
40241static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
40242static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 40243static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
554f62e9 40244static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 40245static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
70d7cb34 40246static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
554f62e9
RD
40247static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
40248static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
40249static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 40250static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
554f62e9 40251static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 40252static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
554f62e9 40253static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
70d7cb34 40254static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
554f62e9
RD
40255static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
40256static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
40257static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
40258static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
40259static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
40260static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40261static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
50efceee 40262static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
554f62e9
RD
40263static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40264static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40265static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
40266
40267static swig_type_info *swig_type_initial[] = {
fc46b7f3 40268 &_swigt__p_buffer,
554f62e9
RD
40269 &_swigt__p_char,
40270 &_swigt__p_double,
40271 &_swigt__p_form_ops_t,
40272 &_swigt__p_int,
40273 &_swigt__p_unsigned_char,
40274 &_swigt__p_unsigned_int,
40275 &_swigt__p_unsigned_long,
0a27f394 40276 &_swigt__p_void,
554f62e9
RD
40277 &_swigt__p_wxANIHandler,
40278 &_swigt__p_wxAcceleratorTable,
40279 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
40280 &_swigt__p_wxAlphaPixelData,
40281 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 40282 &_swigt__p_wxAutoBufferedPaintDC,
554f62e9
RD
40283 &_swigt__p_wxBMPHandler,
40284 &_swigt__p_wxBitmap,
40285 &_swigt__p_wxBoxSizer,
40286 &_swigt__p_wxBrush,
40287 &_swigt__p_wxBrushList,
40288 &_swigt__p_wxBufferedDC,
40289 &_swigt__p_wxBufferedPaintDC,
40290 &_swigt__p_wxCURHandler,
fc46b7f3 40291 &_swigt__p_wxChar,
554f62e9
RD
40292 &_swigt__p_wxChildFocusEvent,
40293 &_swigt__p_wxClientDC,
2131d850 40294 &_swigt__p_wxClipboardTextEvent,
554f62e9 40295 &_swigt__p_wxCloseEvent,
72ef6efb 40296 &_swigt__p_wxColor,
554f62e9
RD
40297 &_swigt__p_wxColour,
40298 &_swigt__p_wxColourDatabase,
40299 &_swigt__p_wxCommandEvent,
40300 &_swigt__p_wxContextMenuEvent,
40301 &_swigt__p_wxControl,
40302 &_swigt__p_wxControlWithItems,
40303 &_swigt__p_wxCursor,
40304 &_swigt__p_wxDC,
70d7cb34
RD
40305 &_swigt__p_wxDCBrushChanger,
40306 &_swigt__p_wxDCClipper,
b39fe951 40307 &_swigt__p_wxDCOverlay,
70d7cb34
RD
40308 &_swigt__p_wxDCPenChanger,
40309 &_swigt__p_wxDCTextColourChanger,
554f62e9
RD
40310 &_swigt__p_wxDash,
40311 &_swigt__p_wxDateEvent,
40312 &_swigt__p_wxDisplayChangedEvent,
40313 &_swigt__p_wxDropFilesEvent,
40314 &_swigt__p_wxDuplexMode,
40315 &_swigt__p_wxEffects,
40316 &_swigt__p_wxEncodingConverter,
40317 &_swigt__p_wxEraseEvent,
40318 &_swigt__p_wxEvent,
40319 &_swigt__p_wxEvtHandler,
40320 &_swigt__p_wxFSFile,
40321 &_swigt__p_wxFileSystem,
40322 &_swigt__p_wxFlexGridSizer,
40323 &_swigt__p_wxFocusEvent,
40324 &_swigt__p_wxFont,
40325 &_swigt__p_wxFontList,
40326 &_swigt__p_wxFontMapper,
40327 &_swigt__p_wxGBSizerItem,
72ef6efb 40328 &_swigt__p_wxGCDC,
50efceee 40329 &_swigt__p_wxGDIObjListBase,
554f62e9
RD
40330 &_swigt__p_wxGDIObject,
40331 &_swigt__p_wxGIFHandler,
70d7cb34 40332 &_swigt__p_wxGraphicsBrush,
72ef6efb 40333 &_swigt__p_wxGraphicsContext,
70d7cb34
RD
40334 &_swigt__p_wxGraphicsFont,
40335 &_swigt__p_wxGraphicsMatrix,
40336 &_swigt__p_wxGraphicsObject,
72ef6efb 40337 &_swigt__p_wxGraphicsPath,
70d7cb34
RD
40338 &_swigt__p_wxGraphicsPen,
40339 &_swigt__p_wxGraphicsRenderer,
554f62e9
RD
40340 &_swigt__p_wxGridBagSizer,
40341 &_swigt__p_wxGridSizer,
33d6fd3b 40342 &_swigt__p_wxHeaderButtonParams,
554f62e9
RD
40343 &_swigt__p_wxICOHandler,
40344 &_swigt__p_wxIcon,
40345 &_swigt__p_wxIconBundle,
40346 &_swigt__p_wxIconLocation,
40347 &_swigt__p_wxIconizeEvent,
40348 &_swigt__p_wxIdleEvent,
40349 &_swigt__p_wxImage,
40350 &_swigt__p_wxImageHandler,
40351 &_swigt__p_wxImageList,
40352 &_swigt__p_wxIndividualLayoutConstraint,
40353 &_swigt__p_wxInitDialogEvent,
40354 &_swigt__p_wxJPEGHandler,
40355 &_swigt__p_wxKeyEvent,
40356 &_swigt__p_wxLanguageInfo,
40357 &_swigt__p_wxLayoutConstraints,
40358 &_swigt__p_wxLocale,
40359 &_swigt__p_wxMask,
40360 &_swigt__p_wxMaximizeEvent,
40361 &_swigt__p_wxMemoryDC,
40362 &_swigt__p_wxMenu,
40363 &_swigt__p_wxMenuBar,
40364 &_swigt__p_wxMenuEvent,
40365 &_swigt__p_wxMenuItem,
40366 &_swigt__p_wxMetaFile,
40367 &_swigt__p_wxMetaFileDC,
40368 &_swigt__p_wxMirrorDC,
40369 &_swigt__p_wxMouseCaptureChangedEvent,
0f83f5da 40370 &_swigt__p_wxMouseCaptureLostEvent,
554f62e9
RD
40371 &_swigt__p_wxMouseEvent,
40372 &_swigt__p_wxMoveEvent,
40373 &_swigt__p_wxNativeEncodingInfo,
40374 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
40375 &_swigt__p_wxNativePixelData,
40376 &_swigt__p_wxNativePixelData_Accessor,
554f62e9
RD
40377 &_swigt__p_wxNavigationKeyEvent,
40378 &_swigt__p_wxNcPaintEvent,
40379 &_swigt__p_wxNotifyEvent,
40380 &_swigt__p_wxObject,
b39fe951 40381 &_swigt__p_wxOverlay,
554f62e9
RD
40382 &_swigt__p_wxPCXHandler,
40383 &_swigt__p_wxPNGHandler,
40384 &_swigt__p_wxPNMHandler,
40385 &_swigt__p_wxPaintDC,
40386 &_swigt__p_wxPaintEvent,
40387 &_swigt__p_wxPalette,
40388 &_swigt__p_wxPaletteChangedEvent,
40389 &_swigt__p_wxPaperSize,
40390 &_swigt__p_wxPen,
40391 &_swigt__p_wxPenList,
fc46b7f3 40392 &_swigt__p_wxPixelDataBase,
554f62e9 40393 &_swigt__p_wxPoint,
72ef6efb 40394 &_swigt__p_wxPoint2D,
70d7cb34 40395 &_swigt__p_wxPoint2DDouble,
554f62e9
RD
40396 &_swigt__p_wxPostScriptDC,
40397 &_swigt__p_wxPrintData,
40398 &_swigt__p_wxPrinterDC,
27e45892 40399 &_swigt__p_wxPseudoDC,
554f62e9
RD
40400 &_swigt__p_wxPyApp,
40401 &_swigt__p_wxPyCommandEvent,
40402 &_swigt__p_wxPyEvent,
40403 &_swigt__p_wxPyFontEnumerator,
40404 &_swigt__p_wxPyImageHandler,
fc46b7f3 40405 &_swigt__p_wxPyLocale,
554f62e9
RD
40406 &_swigt__p_wxPySizer,
40407 &_swigt__p_wxPyValidator,
40408 &_swigt__p_wxQueryNewPaletteEvent,
40409 &_swigt__p_wxRect,
70d7cb34 40410 &_swigt__p_wxRect2DDouble,
554f62e9
RD
40411 &_swigt__p_wxRegion,
40412 &_swigt__p_wxRegionIterator,
40413 &_swigt__p_wxRendererNative,
40414 &_swigt__p_wxRendererVersion,
40415 &_swigt__p_wxScreenDC,
40416 &_swigt__p_wxScrollEvent,
40417 &_swigt__p_wxScrollWinEvent,
40418 &_swigt__p_wxSetCursorEvent,
40419 &_swigt__p_wxShowEvent,
40420 &_swigt__p_wxSize,
40421 &_swigt__p_wxSizeEvent,
40422 &_swigt__p_wxSizer,
40423 &_swigt__p_wxSizerItem,
40424 &_swigt__p_wxSplitterRenderParams,
40425 &_swigt__p_wxStaticBoxSizer,
40426 &_swigt__p_wxStdDialogButtonSizer,
50efceee 40427 &_swigt__p_wxStockGDI,
554f62e9
RD
40428 &_swigt__p_wxString,
40429 &_swigt__p_wxSysColourChangedEvent,
40430 &_swigt__p_wxTIFFHandler,
40431 &_swigt__p_wxUpdateUIEvent,
40432 &_swigt__p_wxValidator,
40433 &_swigt__p_wxWindow,
40434 &_swigt__p_wxWindowCreateEvent,
40435 &_swigt__p_wxWindowDC,
40436 &_swigt__p_wxWindowDestroyEvent,
40437 &_swigt__p_wxXPMHandler,
40438};
40439
fc46b7f3 40440static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40441static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40442static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40443static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40444static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40445static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40446static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40447static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 40448static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40449static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40450static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40451static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40452static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40453static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40454static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40455static 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}};
40456static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40457static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
40458static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxClientDC, 0, 0},{0, 0, 0, 0}};
40459static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40460static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40461static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40462static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40463static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40464static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40465static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 40466static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40467static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40468static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40469static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40470static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40471static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40472static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40473static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40474static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40475static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40476static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
50efceee 40477static 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 40478static swig_cast_info _swigc__p_wxGDIObject[] = { {&_swigt__p_wxIcon, _p_wxIconTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxGDIObject, 0, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxGDIObject, 0, 0},{0, 0, 0, 0}};
70d7cb34 40479static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40480static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40481static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40482static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40483static swig_cast_info _swigc__p_wxGraphicsObject[] = { {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsObject, 0, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxGraphicsObject, 0, 0},{0, 0, 0, 0}};
72ef6efb 40484static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40485static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40486static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 40487static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40488static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40489static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40490static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40491static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40492static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40493static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40494static 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 40495static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 40496static 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}};
554f62e9
RD
40497static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40498static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40499static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40500static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40501static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40502static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40503static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 40504static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 40505static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 40506static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40507static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40508static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40509static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40510static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40511static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40512static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40513static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40514static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40515static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40516static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40517static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40518static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40519static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40520static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40521static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40522static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40523static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40524static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40525static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40526static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40527static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40528static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40529static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40530static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40531static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40532static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40533static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40534static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40535static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40536static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40537static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40538static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40539static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40540static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40541static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40542static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 40543static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40544static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40545static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40546static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40547static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40548static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40549static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40550static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40551static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40552static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40553static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40554static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40555static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40556static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
0f83f5da 40557static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40558static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
40559static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
40560static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40561static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40562static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40563static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40564static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40565static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40566static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40567static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40568static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40569static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40570static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40571static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40572static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40573static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40574static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40575static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40576static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40577static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40578static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40579static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40580static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsObject, _p_wxGraphicsObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsRenderer, _p_wxGraphicsRendererTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
b39fe951 40581static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40582static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40583static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40584static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40585static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40586static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40587static 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 40588static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40589static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40590static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40591static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40592static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40593static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40594static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 40595static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40596static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
554f62e9 40597static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40598static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40599static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40600static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40601static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40602static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40603static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40604static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40605static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
50efceee 40606static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40607static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40608static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
72ef6efb 40609static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
40610
40611static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 40612 _swigc__p_buffer,
554f62e9
RD
40613 _swigc__p_char,
40614 _swigc__p_double,
40615 _swigc__p_form_ops_t,
40616 _swigc__p_int,
40617 _swigc__p_unsigned_char,
40618 _swigc__p_unsigned_int,
40619 _swigc__p_unsigned_long,
0a27f394 40620 _swigc__p_void,
554f62e9
RD
40621 _swigc__p_wxANIHandler,
40622 _swigc__p_wxAcceleratorTable,
40623 _swigc__p_wxActivateEvent,
fc46b7f3
RD
40624 _swigc__p_wxAlphaPixelData,
40625 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 40626 _swigc__p_wxAutoBufferedPaintDC,
554f62e9
RD
40627 _swigc__p_wxBMPHandler,
40628 _swigc__p_wxBitmap,
40629 _swigc__p_wxBoxSizer,
40630 _swigc__p_wxBrush,
40631 _swigc__p_wxBrushList,
40632 _swigc__p_wxBufferedDC,
40633 _swigc__p_wxBufferedPaintDC,
40634 _swigc__p_wxCURHandler,
fc46b7f3 40635 _swigc__p_wxChar,
554f62e9
RD
40636 _swigc__p_wxChildFocusEvent,
40637 _swigc__p_wxClientDC,
2131d850 40638 _swigc__p_wxClipboardTextEvent,
554f62e9 40639 _swigc__p_wxCloseEvent,
72ef6efb 40640 _swigc__p_wxColor,
554f62e9
RD
40641 _swigc__p_wxColour,
40642 _swigc__p_wxColourDatabase,
40643 _swigc__p_wxCommandEvent,
40644 _swigc__p_wxContextMenuEvent,
40645 _swigc__p_wxControl,
40646 _swigc__p_wxControlWithItems,
40647 _swigc__p_wxCursor,
40648 _swigc__p_wxDC,
70d7cb34
RD
40649 _swigc__p_wxDCBrushChanger,
40650 _swigc__p_wxDCClipper,
b39fe951 40651 _swigc__p_wxDCOverlay,
70d7cb34
RD
40652 _swigc__p_wxDCPenChanger,
40653 _swigc__p_wxDCTextColourChanger,
554f62e9
RD
40654 _swigc__p_wxDash,
40655 _swigc__p_wxDateEvent,
40656 _swigc__p_wxDisplayChangedEvent,
40657 _swigc__p_wxDropFilesEvent,
40658 _swigc__p_wxDuplexMode,
40659 _swigc__p_wxEffects,
40660 _swigc__p_wxEncodingConverter,
40661 _swigc__p_wxEraseEvent,
40662 _swigc__p_wxEvent,
40663 _swigc__p_wxEvtHandler,
40664 _swigc__p_wxFSFile,
40665 _swigc__p_wxFileSystem,
40666 _swigc__p_wxFlexGridSizer,
40667 _swigc__p_wxFocusEvent,
40668 _swigc__p_wxFont,
40669 _swigc__p_wxFontList,
40670 _swigc__p_wxFontMapper,
40671 _swigc__p_wxGBSizerItem,
72ef6efb 40672 _swigc__p_wxGCDC,
50efceee 40673 _swigc__p_wxGDIObjListBase,
554f62e9
RD
40674 _swigc__p_wxGDIObject,
40675 _swigc__p_wxGIFHandler,
70d7cb34 40676 _swigc__p_wxGraphicsBrush,
72ef6efb 40677 _swigc__p_wxGraphicsContext,
70d7cb34
RD
40678 _swigc__p_wxGraphicsFont,
40679 _swigc__p_wxGraphicsMatrix,
40680 _swigc__p_wxGraphicsObject,
72ef6efb 40681 _swigc__p_wxGraphicsPath,
70d7cb34
RD
40682 _swigc__p_wxGraphicsPen,
40683 _swigc__p_wxGraphicsRenderer,
554f62e9
RD
40684 _swigc__p_wxGridBagSizer,
40685 _swigc__p_wxGridSizer,
33d6fd3b 40686 _swigc__p_wxHeaderButtonParams,
554f62e9
RD
40687 _swigc__p_wxICOHandler,
40688 _swigc__p_wxIcon,
40689 _swigc__p_wxIconBundle,
40690 _swigc__p_wxIconLocation,
40691 _swigc__p_wxIconizeEvent,
40692 _swigc__p_wxIdleEvent,
40693 _swigc__p_wxImage,
40694 _swigc__p_wxImageHandler,
40695 _swigc__p_wxImageList,
40696 _swigc__p_wxIndividualLayoutConstraint,
40697 _swigc__p_wxInitDialogEvent,
40698 _swigc__p_wxJPEGHandler,
40699 _swigc__p_wxKeyEvent,
40700 _swigc__p_wxLanguageInfo,
40701 _swigc__p_wxLayoutConstraints,
40702 _swigc__p_wxLocale,
40703 _swigc__p_wxMask,
40704 _swigc__p_wxMaximizeEvent,
40705 _swigc__p_wxMemoryDC,
40706 _swigc__p_wxMenu,
40707 _swigc__p_wxMenuBar,
40708 _swigc__p_wxMenuEvent,
40709 _swigc__p_wxMenuItem,
40710 _swigc__p_wxMetaFile,
40711 _swigc__p_wxMetaFileDC,
40712 _swigc__p_wxMirrorDC,
40713 _swigc__p_wxMouseCaptureChangedEvent,
0f83f5da 40714 _swigc__p_wxMouseCaptureLostEvent,
554f62e9
RD
40715 _swigc__p_wxMouseEvent,
40716 _swigc__p_wxMoveEvent,
40717 _swigc__p_wxNativeEncodingInfo,
40718 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
40719 _swigc__p_wxNativePixelData,
40720 _swigc__p_wxNativePixelData_Accessor,
554f62e9
RD
40721 _swigc__p_wxNavigationKeyEvent,
40722 _swigc__p_wxNcPaintEvent,
40723 _swigc__p_wxNotifyEvent,
40724 _swigc__p_wxObject,
b39fe951 40725 _swigc__p_wxOverlay,
554f62e9
RD
40726 _swigc__p_wxPCXHandler,
40727 _swigc__p_wxPNGHandler,
40728 _swigc__p_wxPNMHandler,
40729 _swigc__p_wxPaintDC,
40730 _swigc__p_wxPaintEvent,
40731 _swigc__p_wxPalette,
40732 _swigc__p_wxPaletteChangedEvent,
40733 _swigc__p_wxPaperSize,
40734 _swigc__p_wxPen,
40735 _swigc__p_wxPenList,
fc46b7f3 40736 _swigc__p_wxPixelDataBase,
554f62e9 40737 _swigc__p_wxPoint,
72ef6efb 40738 _swigc__p_wxPoint2D,
70d7cb34 40739 _swigc__p_wxPoint2DDouble,
554f62e9
RD
40740 _swigc__p_wxPostScriptDC,
40741 _swigc__p_wxPrintData,
40742 _swigc__p_wxPrinterDC,
27e45892 40743 _swigc__p_wxPseudoDC,
554f62e9
RD
40744 _swigc__p_wxPyApp,
40745 _swigc__p_wxPyCommandEvent,
40746 _swigc__p_wxPyEvent,
40747 _swigc__p_wxPyFontEnumerator,
40748 _swigc__p_wxPyImageHandler,
fc46b7f3 40749 _swigc__p_wxPyLocale,
554f62e9
RD
40750 _swigc__p_wxPySizer,
40751 _swigc__p_wxPyValidator,
40752 _swigc__p_wxQueryNewPaletteEvent,
40753 _swigc__p_wxRect,
70d7cb34 40754 _swigc__p_wxRect2DDouble,
554f62e9
RD
40755 _swigc__p_wxRegion,
40756 _swigc__p_wxRegionIterator,
40757 _swigc__p_wxRendererNative,
40758 _swigc__p_wxRendererVersion,
40759 _swigc__p_wxScreenDC,
40760 _swigc__p_wxScrollEvent,
40761 _swigc__p_wxScrollWinEvent,
40762 _swigc__p_wxSetCursorEvent,
40763 _swigc__p_wxShowEvent,
40764 _swigc__p_wxSize,
40765 _swigc__p_wxSizeEvent,
40766 _swigc__p_wxSizer,
40767 _swigc__p_wxSizerItem,
40768 _swigc__p_wxSplitterRenderParams,
40769 _swigc__p_wxStaticBoxSizer,
40770 _swigc__p_wxStdDialogButtonSizer,
50efceee 40771 _swigc__p_wxStockGDI,
554f62e9
RD
40772 _swigc__p_wxString,
40773 _swigc__p_wxSysColourChangedEvent,
40774 _swigc__p_wxTIFFHandler,
40775 _swigc__p_wxUpdateUIEvent,
40776 _swigc__p_wxValidator,
40777 _swigc__p_wxWindow,
40778 _swigc__p_wxWindowCreateEvent,
40779 _swigc__p_wxWindowDC,
40780 _swigc__p_wxWindowDestroyEvent,
40781 _swigc__p_wxXPMHandler,
40782};
40783
40784
40785/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40786
40787static swig_const_info swig_const_table[] = {
40788{0, 0, 0, 0.0, 0, 0}};
40789
40790#ifdef __cplusplus
40791}
40792#endif
40793/* -----------------------------------------------------------------------------
40794 * Type initialization:
40795 * This problem is tough by the requirement that no dynamic
40796 * memory is used. Also, since swig_type_info structures store pointers to
40797 * swig_cast_info structures and swig_cast_info structures store pointers back
40798 * to swig_type_info structures, we need some lookup code at initialization.
40799 * The idea is that swig generates all the structures that are needed.
40800 * The runtime then collects these partially filled structures.
40801 * The SWIG_InitializeModule function takes these initial arrays out of
40802 * swig_module, and does all the lookup, filling in the swig_module.types
40803 * array with the correct data and linking the correct swig_cast_info
40804 * structures together.
40805 *
40806 * The generated swig_type_info structures are assigned staticly to an initial
40807 * array. We just loop though that array, and handle each type individually.
40808 * First we lookup if this type has been already loaded, and if so, use the
40809 * loaded structure instead of the generated one. Then we have to fill in the
40810 * cast linked list. The cast data is initially stored in something like a
40811 * two-dimensional array. Each row corresponds to a type (there are the same
40812 * number of rows as there are in the swig_type_initial array). Each entry in
40813 * a column is one of the swig_cast_info structures for that type.
40814 * The cast_initial array is actually an array of arrays, because each row has
40815 * a variable number of columns. So to actually build the cast linked list,
40816 * we find the array of casts associated with the type, and loop through it
40817 * adding the casts to the list. The one last trick we need to do is making
40818 * sure the type pointer in the swig_cast_info struct is correct.
40819 *
40820 * First off, we lookup the cast->type name to see if it is already loaded.
40821 * There are three cases to handle:
40822 * 1) If the cast->type has already been loaded AND the type we are adding
40823 * casting info to has not been loaded (it is in this module), THEN we
40824 * replace the cast->type pointer with the type pointer that has already
40825 * been loaded.
40826 * 2) If BOTH types (the one we are adding casting info to, and the
40827 * cast->type) are loaded, THEN the cast info has already been loaded by
40828 * the previous module so we just ignore it.
40829 * 3) Finally, if cast->type has not already been loaded, then we add that
40830 * swig_cast_info to the linked list (because the cast->type) pointer will
40831 * be correct.
40832 * ----------------------------------------------------------------------------- */
40833
40834#ifdef __cplusplus
40835extern "C" {
40836#if 0
40837} /* c-mode */
40838#endif
40839#endif
40840
40841#if 0
40842#define SWIGRUNTIME_DEBUG
40843#endif
40844
40845SWIGRUNTIME void
40846SWIG_InitializeModule(void *clientdata) {
40847 size_t i;
40848 swig_module_info *module_head;
40849 static int init_run = 0;
40850
40851 clientdata = clientdata;
40852
40853 if (init_run) return;
40854 init_run = 1;
40855
40856 /* Initialize the swig_module */
40857 swig_module.type_initial = swig_type_initial;
40858 swig_module.cast_initial = swig_cast_initial;
40859
40860 /* Try and load any already created modules */
40861 module_head = SWIG_GetModule(clientdata);
40862 if (module_head) {
40863 swig_module.next = module_head->next;
40864 module_head->next = &swig_module;
40865 } else {
40866 /* This is the first module loaded */
40867 swig_module.next = &swig_module;
40868 SWIG_SetModule(clientdata, &swig_module);
40869 }
40870
40871 /* Now work on filling in swig_module.types */
40872#ifdef SWIGRUNTIME_DEBUG
40873 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40874#endif
40875 for (i = 0; i < swig_module.size; ++i) {
40876 swig_type_info *type = 0;
40877 swig_type_info *ret;
40878 swig_cast_info *cast;
40879
40880#ifdef SWIGRUNTIME_DEBUG
40881 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40882#endif
40883
40884 /* if there is another module already loaded */
40885 if (swig_module.next != &swig_module) {
40886 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 40887 }
554f62e9
RD
40888 if (type) {
40889 /* Overwrite clientdata field */
40890#ifdef SWIGRUNTIME_DEBUG
40891 printf("SWIG_InitializeModule: found type %s\n", type->name);
40892#endif
40893 if (swig_module.type_initial[i]->clientdata) {
40894 type->clientdata = swig_module.type_initial[i]->clientdata;
40895#ifdef SWIGRUNTIME_DEBUG
40896 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40897#endif
40898 }
40899 } else {
40900 type = swig_module.type_initial[i];
be9b1dca 40901 }
554f62e9
RD
40902
40903 /* Insert casting types */
40904 cast = swig_module.cast_initial[i];
40905 while (cast->type) {
40906 /* Don't need to add information already in the list */
40907 ret = 0;
40908#ifdef SWIGRUNTIME_DEBUG
40909 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40910#endif
40911 if (swig_module.next != &swig_module) {
40912 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40913#ifdef SWIGRUNTIME_DEBUG
40914 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40915#endif
40916 }
40917 if (ret) {
40918 if (type == swig_module.type_initial[i]) {
40919#ifdef SWIGRUNTIME_DEBUG
40920 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40921#endif
40922 cast->type = ret;
40923 ret = 0;
40924 } else {
40925 /* Check for casting already in the list */
40926 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40927#ifdef SWIGRUNTIME_DEBUG
40928 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40929#endif
40930 if (!ocast) ret = 0;
40931 }
40932 }
40933
40934 if (!ret) {
40935#ifdef SWIGRUNTIME_DEBUG
40936 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40937#endif
40938 if (type->cast) {
40939 type->cast->prev = cast;
40940 cast->next = type->cast;
40941 }
40942 type->cast = cast;
40943 }
40944 cast++;
be9b1dca 40945 }
554f62e9
RD
40946 /* Set entry in modules->types array equal to the type */
40947 swig_module.types[i] = type;
40948 }
40949 swig_module.types[i] = 0;
40950
40951#ifdef SWIGRUNTIME_DEBUG
40952 printf("**** SWIG_InitializeModule: Cast List ******\n");
40953 for (i = 0; i < swig_module.size; ++i) {
40954 int j = 0;
40955 swig_cast_info *cast = swig_module.cast_initial[i];
40956 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40957 while (cast->type) {
40958 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40959 cast++;
40960 ++j;
40961 }
40962 printf("---- Total casts: %d\n",j);
40963 }
40964 printf("**** SWIG_InitializeModule: Cast List ******\n");
40965#endif
40966}
40967
40968/* This function will propagate the clientdata field of type to
40969* any new swig_type_info structures that have been added into the list
40970* of equivalent types. It is like calling
40971* SWIG_TypeClientData(type, clientdata) a second time.
40972*/
40973SWIGRUNTIME void
40974SWIG_PropagateClientData(void) {
40975 size_t i;
40976 swig_cast_info *equiv;
40977 static int init_run = 0;
40978
40979 if (init_run) return;
40980 init_run = 1;
40981
40982 for (i = 0; i < swig_module.size; i++) {
40983 if (swig_module.types[i]->clientdata) {
40984 equiv = swig_module.types[i]->cast;
40985 while (equiv) {
40986 if (!equiv->converter) {
40987 if (equiv->type && !equiv->type->clientdata)
40988 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40989 }
40990 equiv = equiv->next;
40991 }
be9b1dca 40992 }
554f62e9
RD
40993 }
40994}
40995
40996#ifdef __cplusplus
40997#if 0
40998{
40999 /* c-mode */
41000#endif
41001}
41002#endif
41003
41004
41005
41006#ifdef __cplusplus
41007extern "C" {
41008#endif
41009
41010 /* Python-specific SWIG API */
41011#define SWIG_newvarlink() SWIG_Python_newvarlink()
41012#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
41013#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
41014
41015 /* -----------------------------------------------------------------------------
41016 * global variable support code.
41017 * ----------------------------------------------------------------------------- */
41018
41019 typedef struct swig_globalvar {
41020 char *name; /* Name of global variable */
41021 PyObject *(*get_attr)(void); /* Return the current value */
41022 int (*set_attr)(PyObject *); /* Set the value */
41023 struct swig_globalvar *next;
41024 } swig_globalvar;
41025
41026 typedef struct swig_varlinkobject {
41027 PyObject_HEAD
41028 swig_globalvar *vars;
41029 } swig_varlinkobject;
41030
41031 SWIGINTERN PyObject *
41032 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
41033 return PyString_FromString("<Swig global variables>");
41034 }
41035
41036 SWIGINTERN PyObject *
41037 swig_varlink_str(swig_varlinkobject *v) {
41038 PyObject *str = PyString_FromString("(");
41039 swig_globalvar *var;
41040 for (var = v->vars; var; var=var->next) {
41041 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
41042 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
41043 }
41044 PyString_ConcatAndDel(&str,PyString_FromString(")"));
41045 return str;
41046 }
41047
41048 SWIGINTERN int
41049 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
41050 PyObject *str = swig_varlink_str(v);
41051 fprintf(fp,"Swig global variables ");
41052 fprintf(fp,"%s\n", PyString_AsString(str));
41053 Py_DECREF(str);
41054 return 0;
41055 }
41056
41057 SWIGINTERN void
41058 swig_varlink_dealloc(swig_varlinkobject *v) {
41059 swig_globalvar *var = v->vars;
41060 while (var) {
41061 swig_globalvar *n = var->next;
41062 free(var->name);
41063 free(var);
41064 var = n;
be9b1dca 41065 }
554f62e9
RD
41066 }
41067
41068 SWIGINTERN PyObject *
41069 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
41070 PyObject *res = NULL;
41071 swig_globalvar *var = v->vars;
41072 while (var) {
41073 if (strcmp(var->name,n) == 0) {
41074 res = (*var->get_attr)();
41075 break;
41076 }
41077 var = var->next;
be9b1dca 41078 }
554f62e9
RD
41079 if (res == NULL && !PyErr_Occurred()) {
41080 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 41081 }
554f62e9
RD
41082 return res;
41083 }
41084
41085 SWIGINTERN int
41086 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
41087 int res = 1;
41088 swig_globalvar *var = v->vars;
41089 while (var) {
41090 if (strcmp(var->name,n) == 0) {
41091 res = (*var->set_attr)(p);
41092 break;
41093 }
41094 var = var->next;
be9b1dca 41095 }
554f62e9
RD
41096 if (res == 1 && !PyErr_Occurred()) {
41097 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 41098 }
554f62e9
RD
41099 return res;
41100 }
41101
41102 SWIGINTERN PyTypeObject*
41103 swig_varlink_type(void) {
41104 static char varlink__doc__[] = "Swig var link object";
41105 static PyTypeObject varlink_type;
41106 static int type_init = 0;
41107 if (!type_init) {
41108 const PyTypeObject tmp
41109 = {
41110 PyObject_HEAD_INIT(NULL)
41111 0, /* Number of items in variable part (ob_size) */
41112 (char *)"swigvarlink", /* Type name (tp_name) */
41113 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
41114 0, /* Itemsize (tp_itemsize) */
41115 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
41116 (printfunc) swig_varlink_print, /* Print (tp_print) */
41117 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
41118 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
41119 0, /* tp_compare */
41120 (reprfunc) swig_varlink_repr, /* tp_repr */
41121 0, /* tp_as_number */
41122 0, /* tp_as_sequence */
41123 0, /* tp_as_mapping */
41124 0, /* tp_hash */
41125 0, /* tp_call */
41126 (reprfunc)swig_varlink_str, /* tp_str */
41127 0, /* tp_getattro */
41128 0, /* tp_setattro */
41129 0, /* tp_as_buffer */
41130 0, /* tp_flags */
41131 varlink__doc__, /* tp_doc */
41132 0, /* tp_traverse */
41133 0, /* tp_clear */
41134 0, /* tp_richcompare */
41135 0, /* tp_weaklistoffset */
41136#if PY_VERSION_HEX >= 0x02020000
41137 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
41138#endif
41139#if PY_VERSION_HEX >= 0x02030000
41140 0, /* tp_del */
41141#endif
41142#ifdef COUNT_ALLOCS
41143 0,0,0,0 /* tp_alloc -> tp_next */
41144#endif
41145 };
41146 varlink_type = tmp;
41147 varlink_type.ob_type = &PyType_Type;
41148 type_init = 1;
be9b1dca 41149 }
554f62e9
RD
41150 return &varlink_type;
41151 }
41152
41153 /* Create a variable linking object for use later */
41154 SWIGINTERN PyObject *
41155 SWIG_Python_newvarlink(void) {
41156 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
41157 if (result) {
41158 result->vars = 0;
41159 }
41160 return ((PyObject*) result);
41161 }
41162
41163 SWIGINTERN void
41164 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
41165 swig_varlinkobject *v = (swig_varlinkobject *) p;
41166 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
41167 if (gv) {
41168 size_t size = strlen(name)+1;
41169 gv->name = (char *)malloc(size);
41170 if (gv->name) {
41171 strncpy(gv->name,name,size);
41172 gv->get_attr = get_attr;
41173 gv->set_attr = set_attr;
41174 gv->next = v->vars;
41175 }
be9b1dca 41176 }
554f62e9
RD
41177 v->vars = gv;
41178 }
41179
41180 SWIGINTERN PyObject *
41181 SWIG_globals() {
41182 static PyObject *_SWIG_globals = 0;
41183 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
41184 return _SWIG_globals;
41185 }
41186
41187 /* -----------------------------------------------------------------------------
41188 * constants/methods manipulation
41189 * ----------------------------------------------------------------------------- */
41190
41191 /* Install Constants */
41192 SWIGINTERN void
41193 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
41194 PyObject *obj = 0;
41195 size_t i;
41196 for (i = 0; constants[i].type; ++i) {
41197 switch(constants[i].type) {
41198 case SWIG_PY_POINTER:
41199 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41200 break;
41201 case SWIG_PY_BINARY:
41202 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41203 break;
41204 default:
41205 obj = 0;
41206 break;
41207 }
41208 if (obj) {
41209 PyDict_SetItemString(d, constants[i].name, obj);
41210 Py_DECREF(obj);
41211 }
be9b1dca 41212 }
554f62e9
RD
41213 }
41214
41215 /* -----------------------------------------------------------------------------*/
41216 /* Fix SwigMethods to carry the callback ptrs when needed */
41217 /* -----------------------------------------------------------------------------*/
41218
41219 SWIGINTERN void
41220 SWIG_Python_FixMethods(PyMethodDef *methods,
41221 swig_const_info *const_table,
41222 swig_type_info **types,
41223 swig_type_info **types_initial) {
41224 size_t i;
41225 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 41226 const char *c = methods[i].ml_doc;
554f62e9
RD
41227 if (c && (c = strstr(c, "swig_ptr: "))) {
41228 int j;
41229 swig_const_info *ci = 0;
453fb36b 41230 const char *name = c + 10;
554f62e9
RD
41231 for (j = 0; const_table[j].type; ++j) {
41232 if (strncmp(const_table[j].name, name,
41233 strlen(const_table[j].name)) == 0) {
41234 ci = &(const_table[j]);
41235 break;
41236 }
41237 }
41238 if (ci) {
41239 size_t shift = (ci->ptype) - types;
41240 swig_type_info *ty = types_initial[shift];
41241 size_t ldoc = (c - methods[i].ml_doc);
41242 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41243 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41244 if (ndoc) {
41245 char *buff = ndoc;
41246 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41247 if (ptr) {
41248 strncpy(buff, methods[i].ml_doc, ldoc);
41249 buff += ldoc;
41250 strncpy(buff, "swig_ptr: ", 10);
41251 buff += 10;
41252 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41253 methods[i].ml_doc = ndoc;
41254 }
41255 }
41256 }
41257 }
be9b1dca 41258 }
554f62e9
RD
41259 }
41260
41261#ifdef __cplusplus
41262}
41263#endif
41264
41265/* -----------------------------------------------------------------------------*
41266 * Partial Init method
41267 * -----------------------------------------------------------------------------*/
41268
41269#ifdef __cplusplus
41270extern "C"
41271#endif
41272SWIGEXPORT void SWIG_init(void) {
41273 PyObject *m, *d;
41274
41275 /* Fix SwigMethods to carry the callback ptrs when needed */
41276 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41277
41278 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41279 d = PyModule_GetDict(m);
41280
41281 SWIG_InitializeModule(0);
41282 SWIG_InstallConstants(d,swig_const_table);
41283
41284
f460c29d
RD
41285 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
41286 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
41287 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
41288 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
41289 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
554f62e9
RD
41290 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
41291 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
41292 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
41293 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
41294 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
41295 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
41296 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
41297 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
41298 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
41299 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
41300 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
41301 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
41302 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
41303 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
41304 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
41305 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
41306 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
41307 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
41308 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
41309 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
41310 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
41311 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
41312 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
41313 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
41314 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
41315 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
41316 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
41317 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
41318 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
41319 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
41320 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
41321 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
41322 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
41323 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
41324 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
41325 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
41326 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
41327 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
41328 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
41329 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
41330 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
41331 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
41332 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
41333 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
41334 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
41335 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
41336 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
41337 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
41338 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
41339 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
41340 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
41341 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
41342 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
41343 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
41344 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
41345 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
41346 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
41347 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
41348 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
41349 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
41350 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
41351 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
41352 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
41353 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
41354 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
41355 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
41356 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
41357 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
41358 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
41359 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
41360 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
41361 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
41362 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
41363 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
41364 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
41365 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
41366 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
41367 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
41368 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
41369 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
41370 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
41371 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
41372 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
41373 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
41374 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
41375 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
41376 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
41377 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
41378 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
41379 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
41380 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
41381 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
41382 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
41383 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
41384 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
41385 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41386 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41387 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41388 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41389 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41390 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41391 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41392 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41393 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41394 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41395 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41396 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41397 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41398 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41399 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41400 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41401 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41402 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41403 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41404 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41405 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41406 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41407 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41408 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41409 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41410 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41411 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41412 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41413 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41414 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41415 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41416 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41417
41418 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41419
41420 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41421 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41422 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41423 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41424 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41425 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41426 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41427 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41428 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41429 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41430 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41431 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41432 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41433 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41434 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41435 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41436 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41437 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41438 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41439 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41440 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41441 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41442 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41443 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41444 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41445 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41446 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41447 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41448 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41449 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41450 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41451 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41452 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41453 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41454 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41455 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41456 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41457 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41458 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41459 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41460 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41461 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41462 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41463 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41464 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41465 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41466 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41467 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41468 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41469 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41470 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41471 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41472 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41473 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41474 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41475 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41476 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41477 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41478 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41479 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41480 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41481 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41482 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41483 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41484 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41485 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41486 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41487 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41488 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41489 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41490 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41491 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41492 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41493 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41494 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41495 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41496 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41497 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41498 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41499 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41500 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41501 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41502 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41503 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41504 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41505 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41506 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41507 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41508 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41509 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41510 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41511 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41512 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41513 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41514 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41515 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41516 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41517 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41518 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41519 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41520 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41521 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41522 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41523 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41524 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41525 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41526 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41527 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41528 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41529 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41530 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41531 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41532 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41533 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41534 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41535 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41536 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41537 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41538 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41539 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41540 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41541 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41542 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41543 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41544 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41545 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41546 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41547 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41548 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41549 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41550 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41551 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41552 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41553 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41554 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41555 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41556 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41557 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41558 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41559 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41560 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41561 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41562 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41563 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41564 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41565 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41566 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41567 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41568 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41569 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41570 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41571 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41572 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41573 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41574 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41575 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41576 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41577 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41578 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41579 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41580 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41581 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41582 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41583 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41584 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41585 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41586 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41587 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41588 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41589 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41590 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41591 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41592 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41593 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41594 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41595 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41596 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41597 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41598 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41599 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41600 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41601 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41602 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41603 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41604 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41605 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41606 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41607 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41608 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41609 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41610 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41611 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41612 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41613 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41614 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41615 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41616 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41617 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41618 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41619 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41620 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41621 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41622 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41623 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41624 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41625 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41626 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41627 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41628 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41629 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41630 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41631 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41632 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41633 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41634 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41635 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41636 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41637 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41638 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41639 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41640 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41641 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41642 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41643 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41644 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41645 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41646 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41647 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41648 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41649 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41650 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41651 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41652 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41653 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41654 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41655 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41656 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41657 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41658 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41659 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41660 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41661 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41662 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41663 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41664 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41665 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41666 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41667 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
70d7cb34
RD
41668 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41669 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41670 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41671 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
554f62e9
RD
41672 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41673 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41674 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41675 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41676 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41677 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41678 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
50efceee
RD
41679 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41680 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41681 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41682 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41683 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41684 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41685 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41686 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41687 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41688 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41689 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41690 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41691 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41692 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41693 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41694 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41695 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41696 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41697 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41698 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41699 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41700 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41701 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41702 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41703 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41704 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41705 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41706 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41707 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41708 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41709 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41710 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41711 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41712 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41713 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
554f62e9
RD
41714 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41715 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41716 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41717 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41718 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41719 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41720 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41721 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
554f62e9
RD
41722 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41723 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41724 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 41725 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
554f62e9
RD
41726 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41727 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41728 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 41729 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
554f62e9
RD
41730 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41731 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41732 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41733 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41734 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41735 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41736 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
41737 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41738 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41739 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
554f62e9
RD
41740 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41741 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41742
41743 // Work around a chicken/egg problem in drawlist.cpp
41744 wxPyDrawList_SetAPIPtr();
41745
d55e5bfc
RD
41746}
41747