]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
1bd55598 3 * Version 1.3.29
d55e5bfc
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
1bd55598 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d55e5bfc
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
36ed4f51 27};
d55e5bfc
RD
28#endif
29
1bd55598 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
1bd55598 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
1bd55598
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
36ed4f51 46#endif
d55e5bfc 47
32fe5131
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
1bd55598
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
32fe5131
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
1bd55598
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
32fe5131
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
1bd55598
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
32fe5131
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
1bd55598
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
32fe5131
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
1bd55598
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
32fe5131 126
d55e5bfc 127
1bd55598 128/* Python.h has to appear first */
36ed4f51 129#include <Python.h>
d55e5bfc 130
1bd55598 131/* -----------------------------------------------------------------------------
36ed4f51 132 * swigrun.swg
d55e5bfc 133 *
1bd55598
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 137
36ed4f51
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
36ed4f51
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
32fe5131
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d55e5bfc 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
36ed4f51
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
32fe5131 159
36ed4f51 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
36ed4f51 162#endif
32fe5131 163
36ed4f51 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
1bd55598
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
32fe5131
RD
309#include <string.h>
310
d55e5bfc
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
32fe5131 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
32fe5131
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
1bd55598 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
32fe5131
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
36ed4f51
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
1bd55598 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
36ed4f51
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 368 Return 0 if not equal, 1 if equal
36ed4f51
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
36ed4f51
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
32fe5131
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
36ed4f51 388*/
32fe5131
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
36ed4f51 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
36ed4f51 400 }
32fe5131 401 return equiv;
36ed4f51
RD
402}
403
32fe5131
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
36ed4f51
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
36ed4f51 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
36ed4f51
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
36ed4f51
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
1bd55598 481 if (!type) return NULL;
36ed4f51
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
36ed4f51
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
32fe5131
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
36ed4f51
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
32fe5131
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
36ed4f51 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
1bd55598
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
32fe5131
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
36ed4f51 556 }
32fe5131
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
36ed4f51 591 }
32fe5131
RD
592
593 /* neither found a match */
594 return 0;
36ed4f51
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
32fe5131
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
36ed4f51 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
36ed4f51
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
32fe5131 619 register const unsigned char *eu = u + sz;
36ed4f51 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
1bd55598 622 register unsigned char uu;
36ed4f51
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
36ed4f51
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d55e5bfc 682
36ed4f51
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d55e5bfc
RD
695
696#ifdef __cplusplus
697}
698#endif
699
1bd55598
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d55e5bfc 714
1bd55598
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
36ed4f51 764#endif
1bd55598
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c370783e 799
36ed4f51 800/* -----------------------------------------------------------------------------
1bd55598 801 * error manipulation
36ed4f51 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
1bd55598
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d55e5bfc 846
1bd55598
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
36ed4f51 935#endif
d55e5bfc 936
1bd55598
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
36ed4f51 940
1bd55598
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
36ed4f51
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 951
36ed4f51 952/* Constant Types */
36ed4f51
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
1bd55598
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
36ed4f51 964} swig_const_info;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
1bd55598
RD
967#if 0
968{ /* cc-mode */
969#endif
36ed4f51
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
1bd55598
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
36ed4f51
RD
978 * pyrun.swg
979 *
1bd55598
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
36ed4f51 983 *
1bd55598 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
36ed4f51 986/* Common SWIG API */
d55e5bfc 987
4f89b6b7
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
1bd55598
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
d55e5bfc 1000
1bd55598
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
d55e5bfc 1004
1bd55598
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d55e5bfc 1008
1bd55598
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
d55e5bfc 1012
1bd55598
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1016
c370783e 1017
1bd55598 1018/* Runtime API */
d55e5bfc 1019
1bd55598
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1023
1bd55598
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
32fe5131 1029
d55e5bfc 1030
1bd55598 1031/* Runtime API implementation */
c370783e 1032
1bd55598 1033/* Error manipulation */
c370783e 1034
1bd55598
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
c370783e 1041}
d55e5bfc 1042
1bd55598
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
c370783e 1048}
d55e5bfc 1049
1bd55598 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
1bd55598 1052/* Set a constant value */
d55e5bfc 1053
1bd55598
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
d55e5bfc
RD
1058}
1059
1bd55598 1060/* Append a value to the result obj */
d55e5bfc 1061
1bd55598
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
36ed4f51 1088 } else {
1bd55598
RD
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
36ed4f51 1100 }
1bd55598
RD
1101 return result;
1102#endif
36ed4f51 1103}
c370783e 1104
1bd55598 1105/* Unpack the argument tuple */
d55e5bfc 1106
1bd55598
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
36ed4f51
RD
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 1609#if PY_VERSION_HEX >= 0x02020000
36ed4f51 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
36ed4f51
RD
1613#endif
1614 };
1615
1bd55598 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
36ed4f51 1618 if (!type_init) {
1bd55598
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
36ed4f51 1632#endif
1bd55598
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
36ed4f51 1651#if PY_VERSION_HEX >= 0x02020000
1bd55598
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
36ed4f51
RD
1672#endif
1673#if PY_VERSION_HEX >= 0x02030000
1bd55598 1674 0, /* tp_del */
36ed4f51
RD
1675#endif
1676#ifdef COUNT_ALLOCS
1bd55598 1677 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1678#endif
1bd55598 1679 };
32fe5131 1680 pyswigobject_type = tmp;
1bd55598 1681 pyswigobject_type.ob_type = &PyType_Type;
36ed4f51 1682 type_init = 1;
d55e5bfc 1683 }
32fe5131 1684 return &pyswigobject_type;
d55e5bfc
RD
1685}
1686
36ed4f51 1687SWIGRUNTIME PyObject *
1bd55598 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
36ed4f51 1689{
1bd55598
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
32fe5131 1696 }
1bd55598 1697 return (PyObject *)sobj;
36ed4f51 1698}
c370783e 1699
36ed4f51
RD
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1bd55598 1707 swig_type_info *ty;
36ed4f51
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
1bd55598 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
c370783e 1713{
36ed4f51
RD
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
d55e5bfc 1719 }
1bd55598 1720 fputs(v->ty->name,fp);
36ed4f51
RD
1721 fputs(">", fp);
1722 return 0;
c370783e 1723}
c370783e 1724
36ed4f51
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
c370783e 1727{
36ed4f51
RD
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1bd55598 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
36ed4f51 1731 } else {
1bd55598 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
36ed4f51 1733 }
d55e5bfc
RD
1734}
1735
36ed4f51
RD
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1bd55598 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
36ed4f51 1742 } else {
1bd55598 1743 return PyString_FromString(v->ty->name);
36ed4f51
RD
1744 }
1745}
d55e5bfc 1746
36ed4f51
RD
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
d55e5bfc 1749{
1bd55598
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
d55e5bfc
RD
1754}
1755
1bd55598 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
d55e5bfc 1757
36ed4f51 1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
1bd55598
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
36ed4f51
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
1bd55598 1837 0, /* tp_del */
36ed4f51
RD
1838#endif
1839#ifdef COUNT_ALLOCS
1bd55598 1840 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1841#endif
1bd55598 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
1bd55598 1844 pyswigpacked_type.ob_type = &PyType_Type;
36ed4f51
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
36ed4f51
RD
1848}
1849
1850SWIGRUNTIME PyObject *
1bd55598 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
d55e5bfc 1852{
1bd55598
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
36ed4f51 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1bd55598
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
32fe5131 1864 }
d55e5bfc 1865 }
1bd55598 1866 return (PyObject *) sobj;
d55e5bfc
RD
1867}
1868
1bd55598 1869SWIGRUNTIME swig_type_info *
36ed4f51 1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
d55e5bfc 1871{
1bd55598
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
36ed4f51 1880}
d55e5bfc 1881
36ed4f51 1882/* -----------------------------------------------------------------------------
1bd55598 1883 * pointers/data manipulation
36ed4f51 1884 * ----------------------------------------------------------------------------- */
d55e5bfc 1885
1bd55598
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
d6c14a4c 1891
1bd55598
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
d55e5bfc 1898
1bd55598 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
36ed4f51 1900
1bd55598
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
36ed4f51 1903{
1bd55598
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
36ed4f51 1926 } else {
1bd55598
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
36ed4f51 1929 }
36ed4f51 1930 }
1bd55598
RD
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
c370783e 1947 }
d55e5bfc
RD
1948}
1949
1bd55598
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
36ed4f51 1961 }
1bd55598 1962 return 0;
36ed4f51 1963}
d55e5bfc 1964
1bd55598
RD
1965/* Convert a pointer value */
1966
36ed4f51 1967SWIGRUNTIME int
1bd55598
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
36ed4f51 1992 } else {
1bd55598
RD
1993 if (ptr) *ptr = vptr;
1994 break;
36ed4f51 1995 }
36ed4f51 1996 }
1bd55598
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
d55e5bfc 2042 }
c370783e
RD
2043}
2044
1bd55598
RD
2045/* Convert a function ptr value */
2046
36ed4f51 2047SWIGRUNTIME int
1bd55598
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
36ed4f51 2051 } else {
1bd55598
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
4f89b6b7 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1bd55598
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
36ed4f51 2069 }
d55e5bfc
RD
2070}
2071
1bd55598 2072/* Convert a packed value value */
d55e5bfc 2073
36ed4f51 2074SWIGRUNTIME int
1bd55598
RD
2075SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
36ed4f51 2084 }
1bd55598
RD
2085 return SWIG_OK;
2086}
d55e5bfc 2087
1bd55598
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
d55e5bfc 2091
1bd55598
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
d55e5bfc 2096
1bd55598
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
36ed4f51 2115 }
1bd55598
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
36ed4f51 2120 }
1bd55598
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
36ed4f51 2126 }
1bd55598
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
36ed4f51 2140 }
1bd55598
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
36ed4f51 2147 }
1bd55598
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
36ed4f51 2158}
d55e5bfc 2159
1bd55598
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
36ed4f51 2175#endif
1bd55598
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
d55e5bfc 2180
1bd55598
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
36ed4f51 2191 } else {
1bd55598 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
36ed4f51 2193 }
1bd55598 2194 return SWIG_Py_Void();
d55e5bfc 2195 }
1bd55598
RD
2196}
2197
2198/* Create a new pointer object */
36ed4f51 2199
36ed4f51 2200SWIGRUNTIME PyObject *
1bd55598 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
36ed4f51 2202 if (!ptr) {
1bd55598
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
36ed4f51 2213 }
36ed4f51 2214 }
1bd55598 2215 return robj;
36ed4f51 2216 }
c370783e
RD
2217}
2218
1bd55598
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
36ed4f51 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1bd55598 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
d55e5bfc
RD
2224}
2225
36ed4f51
RD
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
32fe5131
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
36ed4f51
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
d55e5bfc 2241#else
36ed4f51
RD
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
d55e5bfc 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
36ed4f51 2251}
d55e5bfc 2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
1bd55598 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
1bd55598 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
1bd55598 2268 return SWIG_ERROR;
32fe5131
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
1bd55598 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
1bd55598 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
1bd55598 2281 return SWIG_OK;
36ed4f51 2282}
32fe5131 2283#endif
d55e5bfc 2284
1bd55598
RD
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
32fe5131
RD
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
1bd55598 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1bd55598
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
d55e5bfc 2314
1bd55598
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
36ed4f51 2320}
d55e5bfc 2321
1bd55598
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
fc46b7f3
RD
2466#define SWIGTYPE_p_buffer swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
2468#define SWIGTYPE_p_double swig_types[2]
2469#define SWIGTYPE_p_form_ops_t swig_types[3]
2470#define SWIGTYPE_p_int swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
0a27f394
RD
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479#define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480#define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481#define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482#define SWIGTYPE_p_wxBitmap swig_types[16]
2483#define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484#define SWIGTYPE_p_wxBrush swig_types[18]
2485#define SWIGTYPE_p_wxBrushList swig_types[19]
2486#define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487#define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488#define SWIGTYPE_p_wxCURHandler swig_types[22]
cbfc9df6
RD
2489#define SWIGTYPE_p_wxChildFocusEvent swig_types[23]
2490#define SWIGTYPE_p_wxClientDC swig_types[24]
2491#define SWIGTYPE_p_wxClipboardTextEvent swig_types[25]
2492#define SWIGTYPE_p_wxCloseEvent swig_types[26]
2493#define SWIGTYPE_p_wxColour swig_types[27]
2494#define SWIGTYPE_p_wxColourDatabase swig_types[28]
2495#define SWIGTYPE_p_wxCommandEvent swig_types[29]
2496#define SWIGTYPE_p_wxContextMenuEvent swig_types[30]
2497#define SWIGTYPE_p_wxControl swig_types[31]
2498#define SWIGTYPE_p_wxControlWithItems swig_types[32]
2499#define SWIGTYPE_p_wxCursor swig_types[33]
2500#define SWIGTYPE_p_wxDC swig_types[34]
2501#define SWIGTYPE_p_wxDCBrushChanger swig_types[35]
2502#define SWIGTYPE_p_wxDCClipper swig_types[36]
2503#define SWIGTYPE_p_wxDCOverlay swig_types[37]
2504#define SWIGTYPE_p_wxDCPenChanger swig_types[38]
2505#define SWIGTYPE_p_wxDCTextColourChanger swig_types[39]
2506#define SWIGTYPE_p_wxDash swig_types[40]
2507#define SWIGTYPE_p_wxDateEvent swig_types[41]
2508#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[42]
2509#define SWIGTYPE_p_wxDropFilesEvent swig_types[43]
2510#define SWIGTYPE_p_wxDuplexMode swig_types[44]
2511#define SWIGTYPE_p_wxEffects swig_types[45]
2512#define SWIGTYPE_p_wxEncodingConverter swig_types[46]
2513#define SWIGTYPE_p_wxEraseEvent swig_types[47]
2514#define SWIGTYPE_p_wxEvent swig_types[48]
2515#define SWIGTYPE_p_wxEventBlocker swig_types[49]
2516#define SWIGTYPE_p_wxEvtHandler swig_types[50]
2517#define SWIGTYPE_p_wxFSFile swig_types[51]
2518#define SWIGTYPE_p_wxFileSystem swig_types[52]
2519#define SWIGTYPE_p_wxFlexGridSizer swig_types[53]
2520#define SWIGTYPE_p_wxFocusEvent swig_types[54]
2521#define SWIGTYPE_p_wxFont swig_types[55]
2522#define SWIGTYPE_p_wxFontList swig_types[56]
2523#define SWIGTYPE_p_wxFontMapper swig_types[57]
2524#define SWIGTYPE_p_wxGBSizerItem swig_types[58]
2525#define SWIGTYPE_p_wxGCDC swig_types[59]
2526#define SWIGTYPE_p_wxGDIObjListBase swig_types[60]
2527#define SWIGTYPE_p_wxGDIObject swig_types[61]
2528#define SWIGTYPE_p_wxGIFHandler swig_types[62]
2529#define SWIGTYPE_p_wxGraphicsBrush swig_types[63]
2530#define SWIGTYPE_p_wxGraphicsContext swig_types[64]
2531#define SWIGTYPE_p_wxGraphicsFont swig_types[65]
2532#define SWIGTYPE_p_wxGraphicsMatrix swig_types[66]
2533#define SWIGTYPE_p_wxGraphicsObject swig_types[67]
2534#define SWIGTYPE_p_wxGraphicsPath swig_types[68]
2535#define SWIGTYPE_p_wxGraphicsPen swig_types[69]
2536#define SWIGTYPE_p_wxGraphicsRenderer swig_types[70]
2537#define SWIGTYPE_p_wxGridBagSizer swig_types[71]
2538#define SWIGTYPE_p_wxGridSizer swig_types[72]
2539#define SWIGTYPE_p_wxHeaderButtonParams swig_types[73]
2540#define SWIGTYPE_p_wxICOHandler swig_types[74]
2541#define SWIGTYPE_p_wxIcon swig_types[75]
2542#define SWIGTYPE_p_wxIconBundle swig_types[76]
2543#define SWIGTYPE_p_wxIconLocation swig_types[77]
2544#define SWIGTYPE_p_wxIconizeEvent swig_types[78]
2545#define SWIGTYPE_p_wxIdleEvent swig_types[79]
2546#define SWIGTYPE_p_wxImage swig_types[80]
2547#define SWIGTYPE_p_wxImageHandler swig_types[81]
2548#define SWIGTYPE_p_wxImageList swig_types[82]
2549#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[83]
2550#define SWIGTYPE_p_wxInitDialogEvent swig_types[84]
2551#define SWIGTYPE_p_wxJPEGHandler swig_types[85]
2552#define SWIGTYPE_p_wxKeyEvent swig_types[86]
2553#define SWIGTYPE_p_wxLanguageInfo swig_types[87]
2554#define SWIGTYPE_p_wxLayoutConstraints swig_types[88]
2555#define SWIGTYPE_p_wxLocale swig_types[89]
2556#define SWIGTYPE_p_wxMask swig_types[90]
2557#define SWIGTYPE_p_wxMaximizeEvent swig_types[91]
2558#define SWIGTYPE_p_wxMemoryDC swig_types[92]
2559#define SWIGTYPE_p_wxMenu swig_types[93]
2560#define SWIGTYPE_p_wxMenuBar swig_types[94]
2561#define SWIGTYPE_p_wxMenuEvent swig_types[95]
2562#define SWIGTYPE_p_wxMenuItem swig_types[96]
2563#define SWIGTYPE_p_wxMetaFile swig_types[97]
2564#define SWIGTYPE_p_wxMetaFileDC swig_types[98]
2565#define SWIGTYPE_p_wxMirrorDC swig_types[99]
2566#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[100]
2567#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[101]
2568#define SWIGTYPE_p_wxMouseEvent swig_types[102]
2569#define SWIGTYPE_p_wxMoveEvent swig_types[103]
2570#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[104]
2571#define SWIGTYPE_p_wxNativeFontInfo swig_types[105]
2572#define SWIGTYPE_p_wxNativePixelData swig_types[106]
2573#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[107]
2574#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[108]
2575#define SWIGTYPE_p_wxNcPaintEvent swig_types[109]
2576#define SWIGTYPE_p_wxNotifyEvent swig_types[110]
2577#define SWIGTYPE_p_wxObject swig_types[111]
2578#define SWIGTYPE_p_wxOverlay swig_types[112]
2579#define SWIGTYPE_p_wxPCXHandler swig_types[113]
2580#define SWIGTYPE_p_wxPNGHandler swig_types[114]
2581#define SWIGTYPE_p_wxPNMHandler swig_types[115]
2582#define SWIGTYPE_p_wxPaintDC swig_types[116]
2583#define SWIGTYPE_p_wxPaintEvent swig_types[117]
2584#define SWIGTYPE_p_wxPalette swig_types[118]
2585#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[119]
2586#define SWIGTYPE_p_wxPaperSize swig_types[120]
2587#define SWIGTYPE_p_wxPen swig_types[121]
2588#define SWIGTYPE_p_wxPenList swig_types[122]
2589#define SWIGTYPE_p_wxPixelDataBase swig_types[123]
2590#define SWIGTYPE_p_wxPoint swig_types[124]
2591#define SWIGTYPE_p_wxPoint2D swig_types[125]
2592#define SWIGTYPE_p_wxPostScriptDC swig_types[126]
2593#define SWIGTYPE_p_wxPrintData swig_types[127]
2594#define SWIGTYPE_p_wxPrinterDC swig_types[128]
2595#define SWIGTYPE_p_wxPseudoDC swig_types[129]
2596#define SWIGTYPE_p_wxPyApp swig_types[130]
2597#define SWIGTYPE_p_wxPyCommandEvent swig_types[131]
2598#define SWIGTYPE_p_wxPyEvent swig_types[132]
2599#define SWIGTYPE_p_wxPyFontEnumerator swig_types[133]
2600#define SWIGTYPE_p_wxPyImageHandler swig_types[134]
2601#define SWIGTYPE_p_wxPyLocale swig_types[135]
2602#define SWIGTYPE_p_wxPySizer swig_types[136]
2603#define SWIGTYPE_p_wxPyValidator swig_types[137]
2604#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[138]
2605#define SWIGTYPE_p_wxRect swig_types[139]
2606#define SWIGTYPE_p_wxRect2D swig_types[140]
2607#define SWIGTYPE_p_wxRegion swig_types[141]
2608#define SWIGTYPE_p_wxRegionIterator swig_types[142]
2609#define SWIGTYPE_p_wxRendererNative swig_types[143]
2610#define SWIGTYPE_p_wxRendererVersion swig_types[144]
2611#define SWIGTYPE_p_wxScreenDC swig_types[145]
2612#define SWIGTYPE_p_wxScrollEvent swig_types[146]
2613#define SWIGTYPE_p_wxScrollWinEvent swig_types[147]
2614#define SWIGTYPE_p_wxSetCursorEvent swig_types[148]
2615#define SWIGTYPE_p_wxShowEvent swig_types[149]
2616#define SWIGTYPE_p_wxSize swig_types[150]
2617#define SWIGTYPE_p_wxSizeEvent swig_types[151]
2618#define SWIGTYPE_p_wxSizer swig_types[152]
2619#define SWIGTYPE_p_wxSizerItem swig_types[153]
2620#define SWIGTYPE_p_wxSplitterRenderParams swig_types[154]
2621#define SWIGTYPE_p_wxStaticBoxSizer swig_types[155]
2622#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[156]
2623#define SWIGTYPE_p_wxStockGDI swig_types[157]
2624#define SWIGTYPE_p_wxString swig_types[158]
2625#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[159]
2626#define SWIGTYPE_p_wxTGAHandler swig_types[160]
2627#define SWIGTYPE_p_wxTIFFHandler swig_types[161]
2628#define SWIGTYPE_p_wxUpdateUIEvent swig_types[162]
2629#define SWIGTYPE_p_wxValidator swig_types[163]
2630#define SWIGTYPE_p_wxWindow swig_types[164]
2631#define SWIGTYPE_p_wxWindowCreateEvent swig_types[165]
2632#define SWIGTYPE_p_wxWindowDC swig_types[166]
2633#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[167]
2634#define SWIGTYPE_p_wxXPMHandler swig_types[168]
2635static swig_type_info *swig_types[170];
2636static swig_module_info swig_module = {swig_types, 169, 0, 0, 0, 0};
32fe5131
RD
2637#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2638#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2639
36ed4f51 2640/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2641
1bd55598
RD
2642#if (PY_VERSION_HEX <= 0x02000000)
2643# if !defined(SWIG_PYTHON_CLASSIC)
2644# error "This python version requires to use swig with the '-classic' option"
2645# endif
2646#endif
2647#if (PY_VERSION_HEX <= 0x02020000)
2648# error "This python version requires to use swig with the '-nomodern' option"
2649#endif
2650#if (PY_VERSION_HEX <= 0x02020000)
2651# error "This python version requires to use swig with the '-nomodernargs' option"
2652#endif
2653#ifndef METH_O
2654# error "This python version requires to use swig with the '-nofastunpack' option"
2655#endif
d55e5bfc 2656
36ed4f51
RD
2657/*-----------------------------------------------
2658 @(target):= _gdi_.so
2659 ------------------------------------------------*/
2660#define SWIG_init init_gdi_
d55e5bfc 2661
36ed4f51 2662#define SWIG_name "_gdi_"
d55e5bfc 2663
1bd55598 2664#define SWIGVERSION 0x010329
d55e5bfc 2665
d55e5bfc 2666
1bd55598
RD
2667#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2668#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2669
2670
1bd55598
RD
2671#include <stdexcept>
2672
2673
2674namespace swig {
2675 class PyObject_ptr {
2676 protected:
2677 PyObject *_obj;
2678
2679 public:
2680 PyObject_ptr() :_obj(0)
2681 {
36ed4f51 2682 }
1bd55598
RD
2683
2684 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2685 {
2686 Py_XINCREF(_obj);
36ed4f51 2687 }
1bd55598
RD
2688
2689 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2690 {
2691 if (initial_ref) Py_XINCREF(_obj);
2692 }
2693
2694 PyObject_ptr & operator=(const PyObject_ptr& item)
2695 {
2696 Py_XINCREF(item._obj);
2697 Py_XDECREF(_obj);
2698 _obj = item._obj;
2699 return *this;
2700 }
2701
2702 ~PyObject_ptr()
2703 {
2704 Py_XDECREF(_obj);
2705 }
2706
2707 operator PyObject *() const
2708 {
2709 return _obj;
2710 }
2711
2712 PyObject *operator->() const
2713 {
2714 return _obj;
2715 }
2716 };
36ed4f51 2717}
d55e5bfc 2718
d55e5bfc 2719
1bd55598
RD
2720namespace swig {
2721 struct PyObject_var : PyObject_ptr {
2722 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2723
2724 PyObject_var & operator = (PyObject* obj)
2725 {
2726 Py_XDECREF(_obj);
2727 _obj = obj;
2728 return *this;
d55e5bfc 2729 }
1bd55598 2730 };
d55e5bfc
RD
2731}
2732
2733
1bd55598
RD
2734#include "wx/wxPython/wxPython.h"
2735#include "wx/wxPython/pyclasses.h"
2736
2737
2738 static const wxString wxPyEmptyString(wxEmptyString);
2739
2131d850
RD
2740 #define SWIG_From_long PyInt_FromLong
2741
2742
2743SWIGINTERNINLINE PyObject *
2744SWIG_From_int (int value)
2745{
2746 return SWIG_From_long (value);
2747}
2748
2749
1bd55598
RD
2750#include <limits.h>
2751#ifndef LLONG_MIN
2752# define LLONG_MIN LONG_LONG_MIN
2753#endif
2754#ifndef LLONG_MAX
2755# define LLONG_MAX LONG_LONG_MAX
2756#endif
2757#ifndef ULLONG_MAX
2758# define ULLONG_MAX ULONG_LONG_MAX
2759#endif
d55e5bfc
RD
2760
2761
da91cb0f
RD
2762SWIGINTERN int
2763SWIG_AsVal_long (PyObject* obj, long* val)
2764{
2765 if (PyNumber_Check(obj)) {
2766 if (val) *val = PyInt_AsLong(obj);
2767 return SWIG_OK;
2768 }
2769 return SWIG_TypeError;
2770}
2771
2772
36ed4f51 2773SWIGINTERN int
1bd55598 2774SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
36ed4f51
RD
2775{
2776 long v = 0;
2777 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1bd55598 2778 return SWIG_TypeError;
36ed4f51
RD
2779 }
2780 else if (val)
2781 *val = (unsigned long)v;
1bd55598 2782 return SWIG_OK;
36ed4f51 2783}
d55e5bfc
RD
2784
2785
36ed4f51 2786SWIGINTERN int
1bd55598
RD
2787SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2788{
36ed4f51 2789 unsigned long v;
1bd55598
RD
2790 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2791 if (SWIG_IsOK(res)) {
2792 if ((v > UCHAR_MAX)) {
2793 return SWIG_OverflowError;
36ed4f51 2794 } else {
1bd55598 2795 if (val) *val = static_cast< unsigned char >(v);
36ed4f51 2796 }
1bd55598
RD
2797 }
2798 return res;
36ed4f51 2799}
d55e5bfc 2800
d55e5bfc 2801
1bd55598
RD
2802SWIGINTERNINLINE PyObject*
2803SWIG_From_unsigned_SS_long (unsigned long value)
36ed4f51 2804{
1bd55598
RD
2805 return (value > LONG_MAX) ?
2806 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
d55e5bfc
RD
2807}
2808
2809
1bd55598
RD
2810SWIGINTERNINLINE PyObject *
2811SWIG_From_unsigned_SS_char (unsigned char value)
2812{
2813 return SWIG_From_unsigned_SS_long (value);
2814}
d55e5bfc 2815
e9d6f3a4
RD
2816SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2817 wxColour temp, *obj = &temp;
2818 if ( other == Py_None ) return false;
2819 if ( ! wxColour_helper(other, &obj) ) {
2820 PyErr_Clear();
2821 return false;
2822 }
2823 return self->operator==(*obj);
2824 }
2825SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2826 wxColour temp, *obj = &temp;
2827 if ( other == Py_None ) return true;
2828 if ( ! wxColour_helper(other, &obj)) {
2829 PyErr_Clear();
2830 return true;
2831 }
2832 return self->operator!=(*obj);
2833 }
fc46b7f3
RD
2834
2835SWIGINTERN int
2836SWIG_AsVal_bool (PyObject *obj, bool *val)
2837{
2838 if (obj == Py_True) {
2839 if (val) *val = true;
2840 return SWIG_OK;
2841 } else if (obj == Py_False) {
2842 if (val) *val = false;
2843 return SWIG_OK;
2844 } else {
2845 long v = 0;
2846 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2847 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2848 return res;
2849 }
2850}
2851
2852SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2853 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
36ed4f51
RD
2854 int red = -1;
2855 int green = -1;
2856 int blue = -1;
fc46b7f3 2857 int alpha = wxALPHA_OPAQUE;
b39fe951 2858 if (self->IsOk()) {
36ed4f51
RD
2859 red = self->Red();
2860 green = self->Green();
2861 blue = self->Blue();
fc46b7f3 2862 alpha = self->Alpha();
36ed4f51
RD
2863 }
2864 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2865 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2866 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2867 if (includeAlpha)
2868 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
36ed4f51
RD
2869 return rv;
2870 }
1bd55598 2871SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
36ed4f51
RD
2872 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2873 }
d55e5bfc 2874
1bd55598
RD
2875SWIGINTERN int
2876SWIG_AsVal_int (PyObject * obj, int *val)
36ed4f51 2877{
1bd55598
RD
2878 long v;
2879 int res = SWIG_AsVal_long (obj, &v);
2880 if (SWIG_IsOK(res)) {
2881 if ((v < INT_MIN || v > INT_MAX)) {
2882 return SWIG_OverflowError;
2883 } else {
2884 if (val) *val = static_cast< int >(v);
2885 }
2886 }
2887 return res;
d55e5bfc
RD
2888}
2889
1bd55598 2890SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
36ed4f51
RD
2891 wxDash* dashes;
2892 int count = self->GetDashes(&dashes);
5a446332 2893 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2894 PyObject* retval = PyList_New(0);
2895 for (int x=0; x<count; x++) {
2896 PyObject* pyint = PyInt_FromLong(dashes[x]);
2897 PyList_Append(retval, pyint);
2898 Py_DECREF(pyint);
2899 }
2900 wxPyEndBlockThreads(blocked);
2901 return retval;
2902 }
1bd55598 2903SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2904 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2905 int size = PyList_Size(pyDashes);
2906 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2907
36ed4f51
RD
2908 // black magic warning! The array of wxDashes needs to exist as
2909 // long as the pen does because wxPen does not copy the array. So
2910 // stick a copy in a Python string object and attach it to _self,
2911 // and then call SetDashes with a pointer to that array. Then
2912 // when the Python pen object is destroyed the array will be
2913 // cleaned up too.
2914 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2915 PyObject_SetAttrString(_self, "_dashes", strDashes);
2916
2917 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2918 delete [] dashes;
2919 Py_DECREF(strDashes);
2920 wxPyEndBlockThreads(blocked);
2921 }
1bd55598
RD
2922SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2923SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2924
1bd55598
RD
2925SWIGINTERNINLINE PyObject *
2926SWIG_From_short (short value)
2927{
2928 return SWIG_From_long (value);
2929}
d55e5bfc
RD
2930
2931
36ed4f51 2932SWIGINTERN int
1bd55598
RD
2933SWIG_AsVal_short (PyObject * obj, short *val)
2934{
36ed4f51 2935 long v;
1bd55598
RD
2936 int res = SWIG_AsVal_long (obj, &v);
2937 if (SWIG_IsOK(res)) {
2938 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2939 return SWIG_OverflowError;
36ed4f51 2940 } else {
1bd55598
RD
2941 if (val) *val = static_cast< short >(v);
2942 }
2943 }
2944 return res;
d55e5bfc
RD
2945}
2946
2947
fc46b7f3
RD
2948#include <wx/rawbmp.h>
2949
2950
8f514ab4
RD
2951// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2952// appears to me that the other platforms are already doing it, so I'll just
2953// automatically do it for wxMSW here.
2954#ifdef __WXMSW__
2955#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2956#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2957#else
2958#define wxPy_premultiply(p, a) (p)
2959#define wxPy_unpremultiply(p, a) (p)
2960#endif
2961
2962
36ed4f51 2963#include <wx/image.h>
d55e5bfc 2964
36ed4f51
RD
2965 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2966 char** cArray = NULL;
2967 int count;
d55e5bfc 2968
36ed4f51
RD
2969 if (!PyList_Check(listOfStrings)) {
2970 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2971 return NULL;
2972 }
2973 count = PyList_Size(listOfStrings);
2974 cArray = new char*[count];
d55e5bfc 2975
36ed4f51
RD
2976 for(int x=0; x<count; x++) {
2977 // TODO: Need some validation and error checking here
2978 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2979 }
2980 return cArray;
d55e5bfc 2981 }
d55e5bfc
RD
2982
2983
1bd55598 2984SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2985 char** cArray = NULL;
2986 wxBitmap* bmp;
2987
2988 cArray = ConvertListOfStrings(listOfStrings);
2989 if (! cArray)
2990 return NULL;
2991 bmp = new wxBitmap(cArray);
2992 delete [] cArray;
2993 return bmp;
2994 }
1bd55598 2995SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2996 char* buf;
2997 Py_ssize_t length;
2998 PyString_AsStringAndSize(bits, &buf, &length);
2999 return new wxBitmap(buf, width, height, depth);
3000 }
1bd55598 3001SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
36ed4f51
RD
3002 wxSize size(self->GetWidth(), self->GetHeight());
3003 return size;
3004 }
1bd55598 3005SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
36ed4f51
RD
3006 wxMask *mask = new wxMask(*self, colour);
3007 self->SetMask(mask);
3008 }
1bd55598 3009SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
36ed4f51
RD
3010 self->SetWidth(size.x);
3011 self->SetHeight(size.y);
3012 }
8f514ab4
RD
3013SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
3014 int height=self->GetHeight();
3015 int width=self->GetWidth();
fc46b7f3 3016
8f514ab4
RD
3017 if (DATASIZE != width * height * 3) {
3018 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3019 }
3020 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3021 if (! pixData) {
3022 // raise an exception...
3023 wxPyErr_SetString(PyExc_RuntimeError,
3024 "Failed to gain raw access to bitmap data.");
3025 return;
3026 }
fc46b7f3 3027
8f514ab4
RD
3028 wxNativePixelData::Iterator p(pixData);
3029 for (int y=0; y<height; y++) {
3030 wxNativePixelData::Iterator rowStart = p;
3031 for (int x=0; x<width; x++) {
3032 p.Red() = *(data++);
3033 p.Green() = *(data++);
3034 p.Blue() = *(data++);
3035 ++p;
3036 }
3037 p = rowStart;
3038 p.OffsetY(pixData, 1);
3039 }
3040 }
3041SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3042 int height=self->GetHeight();
3043 int width=self->GetWidth();
3044
3045 if (DATASIZE != width * height * 4) {
3046 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3047 }
3048 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3049 if (! pixData) {
3050 // raise an exception...
3051 wxPyErr_SetString(PyExc_RuntimeError,
3052 "Failed to gain raw access to bitmap data.");
3053 return;
3054 }
3055
3056 pixData.UseAlpha();
3057 wxAlphaPixelData::Iterator p(pixData);
3058 for (int y=0; y<height; y++) {
3059 wxAlphaPixelData::Iterator rowStart = p;
3060 for (int x=0; x<width; x++) {
3061 byte a = data[3];
3062 p.Red() = wxPy_premultiply(*(data++), a);
3063 p.Green() = wxPy_premultiply(*(data++), a);
3064 p.Blue() = wxPy_premultiply(*(data++), a);
3065 p.Alpha() = a; data++;
3066 ++p;
3067 }
3068 p = rowStart;
3069 p.OffsetY(pixData, 1);
3070 }
3071 }
3072SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3073SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
fc46b7f3
RD
3074
3075 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3076 buffer data, int DATASIZE,
3077 buffer alpha, int ALPHASIZE)
3078 {
3079 if (DATASIZE != width*height*3) {
3080 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3081 return NULL;
3082 }
3083
3084 if (ALPHASIZE != width*height) {
3085 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3086 return NULL;
3087 }
3088
3089 wxBitmap* bmp = new wxBitmap(width, height, 32);
3090 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3091 if (! pixData) {
3092 // raise an exception...
3093 wxPyErr_SetString(PyExc_RuntimeError,
3094 "Failed to gain raw access to bitmap data.");
3095 return NULL;
3096 }
3097
3098 pixData.UseAlpha();
3099 wxAlphaPixelData::Iterator p(pixData);
3100 for (int y=0; y<height; y++) {
3101 wxAlphaPixelData::Iterator rowStart = p;
3102 for (int x=0; x<width; x++) {
3103 byte a = *(alpha++);
3104 p.Red() = wxPy_premultiply(*(data++), a);
3105 p.Green() = wxPy_premultiply(*(data++), a);
3106 p.Blue() = wxPy_premultiply(*(data++), a);
3107 p.Alpha() = a;
3108 ++p;
3109 }
3110 p = rowStart;
3111 p.OffsetY(pixData, 1);
3112 }
3113 return bmp;
3114 }
3115
3116 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3117 {
3118 if (DATASIZE != width*height*3) {
3119 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3120 return NULL;
3121 }
3122
3123 wxBitmap* bmp = new wxBitmap(width, height, 24);
3124 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3125 if (! pixData) {
3126 // raise an exception...
3127 wxPyErr_SetString(PyExc_RuntimeError,
3128 "Failed to gain raw access to bitmap data.");
3129 return NULL;
3130 }
3131
3132 wxNativePixelData::Iterator p(pixData);
3133 for (int y=0; y<height; y++) {
3134 wxNativePixelData::Iterator rowStart = p;
3135 for (int x=0; x<width; x++) {
3136 p.Red() = *(data++);
3137 p.Green() = *(data++);
3138 p.Blue() = *(data++);
3139 ++p;
3140 }
3141 p = rowStart;
3142 p.OffsetY(pixData, 1);
3143 }
3144 return bmp;
3145 }
3146
3147
3148 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3149 {
3150 if (DATASIZE != width*height*4) {
3151 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3152 return NULL;
3153 }
3154
3155 wxBitmap* bmp = new wxBitmap(width, height, 32);
3156 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3157 if (! pixData) {
3158 // raise an exception...
3159 wxPyErr_SetString(PyExc_RuntimeError,
3160 "Failed to gain raw access to bitmap data.");
3161 return NULL;
3162 }
3163
3164 pixData.UseAlpha();
3165 wxAlphaPixelData::Iterator p(pixData);
3166 for (int y=0; y<height; y++) {
3167 wxAlphaPixelData::Iterator rowStart = p;
3168 for (int x=0; x<width; x++) {
3169 byte a = data[3];
3170 p.Red() = wxPy_premultiply(*(data++), a);
3171 p.Green() = wxPy_premultiply(*(data++), a);
3172 p.Blue() = wxPy_premultiply(*(data++), a);
3173 p.Alpha() = a; data++;
3174 ++p;
3175 }
3176 p = rowStart;
3177 p.OffsetY(pixData, 1);
3178 }
3179 return bmp;
3180 }
3181
3182
3183 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3184
3185SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3186SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3187SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3188 self->Red() = red;
3189 self->Green() = green;
3190 self->Blue() = blue;
3191 }
3192SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3193 PyObject* rv = PyTuple_New(3);
3194 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3195 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3196 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3197 return rv;
3198 }
3199
3200 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3201
3202SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3203SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3204SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3205 self->Red() = wxPy_premultiply(red, alpha);
3206 self->Green() = wxPy_premultiply(green, alpha);
3207 self->Blue() = wxPy_premultiply(blue, alpha);
3208 self->Alpha() = alpha;
3209 }
3210SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3211 PyObject* rv = PyTuple_New(4);
3212 int red = self->Red();
3213 int green = self->Green();
3214 int blue = self->Blue();
3215 int alpha = self->Alpha();
3216
3217 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3218 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3219 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3220 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3221 return rv;
3222 }
1bd55598 3223SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3224 if ( !colour.IsOk() )
36ed4f51
RD
3225 return new wxMask(bitmap, *wxBLACK);
3226 else
3227 return new wxMask(bitmap, colour);
3228 }
d55e5bfc 3229
36ed4f51 3230#include <wx/iconbndl.h>
d55e5bfc 3231
1bd55598 3232SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
36ed4f51
RD
3233 wxIcon* icon = new wxIcon();
3234 icon->CopyFromBitmap(bmp);
3235 return icon;
3236 }
1bd55598 3237SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
36ed4f51
RD
3238 char** cArray = NULL;
3239 wxIcon* icon;
d55e5bfc 3240
36ed4f51
RD
3241 cArray = ConvertListOfStrings(listOfStrings);
3242 if (! cArray)
3243 return NULL;
3244 icon = new wxIcon(cArray);
3245 delete [] cArray;
3246 return icon;
3247 }
1bd55598 3248SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc
RD
3249
3250
d55e5bfc 3251
36ed4f51 3252 return new wxIconLocation(*filename);
d55e5bfc 3253
36ed4f51 3254 }
1bd55598 3255SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc
RD
3256
3257
d55e5bfc 3258
36ed4f51 3259 // do nothing
d55e5bfc 3260
36ed4f51 3261 }
1bd55598 3262SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
5cbf236d
RD
3263
3264
d55e5bfc 3265
36ed4f51 3266 return -1;
d55e5bfc 3267
36ed4f51 3268 }
1bd55598 3269SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
36ed4f51 3270#ifdef __WXGTK__
fef4c27a
RD
3271 wxImage img(cursorName, type);
3272 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3273 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3274 return new wxCursor(img);
36ed4f51 3275#else
fef4c27a 3276 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
36ed4f51
RD
3277#endif
3278 }
d55e5bfc 3279
d55e5bfc 3280
1bd55598 3281SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
36ed4f51
RD
3282 (*self) ++;
3283 }
1bd55598 3284SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
36ed4f51
RD
3285 return self->operator bool();
3286 }
d55e5bfc 3287
36ed4f51
RD
3288#include <wx/fontutil.h>
3289#include <wx/fontmap.h>
3290#include <wx/fontenum.h>
d55e5bfc 3291
1bd55598 3292SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
36ed4f51
RD
3293 return self->ToString();
3294 }
d55e5bfc 3295
36ed4f51
RD
3296 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3297 static wxNativeEncodingInfo info;
3298 if ( wxGetNativeFontEncoding(encoding, &info) )
3299 return &info;
3300 else
3301 return NULL;
d55e5bfc 3302 }
d55e5bfc 3303
1bd55598
RD
3304
3305SWIGINTERNINLINE PyObject *
3306SWIG_From_size_t (size_t value)
3307{
3308 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3309}
3310
3311
3312SWIGINTERNINLINE int
3313SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3314{
3315 unsigned long v;
3316 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3317 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3318 return res;
3319}
3320
3321SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
36ed4f51
RD
3322 wxFontEncoding alt_enc;
3323 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3324 return PyInt_FromLong(alt_enc);
3325 else {
3326 Py_INCREF(Py_None);
3327 return Py_None;
3328 }
3329 }
1bd55598 3330SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3331 wxNativeFontInfo nfi;
3332 nfi.FromString(info);
3333 return new wxFont(nfi);
3334 }
1bd55598 3335SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3336 return wxFont::New(pointSize, family, flags, face, encoding);
3337 }
1bd55598 3338SWIGINTERN 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
3339 return wxFontBase::New(pixelSize, family,
3340 style, weight, underlined,
3341 face, encoding);
3342 }
1bd55598 3343SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3344 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3345 }
1bd55598
RD
3346SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3347SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
d55e5bfc 3348
36ed4f51
RD
3349class wxPyFontEnumerator : public wxFontEnumerator {
3350public:
3351 wxPyFontEnumerator() {}
3352 ~wxPyFontEnumerator() {}
d55e5bfc 3353
36ed4f51
RD
3354 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3355 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
d55e5bfc 3356
36ed4f51
RD
3357 PYPRIVATE;
3358};
d55e5bfc 3359
36ed4f51
RD
3360IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3361IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
d55e5bfc 3362
36ed4f51 3363
704eda0c 3364SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3365 PyObject* ret;
704eda0c 3366 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3367 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3368 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3369 wxPyEndBlockThreads(blocked);
3370 return ret;
36ed4f51 3371 }
704eda0c 3372SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3373 PyObject* ret;
704eda0c 3374 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3375 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3376 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3377 wxPyEndBlockThreads(blocked);
3378 return ret;
36ed4f51
RD
3379 }
3380
3381#include <locale.h>
3382
1bd55598 3383SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3384 wxLocale* loc;
3385 if (language == -1)
3386 loc = new wxLocale();
3387 else
3388 loc = new wxLocale(language, flags);
3389 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3390 // for the floating point conversions and such to work right.
3391#if PY_VERSION_HEX < 0x02040000
3392 setlocale(LC_NUMERIC, "C");
3393#endif
3394 return loc;
3395 }
cbfc9df6
RD
3396SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &name,wxString const &shortName=wxPyEmptyString,wxString const &locale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3397 bool rc = self->Init(name, shortName, locale, bLoadDefault, bConvertEncoding);
36ed4f51
RD
3398 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3399 // for the floating point conversions and such to work right.
3400#if PY_VERSION_HEX < 0x02040000
3401 setlocale(LC_NUMERIC, "C");
3402#endif
3403 return rc;
3404 }
1bd55598 3405SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3406 bool rc = self->Init(language, flags);
3407 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3408 // for the floating point conversions and such to work right.
3409#if PY_VERSION_HEX < 0x02040000
3410 setlocale(LC_NUMERIC, "C");
3411#endif
3412 return rc;
3413 }
3414
fc46b7f3
RD
3415class wxPyLocale : public wxLocale
3416{
3417public:
3418 wxPyLocale();
3419
cbfc9df6
RD
3420 wxPyLocale(const wxString& name, // name (for messages)
3421 const wxString& shortName = wxPyEmptyString, // dir prefix (for msg files)
3422 const wxString& locale = wxPyEmptyString, // locale (for setlocale)
3423 bool bLoadDefault = true, // preload wxstd.mo?
3424 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
fc46b7f3
RD
3425
3426 wxPyLocale(int language, // wxLanguage id or custom language
cbfc9df6 3427 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
fc46b7f3
RD
3428
3429 ~wxPyLocale();
3430
cbfc9df6
RD
3431 virtual const wxString& GetString(const wxString& origString,
3432 const wxString& domain = wxPyEmptyString) const;
3433 virtual const wxString& GetString(const wxString& origString,
3434 const wxString& origString2,
3435 size_t n,
3436 const wxString& domain = wxPyEmptyString) const;
3437
3438 virtual const wxString& GetSingularString(const wxString& origString,
3439 const wxString& domain = wxPyEmptyString) const;
3440 virtual const wxString& GetPluralString(const wxString& origString,
3441 const wxString& origString2,
3442 size_t n,
3443 const wxString& domain = wxPyEmptyString) const;
3444
fc46b7f3
RD
3445
3446 PYPRIVATE;
3447private:
3448 DECLARE_NO_COPY_CLASS(wxPyLocale)
3449};
3450
3451wxPyLocale::wxPyLocale() : wxLocale()
3452{
3453}
3454
cbfc9df6
RD
3455wxPyLocale::wxPyLocale(const wxString& name, // name (for messages)
3456 const wxString& shortName, // dir prefix (for msg files)
3457 const wxString& locale, // locale (for setlocale)
3458 bool bLoadDefault, // preload wxstd.mo?
3459 bool bConvertEncoding) // convert Win<->Unix if necessary?
3460 : wxLocale(name, shortName, locale, bLoadDefault, bConvertEncoding)
fc46b7f3
RD
3461{
3462}
3463
3464wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3465 int flags) : wxLocale(language, flags)
3466{
3467}
3468
3469wxPyLocale::~wxPyLocale()
3470{
3471}
3472
cbfc9df6
RD
3473const wxString& wxPyLocale::GetString(const wxString& origString,
3474 const wxString& domain) const
fc46b7f3 3475{
cbfc9df6 3476 return GetSingularString(origString, domain);
fc46b7f3
RD
3477}
3478
cbfc9df6
RD
3479const wxString& wxPyLocale::GetString(const wxString& origString,
3480 const wxString& origString2,
3481 size_t n,
3482 const wxString& domain) const
fc46b7f3 3483{
cbfc9df6 3484 return GetPluralString(origString, origString2, n, domain);
fc46b7f3
RD
3485}
3486
cbfc9df6
RD
3487const wxString& wxPyLocale::GetSingularString(const wxString& origString,
3488 const wxString& domain) const
fc46b7f3
RD
3489{
3490 bool found;
cbfc9df6 3491 wxString str( _T("error in translation"));
fc46b7f3 3492 wxPyBlock_t blocked = wxPyBeginBlockThreads();
cbfc9df6
RD
3493 if ((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3494 PyObject* param1 = wx2PyString(origString);
3495 PyObject* param2 = wx2PyString(domain);
fc46b7f3
RD
3496 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3497 Py_DECREF(param1);
3498 Py_DECREF(param2);
3499 if (ret) {
3500 str = Py2wxString(ret);
3501 Py_DECREF(ret);
3502 }
3503 }
3504 wxPyEndBlockThreads(blocked);
cbfc9df6 3505 return (found ? str : wxLocale::GetString(origString, domain));
fc46b7f3
RD
3506}
3507
cbfc9df6
RD
3508const wxString& wxPyLocale::GetPluralString(const wxString& origString,
3509 const wxString& origString2, size_t n,
3510 const wxString& domain) const
fc46b7f3
RD
3511{
3512 bool found;
cbfc9df6 3513 wxString str( _T("error in translation"));
fc46b7f3 3514 wxPyBlock_t blocked = wxPyBeginBlockThreads();
cbfc9df6
RD
3515 if ((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3516 PyObject* param1 = wx2PyString(origString);
3517 PyObject* param2 = wx2PyString(origString2);
3518 PyObject* param4 = wx2PyString(domain);
3519 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst,
3520 Py_BuildValue("(OOiO)",
3521 param1, param2,
3522 (int)n, param4));
fc46b7f3
RD
3523 Py_DECREF(param1);
3524 Py_DECREF(param2);
3525 Py_DECREF(param4);
3526 if( ret) {
3527 str = Py2wxString(ret);
3528 Py_DECREF(ret);
3529 }
3530 }
3531 wxPyEndBlockThreads(blocked);
cbfc9df6 3532 return (found ? str : wxLocale::GetString(origString, origString2, n, domain) );
fc46b7f3
RD
3533}
3534
3535SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3536 wxPyLocale* loc;
3537 if (language == -1)
3538 loc = new wxPyLocale();
3539 else
3540 loc = new wxPyLocale(language, flags);
3541 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3542 // for the floating point conversions and such to work right.
3543#if PY_VERSION_HEX < 0x02040000
3544 setlocale(LC_NUMERIC, "C");
3545#endif
3546 return loc;
3547 }
3548
36ed4f51
RD
3549#include "wx/wxPython/pydrawxxx.h"
3550
1bd55598 3551SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
36ed4f51
RD
3552 wxColour col;
3553 self->GetPixel(x, y, &col);
3554 return col;
3555 }
1bd55598 3556SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
36ed4f51
RD
3557 wxColour col;
3558 self->GetPixel(pt, &col);
3559 return col;
3560 }
3561
3562SWIGINTERN int
1bd55598 3563SWIG_AsVal_double (PyObject *obj, double* val)
36ed4f51
RD
3564{
3565 if (PyNumber_Check(obj)) {
3566 if (val) *val = PyFloat_AsDouble(obj);
1bd55598 3567 return SWIG_OK;
d55e5bfc 3568 }
1bd55598 3569 return SWIG_TypeError;
36ed4f51
RD
3570}
3571
1bd55598 3572SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
36ed4f51
RD
3573 wxRect rv;
3574 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3575 return rv;
3576 }
1bd55598 3577SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
36ed4f51
RD
3578 wxRect rect;
3579 self->GetClippingBox(rect);
3580 return rect;
3581 }
1bd55598 3582SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
36ed4f51
RD
3583 wxArrayInt widths;
3584 self->GetPartialTextExtents(text, widths);
3585 return widths;
3586 }
3587
1bd55598 3588 #define SWIG_From_double PyFloat_FromDouble
36ed4f51 3589
1bd55598 3590SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3591 self->SetLogicalOrigin(point.x, point.y);
3592 }
1bd55598 3593SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3594 self->SetDeviceOrigin(point.x, point.y);
3595 }
1bd55598 3596SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3597 self->CalcBoundingBox(point.x, point.y);
3598 }
1bd55598 3599SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3600 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3601 }
1bd55598 3602SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3603 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3604 }
1bd55598 3605SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3606 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3607 }
1bd55598 3608SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3609 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3610 }
1bd55598 3611SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3612 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3613 }
1bd55598 3614SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
36ed4f51
RD
3615 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3616 }
3617
3618static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3619 *x1 = dc->MinX();
3620 *y1 = dc->MinY();
3621 *x2 = dc->MaxX();
3622 *y2 = dc->MaxY();
3623}
3624
3625
3626#include <wx/dcbuffer.h>
3627
3628
3629#include <wx/dcps.h>
3630
3631
3632#include <wx/metafile.h>
3633
3634
72ef6efb
RD
3635#include <wx/graphics.h>
3636
3637
3638#if !wxUSE_GRAPHICS_CONTEXT
70d7cb34
RD
3639// C++ stub classes for platforms or build configurations that don't have
3640// wxGraphicsContext yet.
72ef6efb 3641
8bd35413
RD
3642class wxGraphicsRenderer;
3643class wxGraphicsMatrix;
3644
70d7cb34
RD
3645
3646class wxGraphicsObject : public wxObject
72ef6efb
RD
3647{
3648public :
8bd35413 3649 wxGraphicsObject() {}
70d7cb34 3650 wxGraphicsObject( wxGraphicsRenderer* ) {
72ef6efb 3651 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3652 "wx.GraphicsObject is not available on this platform.");
3653 }
3654 wxGraphicsObject( const wxGraphicsObject& ) {}
3655 virtual ~wxGraphicsObject() {}
3656 bool IsNull() const { return false; }
3657 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3658} ;
3659
3660
3661
3662class wxGraphicsPen : public wxGraphicsObject
3663{
8bd35413 3664public:
70d7cb34
RD
3665 wxGraphicsPen() {}
3666 virtual ~wxGraphicsPen() {}
3667} ;
3668wxGraphicsPen wxNullGraphicsPen;
3669
3670
3671
3672class wxGraphicsBrush : public wxGraphicsObject
3673{
3674public :
3675 wxGraphicsBrush() {}
3676 virtual ~wxGraphicsBrush() {}
3677} ;
3678wxGraphicsBrush wxNullGraphicsBrush;
3679
3680
3681
3682class wxGraphicsFont : public wxGraphicsObject
3683{
3684public :
3685 wxGraphicsFont() {}
3686 virtual ~wxGraphicsFont() {}
3687} ;
3688wxGraphicsFont wxNullGraphicsFont;
3689
3690
3691
3692class wxGraphicsPath : public wxGraphicsObject
3693{
3694public :
8bd35413 3695 wxGraphicsPath() { }
70d7cb34
RD
3696 wxGraphicsPath(wxGraphicsRenderer* ) {
3697 PyErr_SetString(PyExc_NotImplementedError,
3698 "wx.GraphicsPath is not available on this platform.");
72ef6efb
RD
3699 }
3700 virtual ~wxGraphicsPath() {}
70d7cb34 3701
72ef6efb 3702 void MoveToPoint( wxDouble, wxDouble ) {}
70d7cb34
RD
3703 void MoveToPoint( const wxPoint2DDouble& ) {}
3704 void AddLineToPoint( wxDouble, wxDouble ) {}
3705 void AddLineToPoint( const wxPoint2DDouble& ) {}
72ef6efb 3706 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
70d7cb34 3707 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
8bd35413 3708 void AddPath( const wxGraphicsPath& ) {}
72ef6efb 3709 void CloseSubpath() {}
8bd35413
RD
3710 void GetCurrentPoint( wxDouble&, wxDouble&) const {}
3711 wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); }
72ef6efb 3712 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
70d7cb34 3713 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
72ef6efb
RD
3714
3715 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3716 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3717 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3718 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3719
70d7cb34
RD
3720 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3721 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3722 void * GetNativePath() const { return NULL; }
8bd35413
RD
3723 void UnGetNativePath(void *) const {}
3724 void Transform( const wxGraphicsMatrix& ) {}
3725 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {}
3726 wxRect2D GetBox() const { return wxRect2D(0,0,0,0); }
70d7cb34 3727
8bd35413
RD
3728 bool Contains( wxDouble , wxDouble , int ) const { return false; }
3729 bool Contains( const wxPoint2DDouble& , int ) const { return false; }
70d7cb34 3730};
5c8c7dd3 3731wxGraphicsPath wxNullGraphicsPath;
70d7cb34
RD
3732
3733
3734class wxGraphicsMatrix : public wxGraphicsObject
3735{
3736public :
8bd35413 3737 wxGraphicsMatrix() { }
70d7cb34
RD
3738 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3739 PyErr_SetString(PyExc_NotImplementedError,
3740 "wx.GraphicsMatrix is not available on this platform.");
3741 }
3742 virtual ~wxGraphicsMatrix() {}
8bd35413
RD
3743 virtual void Concat( const wxGraphicsMatrix & ) {}
3744 virtual void Copy( const wxGraphicsMatrix & ) {}
70d7cb34
RD
3745 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3746 wxDouble , wxDouble ) {}
248802d0
RD
3747 virtual void Get(wxDouble*, wxDouble*, wxDouble*,
3748 wxDouble*, wxDouble*, wxDouble*) {}
70d7cb34 3749 virtual void Invert() {}
8bd35413
RD
3750 virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; }
3751 virtual bool IsIdentity() const { return false; }
70d7cb34
RD
3752 virtual void Translate( wxDouble , wxDouble ) {}
3753 virtual void Scale( wxDouble , wxDouble ) {}
3754 virtual void Rotate( wxDouble ) {}
8bd35413
RD
3755 virtual void TransformPoint( wxDouble *, wxDouble * ) const {}
3756 virtual void TransformDistance( wxDouble *, wxDouble * ) const {}
70d7cb34 3757 virtual void * GetNativeMatrix() const { return NULL; }
72ef6efb 3758};
5c8c7dd3 3759wxGraphicsMatrix wxNullGraphicsMatrix;
72ef6efb 3760
70d7cb34
RD
3761
3762class wxGraphicsContext : public wxGraphicsObject
72ef6efb
RD
3763{
3764public:
70d7cb34
RD
3765
3766 wxGraphicsContext(wxGraphicsRenderer* ) {
72ef6efb 3767 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3768 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3769 }
70d7cb34 3770
72ef6efb 3771 virtual ~wxGraphicsContext() {}
70d7cb34 3772
8bd35413
RD
3773 static wxGraphicsContext* Create() {
3774 PyErr_SetString(PyExc_NotImplementedError,
3775 "wx.GraphicsContext is not available on this platform.");
3776 return NULL;
3777 }
70d7cb34 3778 static wxGraphicsContext* Create( const wxWindowDC& ) {
72ef6efb 3779 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3780 "wx.GraphicsContext is not available on this platform.");
8bd35413 3781 return NULL;
72ef6efb 3782 }
b876c1e4 3783
70d7cb34 3784 static wxGraphicsContext* CreateFromNative( void * ) {
b876c1e4 3785 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3786 "wx.GraphicsContext is not available on this platform.");
8bd35413 3787 return NULL;
70d7cb34 3788 }
b876c1e4 3789
70d7cb34
RD
3790 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3791 PyErr_SetString(PyExc_NotImplementedError,
3792 "wx.GraphicsContext is not available on this platform.");
8bd35413 3793 return NULL;
70d7cb34
RD
3794 }
3795
3796 static wxGraphicsContext* Create( wxWindow* ) {
3797 PyErr_SetString(PyExc_NotImplementedError,
3798 "wx.GraphicsContext is not available on this platform.");
8bd35413 3799 return NULL;
70d7cb34
RD
3800 }
3801
8bd35413 3802 wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
70d7cb34 3803
8bd35413 3804 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
70d7cb34 3805
8bd35413 3806 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
70d7cb34
RD
3807
3808 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
8bd35413 3809 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
70d7cb34
RD
3810
3811 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3812 wxDouble xc, wxDouble yc, wxDouble radius,
8bd35413 3813 const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; }
70d7cb34 3814
8bd35413 3815 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; }
70d7cb34 3816
8bd35413
RD
3817 virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3818 wxDouble, wxDouble) { return wxNullGraphicsMatrix; }
70d7cb34
RD
3819
3820 virtual void PushState() {}
3821 virtual void PopState() {}
3822 virtual void Clip( const wxRegion & ) {}
3823 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3824 virtual void ResetClip() {}
3825 virtual void * GetNativeContext() { return NULL; }
c8aaaf9e
RD
3826 virtual int GetLogicalFunction() const { return 0; }
3827 virtual bool SetLogicalFunction(int ) {}
70d7cb34
RD
3828 virtual void Translate( wxDouble , wxDouble ) {}
3829 virtual void Scale( wxDouble , wxDouble ) {}
3830 virtual void Rotate( wxDouble ) {}
8bd35413
RD
3831 virtual void ConcatTransform( const wxGraphicsMatrix& ) {}
3832 virtual void SetTransform( const wxGraphicsMatrix& ) {}
3833 virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; }
70d7cb34
RD
3834
3835 virtual void SetPen( const wxGraphicsPen& ) {}
3836 void SetPen( const wxPen& ) {}
3837
3838 virtual void SetBrush( const wxGraphicsBrush& ) {}
3839 void SetBrush( const wxBrush& ) {}
3840
3841 virtual void SetFont( const wxGraphicsFont& ) {}
3842 void SetFont( const wxFont&, const wxColour& ) {}
3843
8bd35413
RD
3844 virtual void StrokePath( const wxGraphicsPath & ) {}
3845 virtual void FillPath( const wxGraphicsPath &, int ) {}
3846 virtual void DrawPath( const wxGraphicsPath &, int ) {}
70d7cb34
RD
3847
3848 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3849 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
8bd35413
RD
3850 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {}
3851 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {}
70d7cb34
RD
3852 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3853 wxDouble *, wxDouble * ) const {}
3854 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3855
3856 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3857 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3858
3859 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3860 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3861 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3862 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3863 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3864 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
4e8107d5 3865 virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
70d7cb34
RD
3866 virtual bool ShouldOffset() const { return false; }
3867};
3868
3869
3870class wxGraphicsRenderer : public wxObject
3871{
3872public :
3873 wxGraphicsRenderer() {
3874 PyErr_SetString(PyExc_NotImplementedError,
3875 "wx.GraphicsRenderer is not available on this platform.");
3876 }
3877
3878 virtual ~wxGraphicsRenderer() {}
3879
8bd35413 3880 static wxGraphicsRenderer* GetDefaultRenderer() {
70d7cb34
RD
3881 PyErr_SetString(PyExc_NotImplementedError,
3882 "wx.GraphicsRenderer is not available on this platform.");
8bd35413
RD
3883 return NULL;
3884 }
70d7cb34
RD
3885
3886 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3887 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3888 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3889 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
8bd35413 3890 virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; }
70d7cb34 3891
8bd35413 3892 virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
70d7cb34 3893
8bd35413
RD
3894 virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3895 wxDouble , wxDouble ) { return wxNullGraphicsMatrix; }
70d7cb34 3896
8bd35413
RD
3897 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3898 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3899 virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble ,
3900 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
70d7cb34 3901 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
8bd35413
RD
3902 const wxColour &, const wxColour &) { return wxNullGraphicsBrush; }
3903 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; }
72ef6efb
RD
3904};
3905
3906
70d7cb34 3907
72ef6efb
RD
3908class wxGCDC: public wxWindowDC
3909{
3910public:
3911 wxGCDC(const wxWindowDC&) {
3912 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3913 PyErr_SetString(PyExc_NotImplementedError,
3914 "wxGCDC is not available on this platform.");
3915 wxPyEndBlockThreads(blocked);
3916 }
70d7cb34 3917
48a0c021
RD
3918 wxGCDC(const wxWindow*) {
3919 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3920 PyErr_SetString(PyExc_NotImplementedError,
3921 "wxGCDC is not available on this platform.");
3922 wxPyEndBlockThreads(blocked);
3923 }
3924
72ef6efb
RD
3925 wxGCDC() {
3926 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3927 PyErr_SetString(PyExc_NotImplementedError,
3928 "wxGCDC is not available on this platform.");
3929 wxPyEndBlockThreads(blocked);
3930 }
70d7cb34 3931
72ef6efb
RD
3932 virtual ~wxGCDC() {}
3933
b876c1e4
RD
3934 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3935 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3936};
3937
3938#endif
3939
f89238b9
RD
3940SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3941 if ( !backgroundBrush.IsNull() )
3942 self->DrawText(str, x, y, backgroundBrush);
3943 else
3944 self->DrawText(str, x, y);
3945 }
3946SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3947 if ( !backgroundBrush.IsNull() )
3948 self->DrawText(str, x, y, angle, backgroundBrush);
3949 else
3950 self->DrawText(str, x, y, angle);
3951 }
be68621e
RD
3952SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3953 wxDouble width = 0.0,
3954 height = 0.0;
3955 self->GetTextExtent(text, &width, &height, NULL, NULL);
3956 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3957 PyObject* rv = PyTuple_New(2);
3958 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3959 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3960 return rv;
3961 }
b39fe951
RD
3962SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3963 wxArrayDouble widths;
3964 self->GetPartialTextExtents(text, widths);
3965 return widths;
3966 }
f8eb59b9 3967SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3968 size_t c1, c2, count;
3969 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3970 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3971
3972 if ( beginP != NULL && endP != NULL )
3973 {
3974 count = wxMin(c1, c2);
3975 self->StrokeLines(count, beginP, endP);
3976 }
3977 delete [] beginP;
3978 delete [] endP;
3979 }
72ef6efb 3980
0a27f394
RD
3981#include "wx/dcgraph.h"
3982
3983
66493fc7
RD
3984#include <wx/overlay.h>
3985
3986
36ed4f51 3987
1bd55598 3988SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
36ed4f51
RD
3989 self->AddColour(name, wxColour(red, green, blue));
3990 }
3991
da91cb0f
RD
3992 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3993 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3994 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3995 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3996
3997
36ed4f51
RD
3998#include <wx/effects.h>
3999
be9b1dca
RD
4000
4001#include "wx/renderer.h"
4002
4003
32fe5131 4004SWIGINTERNINLINE PyObject*
1bd55598 4005 SWIG_From_bool (bool value)
be9b1dca 4006{
1bd55598 4007 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
4008}
4009
27e45892
RD
4010
4011#include "wx/wxPython/pseudodc.h"
4012
4013SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
4014 wxRect rect;
4015 self->GetIdBounds(id, rect);
4016 return rect;
4017 }
36ed4f51
RD
4018#ifdef __cplusplus
4019extern "C" {
4020#endif
1bd55598
RD
4021SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4022 PyObject *resultobj = 0;
4023 wxGDIObject *result = 0 ;
4024
4025 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
4026 {
4027 if (!wxPyCheckForApp()) SWIG_fail;
4028 PyThreadState* __tstate = wxPyBeginAllowThreads();
4029 result = (wxGDIObject *)new wxGDIObject();
4030 wxPyEndAllowThreads(__tstate);
4031 if (PyErr_Occurred()) SWIG_fail;
4032 }
4033 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
4034 return resultobj;
4035fail:
4036 return NULL;
d55e5bfc
RD
4037}
4038
4039
1bd55598
RD
4040SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4041 PyObject *resultobj = 0;
4042 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4043 void *argp1 = 0 ;
4044 int res1 = 0 ;
4045 PyObject *swig_obj[1] ;
4046
4047 if (!args) SWIG_fail;
4048 swig_obj[0] = args;
4049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4050 if (!SWIG_IsOK(res1)) {
4051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4052 }
4053 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4054 {
4055 PyThreadState* __tstate = wxPyBeginAllowThreads();
4056 delete arg1;
d55e5bfc 4057
1bd55598
RD
4058 wxPyEndAllowThreads(__tstate);
4059 if (PyErr_Occurred()) SWIG_fail;
4060 }
4061 resultobj = SWIG_Py_Void();
4062 return resultobj;
4063fail:
4064 return NULL;
d55e5bfc
RD
4065}
4066
4067
1bd55598
RD
4068SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4069 PyObject *resultobj = 0;
4070 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4071 bool result;
4072 void *argp1 = 0 ;
4073 int res1 = 0 ;
4074 PyObject *swig_obj[1] ;
4075
4076 if (!args) SWIG_fail;
4077 swig_obj[0] = args;
4078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4079 if (!SWIG_IsOK(res1)) {
4080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4081 }
4082 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4083 {
4084 PyThreadState* __tstate = wxPyBeginAllowThreads();
4085 result = (bool)(arg1)->IsNull();
4086 wxPyEndAllowThreads(__tstate);
4087 if (PyErr_Occurred()) SWIG_fail;
4088 }
4089 {
4090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4091 }
4092 return resultobj;
4093fail:
4094 return NULL;
4095}
4096
4097
4098SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4099 PyObject *obj;
4100 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4101 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4102 return SWIG_Py_Void();
4103}
4104
4105SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4106 return SWIG_Python_InitShadowInstance(args);
4107}
4108
4109SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4110 PyObject *resultobj = 0;
4111 byte arg1 = (byte) 0 ;
4112 byte arg2 = (byte) 0 ;
4113 byte arg3 = (byte) 0 ;
fc46b7f3 4114 byte arg4 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4115 wxColour *result = 0 ;
4116 unsigned char val1 ;
4117 int ecode1 = 0 ;
4118 unsigned char val2 ;
4119 int ecode2 = 0 ;
4120 unsigned char val3 ;
4121 int ecode3 = 0 ;
fc46b7f3
RD
4122 unsigned char val4 ;
4123 int ecode4 = 0 ;
1bd55598
RD
4124 PyObject * obj0 = 0 ;
4125 PyObject * obj1 = 0 ;
4126 PyObject * obj2 = 0 ;
fc46b7f3 4127 PyObject * obj3 = 0 ;
1bd55598 4128 char * kwnames[] = {
fc46b7f3 4129 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4130 };
4131
fc46b7f3 4132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
4133 if (obj0) {
4134 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4135 if (!SWIG_IsOK(ecode1)) {
4136 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4137 }
4138 arg1 = static_cast< byte >(val1);
4139 }
4140 if (obj1) {
4141 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4142 if (!SWIG_IsOK(ecode2)) {
4143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4144 }
4145 arg2 = static_cast< byte >(val2);
4146 }
4147 if (obj2) {
4148 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4149 if (!SWIG_IsOK(ecode3)) {
4150 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4151 }
4152 arg3 = static_cast< byte >(val3);
4153 }
fc46b7f3
RD
4154 if (obj3) {
4155 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4156 if (!SWIG_IsOK(ecode4)) {
4157 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4158 }
4159 arg4 = static_cast< byte >(val4);
4160 }
1bd55598
RD
4161 {
4162 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4163 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
1bd55598
RD
4164 wxPyEndAllowThreads(__tstate);
4165 if (PyErr_Occurred()) SWIG_fail;
4166 }
4167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4168 return resultobj;
4169fail:
4170 return NULL;
d55e5bfc
RD
4171}
4172
4173
1bd55598
RD
4174SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4175 PyObject *resultobj = 0;
4176 wxString *arg1 = 0 ;
4177 wxColour *result = 0 ;
4178 bool temp1 = false ;
4179 PyObject * obj0 = 0 ;
4180 char * kwnames[] = {
4181 (char *) "colorName", NULL
4182 };
4183
4184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4185 {
4186 arg1 = wxString_in_helper(obj0);
4187 if (arg1 == NULL) SWIG_fail;
4188 temp1 = true;
4189 }
4190 {
4191 if (!wxPyCheckForApp()) SWIG_fail;
4192 PyThreadState* __tstate = wxPyBeginAllowThreads();
4193 result = (wxColour *)new wxColour((wxString const &)*arg1);
4194 wxPyEndAllowThreads(__tstate);
4195 if (PyErr_Occurred()) SWIG_fail;
4196 }
4197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4198 {
4199 if (temp1)
4200 delete arg1;
4201 }
4202 return resultobj;
4203fail:
4204 {
4205 if (temp1)
4206 delete arg1;
4207 }
4208 return NULL;
36ed4f51
RD
4209}
4210
4211
1bd55598
RD
4212SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4213 PyObject *resultobj = 0;
4214 unsigned long arg1 ;
4215 wxColour *result = 0 ;
4216 unsigned long val1 ;
4217 int ecode1 = 0 ;
4218 PyObject * obj0 = 0 ;
4219 char * kwnames[] = {
4220 (char *) "colRGB", NULL
4221 };
4222
4223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4224 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4225 if (!SWIG_IsOK(ecode1)) {
4226 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4227 }
4228 arg1 = static_cast< unsigned long >(val1);
4229 {
4230 PyThreadState* __tstate = wxPyBeginAllowThreads();
4231 result = (wxColour *)new wxColour(arg1);
4232 wxPyEndAllowThreads(__tstate);
4233 if (PyErr_Occurred()) SWIG_fail;
4234 }
4235 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4236 return resultobj;
4237fail:
4238 return NULL;
d55e5bfc
RD
4239}
4240
4241
1bd55598
RD
4242SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4243 PyObject *resultobj = 0;
4244 wxColour *arg1 = (wxColour *) 0 ;
4245 void *argp1 = 0 ;
4246 int res1 = 0 ;
4247 PyObject *swig_obj[1] ;
4248
4249 if (!args) SWIG_fail;
4250 swig_obj[0] = args;
4251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4252 if (!SWIG_IsOK(res1)) {
4253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4254 }
4255 arg1 = reinterpret_cast< wxColour * >(argp1);
4256 {
4257 PyThreadState* __tstate = wxPyBeginAllowThreads();
4258 delete arg1;
d55e5bfc 4259
1bd55598
RD
4260 wxPyEndAllowThreads(__tstate);
4261 if (PyErr_Occurred()) SWIG_fail;
4262 }
4263 resultobj = SWIG_Py_Void();
4264 return resultobj;
4265fail:
4266 return NULL;
d55e5bfc
RD
4267}
4268
4269
1bd55598
RD
4270SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4271 PyObject *resultobj = 0;
4272 wxColour *arg1 = (wxColour *) 0 ;
4273 byte result;
4274 void *argp1 = 0 ;
4275 int res1 = 0 ;
4276 PyObject *swig_obj[1] ;
4277
4278 if (!args) SWIG_fail;
4279 swig_obj[0] = args;
4280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4281 if (!SWIG_IsOK(res1)) {
4282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4283 }
4284 arg1 = reinterpret_cast< wxColour * >(argp1);
4285 {
4286 PyThreadState* __tstate = wxPyBeginAllowThreads();
4287 result = (byte)(arg1)->Red();
4288 wxPyEndAllowThreads(__tstate);
4289 if (PyErr_Occurred()) SWIG_fail;
4290 }
4291 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4292 return resultobj;
4293fail:
4294 return NULL;
d55e5bfc
RD
4295}
4296
4297
1bd55598
RD
4298SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4299 PyObject *resultobj = 0;
4300 wxColour *arg1 = (wxColour *) 0 ;
4301 byte result;
4302 void *argp1 = 0 ;
4303 int res1 = 0 ;
4304 PyObject *swig_obj[1] ;
4305
4306 if (!args) SWIG_fail;
4307 swig_obj[0] = args;
4308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4309 if (!SWIG_IsOK(res1)) {
4310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4311 }
4312 arg1 = reinterpret_cast< wxColour * >(argp1);
4313 {
4314 PyThreadState* __tstate = wxPyBeginAllowThreads();
4315 result = (byte)(arg1)->Green();
4316 wxPyEndAllowThreads(__tstate);
4317 if (PyErr_Occurred()) SWIG_fail;
4318 }
4319 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4320 return resultobj;
4321fail:
4322 return NULL;
d55e5bfc
RD
4323}
4324
4325
1bd55598
RD
4326SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4327 PyObject *resultobj = 0;
4328 wxColour *arg1 = (wxColour *) 0 ;
4329 byte result;
4330 void *argp1 = 0 ;
4331 int res1 = 0 ;
4332 PyObject *swig_obj[1] ;
4333
4334 if (!args) SWIG_fail;
4335 swig_obj[0] = args;
4336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4337 if (!SWIG_IsOK(res1)) {
4338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4339 }
4340 arg1 = reinterpret_cast< wxColour * >(argp1);
4341 {
4342 PyThreadState* __tstate = wxPyBeginAllowThreads();
4343 result = (byte)(arg1)->Blue();
4344 wxPyEndAllowThreads(__tstate);
4345 if (PyErr_Occurred()) SWIG_fail;
4346 }
4347 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4348 return resultobj;
4349fail:
4350 return NULL;
d55e5bfc
RD
4351}
4352
4353
fc46b7f3
RD
4354SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4355 PyObject *resultobj = 0;
4356 wxColour *arg1 = (wxColour *) 0 ;
4357 byte result;
4358 void *argp1 = 0 ;
4359 int res1 = 0 ;
4360 PyObject *swig_obj[1] ;
4361
4362 if (!args) SWIG_fail;
4363 swig_obj[0] = args;
4364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4365 if (!SWIG_IsOK(res1)) {
4366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4367 }
4368 arg1 = reinterpret_cast< wxColour * >(argp1);
4369 {
4370 PyThreadState* __tstate = wxPyBeginAllowThreads();
4371 result = (byte)(arg1)->Alpha();
4372 wxPyEndAllowThreads(__tstate);
4373 if (PyErr_Occurred()) SWIG_fail;
4374 }
4375 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4376 return resultobj;
4377fail:
4378 return NULL;
4379}
4380
4381
b39fe951 4382SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4383 PyObject *resultobj = 0;
4384 wxColour *arg1 = (wxColour *) 0 ;
4385 bool result;
4386 void *argp1 = 0 ;
4387 int res1 = 0 ;
4388 PyObject *swig_obj[1] ;
4389
4390 if (!args) SWIG_fail;
4391 swig_obj[0] = args;
4392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4393 if (!SWIG_IsOK(res1)) {
b39fe951 4394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4395 }
4396 arg1 = reinterpret_cast< wxColour * >(argp1);
4397 {
4398 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4399 result = (bool)(arg1)->IsOk();
1bd55598
RD
4400 wxPyEndAllowThreads(__tstate);
4401 if (PyErr_Occurred()) SWIG_fail;
4402 }
4403 {
4404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4405 }
4406 return resultobj;
4407fail:
4408 return NULL;
4409}
4410
4411
4412SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4413 PyObject *resultobj = 0;
4414 wxColour *arg1 = (wxColour *) 0 ;
4415 byte arg2 ;
4416 byte arg3 ;
4417 byte arg4 ;
fc46b7f3 4418 byte arg5 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4419 void *argp1 = 0 ;
4420 int res1 = 0 ;
4421 unsigned char val2 ;
4422 int ecode2 = 0 ;
4423 unsigned char val3 ;
4424 int ecode3 = 0 ;
4425 unsigned char val4 ;
4426 int ecode4 = 0 ;
fc46b7f3
RD
4427 unsigned char val5 ;
4428 int ecode5 = 0 ;
1bd55598
RD
4429 PyObject * obj0 = 0 ;
4430 PyObject * obj1 = 0 ;
4431 PyObject * obj2 = 0 ;
4432 PyObject * obj3 = 0 ;
fc46b7f3 4433 PyObject * obj4 = 0 ;
1bd55598 4434 char * kwnames[] = {
fc46b7f3 4435 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4436 };
4437
fc46b7f3 4438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
1bd55598
RD
4439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4440 if (!SWIG_IsOK(res1)) {
4441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4442 }
4443 arg1 = reinterpret_cast< wxColour * >(argp1);
4444 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4445 if (!SWIG_IsOK(ecode2)) {
4446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4447 }
4448 arg2 = static_cast< byte >(val2);
4449 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4450 if (!SWIG_IsOK(ecode3)) {
4451 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4452 }
4453 arg3 = static_cast< byte >(val3);
4454 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4455 if (!SWIG_IsOK(ecode4)) {
4456 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4457 }
4458 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4459 if (obj4) {
4460 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4461 if (!SWIG_IsOK(ecode5)) {
4462 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4463 }
4464 arg5 = static_cast< byte >(val5);
4465 }
1bd55598
RD
4466 {
4467 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4468 (arg1)->Set(arg2,arg3,arg4,arg5);
1bd55598
RD
4469 wxPyEndAllowThreads(__tstate);
4470 if (PyErr_Occurred()) SWIG_fail;
4471 }
4472 resultobj = SWIG_Py_Void();
4473 return resultobj;
4474fail:
4475 return NULL;
4476}
4477
4478
4479SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4480 PyObject *resultobj = 0;
4481 wxColour *arg1 = (wxColour *) 0 ;
4482 unsigned long arg2 ;
4483 void *argp1 = 0 ;
4484 int res1 = 0 ;
4485 unsigned long val2 ;
4486 int ecode2 = 0 ;
4487 PyObject * obj0 = 0 ;
4488 PyObject * obj1 = 0 ;
4489 char * kwnames[] = {
4490 (char *) "self",(char *) "colRGB", NULL
4491 };
4492
4493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4495 if (!SWIG_IsOK(res1)) {
4496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4497 }
4498 arg1 = reinterpret_cast< wxColour * >(argp1);
4499 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4500 if (!SWIG_IsOK(ecode2)) {
4501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4502 }
4503 arg2 = static_cast< unsigned long >(val2);
4504 {
4505 PyThreadState* __tstate = wxPyBeginAllowThreads();
4506 (arg1)->Set(arg2);
4507 wxPyEndAllowThreads(__tstate);
4508 if (PyErr_Occurred()) SWIG_fail;
4509 }
4510 resultobj = SWIG_Py_Void();
4511 return resultobj;
4512fail:
4513 return NULL;
4514}
4515
4516
4517SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4518 PyObject *resultobj = 0;
4519 wxColour *arg1 = (wxColour *) 0 ;
4520 wxString *arg2 = 0 ;
4521 void *argp1 = 0 ;
4522 int res1 = 0 ;
4523 bool temp2 = false ;
4524 PyObject * obj0 = 0 ;
4525 PyObject * obj1 = 0 ;
4526 char * kwnames[] = {
4527 (char *) "self",(char *) "colourName", NULL
4528 };
4529
4530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4532 if (!SWIG_IsOK(res1)) {
4533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4534 }
4535 arg1 = reinterpret_cast< wxColour * >(argp1);
4536 {
4537 arg2 = wxString_in_helper(obj1);
4538 if (arg2 == NULL) SWIG_fail;
4539 temp2 = true;
4540 }
4541 {
4542 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4543 (arg1)->Set((wxString const &)*arg2);
1bd55598
RD
4544 wxPyEndAllowThreads(__tstate);
4545 if (PyErr_Occurred()) SWIG_fail;
4546 }
4547 resultobj = SWIG_Py_Void();
4548 {
4549 if (temp2)
4550 delete arg2;
4551 }
4552 return resultobj;
4553fail:
4554 {
4555 if (temp2)
4556 delete arg2;
4557 }
4558 return NULL;
d55e5bfc
RD
4559}
4560
4561
2131d850
RD
4562SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4563 PyObject *resultobj = 0;
4564 wxColour *arg1 = (wxColour *) 0 ;
4565 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4566 wxString result;
4567 void *argp1 = 0 ;
4568 int res1 = 0 ;
4569 long val2 ;
4570 int ecode2 = 0 ;
4571 PyObject * obj0 = 0 ;
4572 PyObject * obj1 = 0 ;
4573 char * kwnames[] = {
4574 (char *) "self",(char *) "flags", NULL
4575 };
4576
4577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4579 if (!SWIG_IsOK(res1)) {
4580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4581 }
4582 arg1 = reinterpret_cast< wxColour * >(argp1);
4583 if (obj1) {
4584 ecode2 = SWIG_AsVal_long(obj1, &val2);
4585 if (!SWIG_IsOK(ecode2)) {
4586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4587 }
4588 arg2 = static_cast< long >(val2);
4589 }
4590 {
4591 PyThreadState* __tstate = wxPyBeginAllowThreads();
4592 result = ((wxColour const *)arg1)->GetAsString(arg2);
4593 wxPyEndAllowThreads(__tstate);
4594 if (PyErr_Occurred()) SWIG_fail;
4595 }
4596 {
4597#if wxUSE_UNICODE
4598 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4599#else
4600 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4601#endif
4602 }
4603 return resultobj;
4604fail:
4605 return NULL;
4606}
4607
4608
1bd55598
RD
4609SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4610 PyObject *resultobj = 0;
4611 wxColour *arg1 = (wxColour *) 0 ;
4612 long result;
4613 void *argp1 = 0 ;
4614 int res1 = 0 ;
4615 PyObject *swig_obj[1] ;
4616
4617 if (!args) SWIG_fail;
4618 swig_obj[0] = args;
4619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4620 if (!SWIG_IsOK(res1)) {
4621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4622 }
4623 arg1 = reinterpret_cast< wxColour * >(argp1);
4624 {
4625 PyThreadState* __tstate = wxPyBeginAllowThreads();
4626 result = (long)((wxColour const *)arg1)->GetPixel();
4627 wxPyEndAllowThreads(__tstate);
4628 if (PyErr_Occurred()) SWIG_fail;
4629 }
4630 resultobj = SWIG_From_long(static_cast< long >(result));
4631 return resultobj;
4632fail:
4633 return NULL;
4634}
4635
4636
4637SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4638 PyObject *resultobj = 0;
4639 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4640 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4641 bool result;
4642 void *argp1 = 0 ;
4643 int res1 = 0 ;
1bd55598
RD
4644 PyObject * obj0 = 0 ;
4645 PyObject * obj1 = 0 ;
4646 char * kwnames[] = {
e9d6f3a4 4647 (char *) "self",(char *) "other", NULL
1bd55598
RD
4648 };
4649
4650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4652 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4654 }
4655 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4656 arg2 = obj1;
1bd55598 4657 {
e9d6f3a4 4658 result = (bool)wxColour___eq__(arg1,arg2);
1bd55598
RD
4659 if (PyErr_Occurred()) SWIG_fail;
4660 }
4661 {
4662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4663 }
4664 return resultobj;
4665fail:
4666 return NULL;
4667}
4668
4669
4670SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4671 PyObject *resultobj = 0;
4672 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4673 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4674 bool result;
4675 void *argp1 = 0 ;
4676 int res1 = 0 ;
1bd55598
RD
4677 PyObject * obj0 = 0 ;
4678 PyObject * obj1 = 0 ;
4679 char * kwnames[] = {
e9d6f3a4 4680 (char *) "self",(char *) "other", NULL
1bd55598
RD
4681 };
4682
4683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4685 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4687 }
4688 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4689 arg2 = obj1;
1bd55598 4690 {
e9d6f3a4 4691 result = (bool)wxColour___ne__(arg1,arg2);
1bd55598
RD
4692 if (PyErr_Occurred()) SWIG_fail;
4693 }
4694 {
4695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4696 }
4697 return resultobj;
4698fail:
4699 return NULL;
d55e5bfc
RD
4700}
4701
4702
fc46b7f3 4703SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
4704 PyObject *resultobj = 0;
4705 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4706 bool arg2 = (bool) false ;
1bd55598
RD
4707 PyObject *result = 0 ;
4708 void *argp1 = 0 ;
4709 int res1 = 0 ;
fc46b7f3
RD
4710 bool val2 ;
4711 int ecode2 = 0 ;
4712 PyObject * obj0 = 0 ;
4713 PyObject * obj1 = 0 ;
4714 char * kwnames[] = {
4715 (char *) "self",(char *) "includeAlpha", NULL
4716 };
1bd55598 4717
fc46b7f3
RD
4718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
1bd55598
RD
4720 if (!SWIG_IsOK(res1)) {
4721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4722 }
4723 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4724 if (obj1) {
4725 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4726 if (!SWIG_IsOK(ecode2)) {
4727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4728 }
4729 arg2 = static_cast< bool >(val2);
4730 }
1bd55598 4731 {
fc46b7f3 4732 result = (PyObject *)wxColour_Get(arg1,arg2);
1bd55598
RD
4733 if (PyErr_Occurred()) SWIG_fail;
4734 }
4735 resultobj = result;
4736 return resultobj;
4737fail:
4738 return NULL;
d55e5bfc
RD
4739}
4740
4741
1bd55598
RD
4742SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4743 PyObject *resultobj = 0;
4744 wxColour *arg1 = (wxColour *) 0 ;
4745 unsigned long result;
4746 void *argp1 = 0 ;
4747 int res1 = 0 ;
4748 PyObject *swig_obj[1] ;
4749
4750 if (!args) SWIG_fail;
4751 swig_obj[0] = args;
4752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4753 if (!SWIG_IsOK(res1)) {
4754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4755 }
4756 arg1 = reinterpret_cast< wxColour * >(argp1);
4757 {
1bd55598 4758 result = (unsigned long)wxColour_GetRGB(arg1);
1bd55598
RD
4759 if (PyErr_Occurred()) SWIG_fail;
4760 }
4761 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4762 return resultobj;
4763fail:
4764 return NULL;
4765}
4766
4767
4768SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4769 PyObject *obj;
4770 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4771 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4772 return SWIG_Py_Void();
4773}
4774
4775SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4776 return SWIG_Python_InitShadowInstance(args);
4777}
4778
4779SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4780 PyObject *resultobj = 0;
4781 int arg1 ;
4782 unsigned char *arg2 = (unsigned char *) 0 ;
4783 unsigned char *arg3 = (unsigned char *) 0 ;
4784 unsigned char *arg4 = (unsigned char *) 0 ;
4785 wxPalette *result = 0 ;
4786 int val1 ;
4787 int ecode1 = 0 ;
4788 void *argp2 = 0 ;
4789 int res2 = 0 ;
4790 void *argp3 = 0 ;
4791 int res3 = 0 ;
4792 void *argp4 = 0 ;
4793 int res4 = 0 ;
4794 PyObject * obj0 = 0 ;
4795 PyObject * obj1 = 0 ;
4796 PyObject * obj2 = 0 ;
4797 PyObject * obj3 = 0 ;
4798 char * kwnames[] = {
4799 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4800 };
4801
4802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4803 ecode1 = SWIG_AsVal_int(obj0, &val1);
4804 if (!SWIG_IsOK(ecode1)) {
4805 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4806 }
4807 arg1 = static_cast< int >(val1);
4808 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4809 if (!SWIG_IsOK(res2)) {
4810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4811 }
4812 arg2 = reinterpret_cast< unsigned char * >(argp2);
4813 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4814 if (!SWIG_IsOK(res3)) {
4815 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4816 }
4817 arg3 = reinterpret_cast< unsigned char * >(argp3);
4818 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4819 if (!SWIG_IsOK(res4)) {
4820 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4821 }
4822 arg4 = reinterpret_cast< unsigned char * >(argp4);
4823 {
4824 if (!wxPyCheckForApp()) SWIG_fail;
4825 PyThreadState* __tstate = wxPyBeginAllowThreads();
4826 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4827 wxPyEndAllowThreads(__tstate);
4828 if (PyErr_Occurred()) SWIG_fail;
4829 }
4830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4831 return resultobj;
4832fail:
4833 return NULL;
d55e5bfc
RD
4834}
4835
4836
1bd55598
RD
4837SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4838 PyObject *resultobj = 0;
4839 wxPalette *arg1 = (wxPalette *) 0 ;
4840 void *argp1 = 0 ;
4841 int res1 = 0 ;
4842 PyObject *swig_obj[1] ;
4843
4844 if (!args) SWIG_fail;
4845 swig_obj[0] = args;
4846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4847 if (!SWIG_IsOK(res1)) {
4848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4849 }
4850 arg1 = reinterpret_cast< wxPalette * >(argp1);
4851 {
4852 PyThreadState* __tstate = wxPyBeginAllowThreads();
4853 delete arg1;
d55e5bfc 4854
1bd55598
RD
4855 wxPyEndAllowThreads(__tstate);
4856 if (PyErr_Occurred()) SWIG_fail;
4857 }
4858 resultobj = SWIG_Py_Void();
4859 return resultobj;
4860fail:
4861 return NULL;
4862}
4863
4864
4865SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4866 PyObject *resultobj = 0;
4867 wxPalette *arg1 = (wxPalette *) 0 ;
4868 byte arg2 ;
4869 byte arg3 ;
4870 byte arg4 ;
4871 int result;
4872 void *argp1 = 0 ;
4873 int res1 = 0 ;
4874 unsigned char val2 ;
4875 int ecode2 = 0 ;
4876 unsigned char val3 ;
4877 int ecode3 = 0 ;
4878 unsigned char val4 ;
4879 int ecode4 = 0 ;
4880 PyObject * obj0 = 0 ;
4881 PyObject * obj1 = 0 ;
4882 PyObject * obj2 = 0 ;
4883 PyObject * obj3 = 0 ;
4884 char * kwnames[] = {
4885 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4886 };
4887
4888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4890 if (!SWIG_IsOK(res1)) {
4891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4892 }
4893 arg1 = reinterpret_cast< wxPalette * >(argp1);
4894 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4895 if (!SWIG_IsOK(ecode2)) {
4896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4897 }
4898 arg2 = static_cast< byte >(val2);
4899 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4900 if (!SWIG_IsOK(ecode3)) {
4901 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4902 }
4903 arg3 = static_cast< byte >(val3);
4904 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4905 if (!SWIG_IsOK(ecode4)) {
4906 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4907 }
4908 arg4 = static_cast< byte >(val4);
4909 {
4910 PyThreadState* __tstate = wxPyBeginAllowThreads();
4911 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4912 wxPyEndAllowThreads(__tstate);
4913 if (PyErr_Occurred()) SWIG_fail;
4914 }
4915 resultobj = SWIG_From_int(static_cast< int >(result));
4916 return resultobj;
4917fail:
4918 return NULL;
4919}
4920
4921
4922SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4923 PyObject *resultobj = 0;
4924 wxPalette *arg1 = (wxPalette *) 0 ;
4925 int arg2 ;
4926 byte *arg3 = (byte *) 0 ;
4927 byte *arg4 = (byte *) 0 ;
4928 byte *arg5 = (byte *) 0 ;
4929 bool result;
4930 void *argp1 = 0 ;
4931 int res1 = 0 ;
4932 int val2 ;
4933 int ecode2 = 0 ;
4934 byte temp3 ;
4935 int res3 = SWIG_TMPOBJ ;
4936 byte temp4 ;
4937 int res4 = SWIG_TMPOBJ ;
4938 byte temp5 ;
4939 int res5 = SWIG_TMPOBJ ;
4940 PyObject * obj0 = 0 ;
4941 PyObject * obj1 = 0 ;
4942 char * kwnames[] = {
4943 (char *) "self",(char *) "pixel", NULL
4944 };
4945
4946 arg3 = &temp3;
4947 arg4 = &temp4;
4948 arg5 = &temp5;
4949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4951 if (!SWIG_IsOK(res1)) {
4952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4953 }
4954 arg1 = reinterpret_cast< wxPalette * >(argp1);
4955 ecode2 = SWIG_AsVal_int(obj1, &val2);
4956 if (!SWIG_IsOK(ecode2)) {
4957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4958 }
4959 arg2 = static_cast< int >(val2);
4960 {
4961 PyThreadState* __tstate = wxPyBeginAllowThreads();
4962 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4963 wxPyEndAllowThreads(__tstate);
4964 if (PyErr_Occurred()) SWIG_fail;
4965 }
4966 {
4967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4968 }
4969 if (SWIG_IsTmpObj(res3)) {
4970 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4971 } else {
4972 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4973 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4974 }
4975 if (SWIG_IsTmpObj(res4)) {
4976 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4977 } else {
4978 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4979 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4980 }
4981 if (SWIG_IsTmpObj(res5)) {
4982 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4983 } else {
4984 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4985 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4986 }
4987 return resultobj;
4988fail:
4989 return NULL;
d55e5bfc
RD
4990}
4991
4992
1bd55598
RD
4993SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4994 PyObject *resultobj = 0;
4995 wxPalette *arg1 = (wxPalette *) 0 ;
4996 int result;
4997 void *argp1 = 0 ;
4998 int res1 = 0 ;
4999 PyObject *swig_obj[1] ;
5000
5001 if (!args) SWIG_fail;
5002 swig_obj[0] = args;
5003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5004 if (!SWIG_IsOK(res1)) {
5005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
5006 }
5007 arg1 = reinterpret_cast< wxPalette * >(argp1);
5008 {
5009 PyThreadState* __tstate = wxPyBeginAllowThreads();
5010 result = (int)((wxPalette const *)arg1)->GetColoursCount();
5011 wxPyEndAllowThreads(__tstate);
5012 if (PyErr_Occurred()) SWIG_fail;
5013 }
5014 resultobj = SWIG_From_int(static_cast< int >(result));
5015 return resultobj;
5016fail:
5017 return NULL;
d55e5bfc
RD
5018}
5019
5020
b39fe951 5021SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5022 PyObject *resultobj = 0;
5023 wxPalette *arg1 = (wxPalette *) 0 ;
5024 bool result;
5025 void *argp1 = 0 ;
5026 int res1 = 0 ;
5027 PyObject *swig_obj[1] ;
5028
5029 if (!args) SWIG_fail;
5030 swig_obj[0] = args;
5031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5032 if (!SWIG_IsOK(res1)) {
b39fe951 5033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
1bd55598
RD
5034 }
5035 arg1 = reinterpret_cast< wxPalette * >(argp1);
5036 {
5037 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5038 result = (bool)(arg1)->IsOk();
1bd55598
RD
5039 wxPyEndAllowThreads(__tstate);
5040 if (PyErr_Occurred()) SWIG_fail;
5041 }
5042 {
5043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5044 }
5045 return resultobj;
5046fail:
5047 return NULL;
5048}
5049
5050
5051SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5052 PyObject *obj;
5053 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5054 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5055 return SWIG_Py_Void();
5056}
5057
5058SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5059 return SWIG_Python_InitShadowInstance(args);
5060}
5061
5062SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5063 PyObject *resultobj = 0;
5064 wxColour *arg1 = 0 ;
5065 int arg2 = (int) 1 ;
5066 int arg3 = (int) wxSOLID ;
5067 wxPen *result = 0 ;
5068 wxColour temp1 ;
5069 int val2 ;
5070 int ecode2 = 0 ;
5071 int val3 ;
5072 int ecode3 = 0 ;
5073 PyObject * obj0 = 0 ;
5074 PyObject * obj1 = 0 ;
5075 PyObject * obj2 = 0 ;
5076 char * kwnames[] = {
5077 (char *) "colour",(char *) "width",(char *) "style", NULL
5078 };
5079
5080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5081 {
5082 arg1 = &temp1;
5083 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5084 }
5085 if (obj1) {
5086 ecode2 = SWIG_AsVal_int(obj1, &val2);
5087 if (!SWIG_IsOK(ecode2)) {
5088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5089 }
5090 arg2 = static_cast< int >(val2);
5091 }
5092 if (obj2) {
5093 ecode3 = SWIG_AsVal_int(obj2, &val3);
5094 if (!SWIG_IsOK(ecode3)) {
5095 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5096 }
5097 arg3 = static_cast< int >(val3);
5098 }
5099 {
5100 if (!wxPyCheckForApp()) SWIG_fail;
5101 PyThreadState* __tstate = wxPyBeginAllowThreads();
5102 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5103 wxPyEndAllowThreads(__tstate);
5104 if (PyErr_Occurred()) SWIG_fail;
5105 }
5106 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5107 return resultobj;
5108fail:
5109 return NULL;
d55e5bfc
RD
5110}
5111
5112
1bd55598
RD
5113SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5114 PyObject *resultobj = 0;
5115 wxPen *arg1 = (wxPen *) 0 ;
5116 void *argp1 = 0 ;
5117 int res1 = 0 ;
5118 PyObject *swig_obj[1] ;
5119
5120 if (!args) SWIG_fail;
5121 swig_obj[0] = args;
5122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5123 if (!SWIG_IsOK(res1)) {
5124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5125 }
5126 arg1 = reinterpret_cast< wxPen * >(argp1);
5127 {
5128 PyThreadState* __tstate = wxPyBeginAllowThreads();
5129 delete arg1;
f78cc896 5130
1bd55598
RD
5131 wxPyEndAllowThreads(__tstate);
5132 if (PyErr_Occurred()) SWIG_fail;
5133 }
5134 resultobj = SWIG_Py_Void();
5135 return resultobj;
5136fail:
5137 return NULL;
f78cc896
RD
5138}
5139
5140
1bd55598
RD
5141SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5142 PyObject *resultobj = 0;
5143 wxPen *arg1 = (wxPen *) 0 ;
5144 int result;
5145 void *argp1 = 0 ;
5146 int res1 = 0 ;
5147 PyObject *swig_obj[1] ;
5148
5149 if (!args) SWIG_fail;
5150 swig_obj[0] = args;
5151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5152 if (!SWIG_IsOK(res1)) {
5153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5154 }
5155 arg1 = reinterpret_cast< wxPen * >(argp1);
5156 {
5157 PyThreadState* __tstate = wxPyBeginAllowThreads();
5158 result = (int)(arg1)->GetCap();
5159 wxPyEndAllowThreads(__tstate);
5160 if (PyErr_Occurred()) SWIG_fail;
5161 }
5162 resultobj = SWIG_From_int(static_cast< int >(result));
5163 return resultobj;
5164fail:
5165 return NULL;
d55e5bfc
RD
5166}
5167
5168
1bd55598
RD
5169SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5170 PyObject *resultobj = 0;
5171 wxPen *arg1 = (wxPen *) 0 ;
5172 wxColour result;
5173 void *argp1 = 0 ;
5174 int res1 = 0 ;
5175 PyObject *swig_obj[1] ;
5176
5177 if (!args) SWIG_fail;
5178 swig_obj[0] = args;
5179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5180 if (!SWIG_IsOK(res1)) {
5181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5182 }
5183 arg1 = reinterpret_cast< wxPen * >(argp1);
5184 {
5185 PyThreadState* __tstate = wxPyBeginAllowThreads();
5186 result = (arg1)->GetColour();
5187 wxPyEndAllowThreads(__tstate);
5188 if (PyErr_Occurred()) SWIG_fail;
5189 }
5190 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5191 return resultobj;
5192fail:
5193 return NULL;
d55e5bfc
RD
5194}
5195
5196
1bd55598
RD
5197SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5198 PyObject *resultobj = 0;
5199 wxPen *arg1 = (wxPen *) 0 ;
5200 int result;
5201 void *argp1 = 0 ;
5202 int res1 = 0 ;
5203 PyObject *swig_obj[1] ;
5204
5205 if (!args) SWIG_fail;
5206 swig_obj[0] = args;
5207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5208 if (!SWIG_IsOK(res1)) {
5209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5210 }
5211 arg1 = reinterpret_cast< wxPen * >(argp1);
5212 {
5213 PyThreadState* __tstate = wxPyBeginAllowThreads();
5214 result = (int)(arg1)->GetJoin();
5215 wxPyEndAllowThreads(__tstate);
5216 if (PyErr_Occurred()) SWIG_fail;
5217 }
5218 resultobj = SWIG_From_int(static_cast< int >(result));
5219 return resultobj;
5220fail:
5221 return NULL;
d55e5bfc
RD
5222}
5223
5224
1bd55598
RD
5225SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5226 PyObject *resultobj = 0;
5227 wxPen *arg1 = (wxPen *) 0 ;
5228 int result;
5229 void *argp1 = 0 ;
5230 int res1 = 0 ;
5231 PyObject *swig_obj[1] ;
5232
5233 if (!args) SWIG_fail;
5234 swig_obj[0] = args;
5235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5236 if (!SWIG_IsOK(res1)) {
5237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5238 }
5239 arg1 = reinterpret_cast< wxPen * >(argp1);
5240 {
5241 PyThreadState* __tstate = wxPyBeginAllowThreads();
5242 result = (int)(arg1)->GetStyle();
5243 wxPyEndAllowThreads(__tstate);
5244 if (PyErr_Occurred()) SWIG_fail;
5245 }
5246 resultobj = SWIG_From_int(static_cast< int >(result));
5247 return resultobj;
5248fail:
5249 return NULL;
d55e5bfc
RD
5250}
5251
5252
1bd55598
RD
5253SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5254 PyObject *resultobj = 0;
5255 wxPen *arg1 = (wxPen *) 0 ;
5256 int result;
5257 void *argp1 = 0 ;
5258 int res1 = 0 ;
5259 PyObject *swig_obj[1] ;
5260
5261 if (!args) SWIG_fail;
5262 swig_obj[0] = args;
5263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5264 if (!SWIG_IsOK(res1)) {
5265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5266 }
5267 arg1 = reinterpret_cast< wxPen * >(argp1);
5268 {
5269 PyThreadState* __tstate = wxPyBeginAllowThreads();
5270 result = (int)(arg1)->GetWidth();
5271 wxPyEndAllowThreads(__tstate);
5272 if (PyErr_Occurred()) SWIG_fail;
5273 }
5274 resultobj = SWIG_From_int(static_cast< int >(result));
5275 return resultobj;
5276fail:
5277 return NULL;
d55e5bfc
RD
5278}
5279
5280
b39fe951 5281SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5282 PyObject *resultobj = 0;
5283 wxPen *arg1 = (wxPen *) 0 ;
5284 bool result;
5285 void *argp1 = 0 ;
5286 int res1 = 0 ;
5287 PyObject *swig_obj[1] ;
5288
5289 if (!args) SWIG_fail;
5290 swig_obj[0] = args;
5291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5292 if (!SWIG_IsOK(res1)) {
b39fe951 5293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
1bd55598
RD
5294 }
5295 arg1 = reinterpret_cast< wxPen * >(argp1);
5296 {
5297 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5298 result = (bool)(arg1)->IsOk();
1bd55598
RD
5299 wxPyEndAllowThreads(__tstate);
5300 if (PyErr_Occurred()) SWIG_fail;
5301 }
5302 {
5303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5304 }
5305 return resultobj;
5306fail:
5307 return NULL;
5308}
5309
5310
5311SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5312 PyObject *resultobj = 0;
5313 wxPen *arg1 = (wxPen *) 0 ;
5314 int arg2 ;
5315 void *argp1 = 0 ;
5316 int res1 = 0 ;
5317 int val2 ;
5318 int ecode2 = 0 ;
5319 PyObject * obj0 = 0 ;
5320 PyObject * obj1 = 0 ;
5321 char * kwnames[] = {
5322 (char *) "self",(char *) "cap_style", NULL
5323 };
5324
5325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5327 if (!SWIG_IsOK(res1)) {
5328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5329 }
5330 arg1 = reinterpret_cast< wxPen * >(argp1);
5331 ecode2 = SWIG_AsVal_int(obj1, &val2);
5332 if (!SWIG_IsOK(ecode2)) {
5333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5334 }
5335 arg2 = static_cast< int >(val2);
5336 {
5337 PyThreadState* __tstate = wxPyBeginAllowThreads();
5338 (arg1)->SetCap(arg2);
5339 wxPyEndAllowThreads(__tstate);
5340 if (PyErr_Occurred()) SWIG_fail;
5341 }
5342 resultobj = SWIG_Py_Void();
5343 return resultobj;
5344fail:
5345 return NULL;
5346}
5347
5348
5349SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5350 PyObject *resultobj = 0;
5351 wxPen *arg1 = (wxPen *) 0 ;
5352 wxColour *arg2 = 0 ;
5353 void *argp1 = 0 ;
5354 int res1 = 0 ;
5355 wxColour temp2 ;
5356 PyObject * obj0 = 0 ;
5357 PyObject * obj1 = 0 ;
5358 char * kwnames[] = {
5359 (char *) "self",(char *) "colour", NULL
5360 };
5361
5362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5364 if (!SWIG_IsOK(res1)) {
5365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5366 }
5367 arg1 = reinterpret_cast< wxPen * >(argp1);
5368 {
5369 arg2 = &temp2;
5370 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5371 }
5372 {
5373 PyThreadState* __tstate = wxPyBeginAllowThreads();
5374 (arg1)->SetColour(*arg2);
5375 wxPyEndAllowThreads(__tstate);
5376 if (PyErr_Occurred()) SWIG_fail;
5377 }
5378 resultobj = SWIG_Py_Void();
5379 return resultobj;
5380fail:
5381 return NULL;
5382}
5383
5384
5385SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5386 PyObject *resultobj = 0;
5387 wxPen *arg1 = (wxPen *) 0 ;
5388 int arg2 ;
5389 void *argp1 = 0 ;
5390 int res1 = 0 ;
5391 int val2 ;
5392 int ecode2 = 0 ;
5393 PyObject * obj0 = 0 ;
5394 PyObject * obj1 = 0 ;
5395 char * kwnames[] = {
5396 (char *) "self",(char *) "join_style", NULL
5397 };
5398
5399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5401 if (!SWIG_IsOK(res1)) {
5402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5403 }
5404 arg1 = reinterpret_cast< wxPen * >(argp1);
5405 ecode2 = SWIG_AsVal_int(obj1, &val2);
5406 if (!SWIG_IsOK(ecode2)) {
5407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5408 }
5409 arg2 = static_cast< int >(val2);
5410 {
5411 PyThreadState* __tstate = wxPyBeginAllowThreads();
5412 (arg1)->SetJoin(arg2);
5413 wxPyEndAllowThreads(__tstate);
5414 if (PyErr_Occurred()) SWIG_fail;
5415 }
5416 resultobj = SWIG_Py_Void();
5417 return resultobj;
5418fail:
5419 return NULL;
5420}
5421
5422
5423SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5424 PyObject *resultobj = 0;
5425 wxPen *arg1 = (wxPen *) 0 ;
5426 int arg2 ;
5427 void *argp1 = 0 ;
5428 int res1 = 0 ;
5429 int val2 ;
5430 int ecode2 = 0 ;
5431 PyObject * obj0 = 0 ;
5432 PyObject * obj1 = 0 ;
5433 char * kwnames[] = {
5434 (char *) "self",(char *) "style", NULL
5435 };
5436
5437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5439 if (!SWIG_IsOK(res1)) {
5440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5441 }
5442 arg1 = reinterpret_cast< wxPen * >(argp1);
5443 ecode2 = SWIG_AsVal_int(obj1, &val2);
5444 if (!SWIG_IsOK(ecode2)) {
5445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5446 }
5447 arg2 = static_cast< int >(val2);
5448 {
5449 PyThreadState* __tstate = wxPyBeginAllowThreads();
5450 (arg1)->SetStyle(arg2);
5451 wxPyEndAllowThreads(__tstate);
5452 if (PyErr_Occurred()) SWIG_fail;
5453 }
5454 resultobj = SWIG_Py_Void();
5455 return resultobj;
5456fail:
5457 return NULL;
5458}
5459
5460
5461SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5462 PyObject *resultobj = 0;
5463 wxPen *arg1 = (wxPen *) 0 ;
5464 int arg2 ;
5465 void *argp1 = 0 ;
5466 int res1 = 0 ;
5467 int val2 ;
5468 int ecode2 = 0 ;
5469 PyObject * obj0 = 0 ;
5470 PyObject * obj1 = 0 ;
5471 char * kwnames[] = {
5472 (char *) "self",(char *) "width", NULL
5473 };
5474
5475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5477 if (!SWIG_IsOK(res1)) {
5478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5479 }
5480 arg1 = reinterpret_cast< wxPen * >(argp1);
5481 ecode2 = SWIG_AsVal_int(obj1, &val2);
5482 if (!SWIG_IsOK(ecode2)) {
5483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5484 }
5485 arg2 = static_cast< int >(val2);
5486 {
5487 PyThreadState* __tstate = wxPyBeginAllowThreads();
5488 (arg1)->SetWidth(arg2);
5489 wxPyEndAllowThreads(__tstate);
5490 if (PyErr_Occurred()) SWIG_fail;
5491 }
5492 resultobj = SWIG_Py_Void();
5493 return resultobj;
5494fail:
5495 return NULL;
5496}
5497
5498
5499SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5500 PyObject *resultobj = 0;
5501 wxPen *arg1 = (wxPen *) 0 ;
5502 int arg2 ;
5503 wxDash *arg3 = (wxDash *) 0 ;
5504 void *argp1 = 0 ;
5505 int res1 = 0 ;
5506 PyObject * obj0 = 0 ;
5507 PyObject * obj1 = 0 ;
5508 char * kwnames[] = {
5509 (char *) "self",(char *) "dashes", NULL
5510 };
5511
5512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5514 if (!SWIG_IsOK(res1)) {
5515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5516 }
5517 arg1 = reinterpret_cast< wxPen * >(argp1);
5518 {
5519 arg2 = PyList_Size(obj1);
5520 arg3 = (wxDash*)byte_LIST_helper(obj1);
5521 if (arg3 == NULL) SWIG_fail;
5522 }
5523 {
5524 PyThreadState* __tstate = wxPyBeginAllowThreads();
5525 (arg1)->SetDashes(arg2,arg3);
5526 wxPyEndAllowThreads(__tstate);
5527 if (PyErr_Occurred()) SWIG_fail;
5528 }
5529 resultobj = SWIG_Py_Void();
5530 {
5531 if (arg3) delete [] arg3;
5532 }
5533 return resultobj;
5534fail:
5535 {
5536 if (arg3) delete [] arg3;
5537 }
5538 return NULL;
d6c14a4c
RD
5539}
5540
5541
1bd55598
RD
5542SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5543 PyObject *resultobj = 0;
5544 wxPen *arg1 = (wxPen *) 0 ;
5545 PyObject *result = 0 ;
5546 void *argp1 = 0 ;
5547 int res1 = 0 ;
5548 PyObject *swig_obj[1] ;
5549
5550 if (!args) SWIG_fail;
5551 swig_obj[0] = args;
5552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5553 if (!SWIG_IsOK(res1)) {
5554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5555 }
5556 arg1 = reinterpret_cast< wxPen * >(argp1);
5557 {
5558 PyThreadState* __tstate = wxPyBeginAllowThreads();
5559 result = (PyObject *)wxPen_GetDashes(arg1);
5560 wxPyEndAllowThreads(__tstate);
5561 if (PyErr_Occurred()) SWIG_fail;
5562 }
5563 resultobj = result;
5564 return resultobj;
5565fail:
5566 return NULL;
5567}
5568
5569
5570SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5571 PyObject *resultobj = 0;
5572 wxPen *arg1 = (wxPen *) 0 ;
5573 PyObject *arg2 = (PyObject *) 0 ;
5574 PyObject *arg3 = (PyObject *) 0 ;
5575 void *argp1 = 0 ;
5576 int res1 = 0 ;
5577 PyObject * obj0 = 0 ;
5578 PyObject * obj1 = 0 ;
5579 PyObject * obj2 = 0 ;
5580 char * kwnames[] = {
5581 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5582 };
5583
5584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5586 if (!SWIG_IsOK(res1)) {
5587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5588 }
5589 arg1 = reinterpret_cast< wxPen * >(argp1);
5590 arg2 = obj1;
5591 arg3 = obj2;
5592 {
5593 PyThreadState* __tstate = wxPyBeginAllowThreads();
5594 wxPen__SetDashes(arg1,arg2,arg3);
5595 wxPyEndAllowThreads(__tstate);
5596 if (PyErr_Occurred()) SWIG_fail;
5597 }
5598 resultobj = SWIG_Py_Void();
5599 return resultobj;
5600fail:
5601 return NULL;
5602}
5603
5604
5605SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5606 PyObject *resultobj = 0;
5607 wxPen *arg1 = (wxPen *) 0 ;
5608 wxPen *arg2 = (wxPen *) 0 ;
5609 bool result;
5610 void *argp1 = 0 ;
5611 int res1 = 0 ;
5612 void *argp2 = 0 ;
5613 int res2 = 0 ;
5614 PyObject * obj0 = 0 ;
5615 PyObject * obj1 = 0 ;
5616 char * kwnames[] = {
5617 (char *) "self",(char *) "other", NULL
5618 };
5619
5620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5622 if (!SWIG_IsOK(res1)) {
5623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5624 }
5625 arg1 = reinterpret_cast< wxPen * >(argp1);
5626 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5627 if (!SWIG_IsOK(res2)) {
5628 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5629 }
5630 arg2 = reinterpret_cast< wxPen * >(argp2);
5631 {
5632 PyThreadState* __tstate = wxPyBeginAllowThreads();
5633 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5634 wxPyEndAllowThreads(__tstate);
5635 if (PyErr_Occurred()) SWIG_fail;
5636 }
5637 {
5638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5639 }
5640 return resultobj;
5641fail:
5642 return NULL;
5643}
5644
5645
5646SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5647 PyObject *resultobj = 0;
5648 wxPen *arg1 = (wxPen *) 0 ;
5649 wxPen *arg2 = (wxPen *) 0 ;
5650 bool result;
5651 void *argp1 = 0 ;
5652 int res1 = 0 ;
5653 void *argp2 = 0 ;
5654 int res2 = 0 ;
5655 PyObject * obj0 = 0 ;
5656 PyObject * obj1 = 0 ;
5657 char * kwnames[] = {
5658 (char *) "self",(char *) "other", NULL
5659 };
5660
5661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5663 if (!SWIG_IsOK(res1)) {
5664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5665 }
5666 arg1 = reinterpret_cast< wxPen * >(argp1);
5667 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5668 if (!SWIG_IsOK(res2)) {
5669 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5670 }
5671 arg2 = reinterpret_cast< wxPen * >(argp2);
5672 {
5673 PyThreadState* __tstate = wxPyBeginAllowThreads();
5674 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5675 wxPyEndAllowThreads(__tstate);
5676 if (PyErr_Occurred()) SWIG_fail;
5677 }
5678 {
5679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5680 }
5681 return resultobj;
5682fail:
5683 return NULL;
5684}
d55e5bfc
RD
5685
5686
1bd55598
RD
5687SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5688 PyObject *obj;
5689 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5690 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5691 return SWIG_Py_Void();
d55e5bfc
RD
5692}
5693
1bd55598
RD
5694SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5695 return SWIG_Python_InitShadowInstance(args);
5696}
d55e5bfc 5697
1bd55598
RD
5698SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5699 PyObject *resultobj = 0;
5700 wxColour *arg1 = 0 ;
5701 int arg2 = (int) wxSOLID ;
5702 wxBrush *result = 0 ;
5703 wxColour temp1 ;
5704 int val2 ;
5705 int ecode2 = 0 ;
5706 PyObject * obj0 = 0 ;
5707 PyObject * obj1 = 0 ;
5708 char * kwnames[] = {
5709 (char *) "colour",(char *) "style", NULL
5710 };
5711
5712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5713 {
5714 arg1 = &temp1;
5715 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5716 }
5717 if (obj1) {
5718 ecode2 = SWIG_AsVal_int(obj1, &val2);
5719 if (!SWIG_IsOK(ecode2)) {
5720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5721 }
5722 arg2 = static_cast< int >(val2);
5723 }
5724 {
5725 if (!wxPyCheckForApp()) SWIG_fail;
5726 PyThreadState* __tstate = wxPyBeginAllowThreads();
5727 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5728 wxPyEndAllowThreads(__tstate);
5729 if (PyErr_Occurred()) SWIG_fail;
5730 }
5731 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5732 return resultobj;
5733fail:
5734 return NULL;
5735}
5736
5737
5738SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5739 PyObject *resultobj = 0;
5740 wxBitmap *arg1 = 0 ;
5741 wxBrush *result = 0 ;
5742 void *argp1 = 0 ;
5743 int res1 = 0 ;
5744 PyObject * obj0 = 0 ;
5745 char * kwnames[] = {
5746 (char *) "stippleBitmap", NULL
5747 };
5748
5749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5750 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5751 if (!SWIG_IsOK(res1)) {
5752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5753 }
5754 if (!argp1) {
5755 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5756 }
5757 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5758 {
5759 if (!wxPyCheckForApp()) SWIG_fail;
5760 PyThreadState* __tstate = wxPyBeginAllowThreads();
5761 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5762 wxPyEndAllowThreads(__tstate);
5763 if (PyErr_Occurred()) SWIG_fail;
5764 }
5765 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5766 return resultobj;
5767fail:
5768 return NULL;
d55e5bfc
RD
5769}
5770
5771
1bd55598
RD
5772SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5773 PyObject *resultobj = 0;
5774 wxBrush *arg1 = (wxBrush *) 0 ;
5775 void *argp1 = 0 ;
5776 int res1 = 0 ;
5777 PyObject *swig_obj[1] ;
5778
5779 if (!args) SWIG_fail;
5780 swig_obj[0] = args;
5781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5782 if (!SWIG_IsOK(res1)) {
5783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5784 }
5785 arg1 = reinterpret_cast< wxBrush * >(argp1);
5786 {
5787 PyThreadState* __tstate = wxPyBeginAllowThreads();
5788 delete arg1;
d55e5bfc 5789
1bd55598
RD
5790 wxPyEndAllowThreads(__tstate);
5791 if (PyErr_Occurred()) SWIG_fail;
5792 }
5793 resultobj = SWIG_Py_Void();
5794 return resultobj;
5795fail:
5796 return NULL;
5797}
5798
5799
5800SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5801 PyObject *resultobj = 0;
5802 wxBrush *arg1 = (wxBrush *) 0 ;
5803 wxColour *arg2 = 0 ;
5804 void *argp1 = 0 ;
5805 int res1 = 0 ;
5806 wxColour temp2 ;
5807 PyObject * obj0 = 0 ;
5808 PyObject * obj1 = 0 ;
5809 char * kwnames[] = {
5810 (char *) "self",(char *) "col", NULL
5811 };
5812
5813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5815 if (!SWIG_IsOK(res1)) {
5816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5817 }
5818 arg1 = reinterpret_cast< wxBrush * >(argp1);
5819 {
5820 arg2 = &temp2;
5821 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5822 }
5823 {
5824 PyThreadState* __tstate = wxPyBeginAllowThreads();
5825 (arg1)->SetColour((wxColour const &)*arg2);
5826 wxPyEndAllowThreads(__tstate);
5827 if (PyErr_Occurred()) SWIG_fail;
5828 }
5829 resultobj = SWIG_Py_Void();
5830 return resultobj;
5831fail:
5832 return NULL;
5833}
5834
5835
5836SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5837 PyObject *resultobj = 0;
5838 wxBrush *arg1 = (wxBrush *) 0 ;
5839 int arg2 ;
5840 void *argp1 = 0 ;
5841 int res1 = 0 ;
5842 int val2 ;
5843 int ecode2 = 0 ;
5844 PyObject * obj0 = 0 ;
5845 PyObject * obj1 = 0 ;
5846 char * kwnames[] = {
5847 (char *) "self",(char *) "style", NULL
5848 };
5849
5850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5852 if (!SWIG_IsOK(res1)) {
5853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5854 }
5855 arg1 = reinterpret_cast< wxBrush * >(argp1);
5856 ecode2 = SWIG_AsVal_int(obj1, &val2);
5857 if (!SWIG_IsOK(ecode2)) {
5858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5859 }
5860 arg2 = static_cast< int >(val2);
5861 {
5862 PyThreadState* __tstate = wxPyBeginAllowThreads();
5863 (arg1)->SetStyle(arg2);
5864 wxPyEndAllowThreads(__tstate);
5865 if (PyErr_Occurred()) SWIG_fail;
5866 }
5867 resultobj = SWIG_Py_Void();
5868 return resultobj;
5869fail:
5870 return NULL;
5871}
5872
5873
5874SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5875 PyObject *resultobj = 0;
5876 wxBrush *arg1 = (wxBrush *) 0 ;
5877 wxBitmap *arg2 = 0 ;
5878 void *argp1 = 0 ;
5879 int res1 = 0 ;
5880 void *argp2 = 0 ;
5881 int res2 = 0 ;
5882 PyObject * obj0 = 0 ;
5883 PyObject * obj1 = 0 ;
5884 char * kwnames[] = {
5885 (char *) "self",(char *) "stipple", NULL
5886 };
5887
5888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5890 if (!SWIG_IsOK(res1)) {
5891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5892 }
5893 arg1 = reinterpret_cast< wxBrush * >(argp1);
5894 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5895 if (!SWIG_IsOK(res2)) {
5896 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5897 }
5898 if (!argp2) {
5899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5900 }
5901 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5902 {
5903 PyThreadState* __tstate = wxPyBeginAllowThreads();
5904 (arg1)->SetStipple((wxBitmap const &)*arg2);
5905 wxPyEndAllowThreads(__tstate);
5906 if (PyErr_Occurred()) SWIG_fail;
5907 }
5908 resultobj = SWIG_Py_Void();
5909 return resultobj;
5910fail:
5911 return NULL;
d55e5bfc
RD
5912}
5913
5914
1bd55598
RD
5915SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5916 PyObject *resultobj = 0;
5917 wxBrush *arg1 = (wxBrush *) 0 ;
5918 wxColour result;
5919 void *argp1 = 0 ;
5920 int res1 = 0 ;
5921 PyObject *swig_obj[1] ;
5922
5923 if (!args) SWIG_fail;
5924 swig_obj[0] = args;
5925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5926 if (!SWIG_IsOK(res1)) {
5927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5928 }
5929 arg1 = reinterpret_cast< wxBrush * >(argp1);
5930 {
5931 PyThreadState* __tstate = wxPyBeginAllowThreads();
5932 result = ((wxBrush const *)arg1)->GetColour();
5933 wxPyEndAllowThreads(__tstate);
5934 if (PyErr_Occurred()) SWIG_fail;
5935 }
5936 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5937 return resultobj;
5938fail:
5939 return NULL;
d55e5bfc
RD
5940}
5941
5942
1bd55598
RD
5943SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5944 PyObject *resultobj = 0;
5945 wxBrush *arg1 = (wxBrush *) 0 ;
5946 int result;
5947 void *argp1 = 0 ;
5948 int res1 = 0 ;
5949 PyObject *swig_obj[1] ;
5950
5951 if (!args) SWIG_fail;
5952 swig_obj[0] = args;
5953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5954 if (!SWIG_IsOK(res1)) {
5955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5956 }
5957 arg1 = reinterpret_cast< wxBrush * >(argp1);
5958 {
5959 PyThreadState* __tstate = wxPyBeginAllowThreads();
5960 result = (int)((wxBrush const *)arg1)->GetStyle();
5961 wxPyEndAllowThreads(__tstate);
5962 if (PyErr_Occurred()) SWIG_fail;
5963 }
5964 resultobj = SWIG_From_int(static_cast< int >(result));
5965 return resultobj;
5966fail:
5967 return NULL;
d55e5bfc
RD
5968}
5969
5970
1bd55598
RD
5971SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5972 PyObject *resultobj = 0;
5973 wxBrush *arg1 = (wxBrush *) 0 ;
5974 wxBitmap *result = 0 ;
5975 void *argp1 = 0 ;
5976 int res1 = 0 ;
5977 PyObject *swig_obj[1] ;
5978
5979 if (!args) SWIG_fail;
5980 swig_obj[0] = args;
5981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5982 if (!SWIG_IsOK(res1)) {
5983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5984 }
5985 arg1 = reinterpret_cast< wxBrush * >(argp1);
5986 {
5987 PyThreadState* __tstate = wxPyBeginAllowThreads();
5988 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5989 wxPyEndAllowThreads(__tstate);
5990 if (PyErr_Occurred()) SWIG_fail;
5991 }
5992 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5993 return resultobj;
5994fail:
5995 return NULL;
d55e5bfc
RD
5996}
5997
5998
1bd55598
RD
5999SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6000 PyObject *resultobj = 0;
6001 wxBrush *arg1 = (wxBrush *) 0 ;
6002 bool result;
6003 void *argp1 = 0 ;
6004 int res1 = 0 ;
6005 PyObject *swig_obj[1] ;
6006
6007 if (!args) SWIG_fail;
6008 swig_obj[0] = args;
6009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6010 if (!SWIG_IsOK(res1)) {
6011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6012 }
6013 arg1 = reinterpret_cast< wxBrush * >(argp1);
6014 {
6015 PyThreadState* __tstate = wxPyBeginAllowThreads();
6016 result = (bool)((wxBrush const *)arg1)->IsHatch();
6017 wxPyEndAllowThreads(__tstate);
6018 if (PyErr_Occurred()) SWIG_fail;
6019 }
6020 {
6021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6022 }
6023 return resultobj;
6024fail:
6025 return NULL;
d55e5bfc
RD
6026}
6027
6028
b39fe951 6029SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
6030 PyObject *resultobj = 0;
6031 wxBrush *arg1 = (wxBrush *) 0 ;
6032 bool result;
6033 void *argp1 = 0 ;
6034 int res1 = 0 ;
6035 PyObject *swig_obj[1] ;
6036
6037 if (!args) SWIG_fail;
6038 swig_obj[0] = args;
6039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6040 if (!SWIG_IsOK(res1)) {
b39fe951 6041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
1bd55598
RD
6042 }
6043 arg1 = reinterpret_cast< wxBrush * >(argp1);
6044 {
6045 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 6046 result = (bool)(arg1)->IsOk();
1bd55598
RD
6047 wxPyEndAllowThreads(__tstate);
6048 if (PyErr_Occurred()) SWIG_fail;
6049 }
6050 {
6051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6052 }
6053 return resultobj;
6054fail:
6055 return NULL;
d55e5bfc
RD
6056}
6057
6058
1bd55598
RD
6059SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6060 PyObject *resultobj = 0;
6061 wxBrush *arg1 = (wxBrush *) 0 ;
6062 short result;
6063 void *argp1 = 0 ;
6064 int res1 = 0 ;
6065 PyObject *swig_obj[1] ;
6066
6067 if (!args) SWIG_fail;
6068 swig_obj[0] = args;
6069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6070 if (!SWIG_IsOK(res1)) {
6071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6072 }
6073 arg1 = reinterpret_cast< wxBrush * >(argp1);
6074 {
6075 PyThreadState* __tstate = wxPyBeginAllowThreads();
6076 result = (short)(arg1)->MacGetTheme();
6077 wxPyEndAllowThreads(__tstate);
6078 if (PyErr_Occurred()) SWIG_fail;
6079 }
6080 resultobj = SWIG_From_short(static_cast< short >(result));
6081 return resultobj;
6082fail:
6083 return NULL;
6084}
6085
6086
6087SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6088 PyObject *resultobj = 0;
6089 wxBrush *arg1 = (wxBrush *) 0 ;
6090 short arg2 ;
6091 void *argp1 = 0 ;
6092 int res1 = 0 ;
6093 short val2 ;
6094 int ecode2 = 0 ;
6095 PyObject * obj0 = 0 ;
6096 PyObject * obj1 = 0 ;
6097 char * kwnames[] = {
6098 (char *) "self",(char *) "macThemeBrush", NULL
6099 };
6100
6101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
6102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6103 if (!SWIG_IsOK(res1)) {
6104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6105 }
6106 arg1 = reinterpret_cast< wxBrush * >(argp1);
6107 ecode2 = SWIG_AsVal_short(obj1, &val2);
6108 if (!SWIG_IsOK(ecode2)) {
6109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
6110 }
6111 arg2 = static_cast< short >(val2);
6112 {
6113 PyThreadState* __tstate = wxPyBeginAllowThreads();
6114 (arg1)->MacSetTheme(arg2);
6115 wxPyEndAllowThreads(__tstate);
6116 if (PyErr_Occurred()) SWIG_fail;
6117 }
6118 resultobj = SWIG_Py_Void();
6119 return resultobj;
6120fail:
6121 return NULL;
d55e5bfc
RD
6122}
6123
6124
1bd55598
RD
6125SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6126 PyObject *obj;
6127 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6128 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6129 return SWIG_Py_Void();
d55e5bfc
RD
6130}
6131
1bd55598
RD
6132SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6133 return SWIG_Python_InitShadowInstance(args);
6134}
d55e5bfc 6135
1bd55598
RD
6136SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6137 PyObject *resultobj = 0;
6138 wxString *arg1 = 0 ;
6139 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6140 wxBitmap *result = 0 ;
6141 bool temp1 = false ;
6142 int val2 ;
6143 int ecode2 = 0 ;
6144 PyObject * obj0 = 0 ;
6145 PyObject * obj1 = 0 ;
6146 char * kwnames[] = {
6147 (char *) "name",(char *) "type", NULL
6148 };
6149
6150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6151 {
6152 arg1 = wxString_in_helper(obj0);
6153 if (arg1 == NULL) SWIG_fail;
6154 temp1 = true;
6155 }
6156 if (obj1) {
6157 ecode2 = SWIG_AsVal_int(obj1, &val2);
6158 if (!SWIG_IsOK(ecode2)) {
6159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6160 }
6161 arg2 = static_cast< wxBitmapType >(val2);
6162 }
6163 {
6164 if (!wxPyCheckForApp()) SWIG_fail;
6165 PyThreadState* __tstate = wxPyBeginAllowThreads();
6166 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6167 wxPyEndAllowThreads(__tstate);
6168 if (PyErr_Occurred()) SWIG_fail;
6169 }
6170 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6171 {
6172 if (temp1)
6173 delete arg1;
6174 }
6175 return resultobj;
6176fail:
6177 {
6178 if (temp1)
6179 delete arg1;
6180 }
6181 return NULL;
d55e5bfc
RD
6182}
6183
6184
1bd55598
RD
6185SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6186 PyObject *resultobj = 0;
6187 wxBitmap *arg1 = (wxBitmap *) 0 ;
6188 void *argp1 = 0 ;
6189 int res1 = 0 ;
6190 PyObject *swig_obj[1] ;
6191
6192 if (!args) SWIG_fail;
6193 swig_obj[0] = args;
6194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6195 if (!SWIG_IsOK(res1)) {
6196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6197 }
6198 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6199 {
1bd55598 6200 delete arg1;
d55e5bfc 6201
1bd55598
RD
6202 if (PyErr_Occurred()) SWIG_fail;
6203 }
6204 resultobj = SWIG_Py_Void();
6205 return resultobj;
6206fail:
6207 return NULL;
6208}
6209
6210
6211SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6212 PyObject *resultobj = 0;
6213 int arg1 ;
6214 int arg2 ;
6215 int arg3 = (int) -1 ;
6216 wxBitmap *result = 0 ;
6217 int val1 ;
6218 int ecode1 = 0 ;
6219 int val2 ;
6220 int ecode2 = 0 ;
6221 int val3 ;
6222 int ecode3 = 0 ;
6223 PyObject * obj0 = 0 ;
6224 PyObject * obj1 = 0 ;
6225 PyObject * obj2 = 0 ;
6226 char * kwnames[] = {
6227 (char *) "width",(char *) "height",(char *) "depth", NULL
6228 };
6229
6230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6231 ecode1 = SWIG_AsVal_int(obj0, &val1);
6232 if (!SWIG_IsOK(ecode1)) {
6233 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6234 }
6235 arg1 = static_cast< int >(val1);
6236 ecode2 = SWIG_AsVal_int(obj1, &val2);
6237 if (!SWIG_IsOK(ecode2)) {
6238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6239 }
6240 arg2 = static_cast< int >(val2);
6241 if (obj2) {
6242 ecode3 = SWIG_AsVal_int(obj2, &val3);
6243 if (!SWIG_IsOK(ecode3)) {
6244 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6245 }
6246 arg3 = static_cast< int >(val3);
6247 }
6248 {
6249 if (!wxPyCheckForApp()) SWIG_fail;
6250 PyThreadState* __tstate = wxPyBeginAllowThreads();
6251 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6252 wxPyEndAllowThreads(__tstate);
6253 if (PyErr_Occurred()) SWIG_fail;
6254 }
6255 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6256 return resultobj;
6257fail:
6258 return NULL;
6259}
6260
6261
6262SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6263 PyObject *resultobj = 0;
6264 wxIcon *arg1 = 0 ;
6265 wxBitmap *result = 0 ;
6266 void *argp1 = 0 ;
6267 int res1 = 0 ;
6268 PyObject * obj0 = 0 ;
6269 char * kwnames[] = {
6270 (char *) "icon", NULL
6271 };
6272
6273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6274 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6275 if (!SWIG_IsOK(res1)) {
6276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6277 }
6278 if (!argp1) {
6279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6280 }
6281 arg1 = reinterpret_cast< wxIcon * >(argp1);
6282 {
6283 if (!wxPyCheckForApp()) SWIG_fail;
6284 PyThreadState* __tstate = wxPyBeginAllowThreads();
6285 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6286 wxPyEndAllowThreads(__tstate);
6287 if (PyErr_Occurred()) SWIG_fail;
6288 }
6289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6290 return resultobj;
6291fail:
6292 return NULL;
6293}
6294
6295
6296SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6297 PyObject *resultobj = 0;
6298 wxImage *arg1 = 0 ;
6299 int arg2 = (int) -1 ;
6300 wxBitmap *result = 0 ;
6301 void *argp1 = 0 ;
6302 int res1 = 0 ;
6303 int val2 ;
6304 int ecode2 = 0 ;
6305 PyObject * obj0 = 0 ;
6306 PyObject * obj1 = 0 ;
6307 char * kwnames[] = {
6308 (char *) "image",(char *) "depth", NULL
6309 };
6310
6311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6312 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6313 if (!SWIG_IsOK(res1)) {
6314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6315 }
6316 if (!argp1) {
6317 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6318 }
6319 arg1 = reinterpret_cast< wxImage * >(argp1);
6320 if (obj1) {
6321 ecode2 = SWIG_AsVal_int(obj1, &val2);
6322 if (!SWIG_IsOK(ecode2)) {
6323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6324 }
6325 arg2 = static_cast< int >(val2);
6326 }
6327 {
6328 if (!wxPyCheckForApp()) SWIG_fail;
6329 PyThreadState* __tstate = wxPyBeginAllowThreads();
6330 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6331 wxPyEndAllowThreads(__tstate);
6332 if (PyErr_Occurred()) SWIG_fail;
6333 }
6334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6335 return resultobj;
6336fail:
6337 return NULL;
d55e5bfc
RD
6338}
6339
6340
1bd55598
RD
6341SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6342 PyObject *resultobj = 0;
6343 PyObject *arg1 = (PyObject *) 0 ;
6344 wxBitmap *result = 0 ;
6345 PyObject * obj0 = 0 ;
6346 char * kwnames[] = {
6347 (char *) "listOfStrings", NULL
6348 };
6349
6350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6351 arg1 = obj0;
6352 {
6353 if (!wxPyCheckForApp()) SWIG_fail;
6354 PyThreadState* __tstate = wxPyBeginAllowThreads();
6355 result = (wxBitmap *)new_wxBitmap(arg1);
6356 wxPyEndAllowThreads(__tstate);
6357 if (PyErr_Occurred()) SWIG_fail;
6358 }
6359 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6360 return resultobj;
6361fail:
6362 return NULL;
6363}
6364
6365
6366SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6367 PyObject *resultobj = 0;
6368 PyObject *arg1 = (PyObject *) 0 ;
6369 int arg2 ;
6370 int arg3 ;
6371 int arg4 = (int) 1 ;
6372 wxBitmap *result = 0 ;
6373 int val2 ;
6374 int ecode2 = 0 ;
6375 int val3 ;
6376 int ecode3 = 0 ;
6377 int val4 ;
6378 int ecode4 = 0 ;
6379 PyObject * obj0 = 0 ;
6380 PyObject * obj1 = 0 ;
6381 PyObject * obj2 = 0 ;
6382 PyObject * obj3 = 0 ;
6383 char * kwnames[] = {
6384 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6385 };
6386
6387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6388 arg1 = obj0;
6389 ecode2 = SWIG_AsVal_int(obj1, &val2);
6390 if (!SWIG_IsOK(ecode2)) {
6391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6392 }
6393 arg2 = static_cast< int >(val2);
6394 ecode3 = SWIG_AsVal_int(obj2, &val3);
6395 if (!SWIG_IsOK(ecode3)) {
6396 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6397 }
6398 arg3 = static_cast< int >(val3);
6399 if (obj3) {
6400 ecode4 = SWIG_AsVal_int(obj3, &val4);
6401 if (!SWIG_IsOK(ecode4)) {
6402 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6403 }
6404 arg4 = static_cast< int >(val4);
6405 }
6406 {
6407 if (!wxPyCheckForApp()) SWIG_fail;
6408 PyThreadState* __tstate = wxPyBeginAllowThreads();
6409 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6410 wxPyEndAllowThreads(__tstate);
6411 if (PyErr_Occurred()) SWIG_fail;
6412 }
6413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6414 return resultobj;
6415fail:
6416 return NULL;
d55e5bfc
RD
6417}
6418
6419
b39fe951 6420SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
6421 PyObject *resultobj = 0;
6422 wxBitmap *arg1 = (wxBitmap *) 0 ;
6423 bool result;
6424 void *argp1 = 0 ;
6425 int res1 = 0 ;
6426 PyObject *swig_obj[1] ;
6427
6428 if (!args) SWIG_fail;
6429 swig_obj[0] = args;
6430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6431 if (!SWIG_IsOK(res1)) {
b39fe951 6432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
1bd55598
RD
6433 }
6434 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6435 {
b39fe951 6436 result = (bool)(arg1)->IsOk();
1bd55598
RD
6437 if (PyErr_Occurred()) SWIG_fail;
6438 }
6439 {
6440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6441 }
6442 return resultobj;
6443fail:
6444 return NULL;
d55e5bfc
RD
6445}
6446
6447
1bd55598
RD
6448SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6449 PyObject *resultobj = 0;
6450 wxBitmap *arg1 = (wxBitmap *) 0 ;
6451 int result;
6452 void *argp1 = 0 ;
6453 int res1 = 0 ;
6454 PyObject *swig_obj[1] ;
6455
6456 if (!args) SWIG_fail;
6457 swig_obj[0] = args;
6458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6459 if (!SWIG_IsOK(res1)) {
6460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6461 }
6462 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6463 {
1bd55598 6464 result = (int)(arg1)->GetWidth();
1bd55598
RD
6465 if (PyErr_Occurred()) SWIG_fail;
6466 }
6467 resultobj = SWIG_From_int(static_cast< int >(result));
6468 return resultobj;
6469fail:
6470 return NULL;
070c48b4
RD
6471}
6472
6473
1bd55598
RD
6474SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6475 PyObject *resultobj = 0;
6476 wxBitmap *arg1 = (wxBitmap *) 0 ;
6477 int result;
6478 void *argp1 = 0 ;
6479 int res1 = 0 ;
6480 PyObject *swig_obj[1] ;
6481
6482 if (!args) SWIG_fail;
6483 swig_obj[0] = args;
6484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6485 if (!SWIG_IsOK(res1)) {
6486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6487 }
6488 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6489 {
1bd55598 6490 result = (int)(arg1)->GetHeight();
1bd55598
RD
6491 if (PyErr_Occurred()) SWIG_fail;
6492 }
6493 resultobj = SWIG_From_int(static_cast< int >(result));
6494 return resultobj;
6495fail:
6496 return NULL;
d55e5bfc
RD
6497}
6498
6499
1bd55598
RD
6500SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6501 PyObject *resultobj = 0;
6502 wxBitmap *arg1 = (wxBitmap *) 0 ;
6503 int result;
6504 void *argp1 = 0 ;
6505 int res1 = 0 ;
6506 PyObject *swig_obj[1] ;
6507
6508 if (!args) SWIG_fail;
6509 swig_obj[0] = args;
6510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6511 if (!SWIG_IsOK(res1)) {
6512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6513 }
6514 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6515 {
1bd55598 6516 result = (int)(arg1)->GetDepth();
1bd55598
RD
6517 if (PyErr_Occurred()) SWIG_fail;
6518 }
6519 resultobj = SWIG_From_int(static_cast< int >(result));
6520 return resultobj;
6521fail:
6522 return NULL;
d55e5bfc
RD
6523}
6524
6525
1bd55598
RD
6526SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6527 PyObject *resultobj = 0;
6528 wxBitmap *arg1 = (wxBitmap *) 0 ;
6529 wxSize result;
6530 void *argp1 = 0 ;
6531 int res1 = 0 ;
6532 PyObject *swig_obj[1] ;
6533
6534 if (!args) SWIG_fail;
6535 swig_obj[0] = args;
6536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6537 if (!SWIG_IsOK(res1)) {
6538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6539 }
6540 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6541 {
1bd55598 6542 result = wxBitmap_GetSize(arg1);
1bd55598
RD
6543 if (PyErr_Occurred()) SWIG_fail;
6544 }
6545 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6546 return resultobj;
6547fail:
6548 return NULL;
d55e5bfc
RD
6549}
6550
6551
1bd55598
RD
6552SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6553 PyObject *resultobj = 0;
6554 wxBitmap *arg1 = (wxBitmap *) 0 ;
6555 SwigValueWrapper<wxImage > result;
6556 void *argp1 = 0 ;
6557 int res1 = 0 ;
6558 PyObject *swig_obj[1] ;
6559
6560 if (!args) SWIG_fail;
6561 swig_obj[0] = args;
6562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6563 if (!SWIG_IsOK(res1)) {
6564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6565 }
6566 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6567 {
1bd55598 6568 result = ((wxBitmap const *)arg1)->ConvertToImage();
1bd55598
RD
6569 if (PyErr_Occurred()) SWIG_fail;
6570 }
6571 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6572 return resultobj;
6573fail:
6574 return NULL;
d55e5bfc
RD
6575}
6576
6577
1bd55598
RD
6578SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6579 PyObject *resultobj = 0;
6580 wxBitmap *arg1 = (wxBitmap *) 0 ;
6581 wxMask *result = 0 ;
6582 void *argp1 = 0 ;
6583 int res1 = 0 ;
6584 PyObject *swig_obj[1] ;
6585
6586 if (!args) SWIG_fail;
6587 swig_obj[0] = args;
6588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6589 if (!SWIG_IsOK(res1)) {
6590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6591 }
6592 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6593 {
1bd55598 6594 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
1bd55598
RD
6595 if (PyErr_Occurred()) SWIG_fail;
6596 }
6597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6598 return resultobj;
6599fail:
6600 return NULL;
6601}
6602
6603
6604SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6605 PyObject *resultobj = 0;
6606 wxBitmap *arg1 = (wxBitmap *) 0 ;
6607 wxMask *arg2 = (wxMask *) 0 ;
6608 void *argp1 = 0 ;
6609 int res1 = 0 ;
6610 int res2 = 0 ;
6611 PyObject * obj0 = 0 ;
6612 PyObject * obj1 = 0 ;
6613 char * kwnames[] = {
6614 (char *) "self",(char *) "mask", NULL
6615 };
6616
6617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6619 if (!SWIG_IsOK(res1)) {
6620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6621 }
6622 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6623 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6624 if (!SWIG_IsOK(res2)) {
6625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6626 }
6627 {
1bd55598 6628 (arg1)->SetMask(arg2);
1bd55598
RD
6629 if (PyErr_Occurred()) SWIG_fail;
6630 }
6631 resultobj = SWIG_Py_Void();
6632 return resultobj;
6633fail:
6634 return NULL;
6635}
6636
6637
6638SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6639 PyObject *resultobj = 0;
6640 wxBitmap *arg1 = (wxBitmap *) 0 ;
6641 wxColour *arg2 = 0 ;
6642 void *argp1 = 0 ;
6643 int res1 = 0 ;
6644 wxColour temp2 ;
6645 PyObject * obj0 = 0 ;
6646 PyObject * obj1 = 0 ;
6647 char * kwnames[] = {
6648 (char *) "self",(char *) "colour", NULL
6649 };
6650
6651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6653 if (!SWIG_IsOK(res1)) {
6654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6655 }
6656 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6657 {
6658 arg2 = &temp2;
6659 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6660 }
6661 {
1bd55598 6662 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
1bd55598
RD
6663 if (PyErr_Occurred()) SWIG_fail;
6664 }
6665 resultobj = SWIG_Py_Void();
6666 return resultobj;
6667fail:
6668 return NULL;
6669}
6670
6671
6672SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6673 PyObject *resultobj = 0;
6674 wxBitmap *arg1 = (wxBitmap *) 0 ;
6675 wxRect *arg2 = 0 ;
6676 SwigValueWrapper<wxBitmap > result;
6677 void *argp1 = 0 ;
6678 int res1 = 0 ;
6679 wxRect temp2 ;
6680 PyObject * obj0 = 0 ;
6681 PyObject * obj1 = 0 ;
6682 char * kwnames[] = {
6683 (char *) "self",(char *) "rect", NULL
6684 };
6685
6686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6688 if (!SWIG_IsOK(res1)) {
6689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6690 }
6691 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6692 {
6693 arg2 = &temp2;
6694 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6695 }
6696 {
1bd55598 6697 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
1bd55598
RD
6698 if (PyErr_Occurred()) SWIG_fail;
6699 }
6700 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6701 return resultobj;
6702fail:
6703 return NULL;
6704}
6705
6706
6707SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6708 PyObject *resultobj = 0;
6709 wxBitmap *arg1 = (wxBitmap *) 0 ;
6710 wxString *arg2 = 0 ;
6711 wxBitmapType arg3 ;
6712 wxPalette *arg4 = (wxPalette *) NULL ;
6713 bool result;
6714 void *argp1 = 0 ;
6715 int res1 = 0 ;
6716 bool temp2 = false ;
6717 int val3 ;
6718 int ecode3 = 0 ;
6719 void *argp4 = 0 ;
6720 int res4 = 0 ;
6721 PyObject * obj0 = 0 ;
6722 PyObject * obj1 = 0 ;
6723 PyObject * obj2 = 0 ;
6724 PyObject * obj3 = 0 ;
6725 char * kwnames[] = {
6726 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6727 };
6728
6729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6731 if (!SWIG_IsOK(res1)) {
6732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6733 }
6734 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6735 {
6736 arg2 = wxString_in_helper(obj1);
6737 if (arg2 == NULL) SWIG_fail;
6738 temp2 = true;
6739 }
6740 ecode3 = SWIG_AsVal_int(obj2, &val3);
6741 if (!SWIG_IsOK(ecode3)) {
6742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6743 }
6744 arg3 = static_cast< wxBitmapType >(val3);
6745 if (obj3) {
6746 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6747 if (!SWIG_IsOK(res4)) {
6748 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6749 }
1bd55598
RD
6750 arg4 = reinterpret_cast< wxPalette * >(argp4);
6751 }
6752 {
1bd55598 6753 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
1bd55598
RD
6754 if (PyErr_Occurred()) SWIG_fail;
6755 }
6756 {
6757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6758 }
6759 {
6760 if (temp2)
6761 delete arg2;
6762 }
6763 return resultobj;
6764fail:
6765 {
6766 if (temp2)
6767 delete arg2;
6768 }
6769 return NULL;
6770}
6771
6772
6773SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6774 PyObject *resultobj = 0;
6775 wxBitmap *arg1 = (wxBitmap *) 0 ;
6776 wxString *arg2 = 0 ;
6777 wxBitmapType arg3 ;
6778 bool result;
6779 void *argp1 = 0 ;
6780 int res1 = 0 ;
6781 bool temp2 = false ;
6782 int val3 ;
6783 int ecode3 = 0 ;
6784 PyObject * obj0 = 0 ;
6785 PyObject * obj1 = 0 ;
6786 PyObject * obj2 = 0 ;
6787 char * kwnames[] = {
6788 (char *) "self",(char *) "name",(char *) "type", NULL
6789 };
6790
6791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6793 if (!SWIG_IsOK(res1)) {
6794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6795 }
6796 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6797 {
6798 arg2 = wxString_in_helper(obj1);
6799 if (arg2 == NULL) SWIG_fail;
6800 temp2 = true;
6801 }
6802 ecode3 = SWIG_AsVal_int(obj2, &val3);
6803 if (!SWIG_IsOK(ecode3)) {
6804 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6805 }
6806 arg3 = static_cast< wxBitmapType >(val3);
6807 {
1bd55598 6808 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
1bd55598
RD
6809 if (PyErr_Occurred()) SWIG_fail;
6810 }
6811 {
6812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6813 }
6814 {
6815 if (temp2)
6816 delete arg2;
6817 }
6818 return resultobj;
6819fail:
6820 {
6821 if (temp2)
6822 delete arg2;
6823 }
6824 return NULL;
d04418a7
RD
6825}
6826
6827
1bd55598
RD
6828SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6829 PyObject *resultobj = 0;
6830 wxBitmap *arg1 = (wxBitmap *) 0 ;
6831 wxPalette *result = 0 ;
6832 void *argp1 = 0 ;
6833 int res1 = 0 ;
6834 PyObject *swig_obj[1] ;
6835
6836 if (!args) SWIG_fail;
6837 swig_obj[0] = args;
6838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6839 if (!SWIG_IsOK(res1)) {
6840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6841 }
6842 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6843 {
1bd55598 6844 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
1bd55598
RD
6845 if (PyErr_Occurred()) SWIG_fail;
6846 }
6847 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6848 return resultobj;
6849fail:
6850 return NULL;
6851}
6852
6853
6854SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6855 PyObject *resultobj = 0;
6856 wxBitmap *arg1 = (wxBitmap *) 0 ;
6857 wxIcon *arg2 = 0 ;
6858 bool result;
6859 void *argp1 = 0 ;
6860 int res1 = 0 ;
6861 void *argp2 = 0 ;
6862 int res2 = 0 ;
6863 PyObject * obj0 = 0 ;
6864 PyObject * obj1 = 0 ;
6865 char * kwnames[] = {
6866 (char *) "self",(char *) "icon", NULL
6867 };
6868
6869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6871 if (!SWIG_IsOK(res1)) {
6872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6873 }
6874 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6875 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6876 if (!SWIG_IsOK(res2)) {
6877 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6878 }
6879 if (!argp2) {
6880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6881 }
6882 arg2 = reinterpret_cast< wxIcon * >(argp2);
6883 {
1bd55598 6884 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
1bd55598
RD
6885 if (PyErr_Occurred()) SWIG_fail;
6886 }
6887 {
6888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6889 }
6890 return resultobj;
6891fail:
6892 return NULL;
6893}
6894
6895
6896SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6897 PyObject *resultobj = 0;
6898 wxBitmap *arg1 = (wxBitmap *) 0 ;
6899 int arg2 ;
6900 void *argp1 = 0 ;
6901 int res1 = 0 ;
6902 int val2 ;
6903 int ecode2 = 0 ;
6904 PyObject * obj0 = 0 ;
6905 PyObject * obj1 = 0 ;
6906 char * kwnames[] = {
6907 (char *) "self",(char *) "height", NULL
6908 };
6909
6910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6912 if (!SWIG_IsOK(res1)) {
6913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6914 }
6915 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6916 ecode2 = SWIG_AsVal_int(obj1, &val2);
6917 if (!SWIG_IsOK(ecode2)) {
6918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6919 }
6920 arg2 = static_cast< int >(val2);
6921 {
1bd55598 6922 (arg1)->SetHeight(arg2);
1bd55598
RD
6923 if (PyErr_Occurred()) SWIG_fail;
6924 }
6925 resultobj = SWIG_Py_Void();
6926 return resultobj;
6927fail:
6928 return NULL;
6929}
6930
6931
6932SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6933 PyObject *resultobj = 0;
6934 wxBitmap *arg1 = (wxBitmap *) 0 ;
6935 int arg2 ;
6936 void *argp1 = 0 ;
6937 int res1 = 0 ;
6938 int val2 ;
6939 int ecode2 = 0 ;
6940 PyObject * obj0 = 0 ;
6941 PyObject * obj1 = 0 ;
6942 char * kwnames[] = {
6943 (char *) "self",(char *) "width", NULL
6944 };
6945
6946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6948 if (!SWIG_IsOK(res1)) {
6949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6950 }
6951 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6952 ecode2 = SWIG_AsVal_int(obj1, &val2);
6953 if (!SWIG_IsOK(ecode2)) {
6954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6955 }
6956 arg2 = static_cast< int >(val2);
6957 {
1bd55598 6958 (arg1)->SetWidth(arg2);
1bd55598
RD
6959 if (PyErr_Occurred()) SWIG_fail;
6960 }
6961 resultobj = SWIG_Py_Void();
6962 return resultobj;
6963fail:
6964 return NULL;
6965}
6966
6967
6968SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6969 PyObject *resultobj = 0;
6970 wxBitmap *arg1 = (wxBitmap *) 0 ;
6971 int arg2 ;
6972 void *argp1 = 0 ;
6973 int res1 = 0 ;
6974 int val2 ;
6975 int ecode2 = 0 ;
6976 PyObject * obj0 = 0 ;
6977 PyObject * obj1 = 0 ;
6978 char * kwnames[] = {
6979 (char *) "self",(char *) "depth", NULL
6980 };
6981
6982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6984 if (!SWIG_IsOK(res1)) {
6985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6986 }
6987 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6988 ecode2 = SWIG_AsVal_int(obj1, &val2);
6989 if (!SWIG_IsOK(ecode2)) {
6990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6991 }
6992 arg2 = static_cast< int >(val2);
6993 {
1bd55598 6994 (arg1)->SetDepth(arg2);
1bd55598
RD
6995 if (PyErr_Occurred()) SWIG_fail;
6996 }
6997 resultobj = SWIG_Py_Void();
6998 return resultobj;
6999fail:
7000 return NULL;
7001}
7002
7003
7004SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7005 PyObject *resultobj = 0;
7006 wxBitmap *arg1 = (wxBitmap *) 0 ;
7007 wxSize *arg2 = 0 ;
7008 void *argp1 = 0 ;
7009 int res1 = 0 ;
7010 wxSize temp2 ;
7011 PyObject * obj0 = 0 ;
7012 PyObject * obj1 = 0 ;
7013 char * kwnames[] = {
7014 (char *) "self",(char *) "size", NULL
7015 };
7016
7017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7019 if (!SWIG_IsOK(res1)) {
7020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
7021 }
7022 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7023 {
7024 arg2 = &temp2;
7025 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7026 }
7027 {
1bd55598 7028 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
1bd55598
RD
7029 if (PyErr_Occurred()) SWIG_fail;
7030 }
7031 resultobj = SWIG_Py_Void();
7032 return resultobj;
7033fail:
7034 return NULL;
7035}
7036
7037
8f514ab4
RD
7038SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7039 PyObject *resultobj = 0;
7040 wxBitmap *arg1 = (wxBitmap *) 0 ;
7041 buffer arg2 ;
7042 int arg3 ;
7043 void *argp1 = 0 ;
7044 int res1 = 0 ;
7045 Py_ssize_t temp2 ;
7046 PyObject * obj0 = 0 ;
7047 PyObject * obj1 = 0 ;
7048 char * kwnames[] = {
7049 (char *) "self",(char *) "data", NULL
7050 };
7051
7052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7054 if (!SWIG_IsOK(res1)) {
7055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7056 }
7057 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7058 {
7059 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7060 arg3 = (int)temp2;
7061 }
7062 {
7063 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7064 if (PyErr_Occurred()) SWIG_fail;
7065 }
7066 resultobj = SWIG_Py_Void();
7067 return resultobj;
7068fail:
7069 return NULL;
7070}
7071
7072
7073SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7074 PyObject *resultobj = 0;
7075 wxBitmap *arg1 = (wxBitmap *) 0 ;
7076 buffer arg2 ;
7077 int arg3 ;
7078 void *argp1 = 0 ;
7079 int res1 = 0 ;
7080 Py_ssize_t temp2 ;
7081 PyObject * obj0 = 0 ;
7082 PyObject * obj1 = 0 ;
7083 char * kwnames[] = {
7084 (char *) "self",(char *) "data", NULL
7085 };
7086
7087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7089 if (!SWIG_IsOK(res1)) {
7090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7091 }
7092 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7093 {
7094 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7095 arg3 = (int)temp2;
7096 }
7097 {
7098 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7099 if (PyErr_Occurred()) SWIG_fail;
7100 }
7101 resultobj = SWIG_Py_Void();
7102 return resultobj;
7103fail:
7104 return NULL;
7105}
7106
7107
1bd55598
RD
7108SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7109 PyObject *resultobj = 0;
7110 wxBitmap *arg1 = (wxBitmap *) 0 ;
7111 wxBitmap *arg2 = (wxBitmap *) 0 ;
7112 bool result;
7113 void *argp1 = 0 ;
7114 int res1 = 0 ;
7115 void *argp2 = 0 ;
7116 int res2 = 0 ;
7117 PyObject * obj0 = 0 ;
7118 PyObject * obj1 = 0 ;
7119 char * kwnames[] = {
7120 (char *) "self",(char *) "other", NULL
7121 };
7122
7123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7125 if (!SWIG_IsOK(res1)) {
7126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7127 }
7128 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7129 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7130 if (!SWIG_IsOK(res2)) {
7131 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7132 }
7133 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7134 {
1bd55598 7135 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
1bd55598
RD
7136 if (PyErr_Occurred()) SWIG_fail;
7137 }
7138 {
fc46b7f3
RD
7139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7140 }
7141 return resultobj;
7142fail:
7143 return NULL;
7144}
7145
7146
7147SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7148 PyObject *resultobj = 0;
7149 wxBitmap *arg1 = (wxBitmap *) 0 ;
7150 wxBitmap *arg2 = (wxBitmap *) 0 ;
7151 bool result;
7152 void *argp1 = 0 ;
7153 int res1 = 0 ;
7154 void *argp2 = 0 ;
7155 int res2 = 0 ;
7156 PyObject * obj0 = 0 ;
7157 PyObject * obj1 = 0 ;
7158 char * kwnames[] = {
7159 (char *) "self",(char *) "other", NULL
7160 };
7161
7162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7164 if (!SWIG_IsOK(res1)) {
7165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7166 }
7167 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7168 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7169 if (!SWIG_IsOK(res2)) {
7170 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7171 }
7172 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7173 {
7174 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7175 if (PyErr_Occurred()) SWIG_fail;
7176 }
7177 {
7178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7179 }
7180 return resultobj;
7181fail:
7182 return NULL;
7183}
7184
7185
7186SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7187 PyObject *obj;
7188 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7189 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7190 return SWIG_Py_Void();
7191}
7192
7193SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7194 return SWIG_Python_InitShadowInstance(args);
7195}
7196
7197SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7198 PyObject *resultobj = 0;
7199 int arg1 ;
7200 int arg2 ;
7201 buffer arg3 ;
7202 int arg4 ;
7203 buffer arg5 ;
7204 int arg6 ;
7205 wxBitmap *result = 0 ;
7206 int val1 ;
7207 int ecode1 = 0 ;
7208 int val2 ;
7209 int ecode2 = 0 ;
8c9c423b
RD
7210 Py_ssize_t temp3 ;
7211 Py_ssize_t temp5 ;
fc46b7f3
RD
7212 PyObject * obj0 = 0 ;
7213 PyObject * obj1 = 0 ;
7214 PyObject * obj2 = 0 ;
7215 PyObject * obj3 = 0 ;
7216 char * kwnames[] = {
7217 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7218 };
7219
7220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7221 ecode1 = SWIG_AsVal_int(obj0, &val1);
7222 if (!SWIG_IsOK(ecode1)) {
7223 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7224 }
7225 arg1 = static_cast< int >(val1);
7226 ecode2 = SWIG_AsVal_int(obj1, &val2);
7227 if (!SWIG_IsOK(ecode2)) {
7228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7229 }
7230 arg2 = static_cast< int >(val2);
7231 {
8c9c423b
RD
7232 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7233 arg4 = (int)temp3;
fc46b7f3
RD
7234 }
7235 {
7236 if (obj3 != Py_None) {
8c9c423b
RD
7237 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7238 arg6 = (int)temp5;
fc46b7f3
RD
7239 }
7240 }
7241 {
7242 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7243 if (PyErr_Occurred()) SWIG_fail;
7244 }
7245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7246 return resultobj;
7247fail:
7248 return NULL;
7249}
7250
7251
7252SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7253 PyObject *resultobj = 0;
7254 int arg1 ;
7255 int arg2 ;
7256 buffer arg3 ;
7257 int arg4 ;
7258 wxBitmap *result = 0 ;
7259 int val1 ;
7260 int ecode1 = 0 ;
7261 int val2 ;
7262 int ecode2 = 0 ;
8c9c423b 7263 Py_ssize_t temp3 ;
fc46b7f3
RD
7264 PyObject * obj0 = 0 ;
7265 PyObject * obj1 = 0 ;
7266 PyObject * obj2 = 0 ;
7267 char * kwnames[] = {
7268 (char *) "width",(char *) "height",(char *) "data", NULL
7269 };
7270
7271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7272 ecode1 = SWIG_AsVal_int(obj0, &val1);
7273 if (!SWIG_IsOK(ecode1)) {
7274 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7275 }
7276 arg1 = static_cast< int >(val1);
7277 ecode2 = SWIG_AsVal_int(obj1, &val2);
7278 if (!SWIG_IsOK(ecode2)) {
7279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7280 }
7281 arg2 = static_cast< int >(val2);
7282 {
8c9c423b
RD
7283 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7284 arg4 = (int)temp3;
fc46b7f3
RD
7285 }
7286 {
7287 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7288 if (PyErr_Occurred()) SWIG_fail;
7289 }
7290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7291 return resultobj;
7292fail:
7293 return NULL;
7294}
7295
7296
7297SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7298 PyObject *resultobj = 0;
7299 int arg1 ;
7300 int arg2 ;
7301 buffer arg3 ;
7302 int arg4 ;
7303 wxBitmap *result = 0 ;
7304 int val1 ;
7305 int ecode1 = 0 ;
7306 int val2 ;
7307 int ecode2 = 0 ;
8c9c423b 7308 Py_ssize_t temp3 ;
fc46b7f3
RD
7309 PyObject * obj0 = 0 ;
7310 PyObject * obj1 = 0 ;
7311 PyObject * obj2 = 0 ;
7312 char * kwnames[] = {
7313 (char *) "width",(char *) "height",(char *) "data", NULL
7314 };
7315
7316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7317 ecode1 = SWIG_AsVal_int(obj0, &val1);
7318 if (!SWIG_IsOK(ecode1)) {
7319 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7320 }
7321 arg1 = static_cast< int >(val1);
7322 ecode2 = SWIG_AsVal_int(obj1, &val2);
7323 if (!SWIG_IsOK(ecode2)) {
7324 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7325 }
7326 arg2 = static_cast< int >(val2);
7327 {
8c9c423b
RD
7328 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7329 arg4 = (int)temp3;
fc46b7f3
RD
7330 }
7331 {
7332 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7333 if (PyErr_Occurred()) SWIG_fail;
7334 }
7335 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7336 return resultobj;
7337fail:
7338 return NULL;
7339}
7340
7341
7342SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7343 PyObject *resultobj = 0;
7344 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7345 wxPoint result;
7346 void *argp1 = 0 ;
7347 int res1 = 0 ;
7348 PyObject *swig_obj[1] ;
7349
7350 if (!args) SWIG_fail;
7351 swig_obj[0] = args;
7352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7353 if (!SWIG_IsOK(res1)) {
7354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7355 }
7356 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7357 {
7358 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7359 if (PyErr_Occurred()) SWIG_fail;
7360 }
7361 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7362 return resultobj;
7363fail:
7364 return NULL;
7365}
7366
7367
7368SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7369 PyObject *resultobj = 0;
7370 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7371 int result;
7372 void *argp1 = 0 ;
7373 int res1 = 0 ;
7374 PyObject *swig_obj[1] ;
7375
7376 if (!args) SWIG_fail;
7377 swig_obj[0] = args;
7378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7379 if (!SWIG_IsOK(res1)) {
7380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7381 }
7382 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7383 {
7384 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7385 if (PyErr_Occurred()) SWIG_fail;
7386 }
7387 resultobj = SWIG_From_int(static_cast< int >(result));
7388 return resultobj;
7389fail:
7390 return NULL;
7391}
7392
7393
7394SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7395 PyObject *resultobj = 0;
7396 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7397 int result;
7398 void *argp1 = 0 ;
7399 int res1 = 0 ;
7400 PyObject *swig_obj[1] ;
7401
7402 if (!args) SWIG_fail;
7403 swig_obj[0] = args;
7404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7405 if (!SWIG_IsOK(res1)) {
7406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7407 }
7408 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7409 {
7410 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7411 if (PyErr_Occurred()) SWIG_fail;
7412 }
7413 resultobj = SWIG_From_int(static_cast< int >(result));
7414 return resultobj;
7415fail:
7416 return NULL;
7417}
7418
7419
7420SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7421 PyObject *resultobj = 0;
7422 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7423 wxSize result;
7424 void *argp1 = 0 ;
7425 int res1 = 0 ;
7426 PyObject *swig_obj[1] ;
7427
7428 if (!args) SWIG_fail;
7429 swig_obj[0] = args;
7430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7431 if (!SWIG_IsOK(res1)) {
7432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7433 }
7434 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7435 {
7436 result = ((wxPixelDataBase const *)arg1)->GetSize();
7437 if (PyErr_Occurred()) SWIG_fail;
7438 }
7439 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7440 return resultobj;
7441fail:
7442 return NULL;
7443}
7444
7445
7446SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7447 PyObject *resultobj = 0;
7448 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7449 int result;
7450 void *argp1 = 0 ;
7451 int res1 = 0 ;
7452 PyObject *swig_obj[1] ;
7453
7454 if (!args) SWIG_fail;
7455 swig_obj[0] = args;
7456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7457 if (!SWIG_IsOK(res1)) {
7458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7459 }
7460 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7461 {
7462 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7463 if (PyErr_Occurred()) SWIG_fail;
7464 }
7465 resultobj = SWIG_From_int(static_cast< int >(result));
7466 return resultobj;
7467fail:
7468 return NULL;
7469}
7470
7471
7472SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7473 PyObject *obj;
7474 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7475 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7476 return SWIG_Py_Void();
7477}
7478
7479SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7480 PyObject *resultobj = 0;
7481 wxBitmap *arg1 = 0 ;
7482 wxNativePixelData *result = 0 ;
7483 void *argp1 = 0 ;
7484 int res1 = 0 ;
7485
7486 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7488 if (!SWIG_IsOK(res1)) {
7489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7490 }
7491 if (!argp1) {
7492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7493 }
7494 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7495 {
7496 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7497 if (PyErr_Occurred()) SWIG_fail;
7498 }
7499 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7500 return resultobj;
7501fail:
7502 return NULL;
7503}
7504
7505
7506SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7507 PyObject *resultobj = 0;
7508 wxBitmap *arg1 = 0 ;
7509 wxRect *arg2 = 0 ;
7510 wxNativePixelData *result = 0 ;
7511 void *argp1 = 0 ;
7512 int res1 = 0 ;
7513 wxRect temp2 ;
7514
7515 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7517 if (!SWIG_IsOK(res1)) {
7518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7519 }
7520 if (!argp1) {
7521 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7522 }
7523 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7524 {
7525 arg2 = &temp2;
7526 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7527 }
7528 {
7529 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7530 if (PyErr_Occurred()) SWIG_fail;
7531 }
7532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7533 return resultobj;
7534fail:
7535 return NULL;
7536}
7537
7538
7539SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7540 PyObject *resultobj = 0;
7541 wxBitmap *arg1 = 0 ;
7542 wxPoint *arg2 = 0 ;
7543 wxSize *arg3 = 0 ;
7544 wxNativePixelData *result = 0 ;
7545 void *argp1 = 0 ;
7546 int res1 = 0 ;
7547 wxPoint temp2 ;
7548 wxSize temp3 ;
7549
7550 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7552 if (!SWIG_IsOK(res1)) {
7553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7554 }
7555 if (!argp1) {
7556 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7557 }
7558 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7559 {
7560 arg2 = &temp2;
7561 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7562 }
7563 {
7564 arg3 = &temp3;
7565 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7566 }
7567 {
7568 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7569 if (PyErr_Occurred()) SWIG_fail;
7570 }
7571 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7572 return resultobj;
7573fail:
7574 return NULL;
7575}
7576
7577
7578SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7579 int argc;
7580 PyObject *argv[4];
7581
7582 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7583 --argc;
7584 if (argc == 1) {
7585 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7586 }
7587 if (argc == 2) {
7588 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7589 }
7590 if (argc == 3) {
7591 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7592 }
7593
7594fail:
7595 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7596 return NULL;
7597}
7598
7599
7600SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7601 PyObject *resultobj = 0;
7602 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7603 void *argp1 = 0 ;
7604 int res1 = 0 ;
7605 PyObject *swig_obj[1] ;
7606
7607 if (!args) SWIG_fail;
7608 swig_obj[0] = args;
7609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7610 if (!SWIG_IsOK(res1)) {
7611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7612 }
7613 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7614 {
7615 delete arg1;
7616
7617 if (PyErr_Occurred()) SWIG_fail;
7618 }
7619 resultobj = SWIG_Py_Void();
7620 return resultobj;
7621fail:
7622 return NULL;
7623}
7624
7625
7626SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7627 PyObject *resultobj = 0;
7628 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7629 wxNativePixelData_Accessor result;
7630 void *argp1 = 0 ;
7631 int res1 = 0 ;
7632 PyObject *swig_obj[1] ;
7633
7634 if (!args) SWIG_fail;
7635 swig_obj[0] = args;
7636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7637 if (!SWIG_IsOK(res1)) {
7638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7639 }
7640 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7641 {
7642 result = ((wxNativePixelData const *)arg1)->GetPixels();
7643 if (PyErr_Occurred()) SWIG_fail;
7644 }
7645 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7646 return resultobj;
7647fail:
7648 return NULL;
7649}
7650
7651
7652SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7653 PyObject *resultobj = 0;
7654 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7655 void *argp1 = 0 ;
7656 int res1 = 0 ;
7657 PyObject *swig_obj[1] ;
7658
7659 if (!args) SWIG_fail;
7660 swig_obj[0] = args;
7661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7662 if (!SWIG_IsOK(res1)) {
7663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7664 }
7665 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7666 {
7667 (arg1)->UseAlpha();
7668 if (PyErr_Occurred()) SWIG_fail;
7669 }
7670 resultobj = SWIG_Py_Void();
7671 return resultobj;
7672fail:
7673 return NULL;
7674}
7675
7676
7677SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7678 PyObject *resultobj = 0;
7679 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7680 bool result;
7681 void *argp1 = 0 ;
7682 int res1 = 0 ;
7683 PyObject *swig_obj[1] ;
7684
7685 if (!args) SWIG_fail;
7686 swig_obj[0] = args;
7687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7688 if (!SWIG_IsOK(res1)) {
7689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7690 }
7691 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7692 {
7693 result = (bool)wxNativePixelData___nonzero__(arg1);
7694 if (PyErr_Occurred()) SWIG_fail;
7695 }
7696 {
7697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7698 }
7699 return resultobj;
7700fail:
7701 return NULL;
7702}
7703
7704
7705SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7706 PyObject *obj;
7707 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7708 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7709 return SWIG_Py_Void();
7710}
7711
7712SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7713 return SWIG_Python_InitShadowInstance(args);
7714}
7715
7716SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7717 PyObject *resultobj = 0;
7718 wxNativePixelData *arg1 = 0 ;
7719 wxNativePixelData_Accessor *result = 0 ;
7720 void *argp1 = 0 ;
7721 int res1 = 0 ;
7722
7723 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7725 if (!SWIG_IsOK(res1)) {
7726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7727 }
7728 if (!argp1) {
7729 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7730 }
7731 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7732 {
7733 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7734 if (PyErr_Occurred()) SWIG_fail;
7735 }
7736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7737 return resultobj;
7738fail:
7739 return NULL;
7740}
7741
7742
7743SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7744 PyObject *resultobj = 0;
7745 wxBitmap *arg1 = 0 ;
7746 wxNativePixelData *arg2 = 0 ;
7747 wxNativePixelData_Accessor *result = 0 ;
7748 void *argp1 = 0 ;
7749 int res1 = 0 ;
7750 void *argp2 = 0 ;
7751 int res2 = 0 ;
7752
7753 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7755 if (!SWIG_IsOK(res1)) {
7756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7757 }
7758 if (!argp1) {
7759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7760 }
7761 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7762 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7763 if (!SWIG_IsOK(res2)) {
7764 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7765 }
7766 if (!argp2) {
7767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7768 }
7769 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7770 {
7771 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7772 if (PyErr_Occurred()) SWIG_fail;
7773 }
7774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7775 return resultobj;
7776fail:
7777 return NULL;
7778}
7779
7780
7781SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7782 PyObject *resultobj = 0;
7783 wxNativePixelData_Accessor *result = 0 ;
7784
7785 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7786 {
7787 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7788 if (PyErr_Occurred()) SWIG_fail;
7789 }
7790 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7791 return resultobj;
7792fail:
7793 return NULL;
7794}
7795
7796
7797SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7798 int argc;
7799 PyObject *argv[3];
7800
7801 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7802 --argc;
7803 if (argc == 0) {
7804 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7805 }
7806 if (argc == 1) {
7807 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7808 }
7809 if (argc == 2) {
7810 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7811 }
7812
7813fail:
7814 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7815 return NULL;
7816}
7817
7818
7819SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7820 PyObject *resultobj = 0;
7821 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7822 void *argp1 = 0 ;
7823 int res1 = 0 ;
7824 PyObject *swig_obj[1] ;
7825
7826 if (!args) SWIG_fail;
7827 swig_obj[0] = args;
7828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7829 if (!SWIG_IsOK(res1)) {
7830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7831 }
7832 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7833 {
7834 delete arg1;
7835
7836 if (PyErr_Occurred()) SWIG_fail;
7837 }
7838 resultobj = SWIG_Py_Void();
7839 return resultobj;
7840fail:
7841 return NULL;
7842}
7843
7844
7845SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7846 PyObject *resultobj = 0;
7847 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7848 wxNativePixelData *arg2 = 0 ;
7849 void *argp1 = 0 ;
7850 int res1 = 0 ;
7851 void *argp2 = 0 ;
7852 int res2 = 0 ;
7853 PyObject * obj0 = 0 ;
7854 PyObject * obj1 = 0 ;
7855 char * kwnames[] = {
7856 (char *) "self",(char *) "data", NULL
7857 };
7858
7859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7861 if (!SWIG_IsOK(res1)) {
7862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7863 }
7864 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7865 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7866 if (!SWIG_IsOK(res2)) {
7867 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7868 }
7869 if (!argp2) {
7870 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7871 }
7872 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7873 {
7874 (arg1)->Reset((wxNativePixelData const &)*arg2);
7875 if (PyErr_Occurred()) SWIG_fail;
7876 }
7877 resultobj = SWIG_Py_Void();
7878 return resultobj;
7879fail:
7880 return NULL;
7881}
7882
7883
7884SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7885 PyObject *resultobj = 0;
7886 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7887 bool result;
7888 void *argp1 = 0 ;
7889 int res1 = 0 ;
7890 PyObject *swig_obj[1] ;
7891
7892 if (!args) SWIG_fail;
7893 swig_obj[0] = args;
7894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7895 if (!SWIG_IsOK(res1)) {
7896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7897 }
7898 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7899 {
7900 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7901 if (PyErr_Occurred()) SWIG_fail;
7902 }
7903 {
7904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7905 }
7906 return resultobj;
7907fail:
7908 return NULL;
7909}
7910
7911
7912SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7913 PyObject *resultobj = 0;
7914 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7915 void *argp1 = 0 ;
7916 int res1 = 0 ;
7917 PyObject *swig_obj[1] ;
7918
7919 if (!args) SWIG_fail;
7920 swig_obj[0] = args;
7921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7922 if (!SWIG_IsOK(res1)) {
7923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7924 }
7925 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7926 {
7927 wxNativePixelData_Accessor_nextPixel(arg1);
7928 if (PyErr_Occurred()) SWIG_fail;
7929 }
7930 resultobj = SWIG_Py_Void();
7931 return resultobj;
7932fail:
7933 return NULL;
7934}
7935
7936
7937SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7938 PyObject *resultobj = 0;
7939 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7940 wxNativePixelData *arg2 = 0 ;
7941 int arg3 ;
7942 int arg4 ;
7943 void *argp1 = 0 ;
7944 int res1 = 0 ;
7945 void *argp2 = 0 ;
7946 int res2 = 0 ;
7947 int val3 ;
7948 int ecode3 = 0 ;
7949 int val4 ;
7950 int ecode4 = 0 ;
7951 PyObject * obj0 = 0 ;
7952 PyObject * obj1 = 0 ;
7953 PyObject * obj2 = 0 ;
7954 PyObject * obj3 = 0 ;
7955 char * kwnames[] = {
7956 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7957 };
7958
7959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7961 if (!SWIG_IsOK(res1)) {
7962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7963 }
7964 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7965 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7966 if (!SWIG_IsOK(res2)) {
7967 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7968 }
7969 if (!argp2) {
7970 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7971 }
7972 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7973 ecode3 = SWIG_AsVal_int(obj2, &val3);
7974 if (!SWIG_IsOK(ecode3)) {
7975 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7976 }
7977 arg3 = static_cast< int >(val3);
7978 ecode4 = SWIG_AsVal_int(obj3, &val4);
7979 if (!SWIG_IsOK(ecode4)) {
7980 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7981 }
7982 arg4 = static_cast< int >(val4);
7983 {
7984 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7985 if (PyErr_Occurred()) SWIG_fail;
7986 }
7987 resultobj = SWIG_Py_Void();
7988 return resultobj;
7989fail:
7990 return NULL;
7991}
7992
7993
7994SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7995 PyObject *resultobj = 0;
7996 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7997 wxNativePixelData *arg2 = 0 ;
7998 int arg3 ;
7999 void *argp1 = 0 ;
8000 int res1 = 0 ;
8001 void *argp2 = 0 ;
8002 int res2 = 0 ;
8003 int val3 ;
8004 int ecode3 = 0 ;
8005 PyObject * obj0 = 0 ;
8006 PyObject * obj1 = 0 ;
8007 PyObject * obj2 = 0 ;
8008 char * kwnames[] = {
8009 (char *) "self",(char *) "data",(char *) "x", NULL
8010 };
8011
8012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8014 if (!SWIG_IsOK(res1)) {
8015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8016 }
8017 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8018 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8019 if (!SWIG_IsOK(res2)) {
8020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8021 }
8022 if (!argp2) {
8023 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8024 }
8025 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8026 ecode3 = SWIG_AsVal_int(obj2, &val3);
8027 if (!SWIG_IsOK(ecode3)) {
8028 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8029 }
8030 arg3 = static_cast< int >(val3);
8031 {
8032 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
8033 if (PyErr_Occurred()) SWIG_fail;
8034 }
8035 resultobj = SWIG_Py_Void();
8036 return resultobj;
8037fail:
8038 return NULL;
8039}
8040
8041
8042SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8043 PyObject *resultobj = 0;
8044 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8045 wxNativePixelData *arg2 = 0 ;
8046 int arg3 ;
8047 void *argp1 = 0 ;
8048 int res1 = 0 ;
8049 void *argp2 = 0 ;
8050 int res2 = 0 ;
8051 int val3 ;
8052 int ecode3 = 0 ;
8053 PyObject * obj0 = 0 ;
8054 PyObject * obj1 = 0 ;
8055 PyObject * obj2 = 0 ;
8056 char * kwnames[] = {
8057 (char *) "self",(char *) "data",(char *) "y", NULL
8058 };
8059
8060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8062 if (!SWIG_IsOK(res1)) {
8063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8064 }
8065 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8066 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8067 if (!SWIG_IsOK(res2)) {
8068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8069 }
8070 if (!argp2) {
8071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8072 }
8073 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8074 ecode3 = SWIG_AsVal_int(obj2, &val3);
8075 if (!SWIG_IsOK(ecode3)) {
8076 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8077 }
8078 arg3 = static_cast< int >(val3);
8079 {
8080 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8081 if (PyErr_Occurred()) SWIG_fail;
8082 }
8083 resultobj = SWIG_Py_Void();
8084 return resultobj;
8085fail:
8086 return NULL;
8087}
8088
8089
8090SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8091 PyObject *resultobj = 0;
8092 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8093 wxNativePixelData *arg2 = 0 ;
8094 int arg3 ;
8095 int arg4 ;
8096 void *argp1 = 0 ;
8097 int res1 = 0 ;
8098 void *argp2 = 0 ;
8099 int res2 = 0 ;
8100 int val3 ;
8101 int ecode3 = 0 ;
8102 int val4 ;
8103 int ecode4 = 0 ;
8104 PyObject * obj0 = 0 ;
8105 PyObject * obj1 = 0 ;
8106 PyObject * obj2 = 0 ;
8107 PyObject * obj3 = 0 ;
8108 char * kwnames[] = {
8109 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8110 };
8111
8112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8114 if (!SWIG_IsOK(res1)) {
8115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8116 }
8117 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8118 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8119 if (!SWIG_IsOK(res2)) {
8120 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8121 }
8122 if (!argp2) {
8123 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8124 }
8125 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8126 ecode3 = SWIG_AsVal_int(obj2, &val3);
8127 if (!SWIG_IsOK(ecode3)) {
8128 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8129 }
8130 arg3 = static_cast< int >(val3);
8131 ecode4 = SWIG_AsVal_int(obj3, &val4);
8132 if (!SWIG_IsOK(ecode4)) {
8133 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8134 }
8135 arg4 = static_cast< int >(val4);
8136 {
8137 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8138 if (PyErr_Occurred()) SWIG_fail;
8139 }
8140 resultobj = SWIG_Py_Void();
8141 return resultobj;
8142fail:
8143 return NULL;
8144}
8145
8146
8147SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8148 PyObject *resultobj = 0;
8149 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8150 byte arg2 ;
8151 byte arg3 ;
8152 byte arg4 ;
8153 void *argp1 = 0 ;
8154 int res1 = 0 ;
8155 unsigned char val2 ;
8156 int ecode2 = 0 ;
8157 unsigned char val3 ;
8158 int ecode3 = 0 ;
8159 unsigned char val4 ;
8160 int ecode4 = 0 ;
8161 PyObject * obj0 = 0 ;
8162 PyObject * obj1 = 0 ;
8163 PyObject * obj2 = 0 ;
8164 PyObject * obj3 = 0 ;
8165 char * kwnames[] = {
8166 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8167 };
8168
8169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8171 if (!SWIG_IsOK(res1)) {
8172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8173 }
8174 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8175 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8176 if (!SWIG_IsOK(ecode2)) {
8177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8178 }
8179 arg2 = static_cast< byte >(val2);
8180 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8181 if (!SWIG_IsOK(ecode3)) {
8182 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8183 }
8184 arg3 = static_cast< byte >(val3);
8185 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8186 if (!SWIG_IsOK(ecode4)) {
8187 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8188 }
8189 arg4 = static_cast< byte >(val4);
8190 {
8191 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8192 if (PyErr_Occurred()) SWIG_fail;
8193 }
8194 resultobj = SWIG_Py_Void();
8195 return resultobj;
8196fail:
8197 return NULL;
8198}
8199
8200
8201SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8202 PyObject *resultobj = 0;
8203 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8204 PyObject *result = 0 ;
8205 void *argp1 = 0 ;
8206 int res1 = 0 ;
8207 PyObject *swig_obj[1] ;
8208
8209 if (!args) SWIG_fail;
8210 swig_obj[0] = args;
8211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8212 if (!SWIG_IsOK(res1)) {
8213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8214 }
8215 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8216 {
8217 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8218 if (PyErr_Occurred()) SWIG_fail;
8219 }
8220 resultobj = result;
8221 return resultobj;
8222fail:
8223 return NULL;
8224}
8225
8226
8227SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8228 PyObject *obj;
8229 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8230 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8231 return SWIG_Py_Void();
8232}
8233
8234SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8235 return SWIG_Python_InitShadowInstance(args);
8236}
8237
8238SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8239 PyObject *resultobj = 0;
8240 wxBitmap *arg1 = 0 ;
8241 wxAlphaPixelData *result = 0 ;
8242 void *argp1 = 0 ;
8243 int res1 = 0 ;
8244
8245 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8247 if (!SWIG_IsOK(res1)) {
8248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8249 }
8250 if (!argp1) {
8251 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8252 }
8253 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8254 {
8255 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8256 if (PyErr_Occurred()) SWIG_fail;
8257 }
8258 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8259 return resultobj;
8260fail:
8261 return NULL;
8262}
8263
8264
8265SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8266 PyObject *resultobj = 0;
8267 wxBitmap *arg1 = 0 ;
8268 wxRect *arg2 = 0 ;
8269 wxAlphaPixelData *result = 0 ;
8270 void *argp1 = 0 ;
8271 int res1 = 0 ;
8272 wxRect temp2 ;
8273
8274 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8276 if (!SWIG_IsOK(res1)) {
8277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8278 }
8279 if (!argp1) {
8280 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8281 }
8282 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8283 {
8284 arg2 = &temp2;
8285 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8286 }
8287 {
8288 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8289 if (PyErr_Occurred()) SWIG_fail;
8290 }
8291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8292 return resultobj;
8293fail:
8294 return NULL;
8295}
8296
8297
8298SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8299 PyObject *resultobj = 0;
8300 wxBitmap *arg1 = 0 ;
8301 wxPoint *arg2 = 0 ;
8302 wxSize *arg3 = 0 ;
8303 wxAlphaPixelData *result = 0 ;
8304 void *argp1 = 0 ;
8305 int res1 = 0 ;
8306 wxPoint temp2 ;
8307 wxSize temp3 ;
8308
8309 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8311 if (!SWIG_IsOK(res1)) {
8312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8313 }
8314 if (!argp1) {
8315 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8316 }
8317 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8318 {
8319 arg2 = &temp2;
8320 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8321 }
8322 {
8323 arg3 = &temp3;
8324 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8325 }
8326 {
8327 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8328 if (PyErr_Occurred()) SWIG_fail;
8329 }
8330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8331 return resultobj;
8332fail:
8333 return NULL;
8334}
8335
8336
8337SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8338 int argc;
8339 PyObject *argv[4];
8340
8341 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8342 --argc;
8343 if (argc == 1) {
8344 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8345 }
8346 if (argc == 2) {
8347 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8348 }
8349 if (argc == 3) {
8350 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8351 }
8352
8353fail:
8354 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8355 return NULL;
8356}
8357
8358
8359SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8360 PyObject *resultobj = 0;
8361 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8362 void *argp1 = 0 ;
8363 int res1 = 0 ;
8364 PyObject *swig_obj[1] ;
8365
8366 if (!args) SWIG_fail;
8367 swig_obj[0] = args;
8368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8369 if (!SWIG_IsOK(res1)) {
8370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8371 }
8372 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8373 {
8374 delete arg1;
8375
8376 if (PyErr_Occurred()) SWIG_fail;
8377 }
8378 resultobj = SWIG_Py_Void();
8379 return resultobj;
8380fail:
8381 return NULL;
8382}
8383
8384
8385SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8386 PyObject *resultobj = 0;
8387 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8388 wxAlphaPixelData_Accessor result;
8389 void *argp1 = 0 ;
8390 int res1 = 0 ;
8391 PyObject *swig_obj[1] ;
8392
8393 if (!args) SWIG_fail;
8394 swig_obj[0] = args;
8395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8396 if (!SWIG_IsOK(res1)) {
8397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8398 }
8399 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8400 {
8401 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8402 if (PyErr_Occurred()) SWIG_fail;
8403 }
8404 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8405 return resultobj;
8406fail:
8407 return NULL;
8408}
8409
8410
8411SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8412 PyObject *resultobj = 0;
8413 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8414 void *argp1 = 0 ;
8415 int res1 = 0 ;
8416 PyObject *swig_obj[1] ;
8417
8418 if (!args) SWIG_fail;
8419 swig_obj[0] = args;
8420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8421 if (!SWIG_IsOK(res1)) {
8422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8423 }
8424 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8425 {
8426 (arg1)->UseAlpha();
8427 if (PyErr_Occurred()) SWIG_fail;
8428 }
8429 resultobj = SWIG_Py_Void();
8430 return resultobj;
8431fail:
8432 return NULL;
8433}
8434
8435
8436SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8437 PyObject *resultobj = 0;
8438 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8439 bool result;
8440 void *argp1 = 0 ;
8441 int res1 = 0 ;
8442 PyObject *swig_obj[1] ;
8443
8444 if (!args) SWIG_fail;
8445 swig_obj[0] = args;
8446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8447 if (!SWIG_IsOK(res1)) {
8448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8449 }
8450 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8451 {
8452 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8453 if (PyErr_Occurred()) SWIG_fail;
8454 }
8455 {
8456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8457 }
8458 return resultobj;
8459fail:
8460 return NULL;
8461}
8462
8463
8464SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8465 PyObject *obj;
8466 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8467 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8468 return SWIG_Py_Void();
8469}
8470
8471SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8472 return SWIG_Python_InitShadowInstance(args);
8473}
8474
8475SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8476 PyObject *resultobj = 0;
8477 wxAlphaPixelData *arg1 = 0 ;
8478 wxAlphaPixelData_Accessor *result = 0 ;
8479 void *argp1 = 0 ;
8480 int res1 = 0 ;
8481
8482 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8484 if (!SWIG_IsOK(res1)) {
8485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8486 }
8487 if (!argp1) {
8488 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8489 }
8490 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8491 {
8492 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8493 if (PyErr_Occurred()) SWIG_fail;
8494 }
8495 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8496 return resultobj;
8497fail:
8498 return NULL;
8499}
8500
8501
8502SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8503 PyObject *resultobj = 0;
8504 wxBitmap *arg1 = 0 ;
8505 wxAlphaPixelData *arg2 = 0 ;
8506 wxAlphaPixelData_Accessor *result = 0 ;
8507 void *argp1 = 0 ;
8508 int res1 = 0 ;
8509 void *argp2 = 0 ;
8510 int res2 = 0 ;
8511
8512 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8514 if (!SWIG_IsOK(res1)) {
8515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8516 }
8517 if (!argp1) {
8518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8519 }
8520 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8521 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8522 if (!SWIG_IsOK(res2)) {
8523 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8524 }
8525 if (!argp2) {
8526 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8527 }
8528 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8529 {
8530 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8531 if (PyErr_Occurred()) SWIG_fail;
8532 }
8533 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8534 return resultobj;
8535fail:
8536 return NULL;
8537}
8538
8539
8540SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8541 PyObject *resultobj = 0;
8542 wxAlphaPixelData_Accessor *result = 0 ;
8543
8544 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8545 {
8546 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8547 if (PyErr_Occurred()) SWIG_fail;
8548 }
8549 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8550 return resultobj;
8551fail:
8552 return NULL;
8553}
8554
8555
8556SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8557 int argc;
8558 PyObject *argv[3];
8559
8560 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8561 --argc;
8562 if (argc == 0) {
8563 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8564 }
8565 if (argc == 1) {
8566 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8567 }
8568 if (argc == 2) {
8569 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8570 }
8571
8572fail:
8573 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8574 return NULL;
8575}
8576
8577
8578SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8579 PyObject *resultobj = 0;
8580 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8581 void *argp1 = 0 ;
8582 int res1 = 0 ;
8583 PyObject *swig_obj[1] ;
8584
8585 if (!args) SWIG_fail;
8586 swig_obj[0] = args;
8587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8588 if (!SWIG_IsOK(res1)) {
8589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8590 }
8591 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8592 {
8593 delete arg1;
8594
8595 if (PyErr_Occurred()) SWIG_fail;
8596 }
8597 resultobj = SWIG_Py_Void();
8598 return resultobj;
8599fail:
8600 return NULL;
8601}
8602
8603
8604SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8605 PyObject *resultobj = 0;
8606 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8607 wxAlphaPixelData *arg2 = 0 ;
8608 void *argp1 = 0 ;
8609 int res1 = 0 ;
8610 void *argp2 = 0 ;
8611 int res2 = 0 ;
8612 PyObject * obj0 = 0 ;
8613 PyObject * obj1 = 0 ;
8614 char * kwnames[] = {
8615 (char *) "self",(char *) "data", NULL
8616 };
8617
8618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8620 if (!SWIG_IsOK(res1)) {
8621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8622 }
8623 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8624 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8625 if (!SWIG_IsOK(res2)) {
8626 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8627 }
8628 if (!argp2) {
8629 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8630 }
8631 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8632 {
8633 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8634 if (PyErr_Occurred()) SWIG_fail;
8635 }
8636 resultobj = SWIG_Py_Void();
8637 return resultobj;
8638fail:
8639 return NULL;
8640}
8641
8642
8643SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8644 PyObject *resultobj = 0;
8645 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8646 bool result;
8647 void *argp1 = 0 ;
8648 int res1 = 0 ;
8649 PyObject *swig_obj[1] ;
8650
8651 if (!args) SWIG_fail;
8652 swig_obj[0] = args;
8653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8654 if (!SWIG_IsOK(res1)) {
8655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8656 }
8657 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8658 {
8659 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8660 if (PyErr_Occurred()) SWIG_fail;
8661 }
8662 {
8663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8664 }
8665 return resultobj;
8666fail:
8667 return NULL;
8668}
8669
8670
8671SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8672 PyObject *resultobj = 0;
8673 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8674 void *argp1 = 0 ;
8675 int res1 = 0 ;
8676 PyObject *swig_obj[1] ;
8677
8678 if (!args) SWIG_fail;
8679 swig_obj[0] = args;
8680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8681 if (!SWIG_IsOK(res1)) {
8682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8683 }
8684 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8685 {
8686 wxAlphaPixelData_Accessor_nextPixel(arg1);
8687 if (PyErr_Occurred()) SWIG_fail;
8688 }
8689 resultobj = SWIG_Py_Void();
8690 return resultobj;
8691fail:
8692 return NULL;
8693}
8694
8695
8696SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8697 PyObject *resultobj = 0;
8698 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8699 wxAlphaPixelData *arg2 = 0 ;
8700 int arg3 ;
8701 int arg4 ;
8702 void *argp1 = 0 ;
8703 int res1 = 0 ;
8704 void *argp2 = 0 ;
8705 int res2 = 0 ;
8706 int val3 ;
8707 int ecode3 = 0 ;
8708 int val4 ;
8709 int ecode4 = 0 ;
8710 PyObject * obj0 = 0 ;
8711 PyObject * obj1 = 0 ;
8712 PyObject * obj2 = 0 ;
8713 PyObject * obj3 = 0 ;
8714 char * kwnames[] = {
8715 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8716 };
8717
8718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8720 if (!SWIG_IsOK(res1)) {
8721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8722 }
8723 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8724 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8725 if (!SWIG_IsOK(res2)) {
8726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8727 }
8728 if (!argp2) {
8729 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8730 }
8731 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8732 ecode3 = SWIG_AsVal_int(obj2, &val3);
8733 if (!SWIG_IsOK(ecode3)) {
8734 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8735 }
8736 arg3 = static_cast< int >(val3);
8737 ecode4 = SWIG_AsVal_int(obj3, &val4);
8738 if (!SWIG_IsOK(ecode4)) {
8739 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8740 }
8741 arg4 = static_cast< int >(val4);
8742 {
8743 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8744 if (PyErr_Occurred()) SWIG_fail;
8745 }
8746 resultobj = SWIG_Py_Void();
8747 return resultobj;
8748fail:
8749 return NULL;
8750}
8751
8752
8753SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8754 PyObject *resultobj = 0;
8755 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8756 wxAlphaPixelData *arg2 = 0 ;
8757 int arg3 ;
8758 void *argp1 = 0 ;
8759 int res1 = 0 ;
8760 void *argp2 = 0 ;
8761 int res2 = 0 ;
8762 int val3 ;
8763 int ecode3 = 0 ;
8764 PyObject * obj0 = 0 ;
8765 PyObject * obj1 = 0 ;
8766 PyObject * obj2 = 0 ;
8767 char * kwnames[] = {
8768 (char *) "self",(char *) "data",(char *) "x", NULL
8769 };
8770
8771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8773 if (!SWIG_IsOK(res1)) {
8774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8775 }
8776 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8777 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8778 if (!SWIG_IsOK(res2)) {
8779 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8780 }
8781 if (!argp2) {
8782 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8783 }
8784 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8785 ecode3 = SWIG_AsVal_int(obj2, &val3);
8786 if (!SWIG_IsOK(ecode3)) {
8787 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8788 }
8789 arg3 = static_cast< int >(val3);
8790 {
8791 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8792 if (PyErr_Occurred()) SWIG_fail;
8793 }
8794 resultobj = SWIG_Py_Void();
8795 return resultobj;
8796fail:
8797 return NULL;
8798}
8799
8800
8801SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8802 PyObject *resultobj = 0;
8803 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8804 wxAlphaPixelData *arg2 = 0 ;
8805 int arg3 ;
8806 void *argp1 = 0 ;
8807 int res1 = 0 ;
8808 void *argp2 = 0 ;
8809 int res2 = 0 ;
8810 int val3 ;
8811 int ecode3 = 0 ;
8812 PyObject * obj0 = 0 ;
8813 PyObject * obj1 = 0 ;
8814 PyObject * obj2 = 0 ;
8815 char * kwnames[] = {
8816 (char *) "self",(char *) "data",(char *) "y", NULL
8817 };
8818
8819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8821 if (!SWIG_IsOK(res1)) {
8822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8823 }
8824 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8825 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8826 if (!SWIG_IsOK(res2)) {
8827 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8828 }
8829 if (!argp2) {
8830 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8831 }
8832 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8833 ecode3 = SWIG_AsVal_int(obj2, &val3);
8834 if (!SWIG_IsOK(ecode3)) {
8835 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8836 }
8837 arg3 = static_cast< int >(val3);
8838 {
8839 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8840 if (PyErr_Occurred()) SWIG_fail;
8841 }
8842 resultobj = SWIG_Py_Void();
8843 return resultobj;
8844fail:
8845 return NULL;
8846}
8847
8848
8849SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8850 PyObject *resultobj = 0;
8851 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8852 wxAlphaPixelData *arg2 = 0 ;
8853 int arg3 ;
8854 int arg4 ;
8855 void *argp1 = 0 ;
8856 int res1 = 0 ;
8857 void *argp2 = 0 ;
8858 int res2 = 0 ;
8859 int val3 ;
8860 int ecode3 = 0 ;
8861 int val4 ;
8862 int ecode4 = 0 ;
8863 PyObject * obj0 = 0 ;
8864 PyObject * obj1 = 0 ;
8865 PyObject * obj2 = 0 ;
8866 PyObject * obj3 = 0 ;
8867 char * kwnames[] = {
8868 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8869 };
8870
8871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8873 if (!SWIG_IsOK(res1)) {
8874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8875 }
8876 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8877 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8878 if (!SWIG_IsOK(res2)) {
8879 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8880 }
8881 if (!argp2) {
8882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8883 }
8884 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8885 ecode3 = SWIG_AsVal_int(obj2, &val3);
8886 if (!SWIG_IsOK(ecode3)) {
8887 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8888 }
8889 arg3 = static_cast< int >(val3);
8890 ecode4 = SWIG_AsVal_int(obj3, &val4);
8891 if (!SWIG_IsOK(ecode4)) {
8892 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8893 }
8894 arg4 = static_cast< int >(val4);
8895 {
8896 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8897 if (PyErr_Occurred()) SWIG_fail;
8898 }
8899 resultobj = SWIG_Py_Void();
8900 return resultobj;
8901fail:
8902 return NULL;
8903}
8904
8905
8906SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8907 PyObject *resultobj = 0;
8908 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8909 byte arg2 ;
8910 byte arg3 ;
8911 byte arg4 ;
8912 byte arg5 ;
8913 void *argp1 = 0 ;
8914 int res1 = 0 ;
8915 unsigned char val2 ;
8916 int ecode2 = 0 ;
8917 unsigned char val3 ;
8918 int ecode3 = 0 ;
8919 unsigned char val4 ;
8920 int ecode4 = 0 ;
8921 unsigned char val5 ;
8922 int ecode5 = 0 ;
8923 PyObject * obj0 = 0 ;
8924 PyObject * obj1 = 0 ;
8925 PyObject * obj2 = 0 ;
8926 PyObject * obj3 = 0 ;
8927 PyObject * obj4 = 0 ;
8928 char * kwnames[] = {
8929 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8930 };
8931
8932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8934 if (!SWIG_IsOK(res1)) {
8935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8936 }
8937 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8938 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8939 if (!SWIG_IsOK(ecode2)) {
8940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8941 }
8942 arg2 = static_cast< byte >(val2);
8943 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8944 if (!SWIG_IsOK(ecode3)) {
8945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8946 }
8947 arg3 = static_cast< byte >(val3);
8948 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8949 if (!SWIG_IsOK(ecode4)) {
8950 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8951 }
8952 arg4 = static_cast< byte >(val4);
8953 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8954 if (!SWIG_IsOK(ecode5)) {
8955 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8956 }
8957 arg5 = static_cast< byte >(val5);
8958 {
8959 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8960 if (PyErr_Occurred()) SWIG_fail;
1bd55598 8961 }
fc46b7f3 8962 resultobj = SWIG_Py_Void();
1bd55598
RD
8963 return resultobj;
8964fail:
8965 return NULL;
8966}
8967
8968
fc46b7f3 8969SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8970 PyObject *resultobj = 0;
fc46b7f3
RD
8971 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8972 PyObject *result = 0 ;
1bd55598
RD
8973 void *argp1 = 0 ;
8974 int res1 = 0 ;
fc46b7f3 8975 PyObject *swig_obj[1] ;
1bd55598 8976
fc46b7f3
RD
8977 if (!args) SWIG_fail;
8978 swig_obj[0] = args;
8979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
1bd55598 8980 if (!SWIG_IsOK(res1)) {
fc46b7f3 8981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
1bd55598 8982 }
fc46b7f3 8983 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
1bd55598 8984 {
fc46b7f3 8985 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
1bd55598
RD
8986 if (PyErr_Occurred()) SWIG_fail;
8987 }
fc46b7f3 8988 resultobj = result;
1bd55598
RD
8989 return resultobj;
8990fail:
8991 return NULL;
d55e5bfc
RD
8992}
8993
8994
fc46b7f3 8995SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
8996 PyObject *obj;
8997 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8998 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
1bd55598 8999 return SWIG_Py_Void();
d55e5bfc
RD
9000}
9001
fc46b7f3 9002SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 9003 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9004}
9005
1bd55598
RD
9006SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9007 PyObject *resultobj = 0;
9008 wxBitmap *arg1 = 0 ;
9009 wxColour const &arg2_defvalue = wxNullColour ;
9010 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
9011 wxMask *result = 0 ;
9012 void *argp1 = 0 ;
9013 int res1 = 0 ;
9014 wxColour temp2 ;
9015 PyObject * obj0 = 0 ;
9016 PyObject * obj1 = 0 ;
9017 char * kwnames[] = {
9018 (char *) "bitmap",(char *) "colour", NULL
9019 };
9020
9021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
9022 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9023 if (!SWIG_IsOK(res1)) {
9024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9025 }
9026 if (!argp1) {
9027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9028 }
9029 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9030 if (obj1) {
d55e5bfc 9031 {
1bd55598
RD
9032 arg2 = &temp2;
9033 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 9034 }
1bd55598
RD
9035 }
9036 {
9037 if (!wxPyCheckForApp()) SWIG_fail;
9038 PyThreadState* __tstate = wxPyBeginAllowThreads();
9039 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
9040 wxPyEndAllowThreads(__tstate);
9041 if (PyErr_Occurred()) SWIG_fail;
9042 }
9043 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9044 return resultobj;
9045fail:
9046 return NULL;
d55e5bfc
RD
9047}
9048
9049
1bd55598
RD
9050SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9051 PyObject *resultobj = 0;
9052 wxMask *arg1 = (wxMask *) 0 ;
9053 void *argp1 = 0 ;
9054 int res1 = 0 ;
9055 PyObject *swig_obj[1] ;
9056
9057 if (!args) SWIG_fail;
9058 swig_obj[0] = args;
9059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9060 if (!SWIG_IsOK(res1)) {
9061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9062 }
9063 arg1 = reinterpret_cast< wxMask * >(argp1);
9064 {
1bd55598 9065 delete arg1;
d55e5bfc 9066
1bd55598
RD
9067 if (PyErr_Occurred()) SWIG_fail;
9068 }
9069 resultobj = SWIG_Py_Void();
9070 return resultobj;
9071fail:
9072 return NULL;
9073}
9074
9075
9076SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9077 PyObject *obj;
9078 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9079 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9080 return SWIG_Py_Void();
9081}
9082
9083SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9084 return SWIG_Python_InitShadowInstance(args);
9085}
9086
9087SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9088 PyObject *resultobj = 0;
9089 wxString *arg1 = 0 ;
9090 wxBitmapType arg2 ;
9091 int arg3 = (int) -1 ;
9092 int arg4 = (int) -1 ;
9093 wxIcon *result = 0 ;
9094 bool temp1 = false ;
9095 int val2 ;
9096 int ecode2 = 0 ;
9097 int val3 ;
9098 int ecode3 = 0 ;
9099 int val4 ;
9100 int ecode4 = 0 ;
9101 PyObject * obj0 = 0 ;
9102 PyObject * obj1 = 0 ;
9103 PyObject * obj2 = 0 ;
9104 PyObject * obj3 = 0 ;
9105 char * kwnames[] = {
9106 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9107 };
9108
9109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9110 {
9111 arg1 = wxString_in_helper(obj0);
9112 if (arg1 == NULL) SWIG_fail;
9113 temp1 = true;
9114 }
9115 ecode2 = SWIG_AsVal_int(obj1, &val2);
9116 if (!SWIG_IsOK(ecode2)) {
9117 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9118 }
9119 arg2 = static_cast< wxBitmapType >(val2);
9120 if (obj2) {
9121 ecode3 = SWIG_AsVal_int(obj2, &val3);
9122 if (!SWIG_IsOK(ecode3)) {
9123 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9124 }
9125 arg3 = static_cast< int >(val3);
9126 }
9127 if (obj3) {
9128 ecode4 = SWIG_AsVal_int(obj3, &val4);
9129 if (!SWIG_IsOK(ecode4)) {
9130 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9131 }
9132 arg4 = static_cast< int >(val4);
9133 }
9134 {
9135 if (!wxPyCheckForApp()) SWIG_fail;
9136 PyThreadState* __tstate = wxPyBeginAllowThreads();
9137 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9138 wxPyEndAllowThreads(__tstate);
9139 if (PyErr_Occurred()) SWIG_fail;
9140 }
9141 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9142 {
9143 if (temp1)
9144 delete arg1;
9145 }
9146 return resultobj;
9147fail:
9148 {
9149 if (temp1)
9150 delete arg1;
9151 }
9152 return NULL;
d55e5bfc
RD
9153}
9154
9155
1bd55598
RD
9156SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9157 PyObject *resultobj = 0;
9158 wxIcon *arg1 = (wxIcon *) 0 ;
9159 void *argp1 = 0 ;
9160 int res1 = 0 ;
9161 PyObject *swig_obj[1] ;
9162
9163 if (!args) SWIG_fail;
9164 swig_obj[0] = args;
9165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9166 if (!SWIG_IsOK(res1)) {
9167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9168 }
9169 arg1 = reinterpret_cast< wxIcon * >(argp1);
9170 {
9171 PyThreadState* __tstate = wxPyBeginAllowThreads();
9172 delete arg1;
d55e5bfc 9173
1bd55598
RD
9174 wxPyEndAllowThreads(__tstate);
9175 if (PyErr_Occurred()) SWIG_fail;
9176 }
9177 resultobj = SWIG_Py_Void();
9178 return resultobj;
9179fail:
9180 return NULL;
d55e5bfc
RD
9181}
9182
9183
1bd55598
RD
9184SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9185 PyObject *resultobj = 0;
9186 wxIcon *result = 0 ;
9187
9188 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9189 {
9190 if (!wxPyCheckForApp()) SWIG_fail;
9191 PyThreadState* __tstate = wxPyBeginAllowThreads();
9192 result = (wxIcon *)new wxIcon();
9193 wxPyEndAllowThreads(__tstate);
9194 if (PyErr_Occurred()) SWIG_fail;
9195 }
9196 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9197 return resultobj;
9198fail:
9199 return NULL;
9200}
9201
9202
9203SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9204 PyObject *resultobj = 0;
9205 wxIconLocation *arg1 = 0 ;
9206 wxIcon *result = 0 ;
9207 void *argp1 = 0 ;
9208 int res1 = 0 ;
9209 PyObject * obj0 = 0 ;
9210 char * kwnames[] = {
9211 (char *) "loc", NULL
9212 };
9213
9214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9215 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9216 if (!SWIG_IsOK(res1)) {
9217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9218 }
9219 if (!argp1) {
9220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9221 }
9222 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9223 {
9224 if (!wxPyCheckForApp()) SWIG_fail;
9225 PyThreadState* __tstate = wxPyBeginAllowThreads();
9226 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9227 wxPyEndAllowThreads(__tstate);
9228 if (PyErr_Occurred()) SWIG_fail;
9229 }
9230 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9231 return resultobj;
9232fail:
9233 return NULL;
9234}
9235
9236
9237SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9238 PyObject *resultobj = 0;
9239 wxBitmap *arg1 = 0 ;
9240 wxIcon *result = 0 ;
9241 void *argp1 = 0 ;
9242 int res1 = 0 ;
9243 PyObject * obj0 = 0 ;
9244 char * kwnames[] = {
9245 (char *) "bmp", NULL
9246 };
9247
9248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9249 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9250 if (!SWIG_IsOK(res1)) {
9251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9252 }
9253 if (!argp1) {
9254 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9255 }
9256 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9257 {
9258 if (!wxPyCheckForApp()) SWIG_fail;
9259 PyThreadState* __tstate = wxPyBeginAllowThreads();
9260 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9261 wxPyEndAllowThreads(__tstate);
9262 if (PyErr_Occurred()) SWIG_fail;
9263 }
9264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9265 return resultobj;
9266fail:
9267 return NULL;
d55e5bfc
RD
9268}
9269
9270
1bd55598
RD
9271SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9272 PyObject *resultobj = 0;
9273 PyObject *arg1 = (PyObject *) 0 ;
9274 wxIcon *result = 0 ;
9275 PyObject * obj0 = 0 ;
9276 char * kwnames[] = {
9277 (char *) "listOfStrings", NULL
9278 };
9279
9280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9281 arg1 = obj0;
9282 {
9283 if (!wxPyCheckForApp()) SWIG_fail;
9284 PyThreadState* __tstate = wxPyBeginAllowThreads();
9285 result = (wxIcon *)new_wxIcon(arg1);
9286 wxPyEndAllowThreads(__tstate);
9287 if (PyErr_Occurred()) SWIG_fail;
9288 }
9289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9290 return resultobj;
9291fail:
9292 return NULL;
d55e5bfc
RD
9293}
9294
9295
b39fe951 9296SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
9297 PyObject *resultobj = 0;
9298 wxIcon *arg1 = (wxIcon *) 0 ;
9299 bool result;
9300 void *argp1 = 0 ;
9301 int res1 = 0 ;
9302 PyObject *swig_obj[1] ;
9303
9304 if (!args) SWIG_fail;
9305 swig_obj[0] = args;
9306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9307 if (!SWIG_IsOK(res1)) {
b39fe951 9308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
1bd55598
RD
9309 }
9310 arg1 = reinterpret_cast< wxIcon * >(argp1);
9311 {
9312 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9313 result = (bool)(arg1)->IsOk();
1bd55598
RD
9314 wxPyEndAllowThreads(__tstate);
9315 if (PyErr_Occurred()) SWIG_fail;
9316 }
9317 {
9318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9319 }
9320 return resultobj;
9321fail:
9322 return NULL;
d55e5bfc
RD
9323}
9324
9325
1bd55598
RD
9326SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9327 PyObject *resultobj = 0;
9328 wxIcon *arg1 = (wxIcon *) 0 ;
9329 int result;
9330 void *argp1 = 0 ;
9331 int res1 = 0 ;
9332 PyObject *swig_obj[1] ;
9333
9334 if (!args) SWIG_fail;
9335 swig_obj[0] = args;
9336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9337 if (!SWIG_IsOK(res1)) {
9338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9339 }
9340 arg1 = reinterpret_cast< wxIcon * >(argp1);
9341 {
9342 PyThreadState* __tstate = wxPyBeginAllowThreads();
9343 result = (int)(arg1)->GetWidth();
9344 wxPyEndAllowThreads(__tstate);
9345 if (PyErr_Occurred()) SWIG_fail;
9346 }
9347 resultobj = SWIG_From_int(static_cast< int >(result));
9348 return resultobj;
9349fail:
9350 return NULL;
d55e5bfc
RD
9351}
9352
9353
1bd55598
RD
9354SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9355 PyObject *resultobj = 0;
9356 wxIcon *arg1 = (wxIcon *) 0 ;
9357 int result;
9358 void *argp1 = 0 ;
9359 int res1 = 0 ;
9360 PyObject *swig_obj[1] ;
9361
9362 if (!args) SWIG_fail;
9363 swig_obj[0] = args;
9364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9365 if (!SWIG_IsOK(res1)) {
9366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9367 }
9368 arg1 = reinterpret_cast< wxIcon * >(argp1);
9369 {
9370 PyThreadState* __tstate = wxPyBeginAllowThreads();
9371 result = (int)(arg1)->GetHeight();
9372 wxPyEndAllowThreads(__tstate);
9373 if (PyErr_Occurred()) SWIG_fail;
9374 }
9375 resultobj = SWIG_From_int(static_cast< int >(result));
9376 return resultobj;
9377fail:
9378 return NULL;
d55e5bfc
RD
9379}
9380
9381
1bd55598
RD
9382SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9383 PyObject *resultobj = 0;
9384 wxIcon *arg1 = (wxIcon *) 0 ;
9385 int result;
9386 void *argp1 = 0 ;
9387 int res1 = 0 ;
9388 PyObject *swig_obj[1] ;
9389
9390 if (!args) SWIG_fail;
9391 swig_obj[0] = args;
9392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9393 if (!SWIG_IsOK(res1)) {
9394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9395 }
9396 arg1 = reinterpret_cast< wxIcon * >(argp1);
9397 {
9398 PyThreadState* __tstate = wxPyBeginAllowThreads();
9399 result = (int)(arg1)->GetDepth();
9400 wxPyEndAllowThreads(__tstate);
9401 if (PyErr_Occurred()) SWIG_fail;
9402 }
9403 resultobj = SWIG_From_int(static_cast< int >(result));
9404 return resultobj;
9405fail:
9406 return NULL;
9407}
9408
9409
9410SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9411 PyObject *resultobj = 0;
9412 wxIcon *arg1 = (wxIcon *) 0 ;
9413 int arg2 ;
9414 void *argp1 = 0 ;
9415 int res1 = 0 ;
9416 int val2 ;
9417 int ecode2 = 0 ;
9418 PyObject * obj0 = 0 ;
9419 PyObject * obj1 = 0 ;
9420 char * kwnames[] = {
9421 (char *) "self",(char *) "w", NULL
9422 };
9423
9424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9426 if (!SWIG_IsOK(res1)) {
9427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9428 }
9429 arg1 = reinterpret_cast< wxIcon * >(argp1);
9430 ecode2 = SWIG_AsVal_int(obj1, &val2);
9431 if (!SWIG_IsOK(ecode2)) {
9432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9433 }
9434 arg2 = static_cast< int >(val2);
9435 {
9436 PyThreadState* __tstate = wxPyBeginAllowThreads();
9437 (arg1)->SetWidth(arg2);
9438 wxPyEndAllowThreads(__tstate);
9439 if (PyErr_Occurred()) SWIG_fail;
9440 }
9441 resultobj = SWIG_Py_Void();
9442 return resultobj;
9443fail:
9444 return NULL;
9445}
9446
9447
9448SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9449 PyObject *resultobj = 0;
9450 wxIcon *arg1 = (wxIcon *) 0 ;
9451 int arg2 ;
9452 void *argp1 = 0 ;
9453 int res1 = 0 ;
9454 int val2 ;
9455 int ecode2 = 0 ;
9456 PyObject * obj0 = 0 ;
9457 PyObject * obj1 = 0 ;
9458 char * kwnames[] = {
9459 (char *) "self",(char *) "h", NULL
9460 };
9461
9462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9464 if (!SWIG_IsOK(res1)) {
9465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9466 }
9467 arg1 = reinterpret_cast< wxIcon * >(argp1);
9468 ecode2 = SWIG_AsVal_int(obj1, &val2);
9469 if (!SWIG_IsOK(ecode2)) {
9470 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9471 }
9472 arg2 = static_cast< int >(val2);
9473 {
9474 PyThreadState* __tstate = wxPyBeginAllowThreads();
9475 (arg1)->SetHeight(arg2);
9476 wxPyEndAllowThreads(__tstate);
9477 if (PyErr_Occurred()) SWIG_fail;
9478 }
9479 resultobj = SWIG_Py_Void();
9480 return resultobj;
9481fail:
9482 return NULL;
9483}
9484
9485
9486SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9487 PyObject *resultobj = 0;
9488 wxIcon *arg1 = (wxIcon *) 0 ;
9489 int arg2 ;
9490 void *argp1 = 0 ;
9491 int res1 = 0 ;
9492 int val2 ;
9493 int ecode2 = 0 ;
9494 PyObject * obj0 = 0 ;
9495 PyObject * obj1 = 0 ;
9496 char * kwnames[] = {
9497 (char *) "self",(char *) "d", NULL
9498 };
9499
9500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9502 if (!SWIG_IsOK(res1)) {
9503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9504 }
9505 arg1 = reinterpret_cast< wxIcon * >(argp1);
9506 ecode2 = SWIG_AsVal_int(obj1, &val2);
9507 if (!SWIG_IsOK(ecode2)) {
9508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9509 }
9510 arg2 = static_cast< int >(val2);
9511 {
9512 PyThreadState* __tstate = wxPyBeginAllowThreads();
9513 (arg1)->SetDepth(arg2);
9514 wxPyEndAllowThreads(__tstate);
9515 if (PyErr_Occurred()) SWIG_fail;
9516 }
9517 resultobj = SWIG_Py_Void();
9518 return resultobj;
9519fail:
9520 return NULL;
9521}
9522
9523
9524SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9525 PyObject *resultobj = 0;
9526 wxIcon *arg1 = (wxIcon *) 0 ;
9527 wxBitmap *arg2 = 0 ;
9528 void *argp1 = 0 ;
9529 int res1 = 0 ;
9530 void *argp2 = 0 ;
9531 int res2 = 0 ;
9532 PyObject * obj0 = 0 ;
9533 PyObject * obj1 = 0 ;
9534 char * kwnames[] = {
9535 (char *) "self",(char *) "bmp", NULL
9536 };
9537
9538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9540 if (!SWIG_IsOK(res1)) {
9541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9542 }
9543 arg1 = reinterpret_cast< wxIcon * >(argp1);
9544 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9545 if (!SWIG_IsOK(res2)) {
9546 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9547 }
9548 if (!argp2) {
9549 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9550 }
9551 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9552 {
9553 PyThreadState* __tstate = wxPyBeginAllowThreads();
9554 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9555 wxPyEndAllowThreads(__tstate);
9556 if (PyErr_Occurred()) SWIG_fail;
9557 }
9558 resultobj = SWIG_Py_Void();
9559 return resultobj;
9560fail:
9561 return NULL;
d55e5bfc
RD
9562}
9563
9564
1bd55598
RD
9565SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9566 PyObject *obj;
9567 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9568 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9569 return SWIG_Py_Void();
d55e5bfc
RD
9570}
9571
1bd55598
RD
9572SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9573 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9574}
9575
1bd55598
RD
9576SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9577 PyObject *resultobj = 0;
9578 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9579 int arg2 = (int) 0 ;
9580 wxIconLocation *result = 0 ;
9581 bool temp1 = false ;
9582 int val2 ;
9583 int ecode2 = 0 ;
9584 PyObject * obj0 = 0 ;
9585 PyObject * obj1 = 0 ;
9586 char * kwnames[] = {
9587 (char *) "filename",(char *) "num", NULL
9588 };
9589
9590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9591 if (obj0) {
d55e5bfc 9592 {
1bd55598
RD
9593 arg1 = wxString_in_helper(obj0);
9594 if (arg1 == NULL) SWIG_fail;
9595 temp1 = true;
d55e5bfc 9596 }
1bd55598
RD
9597 }
9598 if (obj1) {
9599 ecode2 = SWIG_AsVal_int(obj1, &val2);
9600 if (!SWIG_IsOK(ecode2)) {
9601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9602 }
9603 arg2 = static_cast< int >(val2);
9604 }
9605 {
9606 PyThreadState* __tstate = wxPyBeginAllowThreads();
9607 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9608 wxPyEndAllowThreads(__tstate);
9609 if (PyErr_Occurred()) SWIG_fail;
9610 }
9611 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9612 {
9613 if (temp1)
9614 delete arg1;
9615 }
9616 return resultobj;
9617fail:
9618 {
9619 if (temp1)
9620 delete arg1;
9621 }
9622 return NULL;
d55e5bfc
RD
9623}
9624
9625
1bd55598
RD
9626SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9627 PyObject *resultobj = 0;
9628 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9629 void *argp1 = 0 ;
9630 int res1 = 0 ;
9631 PyObject *swig_obj[1] ;
9632
9633 if (!args) SWIG_fail;
9634 swig_obj[0] = args;
9635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9636 if (!SWIG_IsOK(res1)) {
9637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9638 }
9639 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9640 {
9641 PyThreadState* __tstate = wxPyBeginAllowThreads();
9642 delete arg1;
d55e5bfc 9643
1bd55598
RD
9644 wxPyEndAllowThreads(__tstate);
9645 if (PyErr_Occurred()) SWIG_fail;
9646 }
9647 resultobj = SWIG_Py_Void();
9648 return resultobj;
9649fail:
9650 return NULL;
d55e5bfc
RD
9651}
9652
9653
1bd55598
RD
9654SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9655 PyObject *resultobj = 0;
9656 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9657 bool result;
9658 void *argp1 = 0 ;
9659 int res1 = 0 ;
9660 PyObject *swig_obj[1] ;
9661
9662 if (!args) SWIG_fail;
9663 swig_obj[0] = args;
9664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9665 if (!SWIG_IsOK(res1)) {
9666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9667 }
9668 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9669 {
9670 PyThreadState* __tstate = wxPyBeginAllowThreads();
9671 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9672 wxPyEndAllowThreads(__tstate);
9673 if (PyErr_Occurred()) SWIG_fail;
9674 }
9675 {
9676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9677 }
9678 return resultobj;
9679fail:
9680 return NULL;
9681}
9682
9683
9684SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9685 PyObject *resultobj = 0;
9686 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9687 wxString *arg2 = 0 ;
9688 void *argp1 = 0 ;
9689 int res1 = 0 ;
9690 bool temp2 = false ;
9691 PyObject * obj0 = 0 ;
9692 PyObject * obj1 = 0 ;
9693 char * kwnames[] = {
9694 (char *) "self",(char *) "filename", NULL
9695 };
9696
9697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9699 if (!SWIG_IsOK(res1)) {
9700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9701 }
9702 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9703 {
9704 arg2 = wxString_in_helper(obj1);
9705 if (arg2 == NULL) SWIG_fail;
9706 temp2 = true;
9707 }
9708 {
9709 PyThreadState* __tstate = wxPyBeginAllowThreads();
9710 (arg1)->SetFileName((wxString const &)*arg2);
9711 wxPyEndAllowThreads(__tstate);
9712 if (PyErr_Occurred()) SWIG_fail;
9713 }
9714 resultobj = SWIG_Py_Void();
9715 {
9716 if (temp2)
9717 delete arg2;
9718 }
9719 return resultobj;
9720fail:
9721 {
9722 if (temp2)
9723 delete arg2;
9724 }
9725 return NULL;
d55e5bfc
RD
9726}
9727
9728
1bd55598
RD
9729SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9730 PyObject *resultobj = 0;
9731 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9732 wxString *result = 0 ;
9733 void *argp1 = 0 ;
9734 int res1 = 0 ;
9735 PyObject *swig_obj[1] ;
9736
9737 if (!args) SWIG_fail;
9738 swig_obj[0] = args;
9739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9740 if (!SWIG_IsOK(res1)) {
9741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9742 }
9743 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9744 {
9745 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 9746 {
1bd55598
RD
9747 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9748 result = (wxString *) &_result_ref;
d55e5bfc 9749 }
1bd55598
RD
9750 wxPyEndAllowThreads(__tstate);
9751 if (PyErr_Occurred()) SWIG_fail;
9752 }
9753 {
9754#if wxUSE_UNICODE
9755 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9756#else
9757 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9758#endif
9759 }
9760 return resultobj;
9761fail:
9762 return NULL;
9763}
9764
9765
9766SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9767 PyObject *resultobj = 0;
9768 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9769 int arg2 ;
9770 void *argp1 = 0 ;
9771 int res1 = 0 ;
9772 int val2 ;
9773 int ecode2 = 0 ;
9774 PyObject * obj0 = 0 ;
9775 PyObject * obj1 = 0 ;
9776 char * kwnames[] = {
9777 (char *) "self",(char *) "num", NULL
9778 };
9779
9780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9782 if (!SWIG_IsOK(res1)) {
9783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9784 }
9785 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9786 ecode2 = SWIG_AsVal_int(obj1, &val2);
9787 if (!SWIG_IsOK(ecode2)) {
9788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9789 }
9790 arg2 = static_cast< int >(val2);
9791 {
9792 PyThreadState* __tstate = wxPyBeginAllowThreads();
9793 wxIconLocation_SetIndex(arg1,arg2);
9794 wxPyEndAllowThreads(__tstate);
9795 if (PyErr_Occurred()) SWIG_fail;
9796 }
9797 resultobj = SWIG_Py_Void();
9798 return resultobj;
9799fail:
9800 return NULL;
d55e5bfc
RD
9801}
9802
9803
1bd55598
RD
9804SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9805 PyObject *resultobj = 0;
9806 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9807 int result;
9808 void *argp1 = 0 ;
9809 int res1 = 0 ;
9810 PyObject *swig_obj[1] ;
9811
9812 if (!args) SWIG_fail;
9813 swig_obj[0] = args;
9814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9815 if (!SWIG_IsOK(res1)) {
9816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9817 }
9818 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9819 {
9820 PyThreadState* __tstate = wxPyBeginAllowThreads();
9821 result = (int)wxIconLocation_GetIndex(arg1);
9822 wxPyEndAllowThreads(__tstate);
9823 if (PyErr_Occurred()) SWIG_fail;
9824 }
9825 resultobj = SWIG_From_int(static_cast< int >(result));
9826 return resultobj;
9827fail:
9828 return NULL;
d55e5bfc
RD
9829}
9830
9831
1bd55598
RD
9832SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9833 PyObject *obj;
9834 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9835 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9836 return SWIG_Py_Void();
d55e5bfc
RD
9837}
9838
1bd55598
RD
9839SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9840 return SWIG_Python_InitShadowInstance(args);
9841}
d55e5bfc 9842
1bd55598
RD
9843SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9844 PyObject *resultobj = 0;
9845 wxIconBundle *result = 0 ;
9846
9847 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9848 {
9849 PyThreadState* __tstate = wxPyBeginAllowThreads();
9850 result = (wxIconBundle *)new wxIconBundle();
9851 wxPyEndAllowThreads(__tstate);
9852 if (PyErr_Occurred()) SWIG_fail;
9853 }
9854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9855 return resultobj;
9856fail:
9857 return NULL;
9858}
9859
9860
9861SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9862 PyObject *resultobj = 0;
9863 wxString *arg1 = 0 ;
9864 long arg2 ;
9865 wxIconBundle *result = 0 ;
9866 bool temp1 = false ;
9867 long val2 ;
9868 int ecode2 = 0 ;
9869 PyObject * obj0 = 0 ;
9870 PyObject * obj1 = 0 ;
9871 char * kwnames[] = {
9872 (char *) "file",(char *) "type", NULL
9873 };
9874
9875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9876 {
9877 arg1 = wxString_in_helper(obj0);
9878 if (arg1 == NULL) SWIG_fail;
9879 temp1 = true;
9880 }
9881 ecode2 = SWIG_AsVal_long(obj1, &val2);
9882 if (!SWIG_IsOK(ecode2)) {
9883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9884 }
9885 arg2 = static_cast< long >(val2);
9886 {
9887 PyThreadState* __tstate = wxPyBeginAllowThreads();
9888 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9889 wxPyEndAllowThreads(__tstate);
9890 if (PyErr_Occurred()) SWIG_fail;
9891 }
9892 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9893 {
9894 if (temp1)
9895 delete arg1;
9896 }
9897 return resultobj;
9898fail:
9899 {
9900 if (temp1)
9901 delete arg1;
9902 }
9903 return NULL;
d55e5bfc
RD
9904}
9905
9906
1bd55598
RD
9907SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9908 PyObject *resultobj = 0;
9909 wxIcon *arg1 = 0 ;
9910 wxIconBundle *result = 0 ;
9911 void *argp1 = 0 ;
9912 int res1 = 0 ;
9913 PyObject * obj0 = 0 ;
9914 char * kwnames[] = {
9915 (char *) "icon", NULL
9916 };
9917
9918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9919 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9920 if (!SWIG_IsOK(res1)) {
9921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9922 }
9923 if (!argp1) {
9924 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9925 }
9926 arg1 = reinterpret_cast< wxIcon * >(argp1);
9927 {
9928 PyThreadState* __tstate = wxPyBeginAllowThreads();
9929 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9930 wxPyEndAllowThreads(__tstate);
9931 if (PyErr_Occurred()) SWIG_fail;
9932 }
9933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9934 return resultobj;
9935fail:
9936 return NULL;
d55e5bfc
RD
9937}
9938
9939
1bd55598
RD
9940SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9941 PyObject *resultobj = 0;
9942 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9943 void *argp1 = 0 ;
9944 int res1 = 0 ;
9945 PyObject *swig_obj[1] ;
9946
9947 if (!args) SWIG_fail;
9948 swig_obj[0] = args;
9949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9950 if (!SWIG_IsOK(res1)) {
9951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9952 }
9953 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9954 {
9955 PyThreadState* __tstate = wxPyBeginAllowThreads();
9956 delete arg1;
d55e5bfc 9957
1bd55598
RD
9958 wxPyEndAllowThreads(__tstate);
9959 if (PyErr_Occurred()) SWIG_fail;
9960 }
9961 resultobj = SWIG_Py_Void();
9962 return resultobj;
9963fail:
9964 return NULL;
9965}
9966
9967
9968SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9969 PyObject *resultobj = 0;
9970 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9971 wxIcon *arg2 = 0 ;
9972 void *argp1 = 0 ;
9973 int res1 = 0 ;
9974 void *argp2 = 0 ;
9975 int res2 = 0 ;
9976 PyObject * obj0 = 0 ;
9977 PyObject * obj1 = 0 ;
9978 char * kwnames[] = {
9979 (char *) "self",(char *) "icon", NULL
9980 };
9981
9982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9984 if (!SWIG_IsOK(res1)) {
9985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9986 }
9987 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9988 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9989 if (!SWIG_IsOK(res2)) {
9990 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9991 }
9992 if (!argp2) {
9993 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9994 }
9995 arg2 = reinterpret_cast< wxIcon * >(argp2);
9996 {
9997 PyThreadState* __tstate = wxPyBeginAllowThreads();
9998 (arg1)->AddIcon((wxIcon const &)*arg2);
9999 wxPyEndAllowThreads(__tstate);
10000 if (PyErr_Occurred()) SWIG_fail;
10001 }
10002 resultobj = SWIG_Py_Void();
10003 return resultobj;
10004fail:
10005 return NULL;
10006}
10007
10008
10009SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10010 PyObject *resultobj = 0;
10011 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10012 wxString *arg2 = 0 ;
10013 long arg3 ;
10014 void *argp1 = 0 ;
10015 int res1 = 0 ;
10016 bool temp2 = false ;
10017 long val3 ;
10018 int ecode3 = 0 ;
10019 PyObject * obj0 = 0 ;
10020 PyObject * obj1 = 0 ;
10021 PyObject * obj2 = 0 ;
10022 char * kwnames[] = {
10023 (char *) "self",(char *) "file",(char *) "type", NULL
10024 };
10025
10026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10028 if (!SWIG_IsOK(res1)) {
10029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10030 }
10031 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10032 {
10033 arg2 = wxString_in_helper(obj1);
10034 if (arg2 == NULL) SWIG_fail;
10035 temp2 = true;
10036 }
10037 ecode3 = SWIG_AsVal_long(obj2, &val3);
10038 if (!SWIG_IsOK(ecode3)) {
10039 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10040 }
10041 arg3 = static_cast< long >(val3);
10042 {
10043 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10045 wxPyEndAllowThreads(__tstate);
10046 if (PyErr_Occurred()) SWIG_fail;
10047 }
10048 resultobj = SWIG_Py_Void();
10049 {
10050 if (temp2)
10051 delete arg2;
10052 }
10053 return resultobj;
10054fail:
10055 {
10056 if (temp2)
10057 delete arg2;
10058 }
10059 return NULL;
10060}
10061
10062
10063SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10064 PyObject *resultobj = 0;
10065 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10066 wxSize *arg2 = 0 ;
10067 wxIcon *result = 0 ;
10068 void *argp1 = 0 ;
10069 int res1 = 0 ;
10070 wxSize temp2 ;
10071 PyObject * obj0 = 0 ;
10072 PyObject * obj1 = 0 ;
10073 char * kwnames[] = {
10074 (char *) "self",(char *) "size", NULL
10075 };
10076
10077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10079 if (!SWIG_IsOK(res1)) {
10080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10081 }
10082 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10083 {
10084 arg2 = &temp2;
10085 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10086 }
10087 {
10088 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 10089 {
1bd55598
RD
10090 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10091 result = (wxIcon *) &_result_ref;
d55e5bfc 10092 }
1bd55598
RD
10093 wxPyEndAllowThreads(__tstate);
10094 if (PyErr_Occurred()) SWIG_fail;
10095 }
10096 {
10097 wxIcon* resultptr = new wxIcon(*result);
10098 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10099 }
10100 return resultobj;
10101fail:
10102 return NULL;
10103}
10104
10105
10106SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10107 PyObject *obj;
10108 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10109 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10110 return SWIG_Py_Void();
10111}
10112
10113SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10114 return SWIG_Python_InitShadowInstance(args);
10115}
10116
10117SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10118 PyObject *resultobj = 0;
10119 wxString *arg1 = 0 ;
10120 long arg2 ;
10121 int arg3 = (int) 0 ;
10122 int arg4 = (int) 0 ;
10123 wxCursor *result = 0 ;
10124 bool temp1 = false ;
10125 long val2 ;
10126 int ecode2 = 0 ;
10127 int val3 ;
10128 int ecode3 = 0 ;
10129 int val4 ;
10130 int ecode4 = 0 ;
10131 PyObject * obj0 = 0 ;
10132 PyObject * obj1 = 0 ;
10133 PyObject * obj2 = 0 ;
10134 PyObject * obj3 = 0 ;
10135 char * kwnames[] = {
10136 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10137 };
10138
10139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10140 {
10141 arg1 = wxString_in_helper(obj0);
10142 if (arg1 == NULL) SWIG_fail;
10143 temp1 = true;
10144 }
10145 ecode2 = SWIG_AsVal_long(obj1, &val2);
10146 if (!SWIG_IsOK(ecode2)) {
10147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10148 }
10149 arg2 = static_cast< long >(val2);
10150 if (obj2) {
10151 ecode3 = SWIG_AsVal_int(obj2, &val3);
10152 if (!SWIG_IsOK(ecode3)) {
10153 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10154 }
10155 arg3 = static_cast< int >(val3);
10156 }
10157 if (obj3) {
10158 ecode4 = SWIG_AsVal_int(obj3, &val4);
10159 if (!SWIG_IsOK(ecode4)) {
10160 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10161 }
10162 arg4 = static_cast< int >(val4);
10163 }
10164 {
10165 if (!wxPyCheckForApp()) SWIG_fail;
10166 PyThreadState* __tstate = wxPyBeginAllowThreads();
10167 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10168 wxPyEndAllowThreads(__tstate);
10169 if (PyErr_Occurred()) SWIG_fail;
10170 }
10171 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10172 {
10173 if (temp1)
10174 delete arg1;
10175 }
10176 return resultobj;
10177fail:
10178 {
10179 if (temp1)
10180 delete arg1;
10181 }
10182 return NULL;
d55e5bfc
RD
10183}
10184
10185
1bd55598
RD
10186SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10187 PyObject *resultobj = 0;
10188 wxCursor *arg1 = (wxCursor *) 0 ;
10189 void *argp1 = 0 ;
10190 int res1 = 0 ;
10191 PyObject *swig_obj[1] ;
10192
10193 if (!args) SWIG_fail;
10194 swig_obj[0] = args;
10195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10196 if (!SWIG_IsOK(res1)) {
10197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10198 }
10199 arg1 = reinterpret_cast< wxCursor * >(argp1);
10200 {
10201 PyThreadState* __tstate = wxPyBeginAllowThreads();
10202 delete arg1;
d55e5bfc 10203
1bd55598
RD
10204 wxPyEndAllowThreads(__tstate);
10205 if (PyErr_Occurred()) SWIG_fail;
10206 }
10207 resultobj = SWIG_Py_Void();
10208 return resultobj;
10209fail:
10210 return NULL;
10211}
10212
10213
10214SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10215 PyObject *resultobj = 0;
10216 int arg1 ;
10217 wxCursor *result = 0 ;
10218 int val1 ;
10219 int ecode1 = 0 ;
10220 PyObject * obj0 = 0 ;
10221 char * kwnames[] = {
10222 (char *) "id", NULL
10223 };
10224
10225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10226 ecode1 = SWIG_AsVal_int(obj0, &val1);
10227 if (!SWIG_IsOK(ecode1)) {
10228 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10229 }
10230 arg1 = static_cast< int >(val1);
10231 {
10232 if (!wxPyCheckForApp()) SWIG_fail;
10233 PyThreadState* __tstate = wxPyBeginAllowThreads();
10234 result = (wxCursor *)new wxCursor(arg1);
10235 wxPyEndAllowThreads(__tstate);
10236 if (PyErr_Occurred()) SWIG_fail;
10237 }
10238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10239 return resultobj;
10240fail:
10241 return NULL;
10242}
10243
10244
10245SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10246 PyObject *resultobj = 0;
10247 wxImage *arg1 = 0 ;
10248 wxCursor *result = 0 ;
10249 void *argp1 = 0 ;
10250 int res1 = 0 ;
10251 PyObject * obj0 = 0 ;
10252 char * kwnames[] = {
10253 (char *) "image", NULL
10254 };
10255
10256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10257 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10258 if (!SWIG_IsOK(res1)) {
10259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10260 }
10261 if (!argp1) {
10262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10263 }
10264 arg1 = reinterpret_cast< wxImage * >(argp1);
10265 {
10266 if (!wxPyCheckForApp()) SWIG_fail;
10267 PyThreadState* __tstate = wxPyBeginAllowThreads();
10268 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10269 wxPyEndAllowThreads(__tstate);
10270 if (PyErr_Occurred()) SWIG_fail;
10271 }
10272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10273 return resultobj;
10274fail:
10275 return NULL;
d55e5bfc
RD
10276}
10277
10278
b39fe951 10279SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
10280 PyObject *resultobj = 0;
10281 wxCursor *arg1 = (wxCursor *) 0 ;
10282 bool result;
10283 void *argp1 = 0 ;
10284 int res1 = 0 ;
10285 PyObject *swig_obj[1] ;
10286
10287 if (!args) SWIG_fail;
10288 swig_obj[0] = args;
10289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10290 if (!SWIG_IsOK(res1)) {
b39fe951 10291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
1bd55598
RD
10292 }
10293 arg1 = reinterpret_cast< wxCursor * >(argp1);
10294 {
10295 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 10296 result = (bool)(arg1)->IsOk();
1bd55598
RD
10297 wxPyEndAllowThreads(__tstate);
10298 if (PyErr_Occurred()) SWIG_fail;
10299 }
10300 {
10301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10302 }
10303 return resultobj;
10304fail:
10305 return NULL;
10306}
10307
10308
10309SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10310 PyObject *obj;
10311 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10312 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10313 return SWIG_Py_Void();
10314}
10315
10316SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10317 return SWIG_Python_InitShadowInstance(args);
10318}
10319
10320SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10321 PyObject *resultobj = 0;
10322 int arg1 = (int) 0 ;
10323 int arg2 = (int) 0 ;
10324 int arg3 = (int) 0 ;
10325 int arg4 = (int) 0 ;
10326 wxRegion *result = 0 ;
10327 int val1 ;
10328 int ecode1 = 0 ;
10329 int val2 ;
10330 int ecode2 = 0 ;
10331 int val3 ;
10332 int ecode3 = 0 ;
10333 int val4 ;
10334 int ecode4 = 0 ;
10335 PyObject * obj0 = 0 ;
10336 PyObject * obj1 = 0 ;
10337 PyObject * obj2 = 0 ;
10338 PyObject * obj3 = 0 ;
10339 char * kwnames[] = {
10340 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10341 };
10342
10343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10344 if (obj0) {
10345 ecode1 = SWIG_AsVal_int(obj0, &val1);
10346 if (!SWIG_IsOK(ecode1)) {
10347 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10348 }
10349 arg1 = static_cast< int >(val1);
10350 }
10351 if (obj1) {
10352 ecode2 = SWIG_AsVal_int(obj1, &val2);
10353 if (!SWIG_IsOK(ecode2)) {
10354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10355 }
10356 arg2 = static_cast< int >(val2);
10357 }
10358 if (obj2) {
10359 ecode3 = SWIG_AsVal_int(obj2, &val3);
10360 if (!SWIG_IsOK(ecode3)) {
10361 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10362 }
10363 arg3 = static_cast< int >(val3);
10364 }
10365 if (obj3) {
10366 ecode4 = SWIG_AsVal_int(obj3, &val4);
10367 if (!SWIG_IsOK(ecode4)) {
10368 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10369 }
10370 arg4 = static_cast< int >(val4);
10371 }
10372 {
10373 if (!wxPyCheckForApp()) SWIG_fail;
10374 PyThreadState* __tstate = wxPyBeginAllowThreads();
10375 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10376 wxPyEndAllowThreads(__tstate);
10377 if (PyErr_Occurred()) SWIG_fail;
10378 }
10379 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10380 return resultobj;
10381fail:
10382 return NULL;
10383}
10384
10385
10386SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10387 PyObject *resultobj = 0;
10388 wxBitmap *arg1 = 0 ;
10389 wxRegion *result = 0 ;
10390 void *argp1 = 0 ;
10391 int res1 = 0 ;
10392 PyObject * obj0 = 0 ;
10393 char * kwnames[] = {
10394 (char *) "bmp", NULL
10395 };
10396
10397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10398 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10399 if (!SWIG_IsOK(res1)) {
10400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10401 }
10402 if (!argp1) {
10403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10404 }
10405 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10406 {
10407 if (!wxPyCheckForApp()) SWIG_fail;
10408 PyThreadState* __tstate = wxPyBeginAllowThreads();
10409 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10410 wxPyEndAllowThreads(__tstate);
10411 if (PyErr_Occurred()) SWIG_fail;
10412 }
10413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10414 return resultobj;
10415fail:
10416 return NULL;
10417}
10418
10419
10420SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10421 PyObject *resultobj = 0;
10422 wxBitmap *arg1 = 0 ;
10423 wxColour *arg2 = 0 ;
10424 int arg3 = (int) 0 ;
10425 wxRegion *result = 0 ;
10426 void *argp1 = 0 ;
10427 int res1 = 0 ;
10428 wxColour temp2 ;
10429 int val3 ;
10430 int ecode3 = 0 ;
10431 PyObject * obj0 = 0 ;
10432 PyObject * obj1 = 0 ;
10433 PyObject * obj2 = 0 ;
10434 char * kwnames[] = {
10435 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10436 };
10437
10438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10439 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10440 if (!SWIG_IsOK(res1)) {
10441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10442 }
10443 if (!argp1) {
10444 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10445 }
10446 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10447 {
10448 arg2 = &temp2;
10449 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10450 }
10451 if (obj2) {
10452 ecode3 = SWIG_AsVal_int(obj2, &val3);
10453 if (!SWIG_IsOK(ecode3)) {
10454 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10455 }
10456 arg3 = static_cast< int >(val3);
10457 }
10458 {
10459 if (!wxPyCheckForApp()) SWIG_fail;
10460 PyThreadState* __tstate = wxPyBeginAllowThreads();
10461 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10462 wxPyEndAllowThreads(__tstate);
10463 if (PyErr_Occurred()) SWIG_fail;
10464 }
10465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10466 return resultobj;
10467fail:
10468 return NULL;
10469}
10470
10471
10472SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10473 PyObject *resultobj = 0;
10474 int arg1 ;
10475 wxPoint *arg2 = (wxPoint *) 0 ;
10476 int arg3 = (int) wxWINDING_RULE ;
10477 wxRegion *result = 0 ;
10478 int val3 ;
10479 int ecode3 = 0 ;
10480 PyObject * obj0 = 0 ;
10481 PyObject * obj1 = 0 ;
10482 char * kwnames[] = {
10483 (char *) "points",(char *) "fillStyle", NULL
10484 };
10485
10486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10487 {
10488 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10489 if (arg2 == NULL) SWIG_fail;
10490 }
10491 if (obj1) {
10492 ecode3 = SWIG_AsVal_int(obj1, &val3);
10493 if (!SWIG_IsOK(ecode3)) {
10494 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10495 }
10496 arg3 = static_cast< int >(val3);
10497 }
10498 {
10499 if (!wxPyCheckForApp()) SWIG_fail;
10500 PyThreadState* __tstate = wxPyBeginAllowThreads();
10501 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10502 wxPyEndAllowThreads(__tstate);
10503 if (PyErr_Occurred()) SWIG_fail;
10504 }
10505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10506 {
10507 if (arg2) delete [] arg2;
10508 }
10509 return resultobj;
10510fail:
10511 {
10512 if (arg2) delete [] arg2;
10513 }
10514 return NULL;
d55e5bfc
RD
10515}
10516
10517
1bd55598
RD
10518SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10519 PyObject *resultobj = 0;
10520 wxRegion *arg1 = (wxRegion *) 0 ;
10521 void *argp1 = 0 ;
10522 int res1 = 0 ;
10523 PyObject *swig_obj[1] ;
10524
10525 if (!args) SWIG_fail;
10526 swig_obj[0] = args;
10527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10528 if (!SWIG_IsOK(res1)) {
10529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10530 }
10531 arg1 = reinterpret_cast< wxRegion * >(argp1);
10532 {
10533 PyThreadState* __tstate = wxPyBeginAllowThreads();
10534 delete arg1;
d55e5bfc 10535
1bd55598
RD
10536 wxPyEndAllowThreads(__tstate);
10537 if (PyErr_Occurred()) SWIG_fail;
10538 }
10539 resultobj = SWIG_Py_Void();
10540 return resultobj;
10541fail:
10542 return NULL;
d55e5bfc
RD
10543}
10544
10545
1bd55598
RD
10546SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10547 PyObject *resultobj = 0;
10548 wxRegion *arg1 = (wxRegion *) 0 ;
10549 void *argp1 = 0 ;
10550 int res1 = 0 ;
10551 PyObject *swig_obj[1] ;
10552
10553 if (!args) SWIG_fail;
10554 swig_obj[0] = args;
10555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10556 if (!SWIG_IsOK(res1)) {
10557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10558 }
10559 arg1 = reinterpret_cast< wxRegion * >(argp1);
10560 {
10561 PyThreadState* __tstate = wxPyBeginAllowThreads();
10562 (arg1)->Clear();
10563 wxPyEndAllowThreads(__tstate);
10564 if (PyErr_Occurred()) SWIG_fail;
10565 }
10566 resultobj = SWIG_Py_Void();
10567 return resultobj;
10568fail:
10569 return NULL;
10570}
10571
10572
10573SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10574 PyObject *resultobj = 0;
10575 wxRegion *arg1 = (wxRegion *) 0 ;
10576 int arg2 ;
10577 int arg3 ;
10578 bool result;
10579 void *argp1 = 0 ;
10580 int res1 = 0 ;
10581 int val2 ;
10582 int ecode2 = 0 ;
10583 int val3 ;
10584 int ecode3 = 0 ;
10585 PyObject * obj0 = 0 ;
10586 PyObject * obj1 = 0 ;
10587 PyObject * obj2 = 0 ;
10588 char * kwnames[] = {
10589 (char *) "self",(char *) "x",(char *) "y", NULL
10590 };
10591
10592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10594 if (!SWIG_IsOK(res1)) {
10595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10596 }
10597 arg1 = reinterpret_cast< wxRegion * >(argp1);
10598 ecode2 = SWIG_AsVal_int(obj1, &val2);
10599 if (!SWIG_IsOK(ecode2)) {
10600 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10601 }
10602 arg2 = static_cast< int >(val2);
10603 ecode3 = SWIG_AsVal_int(obj2, &val3);
10604 if (!SWIG_IsOK(ecode3)) {
10605 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10606 }
10607 arg3 = static_cast< int >(val3);
10608 {
10609 PyThreadState* __tstate = wxPyBeginAllowThreads();
10610 result = (bool)(arg1)->Offset(arg2,arg3);
10611 wxPyEndAllowThreads(__tstate);
10612 if (PyErr_Occurred()) SWIG_fail;
10613 }
10614 {
10615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10616 }
10617 return resultobj;
10618fail:
10619 return NULL;
10620}
10621
10622
10623SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10624 PyObject *resultobj = 0;
10625 wxRegion *arg1 = (wxRegion *) 0 ;
10626 int arg2 ;
10627 int arg3 ;
10628 wxRegionContain result;
10629 void *argp1 = 0 ;
10630 int res1 = 0 ;
10631 int val2 ;
10632 int ecode2 = 0 ;
10633 int val3 ;
10634 int ecode3 = 0 ;
10635 PyObject * obj0 = 0 ;
10636 PyObject * obj1 = 0 ;
10637 PyObject * obj2 = 0 ;
10638 char * kwnames[] = {
10639 (char *) "self",(char *) "x",(char *) "y", NULL
10640 };
10641
10642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10644 if (!SWIG_IsOK(res1)) {
10645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10646 }
10647 arg1 = reinterpret_cast< wxRegion * >(argp1);
10648 ecode2 = SWIG_AsVal_int(obj1, &val2);
10649 if (!SWIG_IsOK(ecode2)) {
10650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10651 }
10652 arg2 = static_cast< int >(val2);
10653 ecode3 = SWIG_AsVal_int(obj2, &val3);
10654 if (!SWIG_IsOK(ecode3)) {
10655 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10656 }
10657 arg3 = static_cast< int >(val3);
10658 {
10659 PyThreadState* __tstate = wxPyBeginAllowThreads();
10660 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10661 wxPyEndAllowThreads(__tstate);
10662 if (PyErr_Occurred()) SWIG_fail;
10663 }
10664 resultobj = SWIG_From_int(static_cast< int >(result));
10665 return resultobj;
10666fail:
10667 return NULL;
10668}
10669
10670
10671SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10672 PyObject *resultobj = 0;
10673 wxRegion *arg1 = (wxRegion *) 0 ;
10674 wxPoint *arg2 = 0 ;
10675 wxRegionContain result;
10676 void *argp1 = 0 ;
10677 int res1 = 0 ;
10678 wxPoint temp2 ;
10679 PyObject * obj0 = 0 ;
10680 PyObject * obj1 = 0 ;
10681 char * kwnames[] = {
10682 (char *) "self",(char *) "pt", NULL
10683 };
10684
10685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10687 if (!SWIG_IsOK(res1)) {
10688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10689 }
10690 arg1 = reinterpret_cast< wxRegion * >(argp1);
10691 {
10692 arg2 = &temp2;
10693 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10694 }
10695 {
10696 PyThreadState* __tstate = wxPyBeginAllowThreads();
10697 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10698 wxPyEndAllowThreads(__tstate);
10699 if (PyErr_Occurred()) SWIG_fail;
10700 }
10701 resultobj = SWIG_From_int(static_cast< int >(result));
10702 return resultobj;
10703fail:
10704 return NULL;
10705}
10706
10707
10708SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10709 PyObject *resultobj = 0;
10710 wxRegion *arg1 = (wxRegion *) 0 ;
10711 wxRect *arg2 = 0 ;
10712 wxRegionContain result;
10713 void *argp1 = 0 ;
10714 int res1 = 0 ;
10715 wxRect temp2 ;
10716 PyObject * obj0 = 0 ;
10717 PyObject * obj1 = 0 ;
10718 char * kwnames[] = {
10719 (char *) "self",(char *) "rect", NULL
10720 };
10721
10722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10724 if (!SWIG_IsOK(res1)) {
10725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10726 }
10727 arg1 = reinterpret_cast< wxRegion * >(argp1);
10728 {
10729 arg2 = &temp2;
10730 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10731 }
10732 {
10733 PyThreadState* __tstate = wxPyBeginAllowThreads();
10734 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10735 wxPyEndAllowThreads(__tstate);
10736 if (PyErr_Occurred()) SWIG_fail;
10737 }
10738 resultobj = SWIG_From_int(static_cast< int >(result));
10739 return resultobj;
10740fail:
10741 return NULL;
10742}
10743
10744
10745SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10746 PyObject *resultobj = 0;
10747 wxRegion *arg1 = (wxRegion *) 0 ;
10748 int arg2 ;
10749 int arg3 ;
10750 int arg4 ;
10751 int arg5 ;
10752 wxRegionContain result;
10753 void *argp1 = 0 ;
10754 int res1 = 0 ;
10755 int val2 ;
10756 int ecode2 = 0 ;
10757 int val3 ;
10758 int ecode3 = 0 ;
10759 int val4 ;
10760 int ecode4 = 0 ;
10761 int val5 ;
10762 int ecode5 = 0 ;
10763 PyObject * obj0 = 0 ;
10764 PyObject * obj1 = 0 ;
10765 PyObject * obj2 = 0 ;
10766 PyObject * obj3 = 0 ;
10767 PyObject * obj4 = 0 ;
10768 char * kwnames[] = {
10769 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10770 };
10771
10772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10774 if (!SWIG_IsOK(res1)) {
10775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10776 }
10777 arg1 = reinterpret_cast< wxRegion * >(argp1);
10778 ecode2 = SWIG_AsVal_int(obj1, &val2);
10779 if (!SWIG_IsOK(ecode2)) {
10780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10781 }
10782 arg2 = static_cast< int >(val2);
10783 ecode3 = SWIG_AsVal_int(obj2, &val3);
10784 if (!SWIG_IsOK(ecode3)) {
10785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10786 }
10787 arg3 = static_cast< int >(val3);
10788 ecode4 = SWIG_AsVal_int(obj3, &val4);
10789 if (!SWIG_IsOK(ecode4)) {
10790 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10791 }
10792 arg4 = static_cast< int >(val4);
10793 ecode5 = SWIG_AsVal_int(obj4, &val5);
10794 if (!SWIG_IsOK(ecode5)) {
10795 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10796 }
10797 arg5 = static_cast< int >(val5);
10798 {
10799 PyThreadState* __tstate = wxPyBeginAllowThreads();
10800 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10801 wxPyEndAllowThreads(__tstate);
10802 if (PyErr_Occurred()) SWIG_fail;
10803 }
10804 resultobj = SWIG_From_int(static_cast< int >(result));
10805 return resultobj;
10806fail:
10807 return NULL;
d55e5bfc
RD
10808}
10809
10810
1bd55598
RD
10811SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10812 PyObject *resultobj = 0;
10813 wxRegion *arg1 = (wxRegion *) 0 ;
10814 wxRect result;
10815 void *argp1 = 0 ;
10816 int res1 = 0 ;
10817 PyObject *swig_obj[1] ;
10818
10819 if (!args) SWIG_fail;
10820 swig_obj[0] = args;
10821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10822 if (!SWIG_IsOK(res1)) {
10823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10824 }
10825 arg1 = reinterpret_cast< wxRegion * >(argp1);
10826 {
10827 PyThreadState* __tstate = wxPyBeginAllowThreads();
10828 result = (arg1)->GetBox();
10829 wxPyEndAllowThreads(__tstate);
10830 if (PyErr_Occurred()) SWIG_fail;
10831 }
10832 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10833 return resultobj;
10834fail:
10835 return NULL;
10836}
10837
10838
10839SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10840 PyObject *resultobj = 0;
10841 wxRegion *arg1 = (wxRegion *) 0 ;
10842 int arg2 ;
10843 int arg3 ;
10844 int arg4 ;
10845 int arg5 ;
10846 bool result;
10847 void *argp1 = 0 ;
10848 int res1 = 0 ;
10849 int val2 ;
10850 int ecode2 = 0 ;
10851 int val3 ;
10852 int ecode3 = 0 ;
10853 int val4 ;
10854 int ecode4 = 0 ;
10855 int val5 ;
10856 int ecode5 = 0 ;
10857 PyObject * obj0 = 0 ;
10858 PyObject * obj1 = 0 ;
10859 PyObject * obj2 = 0 ;
10860 PyObject * obj3 = 0 ;
10861 PyObject * obj4 = 0 ;
10862 char * kwnames[] = {
10863 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10864 };
10865
10866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10868 if (!SWIG_IsOK(res1)) {
10869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10870 }
10871 arg1 = reinterpret_cast< wxRegion * >(argp1);
10872 ecode2 = SWIG_AsVal_int(obj1, &val2);
10873 if (!SWIG_IsOK(ecode2)) {
10874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10875 }
10876 arg2 = static_cast< int >(val2);
10877 ecode3 = SWIG_AsVal_int(obj2, &val3);
10878 if (!SWIG_IsOK(ecode3)) {
10879 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10880 }
10881 arg3 = static_cast< int >(val3);
10882 ecode4 = SWIG_AsVal_int(obj3, &val4);
10883 if (!SWIG_IsOK(ecode4)) {
10884 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10885 }
10886 arg4 = static_cast< int >(val4);
10887 ecode5 = SWIG_AsVal_int(obj4, &val5);
10888 if (!SWIG_IsOK(ecode5)) {
10889 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10890 }
10891 arg5 = static_cast< int >(val5);
10892 {
10893 PyThreadState* __tstate = wxPyBeginAllowThreads();
10894 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10895 wxPyEndAllowThreads(__tstate);
10896 if (PyErr_Occurred()) SWIG_fail;
10897 }
10898 {
10899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10900 }
10901 return resultobj;
10902fail:
10903 return NULL;
10904}
10905
10906
10907SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10908 PyObject *resultobj = 0;
10909 wxRegion *arg1 = (wxRegion *) 0 ;
10910 wxRect *arg2 = 0 ;
10911 bool result;
10912 void *argp1 = 0 ;
10913 int res1 = 0 ;
10914 wxRect temp2 ;
10915 PyObject * obj0 = 0 ;
10916 PyObject * obj1 = 0 ;
10917 char * kwnames[] = {
10918 (char *) "self",(char *) "rect", NULL
10919 };
10920
10921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10923 if (!SWIG_IsOK(res1)) {
10924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10925 }
10926 arg1 = reinterpret_cast< wxRegion * >(argp1);
10927 {
10928 arg2 = &temp2;
10929 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10930 }
10931 {
10932 PyThreadState* __tstate = wxPyBeginAllowThreads();
10933 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10934 wxPyEndAllowThreads(__tstate);
10935 if (PyErr_Occurred()) SWIG_fail;
10936 }
10937 {
10938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10939 }
10940 return resultobj;
10941fail:
10942 return NULL;
10943}
10944
10945
10946SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10947 PyObject *resultobj = 0;
10948 wxRegion *arg1 = (wxRegion *) 0 ;
10949 wxRegion *arg2 = 0 ;
10950 bool result;
10951 void *argp1 = 0 ;
10952 int res1 = 0 ;
10953 void *argp2 = 0 ;
10954 int res2 = 0 ;
10955 PyObject * obj0 = 0 ;
10956 PyObject * obj1 = 0 ;
10957 char * kwnames[] = {
10958 (char *) "self",(char *) "region", NULL
10959 };
10960
10961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10963 if (!SWIG_IsOK(res1)) {
10964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10965 }
10966 arg1 = reinterpret_cast< wxRegion * >(argp1);
10967 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10968 if (!SWIG_IsOK(res2)) {
10969 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10970 }
10971 if (!argp2) {
10972 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10973 }
10974 arg2 = reinterpret_cast< wxRegion * >(argp2);
10975 {
10976 PyThreadState* __tstate = wxPyBeginAllowThreads();
10977 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10978 wxPyEndAllowThreads(__tstate);
10979 if (PyErr_Occurred()) SWIG_fail;
10980 }
10981 {
10982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10983 }
10984 return resultobj;
10985fail:
10986 return NULL;
d55e5bfc
RD
10987}
10988
10989
1bd55598
RD
10990SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10991 PyObject *resultobj = 0;
10992 wxRegion *arg1 = (wxRegion *) 0 ;
10993 bool result;
10994 void *argp1 = 0 ;
10995 int res1 = 0 ;
10996 PyObject *swig_obj[1] ;
10997
10998 if (!args) SWIG_fail;
10999 swig_obj[0] = args;
11000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11001 if (!SWIG_IsOK(res1)) {
11002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11003 }
11004 arg1 = reinterpret_cast< wxRegion * >(argp1);
11005 {
11006 PyThreadState* __tstate = wxPyBeginAllowThreads();
11007 result = (bool)(arg1)->IsEmpty();
11008 wxPyEndAllowThreads(__tstate);
11009 if (PyErr_Occurred()) SWIG_fail;
11010 }
11011 {
11012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11013 }
11014 return resultobj;
11015fail:
11016 return NULL;
11017}
11018
11019
f5263701
RD
11020SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11021 PyObject *resultobj = 0;
11022 wxRegion *arg1 = (wxRegion *) 0 ;
11023 wxRegion *arg2 = 0 ;
11024 bool result;
11025 void *argp1 = 0 ;
11026 int res1 = 0 ;
11027 void *argp2 = 0 ;
11028 int res2 = 0 ;
11029 PyObject * obj0 = 0 ;
11030 PyObject * obj1 = 0 ;
11031 char * kwnames[] = {
11032 (char *) "self",(char *) "region", NULL
11033 };
11034
11035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11037 if (!SWIG_IsOK(res1)) {
11038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11039 }
11040 arg1 = reinterpret_cast< wxRegion * >(argp1);
11041 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11042 if (!SWIG_IsOK(res2)) {
11043 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11044 }
11045 if (!argp2) {
11046 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11047 }
11048 arg2 = reinterpret_cast< wxRegion * >(argp2);
11049 {
11050 PyThreadState* __tstate = wxPyBeginAllowThreads();
11051 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11052 wxPyEndAllowThreads(__tstate);
11053 if (PyErr_Occurred()) SWIG_fail;
11054 }
11055 {
11056 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11057 }
11058 return resultobj;
11059fail:
11060 return NULL;
11061}
11062
11063
1bd55598
RD
11064SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11065 PyObject *resultobj = 0;
11066 wxRegion *arg1 = (wxRegion *) 0 ;
11067 int arg2 ;
11068 int arg3 ;
11069 int arg4 ;
11070 int arg5 ;
11071 bool result;
11072 void *argp1 = 0 ;
11073 int res1 = 0 ;
11074 int val2 ;
11075 int ecode2 = 0 ;
11076 int val3 ;
11077 int ecode3 = 0 ;
11078 int val4 ;
11079 int ecode4 = 0 ;
11080 int val5 ;
11081 int ecode5 = 0 ;
11082 PyObject * obj0 = 0 ;
11083 PyObject * obj1 = 0 ;
11084 PyObject * obj2 = 0 ;
11085 PyObject * obj3 = 0 ;
11086 PyObject * obj4 = 0 ;
11087 char * kwnames[] = {
11088 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11089 };
11090
11091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11093 if (!SWIG_IsOK(res1)) {
11094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11095 }
11096 arg1 = reinterpret_cast< wxRegion * >(argp1);
11097 ecode2 = SWIG_AsVal_int(obj1, &val2);
11098 if (!SWIG_IsOK(ecode2)) {
11099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11100 }
11101 arg2 = static_cast< int >(val2);
11102 ecode3 = SWIG_AsVal_int(obj2, &val3);
11103 if (!SWIG_IsOK(ecode3)) {
11104 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11105 }
11106 arg3 = static_cast< int >(val3);
11107 ecode4 = SWIG_AsVal_int(obj3, &val4);
11108 if (!SWIG_IsOK(ecode4)) {
11109 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11110 }
11111 arg4 = static_cast< int >(val4);
11112 ecode5 = SWIG_AsVal_int(obj4, &val5);
11113 if (!SWIG_IsOK(ecode5)) {
11114 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11115 }
11116 arg5 = static_cast< int >(val5);
11117 {
11118 PyThreadState* __tstate = wxPyBeginAllowThreads();
11119 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11120 wxPyEndAllowThreads(__tstate);
11121 if (PyErr_Occurred()) SWIG_fail;
11122 }
11123 {
11124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11125 }
11126 return resultobj;
11127fail:
11128 return NULL;
11129}
11130
11131
11132SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11133 PyObject *resultobj = 0;
11134 wxRegion *arg1 = (wxRegion *) 0 ;
11135 wxRect *arg2 = 0 ;
11136 bool result;
11137 void *argp1 = 0 ;
11138 int res1 = 0 ;
11139 wxRect temp2 ;
11140 PyObject * obj0 = 0 ;
11141 PyObject * obj1 = 0 ;
11142 char * kwnames[] = {
11143 (char *) "self",(char *) "rect", NULL
11144 };
11145
11146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11148 if (!SWIG_IsOK(res1)) {
11149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11150 }
11151 arg1 = reinterpret_cast< wxRegion * >(argp1);
11152 {
11153 arg2 = &temp2;
11154 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11155 }
11156 {
11157 PyThreadState* __tstate = wxPyBeginAllowThreads();
11158 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11159 wxPyEndAllowThreads(__tstate);
11160 if (PyErr_Occurred()) SWIG_fail;
11161 }
11162 {
11163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11164 }
11165 return resultobj;
11166fail:
11167 return NULL;
11168}
11169
11170
11171SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11172 PyObject *resultobj = 0;
11173 wxRegion *arg1 = (wxRegion *) 0 ;
11174 wxRegion *arg2 = 0 ;
11175 bool result;
11176 void *argp1 = 0 ;
11177 int res1 = 0 ;
11178 void *argp2 = 0 ;
11179 int res2 = 0 ;
11180 PyObject * obj0 = 0 ;
11181 PyObject * obj1 = 0 ;
11182 char * kwnames[] = {
11183 (char *) "self",(char *) "region", NULL
11184 };
11185
11186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11188 if (!SWIG_IsOK(res1)) {
11189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11190 }
11191 arg1 = reinterpret_cast< wxRegion * >(argp1);
11192 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11193 if (!SWIG_IsOK(res2)) {
11194 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11195 }
11196 if (!argp2) {
11197 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11198 }
11199 arg2 = reinterpret_cast< wxRegion * >(argp2);
11200 {
11201 PyThreadState* __tstate = wxPyBeginAllowThreads();
11202 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11203 wxPyEndAllowThreads(__tstate);
11204 if (PyErr_Occurred()) SWIG_fail;
11205 }
11206 {
11207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11208 }
11209 return resultobj;
11210fail:
11211 return NULL;
11212}
11213
11214
11215SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11216 PyObject *resultobj = 0;
11217 wxRegion *arg1 = (wxRegion *) 0 ;
11218 int arg2 ;
11219 int arg3 ;
11220 int arg4 ;
11221 int arg5 ;
11222 bool result;
11223 void *argp1 = 0 ;
11224 int res1 = 0 ;
11225 int val2 ;
11226 int ecode2 = 0 ;
11227 int val3 ;
11228 int ecode3 = 0 ;
11229 int val4 ;
11230 int ecode4 = 0 ;
11231 int val5 ;
11232 int ecode5 = 0 ;
11233 PyObject * obj0 = 0 ;
11234 PyObject * obj1 = 0 ;
11235 PyObject * obj2 = 0 ;
11236 PyObject * obj3 = 0 ;
11237 PyObject * obj4 = 0 ;
11238 char * kwnames[] = {
11239 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11240 };
11241
11242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11244 if (!SWIG_IsOK(res1)) {
11245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11246 }
11247 arg1 = reinterpret_cast< wxRegion * >(argp1);
11248 ecode2 = SWIG_AsVal_int(obj1, &val2);
11249 if (!SWIG_IsOK(ecode2)) {
11250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11251 }
11252 arg2 = static_cast< int >(val2);
11253 ecode3 = SWIG_AsVal_int(obj2, &val3);
11254 if (!SWIG_IsOK(ecode3)) {
11255 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11256 }
11257 arg3 = static_cast< int >(val3);
11258 ecode4 = SWIG_AsVal_int(obj3, &val4);
11259 if (!SWIG_IsOK(ecode4)) {
11260 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11261 }
11262 arg4 = static_cast< int >(val4);
11263 ecode5 = SWIG_AsVal_int(obj4, &val5);
11264 if (!SWIG_IsOK(ecode5)) {
11265 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11266 }
11267 arg5 = static_cast< int >(val5);
11268 {
11269 PyThreadState* __tstate = wxPyBeginAllowThreads();
11270 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11271 wxPyEndAllowThreads(__tstate);
11272 if (PyErr_Occurred()) SWIG_fail;
11273 }
11274 {
11275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11276 }
11277 return resultobj;
11278fail:
11279 return NULL;
11280}
11281
11282
11283SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11284 PyObject *resultobj = 0;
11285 wxRegion *arg1 = (wxRegion *) 0 ;
11286 wxRect *arg2 = 0 ;
11287 bool result;
11288 void *argp1 = 0 ;
11289 int res1 = 0 ;
11290 wxRect temp2 ;
11291 PyObject * obj0 = 0 ;
11292 PyObject * obj1 = 0 ;
11293 char * kwnames[] = {
11294 (char *) "self",(char *) "rect", NULL
11295 };
11296
11297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11299 if (!SWIG_IsOK(res1)) {
11300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11301 }
11302 arg1 = reinterpret_cast< wxRegion * >(argp1);
11303 {
11304 arg2 = &temp2;
11305 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11306 }
11307 {
11308 PyThreadState* __tstate = wxPyBeginAllowThreads();
11309 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11310 wxPyEndAllowThreads(__tstate);
11311 if (PyErr_Occurred()) SWIG_fail;
11312 }
11313 {
11314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11315 }
11316 return resultobj;
11317fail:
11318 return NULL;
11319}
11320
11321
11322SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11323 PyObject *resultobj = 0;
11324 wxRegion *arg1 = (wxRegion *) 0 ;
11325 wxRegion *arg2 = 0 ;
11326 bool result;
11327 void *argp1 = 0 ;
11328 int res1 = 0 ;
11329 void *argp2 = 0 ;
11330 int res2 = 0 ;
11331 PyObject * obj0 = 0 ;
11332 PyObject * obj1 = 0 ;
11333 char * kwnames[] = {
11334 (char *) "self",(char *) "region", NULL
11335 };
11336
11337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11339 if (!SWIG_IsOK(res1)) {
11340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11341 }
11342 arg1 = reinterpret_cast< wxRegion * >(argp1);
11343 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11344 if (!SWIG_IsOK(res2)) {
11345 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11346 }
11347 if (!argp2) {
11348 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11349 }
11350 arg2 = reinterpret_cast< wxRegion * >(argp2);
11351 {
11352 PyThreadState* __tstate = wxPyBeginAllowThreads();
11353 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11354 wxPyEndAllowThreads(__tstate);
11355 if (PyErr_Occurred()) SWIG_fail;
11356 }
11357 {
11358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11359 }
11360 return resultobj;
11361fail:
11362 return NULL;
11363}
11364
11365
11366SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11367 PyObject *resultobj = 0;
11368 wxRegion *arg1 = (wxRegion *) 0 ;
11369 int arg2 ;
11370 int arg3 ;
11371 int arg4 ;
11372 int arg5 ;
11373 bool result;
11374 void *argp1 = 0 ;
11375 int res1 = 0 ;
11376 int val2 ;
11377 int ecode2 = 0 ;
11378 int val3 ;
11379 int ecode3 = 0 ;
11380 int val4 ;
11381 int ecode4 = 0 ;
11382 int val5 ;
11383 int ecode5 = 0 ;
11384 PyObject * obj0 = 0 ;
11385 PyObject * obj1 = 0 ;
11386 PyObject * obj2 = 0 ;
11387 PyObject * obj3 = 0 ;
11388 PyObject * obj4 = 0 ;
11389 char * kwnames[] = {
11390 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11391 };
11392
11393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11395 if (!SWIG_IsOK(res1)) {
11396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11397 }
11398 arg1 = reinterpret_cast< wxRegion * >(argp1);
11399 ecode2 = SWIG_AsVal_int(obj1, &val2);
11400 if (!SWIG_IsOK(ecode2)) {
11401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11402 }
11403 arg2 = static_cast< int >(val2);
11404 ecode3 = SWIG_AsVal_int(obj2, &val3);
11405 if (!SWIG_IsOK(ecode3)) {
11406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11407 }
11408 arg3 = static_cast< int >(val3);
11409 ecode4 = SWIG_AsVal_int(obj3, &val4);
11410 if (!SWIG_IsOK(ecode4)) {
11411 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11412 }
11413 arg4 = static_cast< int >(val4);
11414 ecode5 = SWIG_AsVal_int(obj4, &val5);
11415 if (!SWIG_IsOK(ecode5)) {
11416 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11417 }
11418 arg5 = static_cast< int >(val5);
11419 {
11420 PyThreadState* __tstate = wxPyBeginAllowThreads();
11421 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11422 wxPyEndAllowThreads(__tstate);
11423 if (PyErr_Occurred()) SWIG_fail;
11424 }
11425 {
11426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11427 }
11428 return resultobj;
11429fail:
11430 return NULL;
11431}
11432
11433
11434SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11435 PyObject *resultobj = 0;
11436 wxRegion *arg1 = (wxRegion *) 0 ;
11437 wxRect *arg2 = 0 ;
11438 bool result;
11439 void *argp1 = 0 ;
11440 int res1 = 0 ;
11441 wxRect temp2 ;
11442 PyObject * obj0 = 0 ;
11443 PyObject * obj1 = 0 ;
11444 char * kwnames[] = {
11445 (char *) "self",(char *) "rect", NULL
11446 };
11447
11448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11450 if (!SWIG_IsOK(res1)) {
11451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11452 }
11453 arg1 = reinterpret_cast< wxRegion * >(argp1);
11454 {
11455 arg2 = &temp2;
11456 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11457 }
11458 {
11459 PyThreadState* __tstate = wxPyBeginAllowThreads();
11460 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11461 wxPyEndAllowThreads(__tstate);
11462 if (PyErr_Occurred()) SWIG_fail;
11463 }
11464 {
11465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11466 }
11467 return resultobj;
11468fail:
11469 return NULL;
11470}
11471
11472
11473SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11474 PyObject *resultobj = 0;
11475 wxRegion *arg1 = (wxRegion *) 0 ;
11476 wxRegion *arg2 = 0 ;
11477 bool result;
11478 void *argp1 = 0 ;
11479 int res1 = 0 ;
11480 void *argp2 = 0 ;
11481 int res2 = 0 ;
11482 PyObject * obj0 = 0 ;
11483 PyObject * obj1 = 0 ;
11484 char * kwnames[] = {
11485 (char *) "self",(char *) "region", NULL
11486 };
11487
11488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11490 if (!SWIG_IsOK(res1)) {
11491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11492 }
11493 arg1 = reinterpret_cast< wxRegion * >(argp1);
11494 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11495 if (!SWIG_IsOK(res2)) {
11496 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11497 }
11498 if (!argp2) {
11499 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11500 }
11501 arg2 = reinterpret_cast< wxRegion * >(argp2);
11502 {
11503 PyThreadState* __tstate = wxPyBeginAllowThreads();
11504 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11505 wxPyEndAllowThreads(__tstate);
11506 if (PyErr_Occurred()) SWIG_fail;
11507 }
11508 {
11509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11510 }
11511 return resultobj;
11512fail:
11513 return NULL;
d55e5bfc
RD
11514}
11515
11516
1bd55598
RD
11517SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11518 PyObject *resultobj = 0;
11519 wxRegion *arg1 = (wxRegion *) 0 ;
11520 SwigValueWrapper<wxBitmap > result;
11521 void *argp1 = 0 ;
11522 int res1 = 0 ;
11523 PyObject *swig_obj[1] ;
11524
11525 if (!args) SWIG_fail;
11526 swig_obj[0] = args;
11527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11528 if (!SWIG_IsOK(res1)) {
11529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11530 }
11531 arg1 = reinterpret_cast< wxRegion * >(argp1);
11532 {
11533 PyThreadState* __tstate = wxPyBeginAllowThreads();
11534 result = (arg1)->ConvertToBitmap();
11535 wxPyEndAllowThreads(__tstate);
11536 if (PyErr_Occurred()) SWIG_fail;
11537 }
11538 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11539 return resultobj;
11540fail:
11541 return NULL;
11542}
11543
11544
11545SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11546 PyObject *resultobj = 0;
11547 wxRegion *arg1 = (wxRegion *) 0 ;
11548 wxBitmap *arg2 = 0 ;
11549 bool result;
11550 void *argp1 = 0 ;
11551 int res1 = 0 ;
11552 void *argp2 = 0 ;
11553 int res2 = 0 ;
11554 PyObject * obj0 = 0 ;
11555 PyObject * obj1 = 0 ;
11556 char * kwnames[] = {
11557 (char *) "self",(char *) "bmp", NULL
11558 };
11559
11560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11562 if (!SWIG_IsOK(res1)) {
11563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11564 }
11565 arg1 = reinterpret_cast< wxRegion * >(argp1);
11566 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11567 if (!SWIG_IsOK(res2)) {
11568 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11569 }
11570 if (!argp2) {
11571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11572 }
11573 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11574 {
11575 PyThreadState* __tstate = wxPyBeginAllowThreads();
11576 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11577 wxPyEndAllowThreads(__tstate);
11578 if (PyErr_Occurred()) SWIG_fail;
11579 }
11580 {
11581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11582 }
11583 return resultobj;
11584fail:
11585 return NULL;
11586}
11587
11588
11589SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11590 PyObject *resultobj = 0;
11591 wxRegion *arg1 = (wxRegion *) 0 ;
11592 wxBitmap *arg2 = 0 ;
11593 wxColour *arg3 = 0 ;
11594 int arg4 = (int) 0 ;
11595 bool result;
11596 void *argp1 = 0 ;
11597 int res1 = 0 ;
11598 void *argp2 = 0 ;
11599 int res2 = 0 ;
11600 wxColour temp3 ;
11601 int val4 ;
11602 int ecode4 = 0 ;
11603 PyObject * obj0 = 0 ;
11604 PyObject * obj1 = 0 ;
11605 PyObject * obj2 = 0 ;
11606 PyObject * obj3 = 0 ;
11607 char * kwnames[] = {
11608 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11609 };
11610
11611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11613 if (!SWIG_IsOK(res1)) {
11614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11615 }
11616 arg1 = reinterpret_cast< wxRegion * >(argp1);
11617 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11618 if (!SWIG_IsOK(res2)) {
11619 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11620 }
11621 if (!argp2) {
11622 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11623 }
11624 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11625 {
11626 arg3 = &temp3;
11627 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11628 }
11629 if (obj3) {
11630 ecode4 = SWIG_AsVal_int(obj3, &val4);
11631 if (!SWIG_IsOK(ecode4)) {
11632 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11633 }
11634 arg4 = static_cast< int >(val4);
11635 }
11636 {
11637 PyThreadState* __tstate = wxPyBeginAllowThreads();
11638 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11639 wxPyEndAllowThreads(__tstate);
11640 if (PyErr_Occurred()) SWIG_fail;
11641 }
11642 {
11643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11644 }
11645 return resultobj;
11646fail:
11647 return NULL;
d55e5bfc
RD
11648}
11649
11650
1bd55598
RD
11651SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11652 PyObject *obj;
11653 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11654 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11655 return SWIG_Py_Void();
d55e5bfc
RD
11656}
11657
1bd55598
RD
11658SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11659 return SWIG_Python_InitShadowInstance(args);
11660}
d55e5bfc 11661
1bd55598
RD
11662SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11663 PyObject *resultobj = 0;
11664 wxRegion *arg1 = 0 ;
11665 wxRegionIterator *result = 0 ;
11666 void *argp1 = 0 ;
11667 int res1 = 0 ;
11668 PyObject * obj0 = 0 ;
11669 char * kwnames[] = {
11670 (char *) "region", NULL
11671 };
11672
11673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11674 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11675 if (!SWIG_IsOK(res1)) {
11676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11677 }
11678 if (!argp1) {
11679 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11680 }
11681 arg1 = reinterpret_cast< wxRegion * >(argp1);
11682 {
11683 if (!wxPyCheckForApp()) SWIG_fail;
11684 PyThreadState* __tstate = wxPyBeginAllowThreads();
11685 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11686 wxPyEndAllowThreads(__tstate);
11687 if (PyErr_Occurred()) SWIG_fail;
11688 }
11689 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11690 return resultobj;
11691fail:
11692 return NULL;
d55e5bfc
RD
11693}
11694
11695
1bd55598
RD
11696SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11697 PyObject *resultobj = 0;
11698 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11699 void *argp1 = 0 ;
11700 int res1 = 0 ;
11701 PyObject *swig_obj[1] ;
11702
11703 if (!args) SWIG_fail;
11704 swig_obj[0] = args;
11705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11706 if (!SWIG_IsOK(res1)) {
11707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11708 }
11709 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11710 {
11711 PyThreadState* __tstate = wxPyBeginAllowThreads();
11712 delete arg1;
d55e5bfc 11713
1bd55598
RD
11714 wxPyEndAllowThreads(__tstate);
11715 if (PyErr_Occurred()) SWIG_fail;
11716 }
11717 resultobj = SWIG_Py_Void();
11718 return resultobj;
11719fail:
11720 return NULL;
d55e5bfc
RD
11721}
11722
11723
1bd55598
RD
11724SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11725 PyObject *resultobj = 0;
11726 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11727 int result;
11728 void *argp1 = 0 ;
11729 int res1 = 0 ;
11730 PyObject *swig_obj[1] ;
11731
11732 if (!args) SWIG_fail;
11733 swig_obj[0] = args;
11734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11735 if (!SWIG_IsOK(res1)) {
11736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11737 }
11738 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11739 {
11740 PyThreadState* __tstate = wxPyBeginAllowThreads();
11741 result = (int)(arg1)->GetX();
11742 wxPyEndAllowThreads(__tstate);
11743 if (PyErr_Occurred()) SWIG_fail;
11744 }
11745 resultobj = SWIG_From_int(static_cast< int >(result));
11746 return resultobj;
11747fail:
11748 return NULL;
d55e5bfc
RD
11749}
11750
11751
1bd55598
RD
11752SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11753 PyObject *resultobj = 0;
11754 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11755 int result;
11756 void *argp1 = 0 ;
11757 int res1 = 0 ;
11758 PyObject *swig_obj[1] ;
11759
11760 if (!args) SWIG_fail;
11761 swig_obj[0] = args;
11762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11763 if (!SWIG_IsOK(res1)) {
11764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11765 }
11766 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11767 {
11768 PyThreadState* __tstate = wxPyBeginAllowThreads();
11769 result = (int)(arg1)->GetY();
11770 wxPyEndAllowThreads(__tstate);
11771 if (PyErr_Occurred()) SWIG_fail;
11772 }
11773 resultobj = SWIG_From_int(static_cast< int >(result));
11774 return resultobj;
11775fail:
11776 return NULL;
d55e5bfc
RD
11777}
11778
11779
1bd55598
RD
11780SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11781 PyObject *resultobj = 0;
11782 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11783 int result;
11784 void *argp1 = 0 ;
11785 int res1 = 0 ;
11786 PyObject *swig_obj[1] ;
11787
11788 if (!args) SWIG_fail;
11789 swig_obj[0] = args;
11790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11791 if (!SWIG_IsOK(res1)) {
11792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11793 }
11794 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11795 {
11796 PyThreadState* __tstate = wxPyBeginAllowThreads();
11797 result = (int)(arg1)->GetW();
11798 wxPyEndAllowThreads(__tstate);
11799 if (PyErr_Occurred()) SWIG_fail;
11800 }
11801 resultobj = SWIG_From_int(static_cast< int >(result));
11802 return resultobj;
11803fail:
11804 return NULL;
d55e5bfc
RD
11805}
11806
11807
1bd55598
RD
11808SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11809 PyObject *resultobj = 0;
11810 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11811 int result;
11812 void *argp1 = 0 ;
11813 int res1 = 0 ;
11814 PyObject *swig_obj[1] ;
11815
11816 if (!args) SWIG_fail;
11817 swig_obj[0] = args;
11818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11819 if (!SWIG_IsOK(res1)) {
11820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11821 }
11822 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11823 {
11824 PyThreadState* __tstate = wxPyBeginAllowThreads();
11825 result = (int)(arg1)->GetWidth();
11826 wxPyEndAllowThreads(__tstate);
11827 if (PyErr_Occurred()) SWIG_fail;
11828 }
11829 resultobj = SWIG_From_int(static_cast< int >(result));
11830 return resultobj;
11831fail:
11832 return NULL;
d55e5bfc
RD
11833}
11834
11835
1bd55598
RD
11836SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11837 PyObject *resultobj = 0;
11838 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11839 int result;
11840 void *argp1 = 0 ;
11841 int res1 = 0 ;
11842 PyObject *swig_obj[1] ;
11843
11844 if (!args) SWIG_fail;
11845 swig_obj[0] = args;
11846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11847 if (!SWIG_IsOK(res1)) {
11848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11849 }
11850 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11851 {
11852 PyThreadState* __tstate = wxPyBeginAllowThreads();
11853 result = (int)(arg1)->GetH();
11854 wxPyEndAllowThreads(__tstate);
11855 if (PyErr_Occurred()) SWIG_fail;
11856 }
11857 resultobj = SWIG_From_int(static_cast< int >(result));
11858 return resultobj;
11859fail:
11860 return NULL;
d07096ad
RD
11861}
11862
11863
1bd55598
RD
11864SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11865 PyObject *resultobj = 0;
11866 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11867 int result;
11868 void *argp1 = 0 ;
11869 int res1 = 0 ;
11870 PyObject *swig_obj[1] ;
11871
11872 if (!args) SWIG_fail;
11873 swig_obj[0] = args;
11874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11875 if (!SWIG_IsOK(res1)) {
11876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11877 }
11878 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11879 {
11880 PyThreadState* __tstate = wxPyBeginAllowThreads();
11881 result = (int)(arg1)->GetHeight();
11882 wxPyEndAllowThreads(__tstate);
11883 if (PyErr_Occurred()) SWIG_fail;
11884 }
11885 resultobj = SWIG_From_int(static_cast< int >(result));
11886 return resultobj;
11887fail:
11888 return NULL;
d55e5bfc
RD
11889}
11890
11891
1bd55598
RD
11892SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11893 PyObject *resultobj = 0;
11894 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11895 wxRect result;
11896 void *argp1 = 0 ;
11897 int res1 = 0 ;
11898 PyObject *swig_obj[1] ;
11899
11900 if (!args) SWIG_fail;
11901 swig_obj[0] = args;
11902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11903 if (!SWIG_IsOK(res1)) {
11904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11905 }
11906 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11907 {
11908 PyThreadState* __tstate = wxPyBeginAllowThreads();
11909 result = (arg1)->GetRect();
11910 wxPyEndAllowThreads(__tstate);
11911 if (PyErr_Occurred()) SWIG_fail;
11912 }
11913 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11914 return resultobj;
11915fail:
11916 return NULL;
d55e5bfc
RD
11917}
11918
11919
1bd55598
RD
11920SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11921 PyObject *resultobj = 0;
11922 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11923 bool result;
11924 void *argp1 = 0 ;
11925 int res1 = 0 ;
11926 PyObject *swig_obj[1] ;
11927
11928 if (!args) SWIG_fail;
11929 swig_obj[0] = args;
11930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11931 if (!SWIG_IsOK(res1)) {
11932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11933 }
11934 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11935 {
11936 PyThreadState* __tstate = wxPyBeginAllowThreads();
11937 result = (bool)(arg1)->HaveRects();
11938 wxPyEndAllowThreads(__tstate);
11939 if (PyErr_Occurred()) SWIG_fail;
11940 }
11941 {
11942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11943 }
11944 return resultobj;
11945fail:
11946 return NULL;
d55e5bfc
RD
11947}
11948
11949
1bd55598
RD
11950SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11951 PyObject *resultobj = 0;
11952 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11953 void *argp1 = 0 ;
11954 int res1 = 0 ;
11955 PyObject *swig_obj[1] ;
11956
11957 if (!args) SWIG_fail;
11958 swig_obj[0] = args;
11959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11960 if (!SWIG_IsOK(res1)) {
11961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11962 }
11963 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11964 {
11965 PyThreadState* __tstate = wxPyBeginAllowThreads();
11966 (arg1)->Reset();
11967 wxPyEndAllowThreads(__tstate);
11968 if (PyErr_Occurred()) SWIG_fail;
11969 }
11970 resultobj = SWIG_Py_Void();
11971 return resultobj;
11972fail:
11973 return NULL;
d55e5bfc
RD
11974}
11975
11976
1bd55598
RD
11977SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11978 PyObject *resultobj = 0;
11979 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11980 void *argp1 = 0 ;
11981 int res1 = 0 ;
11982 PyObject *swig_obj[1] ;
11983
11984 if (!args) SWIG_fail;
11985 swig_obj[0] = args;
11986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11987 if (!SWIG_IsOK(res1)) {
11988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11989 }
11990 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11991 {
11992 PyThreadState* __tstate = wxPyBeginAllowThreads();
11993 wxRegionIterator_Next(arg1);
11994 wxPyEndAllowThreads(__tstate);
11995 if (PyErr_Occurred()) SWIG_fail;
11996 }
11997 resultobj = SWIG_Py_Void();
11998 return resultobj;
11999fail:
12000 return NULL;
070c48b4
RD
12001}
12002
12003
1bd55598
RD
12004SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12005 PyObject *resultobj = 0;
12006 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12007 bool result;
12008 void *argp1 = 0 ;
12009 int res1 = 0 ;
12010 PyObject *swig_obj[1] ;
12011
12012 if (!args) SWIG_fail;
12013 swig_obj[0] = args;
12014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12015 if (!SWIG_IsOK(res1)) {
12016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12017 }
12018 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12019 {
12020 PyThreadState* __tstate = wxPyBeginAllowThreads();
12021 result = (bool)wxRegionIterator___nonzero__(arg1);
12022 wxPyEndAllowThreads(__tstate);
12023 if (PyErr_Occurred()) SWIG_fail;
12024 }
12025 {
12026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12027 }
12028 return resultobj;
12029fail:
12030 return NULL;
d55e5bfc
RD
12031}
12032
12033
1bd55598
RD
12034SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12035 PyObject *obj;
12036 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12037 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12038 return SWIG_Py_Void();
d55e5bfc
RD
12039}
12040
1bd55598
RD
12041SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12042 return SWIG_Python_InitShadowInstance(args);
12043}
d55e5bfc 12044
1bd55598
RD
12045SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12046 PyObject *resultobj = 0;
12047 wxNativeFontInfo *result = 0 ;
12048
12049 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12050 {
12051 PyThreadState* __tstate = wxPyBeginAllowThreads();
12052 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12053 wxPyEndAllowThreads(__tstate);
12054 if (PyErr_Occurred()) SWIG_fail;
12055 }
12056 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12057 return resultobj;
12058fail:
12059 return NULL;
d55e5bfc
RD
12060}
12061
12062
1bd55598
RD
12063SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12064 PyObject *resultobj = 0;
12065 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12066 void *argp1 = 0 ;
12067 int res1 = 0 ;
12068 PyObject *swig_obj[1] ;
12069
12070 if (!args) SWIG_fail;
12071 swig_obj[0] = args;
12072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12073 if (!SWIG_IsOK(res1)) {
12074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12075 }
12076 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12077 {
12078 PyThreadState* __tstate = wxPyBeginAllowThreads();
12079 delete arg1;
d55e5bfc 12080
1bd55598
RD
12081 wxPyEndAllowThreads(__tstate);
12082 if (PyErr_Occurred()) SWIG_fail;
12083 }
12084 resultobj = SWIG_Py_Void();
12085 return resultobj;
12086fail:
12087 return NULL;
d55e5bfc
RD
12088}
12089
12090
1bd55598
RD
12091SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12092 PyObject *resultobj = 0;
12093 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12094 void *argp1 = 0 ;
12095 int res1 = 0 ;
12096 PyObject *swig_obj[1] ;
12097
12098 if (!args) SWIG_fail;
12099 swig_obj[0] = args;
12100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12101 if (!SWIG_IsOK(res1)) {
12102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12103 }
12104 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12105 {
12106 PyThreadState* __tstate = wxPyBeginAllowThreads();
12107 (arg1)->Init();
12108 wxPyEndAllowThreads(__tstate);
12109 if (PyErr_Occurred()) SWIG_fail;
12110 }
12111 resultobj = SWIG_Py_Void();
12112 return resultobj;
12113fail:
12114 return NULL;
12115}
12116
12117
12118SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12119 PyObject *resultobj = 0;
12120 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12121 wxFont *arg2 = 0 ;
12122 void *argp1 = 0 ;
12123 int res1 = 0 ;
12124 void *argp2 = 0 ;
12125 int res2 = 0 ;
12126 PyObject * obj0 = 0 ;
12127 PyObject * obj1 = 0 ;
12128 char * kwnames[] = {
12129 (char *) "self",(char *) "font", NULL
12130 };
12131
12132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12134 if (!SWIG_IsOK(res1)) {
12135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12136 }
12137 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12138 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12139 if (!SWIG_IsOK(res2)) {
12140 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12141 }
12142 if (!argp2) {
12143 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12144 }
12145 arg2 = reinterpret_cast< wxFont * >(argp2);
12146 {
12147 PyThreadState* __tstate = wxPyBeginAllowThreads();
12148 (arg1)->InitFromFont((wxFont const &)*arg2);
12149 wxPyEndAllowThreads(__tstate);
12150 if (PyErr_Occurred()) SWIG_fail;
12151 }
12152 resultobj = SWIG_Py_Void();
12153 return resultobj;
12154fail:
12155 return NULL;
d55e5bfc
RD
12156}
12157
12158
1bd55598
RD
12159SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12160 PyObject *resultobj = 0;
12161 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12162 int result;
12163 void *argp1 = 0 ;
12164 int res1 = 0 ;
12165 PyObject *swig_obj[1] ;
12166
12167 if (!args) SWIG_fail;
12168 swig_obj[0] = args;
12169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12170 if (!SWIG_IsOK(res1)) {
12171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12172 }
12173 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12174 {
12175 PyThreadState* __tstate = wxPyBeginAllowThreads();
12176 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12177 wxPyEndAllowThreads(__tstate);
12178 if (PyErr_Occurred()) SWIG_fail;
12179 }
12180 resultobj = SWIG_From_int(static_cast< int >(result));
12181 return resultobj;
12182fail:
12183 return NULL;
d55e5bfc
RD
12184}
12185
12186
1bd55598
RD
12187SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12188 PyObject *resultobj = 0;
12189 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12190 wxFontStyle result;
12191 void *argp1 = 0 ;
12192 int res1 = 0 ;
12193 PyObject *swig_obj[1] ;
12194
12195 if (!args) SWIG_fail;
12196 swig_obj[0] = args;
12197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12198 if (!SWIG_IsOK(res1)) {
12199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12200 }
12201 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12202 {
12203 PyThreadState* __tstate = wxPyBeginAllowThreads();
12204 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12205 wxPyEndAllowThreads(__tstate);
12206 if (PyErr_Occurred()) SWIG_fail;
12207 }
12208 resultobj = SWIG_From_int(static_cast< int >(result));
12209 return resultobj;
12210fail:
12211 return NULL;
d55e5bfc
RD
12212}
12213
12214
1bd55598
RD
12215SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12216 PyObject *resultobj = 0;
12217 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12218 wxFontWeight result;
12219 void *argp1 = 0 ;
12220 int res1 = 0 ;
12221 PyObject *swig_obj[1] ;
12222
12223 if (!args) SWIG_fail;
12224 swig_obj[0] = args;
12225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12226 if (!SWIG_IsOK(res1)) {
12227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12228 }
12229 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12230 {
12231 PyThreadState* __tstate = wxPyBeginAllowThreads();
12232 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12233 wxPyEndAllowThreads(__tstate);
12234 if (PyErr_Occurred()) SWIG_fail;
12235 }
12236 resultobj = SWIG_From_int(static_cast< int >(result));
12237 return resultobj;
12238fail:
12239 return NULL;
d55e5bfc
RD
12240}
12241
12242
1bd55598
RD
12243SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12244 PyObject *resultobj = 0;
12245 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12246 bool result;
12247 void *argp1 = 0 ;
12248 int res1 = 0 ;
12249 PyObject *swig_obj[1] ;
12250
12251 if (!args) SWIG_fail;
12252 swig_obj[0] = args;
12253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12254 if (!SWIG_IsOK(res1)) {
12255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12256 }
12257 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12258 {
12259 PyThreadState* __tstate = wxPyBeginAllowThreads();
12260 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12261 wxPyEndAllowThreads(__tstate);
12262 if (PyErr_Occurred()) SWIG_fail;
12263 }
12264 {
12265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12266 }
12267 return resultobj;
12268fail:
12269 return NULL;
d55e5bfc
RD
12270}
12271
12272
1bd55598
RD
12273SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12274 PyObject *resultobj = 0;
12275 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12276 wxString result;
12277 void *argp1 = 0 ;
12278 int res1 = 0 ;
12279 PyObject *swig_obj[1] ;
12280
12281 if (!args) SWIG_fail;
12282 swig_obj[0] = args;
12283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12284 if (!SWIG_IsOK(res1)) {
12285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12286 }
12287 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12288 {
12289 PyThreadState* __tstate = wxPyBeginAllowThreads();
12290 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12291 wxPyEndAllowThreads(__tstate);
12292 if (PyErr_Occurred()) SWIG_fail;
12293 }
12294 {
12295#if wxUSE_UNICODE
12296 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12297#else
12298 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12299#endif
12300 }
12301 return resultobj;
12302fail:
12303 return NULL;
d55e5bfc
RD
12304}
12305
12306
1bd55598
RD
12307SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12308 PyObject *resultobj = 0;
12309 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12310 wxFontFamily result;
12311 void *argp1 = 0 ;
12312 int res1 = 0 ;
12313 PyObject *swig_obj[1] ;
12314
12315 if (!args) SWIG_fail;
12316 swig_obj[0] = args;
12317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12318 if (!SWIG_IsOK(res1)) {
12319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12320 }
12321 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12322 {
12323 PyThreadState* __tstate = wxPyBeginAllowThreads();
12324 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12325 wxPyEndAllowThreads(__tstate);
12326 if (PyErr_Occurred()) SWIG_fail;
12327 }
12328 resultobj = SWIG_From_int(static_cast< int >(result));
12329 return resultobj;
12330fail:
12331 return NULL;
d55e5bfc
RD
12332}
12333
12334
1bd55598
RD
12335SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12336 PyObject *resultobj = 0;
12337 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12338 wxFontEncoding result;
12339 void *argp1 = 0 ;
12340 int res1 = 0 ;
12341 PyObject *swig_obj[1] ;
12342
12343 if (!args) SWIG_fail;
12344 swig_obj[0] = args;
12345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12346 if (!SWIG_IsOK(res1)) {
12347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12348 }
12349 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12350 {
12351 PyThreadState* __tstate = wxPyBeginAllowThreads();
12352 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12353 wxPyEndAllowThreads(__tstate);
12354 if (PyErr_Occurred()) SWIG_fail;
12355 }
12356 resultobj = SWIG_From_int(static_cast< int >(result));
12357 return resultobj;
12358fail:
12359 return NULL;
12360}
12361
12362
12363SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12364 PyObject *resultobj = 0;
12365 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12366 int arg2 ;
12367 void *argp1 = 0 ;
12368 int res1 = 0 ;
12369 int val2 ;
12370 int ecode2 = 0 ;
12371 PyObject * obj0 = 0 ;
12372 PyObject * obj1 = 0 ;
12373 char * kwnames[] = {
12374 (char *) "self",(char *) "pointsize", NULL
12375 };
12376
12377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12379 if (!SWIG_IsOK(res1)) {
12380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12381 }
12382 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12383 ecode2 = SWIG_AsVal_int(obj1, &val2);
12384 if (!SWIG_IsOK(ecode2)) {
12385 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12386 }
12387 arg2 = static_cast< int >(val2);
12388 {
12389 PyThreadState* __tstate = wxPyBeginAllowThreads();
12390 (arg1)->SetPointSize(arg2);
12391 wxPyEndAllowThreads(__tstate);
12392 if (PyErr_Occurred()) SWIG_fail;
12393 }
12394 resultobj = SWIG_Py_Void();
12395 return resultobj;
12396fail:
12397 return NULL;
12398}
12399
12400
12401SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12402 PyObject *resultobj = 0;
12403 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12404 wxFontStyle arg2 ;
12405 void *argp1 = 0 ;
12406 int res1 = 0 ;
12407 int val2 ;
12408 int ecode2 = 0 ;
12409 PyObject * obj0 = 0 ;
12410 PyObject * obj1 = 0 ;
12411 char * kwnames[] = {
12412 (char *) "self",(char *) "style", NULL
12413 };
12414
12415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12417 if (!SWIG_IsOK(res1)) {
12418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12419 }
12420 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12421 ecode2 = SWIG_AsVal_int(obj1, &val2);
12422 if (!SWIG_IsOK(ecode2)) {
12423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12424 }
12425 arg2 = static_cast< wxFontStyle >(val2);
12426 {
12427 PyThreadState* __tstate = wxPyBeginAllowThreads();
12428 (arg1)->SetStyle(arg2);
12429 wxPyEndAllowThreads(__tstate);
12430 if (PyErr_Occurred()) SWIG_fail;
12431 }
12432 resultobj = SWIG_Py_Void();
12433 return resultobj;
12434fail:
12435 return NULL;
12436}
12437
12438
12439SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12440 PyObject *resultobj = 0;
12441 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12442 wxFontWeight arg2 ;
12443 void *argp1 = 0 ;
12444 int res1 = 0 ;
12445 int val2 ;
12446 int ecode2 = 0 ;
12447 PyObject * obj0 = 0 ;
12448 PyObject * obj1 = 0 ;
12449 char * kwnames[] = {
12450 (char *) "self",(char *) "weight", NULL
12451 };
12452
12453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12455 if (!SWIG_IsOK(res1)) {
12456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12457 }
12458 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12459 ecode2 = SWIG_AsVal_int(obj1, &val2);
12460 if (!SWIG_IsOK(ecode2)) {
12461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12462 }
12463 arg2 = static_cast< wxFontWeight >(val2);
12464 {
12465 PyThreadState* __tstate = wxPyBeginAllowThreads();
12466 (arg1)->SetWeight(arg2);
12467 wxPyEndAllowThreads(__tstate);
12468 if (PyErr_Occurred()) SWIG_fail;
12469 }
12470 resultobj = SWIG_Py_Void();
12471 return resultobj;
12472fail:
12473 return NULL;
12474}
12475
12476
12477SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12478 PyObject *resultobj = 0;
12479 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12480 bool arg2 ;
12481 void *argp1 = 0 ;
12482 int res1 = 0 ;
12483 bool val2 ;
12484 int ecode2 = 0 ;
12485 PyObject * obj0 = 0 ;
12486 PyObject * obj1 = 0 ;
12487 char * kwnames[] = {
12488 (char *) "self",(char *) "underlined", NULL
12489 };
12490
12491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12493 if (!SWIG_IsOK(res1)) {
12494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12495 }
12496 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12497 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12498 if (!SWIG_IsOK(ecode2)) {
12499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12500 }
12501 arg2 = static_cast< bool >(val2);
12502 {
12503 PyThreadState* __tstate = wxPyBeginAllowThreads();
12504 (arg1)->SetUnderlined(arg2);
12505 wxPyEndAllowThreads(__tstate);
12506 if (PyErr_Occurred()) SWIG_fail;
12507 }
12508 resultobj = SWIG_Py_Void();
12509 return resultobj;
12510fail:
12511 return NULL;
12512}
12513
12514
12515SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12516 PyObject *resultobj = 0;
12517 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12518 wxString arg2 ;
704eda0c 12519 bool result;
1bd55598
RD
12520 void *argp1 = 0 ;
12521 int res1 = 0 ;
12522 PyObject * obj0 = 0 ;
12523 PyObject * obj1 = 0 ;
12524 char * kwnames[] = {
12525 (char *) "self",(char *) "facename", NULL
12526 };
12527
12528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12530 if (!SWIG_IsOK(res1)) {
12531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12532 }
12533 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12534 {
12535 wxString* sptr = wxString_in_helper(obj1);
12536 if (sptr == NULL) SWIG_fail;
12537 arg2 = *sptr;
12538 delete sptr;
12539 }
12540 {
12541 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12542 result = (bool)(arg1)->SetFaceName(arg2);
1bd55598
RD
12543 wxPyEndAllowThreads(__tstate);
12544 if (PyErr_Occurred()) SWIG_fail;
12545 }
704eda0c
RD
12546 {
12547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12548 }
1bd55598
RD
12549 return resultobj;
12550fail:
12551 return NULL;
12552}
12553
12554
12555SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12556 PyObject *resultobj = 0;
12557 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12558 wxFontFamily arg2 ;
12559 void *argp1 = 0 ;
12560 int res1 = 0 ;
12561 int val2 ;
12562 int ecode2 = 0 ;
12563 PyObject * obj0 = 0 ;
12564 PyObject * obj1 = 0 ;
12565 char * kwnames[] = {
12566 (char *) "self",(char *) "family", NULL
12567 };
12568
12569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12571 if (!SWIG_IsOK(res1)) {
12572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12573 }
12574 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12575 ecode2 = SWIG_AsVal_int(obj1, &val2);
12576 if (!SWIG_IsOK(ecode2)) {
12577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12578 }
12579 arg2 = static_cast< wxFontFamily >(val2);
12580 {
12581 PyThreadState* __tstate = wxPyBeginAllowThreads();
12582 (arg1)->SetFamily(arg2);
12583 wxPyEndAllowThreads(__tstate);
12584 if (PyErr_Occurred()) SWIG_fail;
12585 }
12586 resultobj = SWIG_Py_Void();
12587 return resultobj;
12588fail:
12589 return NULL;
12590}
12591
12592
12593SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12594 PyObject *resultobj = 0;
12595 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12596 wxFontEncoding arg2 ;
12597 void *argp1 = 0 ;
12598 int res1 = 0 ;
12599 int val2 ;
12600 int ecode2 = 0 ;
12601 PyObject * obj0 = 0 ;
12602 PyObject * obj1 = 0 ;
12603 char * kwnames[] = {
12604 (char *) "self",(char *) "encoding", NULL
12605 };
12606
12607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12609 if (!SWIG_IsOK(res1)) {
12610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12611 }
12612 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12613 ecode2 = SWIG_AsVal_int(obj1, &val2);
12614 if (!SWIG_IsOK(ecode2)) {
12615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12616 }
12617 arg2 = static_cast< wxFontEncoding >(val2);
12618 {
12619 PyThreadState* __tstate = wxPyBeginAllowThreads();
12620 (arg1)->SetEncoding(arg2);
12621 wxPyEndAllowThreads(__tstate);
12622 if (PyErr_Occurred()) SWIG_fail;
12623 }
12624 resultobj = SWIG_Py_Void();
12625 return resultobj;
12626fail:
12627 return NULL;
12628}
12629
12630
12631SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12632 PyObject *resultobj = 0;
12633 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12634 wxString *arg2 = 0 ;
12635 bool result;
12636 void *argp1 = 0 ;
12637 int res1 = 0 ;
12638 bool temp2 = false ;
12639 PyObject * obj0 = 0 ;
12640 PyObject * obj1 = 0 ;
12641 char * kwnames[] = {
12642 (char *) "self",(char *) "s", NULL
12643 };
12644
12645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12647 if (!SWIG_IsOK(res1)) {
12648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12649 }
12650 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12651 {
12652 arg2 = wxString_in_helper(obj1);
12653 if (arg2 == NULL) SWIG_fail;
12654 temp2 = true;
12655 }
12656 {
12657 PyThreadState* __tstate = wxPyBeginAllowThreads();
12658 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12659 wxPyEndAllowThreads(__tstate);
12660 if (PyErr_Occurred()) SWIG_fail;
12661 }
12662 {
12663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12664 }
12665 {
12666 if (temp2)
12667 delete arg2;
12668 }
12669 return resultobj;
12670fail:
12671 {
12672 if (temp2)
12673 delete arg2;
12674 }
12675 return NULL;
d55e5bfc
RD
12676}
12677
12678
1bd55598
RD
12679SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12680 PyObject *resultobj = 0;
12681 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12682 wxString result;
12683 void *argp1 = 0 ;
12684 int res1 = 0 ;
12685 PyObject *swig_obj[1] ;
12686
12687 if (!args) SWIG_fail;
12688 swig_obj[0] = args;
12689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12690 if (!SWIG_IsOK(res1)) {
12691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12692 }
12693 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12694 {
12695 PyThreadState* __tstate = wxPyBeginAllowThreads();
12696 result = ((wxNativeFontInfo const *)arg1)->ToString();
12697 wxPyEndAllowThreads(__tstate);
12698 if (PyErr_Occurred()) SWIG_fail;
12699 }
12700 {
12701#if wxUSE_UNICODE
12702 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12703#else
12704 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12705#endif
12706 }
12707 return resultobj;
12708fail:
12709 return NULL;
d55e5bfc
RD
12710}
12711
12712
1bd55598
RD
12713SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12714 PyObject *resultobj = 0;
12715 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12716 wxString result;
12717 void *argp1 = 0 ;
12718 int res1 = 0 ;
12719 PyObject *swig_obj[1] ;
12720
12721 if (!args) SWIG_fail;
12722 swig_obj[0] = args;
12723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12724 if (!SWIG_IsOK(res1)) {
12725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12726 }
12727 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12728 {
12729 PyThreadState* __tstate = wxPyBeginAllowThreads();
12730 result = wxNativeFontInfo___str__(arg1);
12731 wxPyEndAllowThreads(__tstate);
12732 if (PyErr_Occurred()) SWIG_fail;
12733 }
12734 {
12735#if wxUSE_UNICODE
12736 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12737#else
12738 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12739#endif
12740 }
12741 return resultobj;
12742fail:
12743 return NULL;
12744}
12745
12746
12747SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12748 PyObject *resultobj = 0;
12749 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12750 wxString *arg2 = 0 ;
12751 bool result;
12752 void *argp1 = 0 ;
12753 int res1 = 0 ;
12754 bool temp2 = false ;
12755 PyObject * obj0 = 0 ;
12756 PyObject * obj1 = 0 ;
12757 char * kwnames[] = {
12758 (char *) "self",(char *) "s", NULL
12759 };
12760
12761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12763 if (!SWIG_IsOK(res1)) {
12764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12765 }
12766 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12767 {
12768 arg2 = wxString_in_helper(obj1);
12769 if (arg2 == NULL) SWIG_fail;
12770 temp2 = true;
12771 }
12772 {
12773 PyThreadState* __tstate = wxPyBeginAllowThreads();
12774 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12775 wxPyEndAllowThreads(__tstate);
12776 if (PyErr_Occurred()) SWIG_fail;
12777 }
12778 {
12779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12780 }
12781 {
12782 if (temp2)
12783 delete arg2;
12784 }
12785 return resultobj;
12786fail:
12787 {
12788 if (temp2)
12789 delete arg2;
12790 }
12791 return NULL;
d55e5bfc
RD
12792}
12793
12794
1bd55598
RD
12795SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12796 PyObject *resultobj = 0;
12797 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12798 wxString result;
12799 void *argp1 = 0 ;
12800 int res1 = 0 ;
12801 PyObject *swig_obj[1] ;
12802
12803 if (!args) SWIG_fail;
12804 swig_obj[0] = args;
12805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12806 if (!SWIG_IsOK(res1)) {
12807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12808 }
12809 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12810 {
12811 PyThreadState* __tstate = wxPyBeginAllowThreads();
12812 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12813 wxPyEndAllowThreads(__tstate);
12814 if (PyErr_Occurred()) SWIG_fail;
12815 }
12816 {
36ed4f51 12817#if wxUSE_UNICODE
1bd55598 12818 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 12819#else
1bd55598 12820 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 12821#endif
1bd55598
RD
12822 }
12823 return resultobj;
12824fail:
12825 return NULL;
d55e5bfc
RD
12826}
12827
12828
1bd55598
RD
12829SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12830 PyObject *obj;
12831 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12832 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12833 return SWIG_Py_Void();
d55e5bfc
RD
12834}
12835
1bd55598
RD
12836SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12837 return SWIG_Python_InitShadowInstance(args);
12838}
d55e5bfc 12839
1bd55598
RD
12840SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12841 PyObject *resultobj = 0;
12842 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12843 wxString *arg2 = (wxString *) 0 ;
12844 void *argp1 = 0 ;
12845 int res1 = 0 ;
12846 bool temp2 = false ;
12847 PyObject *swig_obj[2] ;
12848
12849 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12851 if (!SWIG_IsOK(res1)) {
12852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12853 }
12854 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12855 {
12856 arg2 = wxString_in_helper(swig_obj[1]);
12857 if (arg2 == NULL) SWIG_fail;
12858 temp2 = true;
12859 }
12860 if (arg1) (arg1)->facename = *arg2;
12861
12862 resultobj = SWIG_Py_Void();
12863 {
12864 if (temp2)
12865 delete arg2;
12866 }
12867 return resultobj;
12868fail:
12869 {
12870 if (temp2)
12871 delete arg2;
12872 }
12873 return NULL;
d55e5bfc
RD
12874}
12875
12876
1bd55598
RD
12877SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12878 PyObject *resultobj = 0;
12879 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12880 wxString *result = 0 ;
12881 void *argp1 = 0 ;
12882 int res1 = 0 ;
12883 PyObject *swig_obj[1] ;
12884
12885 if (!args) SWIG_fail;
12886 swig_obj[0] = args;
12887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12888 if (!SWIG_IsOK(res1)) {
12889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12890 }
12891 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12892 result = (wxString *)& ((arg1)->facename);
12893 {
12894#if wxUSE_UNICODE
12895 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12896#else
12897 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12898#endif
12899 }
12900 return resultobj;
12901fail:
12902 return NULL;
d55e5bfc
RD
12903}
12904
12905
1bd55598
RD
12906SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12907 PyObject *resultobj = 0;
12908 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12909 wxFontEncoding arg2 ;
12910 void *argp1 = 0 ;
12911 int res1 = 0 ;
12912 int val2 ;
12913 int ecode2 = 0 ;
12914 PyObject *swig_obj[2] ;
12915
12916 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12918 if (!SWIG_IsOK(res1)) {
12919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12920 }
12921 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12922 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12923 if (!SWIG_IsOK(ecode2)) {
12924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12925 }
12926 arg2 = static_cast< wxFontEncoding >(val2);
12927 if (arg1) (arg1)->encoding = arg2;
12928
12929 resultobj = SWIG_Py_Void();
12930 return resultobj;
12931fail:
12932 return NULL;
d55e5bfc
RD
12933}
12934
12935
1bd55598
RD
12936SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12937 PyObject *resultobj = 0;
12938 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12939 wxFontEncoding result;
12940 void *argp1 = 0 ;
12941 int res1 = 0 ;
12942 PyObject *swig_obj[1] ;
12943
12944 if (!args) SWIG_fail;
12945 swig_obj[0] = args;
12946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12947 if (!SWIG_IsOK(res1)) {
12948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12949 }
12950 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12951 result = (wxFontEncoding) ((arg1)->encoding);
12952 resultobj = SWIG_From_int(static_cast< int >(result));
12953 return resultobj;
12954fail:
12955 return NULL;
d07096ad
RD
12956}
12957
12958
1bd55598
RD
12959SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12960 PyObject *resultobj = 0;
12961 wxNativeEncodingInfo *result = 0 ;
12962
12963 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12964 {
12965 PyThreadState* __tstate = wxPyBeginAllowThreads();
12966 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12967 wxPyEndAllowThreads(__tstate);
12968 if (PyErr_Occurred()) SWIG_fail;
12969 }
12970 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12971 return resultobj;
12972fail:
12973 return NULL;
d55e5bfc
RD
12974}
12975
12976
1bd55598
RD
12977SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12978 PyObject *resultobj = 0;
12979 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12980 void *argp1 = 0 ;
12981 int res1 = 0 ;
12982 PyObject *swig_obj[1] ;
12983
12984 if (!args) SWIG_fail;
12985 swig_obj[0] = args;
12986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12987 if (!SWIG_IsOK(res1)) {
12988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12989 }
12990 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12991 {
12992 PyThreadState* __tstate = wxPyBeginAllowThreads();
12993 delete arg1;
d55e5bfc 12994
1bd55598
RD
12995 wxPyEndAllowThreads(__tstate);
12996 if (PyErr_Occurred()) SWIG_fail;
12997 }
12998 resultobj = SWIG_Py_Void();
12999 return resultobj;
13000fail:
13001 return NULL;
13002}
13003
13004
13005SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13006 PyObject *resultobj = 0;
13007 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13008 wxString *arg2 = 0 ;
13009 bool result;
13010 void *argp1 = 0 ;
13011 int res1 = 0 ;
13012 bool temp2 = false ;
13013 PyObject * obj0 = 0 ;
13014 PyObject * obj1 = 0 ;
13015 char * kwnames[] = {
13016 (char *) "self",(char *) "s", NULL
13017 };
13018
13019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13021 if (!SWIG_IsOK(res1)) {
13022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13023 }
13024 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13025 {
13026 arg2 = wxString_in_helper(obj1);
13027 if (arg2 == NULL) SWIG_fail;
13028 temp2 = true;
13029 }
13030 {
13031 PyThreadState* __tstate = wxPyBeginAllowThreads();
13032 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13033 wxPyEndAllowThreads(__tstate);
13034 if (PyErr_Occurred()) SWIG_fail;
13035 }
13036 {
13037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13038 }
13039 {
13040 if (temp2)
13041 delete arg2;
13042 }
13043 return resultobj;
13044fail:
13045 {
13046 if (temp2)
13047 delete arg2;
13048 }
13049 return NULL;
d55e5bfc
RD
13050}
13051
13052
1bd55598
RD
13053SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13054 PyObject *resultobj = 0;
13055 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13056 wxString result;
13057 void *argp1 = 0 ;
13058 int res1 = 0 ;
13059 PyObject *swig_obj[1] ;
13060
13061 if (!args) SWIG_fail;
13062 swig_obj[0] = args;
13063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13064 if (!SWIG_IsOK(res1)) {
13065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13066 }
13067 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13068 {
13069 PyThreadState* __tstate = wxPyBeginAllowThreads();
13070 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13071 wxPyEndAllowThreads(__tstate);
13072 if (PyErr_Occurred()) SWIG_fail;
13073 }
13074 {
13075#if wxUSE_UNICODE
13076 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13077#else
13078 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13079#endif
13080 }
13081 return resultobj;
13082fail:
13083 return NULL;
d55e5bfc
RD
13084}
13085
13086
1bd55598
RD
13087SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13088 PyObject *obj;
13089 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13090 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13091 return SWIG_Py_Void();
d55e5bfc
RD
13092}
13093
1bd55598
RD
13094SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13095 return SWIG_Python_InitShadowInstance(args);
13096}
d55e5bfc 13097
1bd55598
RD
13098SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13099 PyObject *resultobj = 0;
13100 wxFontEncoding arg1 ;
13101 wxNativeEncodingInfo *result = 0 ;
13102 int val1 ;
13103 int ecode1 = 0 ;
13104 PyObject * obj0 = 0 ;
13105 char * kwnames[] = {
13106 (char *) "encoding", NULL
13107 };
13108
13109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13110 ecode1 = SWIG_AsVal_int(obj0, &val1);
13111 if (!SWIG_IsOK(ecode1)) {
13112 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13113 }
13114 arg1 = static_cast< wxFontEncoding >(val1);
13115 {
13116 PyThreadState* __tstate = wxPyBeginAllowThreads();
13117 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13118 wxPyEndAllowThreads(__tstate);
13119 if (PyErr_Occurred()) SWIG_fail;
13120 }
13121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13122 return resultobj;
13123fail:
13124 return NULL;
13125}
13126
13127
13128SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13129 PyObject *resultobj = 0;
13130 wxNativeEncodingInfo *arg1 = 0 ;
13131 bool result;
13132 void *argp1 = 0 ;
13133 int res1 = 0 ;
13134 PyObject * obj0 = 0 ;
13135 char * kwnames[] = {
13136 (char *) "info", NULL
13137 };
13138
13139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13140 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13141 if (!SWIG_IsOK(res1)) {
13142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13143 }
13144 if (!argp1) {
13145 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13146 }
13147 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13148 {
13149 PyThreadState* __tstate = wxPyBeginAllowThreads();
13150 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13151 wxPyEndAllowThreads(__tstate);
13152 if (PyErr_Occurred()) SWIG_fail;
13153 }
13154 {
13155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13156 }
13157 return resultobj;
13158fail:
13159 return NULL;
d55e5bfc
RD
13160}
13161
13162
1bd55598
RD
13163SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13164 PyObject *resultobj = 0;
13165 wxFontMapper *result = 0 ;
13166
13167 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13168 {
13169 PyThreadState* __tstate = wxPyBeginAllowThreads();
13170 result = (wxFontMapper *)new wxFontMapper();
13171 wxPyEndAllowThreads(__tstate);
13172 if (PyErr_Occurred()) SWIG_fail;
13173 }
13174 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13175 return resultobj;
13176fail:
13177 return NULL;
d55e5bfc
RD
13178}
13179
13180
1bd55598
RD
13181SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13182 PyObject *resultobj = 0;
13183 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13184 void *argp1 = 0 ;
13185 int res1 = 0 ;
13186 PyObject *swig_obj[1] ;
13187
13188 if (!args) SWIG_fail;
13189 swig_obj[0] = args;
13190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13191 if (!SWIG_IsOK(res1)) {
13192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13193 }
13194 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13195 {
13196 PyThreadState* __tstate = wxPyBeginAllowThreads();
13197 delete arg1;
d55e5bfc 13198
1bd55598
RD
13199 wxPyEndAllowThreads(__tstate);
13200 if (PyErr_Occurred()) SWIG_fail;
13201 }
13202 resultobj = SWIG_Py_Void();
13203 return resultobj;
13204fail:
13205 return NULL;
d55e5bfc
RD
13206}
13207
13208
1bd55598
RD
13209SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13210 PyObject *resultobj = 0;
13211 wxFontMapper *result = 0 ;
13212
13213 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13214 {
13215 PyThreadState* __tstate = wxPyBeginAllowThreads();
13216 result = (wxFontMapper *)wxFontMapper::Get();
13217 wxPyEndAllowThreads(__tstate);
13218 if (PyErr_Occurred()) SWIG_fail;
13219 }
13220 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13221 return resultobj;
13222fail:
13223 return NULL;
13224}
13225
13226
13227SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13228 PyObject *resultobj = 0;
13229 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13230 wxFontMapper *result = 0 ;
13231 void *argp1 = 0 ;
13232 int res1 = 0 ;
13233 PyObject * obj0 = 0 ;
13234 char * kwnames[] = {
13235 (char *) "mapper", NULL
13236 };
13237
13238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13240 if (!SWIG_IsOK(res1)) {
13241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13242 }
13243 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13244 {
13245 PyThreadState* __tstate = wxPyBeginAllowThreads();
13246 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13247 wxPyEndAllowThreads(__tstate);
13248 if (PyErr_Occurred()) SWIG_fail;
13249 }
13250 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13251 return resultobj;
13252fail:
13253 return NULL;
13254}
13255
13256
13257SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13258 PyObject *resultobj = 0;
13259 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13260 wxString *arg2 = 0 ;
13261 bool arg3 = (bool) true ;
13262 wxFontEncoding result;
13263 void *argp1 = 0 ;
13264 int res1 = 0 ;
13265 bool temp2 = false ;
13266 bool val3 ;
13267 int ecode3 = 0 ;
13268 PyObject * obj0 = 0 ;
13269 PyObject * obj1 = 0 ;
13270 PyObject * obj2 = 0 ;
13271 char * kwnames[] = {
13272 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13273 };
13274
13275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13277 if (!SWIG_IsOK(res1)) {
13278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13279 }
13280 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13281 {
13282 arg2 = wxString_in_helper(obj1);
13283 if (arg2 == NULL) SWIG_fail;
13284 temp2 = true;
13285 }
13286 if (obj2) {
13287 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13288 if (!SWIG_IsOK(ecode3)) {
13289 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13290 }
13291 arg3 = static_cast< bool >(val3);
13292 }
13293 {
13294 PyThreadState* __tstate = wxPyBeginAllowThreads();
13295 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13296 wxPyEndAllowThreads(__tstate);
13297 if (PyErr_Occurred()) SWIG_fail;
13298 }
13299 resultobj = SWIG_From_int(static_cast< int >(result));
13300 {
13301 if (temp2)
13302 delete arg2;
13303 }
13304 return resultobj;
13305fail:
13306 {
13307 if (temp2)
13308 delete arg2;
13309 }
13310 return NULL;
d55e5bfc
RD
13311}
13312
13313
1bd55598
RD
13314SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13315 PyObject *resultobj = 0;
13316 size_t result;
13317
13318 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13319 {
13320 PyThreadState* __tstate = wxPyBeginAllowThreads();
13321 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13322 wxPyEndAllowThreads(__tstate);
13323 if (PyErr_Occurred()) SWIG_fail;
13324 }
13325 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13326 return resultobj;
13327fail:
13328 return NULL;
13329}
13330
13331
13332SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13333 PyObject *resultobj = 0;
13334 size_t arg1 ;
13335 wxFontEncoding result;
13336 size_t val1 ;
13337 int ecode1 = 0 ;
13338 PyObject * obj0 = 0 ;
13339 char * kwnames[] = {
13340 (char *) "n", NULL
13341 };
13342
13343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13344 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13345 if (!SWIG_IsOK(ecode1)) {
13346 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13347 }
13348 arg1 = static_cast< size_t >(val1);
13349 {
13350 PyThreadState* __tstate = wxPyBeginAllowThreads();
13351 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13352 wxPyEndAllowThreads(__tstate);
13353 if (PyErr_Occurred()) SWIG_fail;
13354 }
13355 resultobj = SWIG_From_int(static_cast< int >(result));
13356 return resultobj;
13357fail:
13358 return NULL;
13359}
13360
13361
13362SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13363 PyObject *resultobj = 0;
13364 wxFontEncoding arg1 ;
13365 wxString result;
13366 int val1 ;
13367 int ecode1 = 0 ;
13368 PyObject * obj0 = 0 ;
13369 char * kwnames[] = {
13370 (char *) "encoding", NULL
13371 };
13372
13373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13374 ecode1 = SWIG_AsVal_int(obj0, &val1);
13375 if (!SWIG_IsOK(ecode1)) {
13376 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13377 }
13378 arg1 = static_cast< wxFontEncoding >(val1);
13379 {
13380 PyThreadState* __tstate = wxPyBeginAllowThreads();
13381 result = wxFontMapper::GetEncodingName(arg1);
13382 wxPyEndAllowThreads(__tstate);
13383 if (PyErr_Occurred()) SWIG_fail;
13384 }
13385 {
13386#if wxUSE_UNICODE
13387 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13388#else
13389 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13390#endif
13391 }
13392 return resultobj;
13393fail:
13394 return NULL;
d55e5bfc
RD
13395}
13396
13397
1bd55598
RD
13398SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13399 PyObject *resultobj = 0;
13400 wxFontEncoding arg1 ;
13401 wxString result;
13402 int val1 ;
13403 int ecode1 = 0 ;
13404 PyObject * obj0 = 0 ;
13405 char * kwnames[] = {
13406 (char *) "encoding", NULL
13407 };
13408
13409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13410 ecode1 = SWIG_AsVal_int(obj0, &val1);
13411 if (!SWIG_IsOK(ecode1)) {
13412 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13413 }
13414 arg1 = static_cast< wxFontEncoding >(val1);
13415 {
13416 PyThreadState* __tstate = wxPyBeginAllowThreads();
13417 result = wxFontMapper::GetEncodingDescription(arg1);
13418 wxPyEndAllowThreads(__tstate);
13419 if (PyErr_Occurred()) SWIG_fail;
13420 }
13421 {
13422#if wxUSE_UNICODE
13423 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13424#else
13425 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13426#endif
13427 }
13428 return resultobj;
13429fail:
13430 return NULL;
d55e5bfc
RD
13431}
13432
13433
1bd55598
RD
13434SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13435 PyObject *resultobj = 0;
13436 wxString *arg1 = 0 ;
13437 wxFontEncoding result;
13438 bool temp1 = false ;
13439 PyObject * obj0 = 0 ;
13440 char * kwnames[] = {
13441 (char *) "name", NULL
13442 };
13443
13444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13445 {
13446 arg1 = wxString_in_helper(obj0);
13447 if (arg1 == NULL) SWIG_fail;
13448 temp1 = true;
13449 }
13450 {
13451 PyThreadState* __tstate = wxPyBeginAllowThreads();
13452 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13453 wxPyEndAllowThreads(__tstate);
13454 if (PyErr_Occurred()) SWIG_fail;
13455 }
13456 resultobj = SWIG_From_int(static_cast< int >(result));
13457 {
13458 if (temp1)
13459 delete arg1;
13460 }
13461 return resultobj;
13462fail:
13463 {
13464 if (temp1)
13465 delete arg1;
13466 }
13467 return NULL;
d55e5bfc
RD
13468}
13469
13470
1bd55598
RD
13471SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13472 PyObject *resultobj = 0;
13473 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13474 wxString *arg2 = 0 ;
13475 void *argp1 = 0 ;
13476 int res1 = 0 ;
13477 bool temp2 = false ;
13478 PyObject * obj0 = 0 ;
13479 PyObject * obj1 = 0 ;
13480 char * kwnames[] = {
13481 (char *) "self",(char *) "prefix", NULL
13482 };
13483
13484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13486 if (!SWIG_IsOK(res1)) {
13487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13488 }
13489 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13490 {
13491 arg2 = wxString_in_helper(obj1);
13492 if (arg2 == NULL) SWIG_fail;
13493 temp2 = true;
13494 }
13495 {
13496 PyThreadState* __tstate = wxPyBeginAllowThreads();
13497 (arg1)->SetConfigPath((wxString const &)*arg2);
13498 wxPyEndAllowThreads(__tstate);
13499 if (PyErr_Occurred()) SWIG_fail;
13500 }
13501 resultobj = SWIG_Py_Void();
13502 {
13503 if (temp2)
13504 delete arg2;
13505 }
13506 return resultobj;
13507fail:
13508 {
13509 if (temp2)
13510 delete arg2;
13511 }
13512 return NULL;
13513}
13514
13515
13516SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13517 PyObject *resultobj = 0;
13518 wxString result;
13519
13520 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13521 {
13522 PyThreadState* __tstate = wxPyBeginAllowThreads();
13523 result = wxFontMapper::GetDefaultConfigPath();
13524 wxPyEndAllowThreads(__tstate);
13525 if (PyErr_Occurred()) SWIG_fail;
13526 }
13527 {
13528#if wxUSE_UNICODE
13529 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13530#else
13531 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13532#endif
13533 }
13534 return resultobj;
13535fail:
13536 return NULL;
13537}
13538
13539
13540SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13541 PyObject *resultobj = 0;
13542 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13543 wxFontEncoding arg2 ;
13544 wxString const &arg3_defvalue = wxPyEmptyString ;
13545 wxString *arg3 = (wxString *) &arg3_defvalue ;
13546 bool arg4 = (bool) true ;
13547 PyObject *result = 0 ;
13548 void *argp1 = 0 ;
13549 int res1 = 0 ;
13550 int val2 ;
13551 int ecode2 = 0 ;
13552 bool temp3 = false ;
13553 bool val4 ;
13554 int ecode4 = 0 ;
13555 PyObject * obj0 = 0 ;
13556 PyObject * obj1 = 0 ;
13557 PyObject * obj2 = 0 ;
13558 PyObject * obj3 = 0 ;
13559 char * kwnames[] = {
13560 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13561 };
13562
13563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13565 if (!SWIG_IsOK(res1)) {
13566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13567 }
13568 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13569 ecode2 = SWIG_AsVal_int(obj1, &val2);
13570 if (!SWIG_IsOK(ecode2)) {
13571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13572 }
13573 arg2 = static_cast< wxFontEncoding >(val2);
13574 if (obj2) {
36ed4f51 13575 {
1bd55598
RD
13576 arg3 = wxString_in_helper(obj2);
13577 if (arg3 == NULL) SWIG_fail;
13578 temp3 = true;
36ed4f51 13579 }
1bd55598
RD
13580 }
13581 if (obj3) {
13582 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13583 if (!SWIG_IsOK(ecode4)) {
13584 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13585 }
13586 arg4 = static_cast< bool >(val4);
13587 }
13588 {
13589 PyThreadState* __tstate = wxPyBeginAllowThreads();
13590 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13591 wxPyEndAllowThreads(__tstate);
13592 if (PyErr_Occurred()) SWIG_fail;
13593 }
13594 resultobj = result;
13595 {
13596 if (temp3)
13597 delete arg3;
13598 }
13599 return resultobj;
13600fail:
13601 {
13602 if (temp3)
13603 delete arg3;
13604 }
13605 return NULL;
13606}
13607
13608
13609SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13610 PyObject *resultobj = 0;
13611 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13612 wxFontEncoding arg2 ;
13613 wxString const &arg3_defvalue = wxPyEmptyString ;
13614 wxString *arg3 = (wxString *) &arg3_defvalue ;
13615 bool result;
13616 void *argp1 = 0 ;
13617 int res1 = 0 ;
13618 int val2 ;
13619 int ecode2 = 0 ;
13620 bool temp3 = false ;
13621 PyObject * obj0 = 0 ;
13622 PyObject * obj1 = 0 ;
13623 PyObject * obj2 = 0 ;
13624 char * kwnames[] = {
13625 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13626 };
13627
13628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13630 if (!SWIG_IsOK(res1)) {
13631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13632 }
13633 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13634 ecode2 = SWIG_AsVal_int(obj1, &val2);
13635 if (!SWIG_IsOK(ecode2)) {
13636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13637 }
13638 arg2 = static_cast< wxFontEncoding >(val2);
13639 if (obj2) {
36ed4f51 13640 {
1bd55598
RD
13641 arg3 = wxString_in_helper(obj2);
13642 if (arg3 == NULL) SWIG_fail;
13643 temp3 = true;
36ed4f51 13644 }
1bd55598
RD
13645 }
13646 {
13647 PyThreadState* __tstate = wxPyBeginAllowThreads();
13648 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13649 wxPyEndAllowThreads(__tstate);
13650 if (PyErr_Occurred()) SWIG_fail;
13651 }
13652 {
13653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13654 }
13655 {
13656 if (temp3)
13657 delete arg3;
13658 }
13659 return resultobj;
13660fail:
13661 {
13662 if (temp3)
13663 delete arg3;
13664 }
13665 return NULL;
13666}
13667
13668
13669SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13670 PyObject *resultobj = 0;
13671 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13672 wxWindow *arg2 = (wxWindow *) 0 ;
13673 void *argp1 = 0 ;
13674 int res1 = 0 ;
13675 void *argp2 = 0 ;
13676 int res2 = 0 ;
13677 PyObject * obj0 = 0 ;
13678 PyObject * obj1 = 0 ;
13679 char * kwnames[] = {
13680 (char *) "self",(char *) "parent", NULL
13681 };
13682
13683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13685 if (!SWIG_IsOK(res1)) {
13686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13687 }
13688 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13689 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13690 if (!SWIG_IsOK(res2)) {
13691 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13692 }
13693 arg2 = reinterpret_cast< wxWindow * >(argp2);
13694 {
13695 PyThreadState* __tstate = wxPyBeginAllowThreads();
13696 (arg1)->SetDialogParent(arg2);
13697 wxPyEndAllowThreads(__tstate);
13698 if (PyErr_Occurred()) SWIG_fail;
13699 }
13700 resultobj = SWIG_Py_Void();
13701 return resultobj;
13702fail:
13703 return NULL;
13704}
13705
13706
13707SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13708 PyObject *resultobj = 0;
13709 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13710 wxString *arg2 = 0 ;
13711 void *argp1 = 0 ;
13712 int res1 = 0 ;
13713 bool temp2 = false ;
13714 PyObject * obj0 = 0 ;
13715 PyObject * obj1 = 0 ;
13716 char * kwnames[] = {
13717 (char *) "self",(char *) "title", NULL
13718 };
13719
13720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13722 if (!SWIG_IsOK(res1)) {
13723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13724 }
13725 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13726 {
13727 arg2 = wxString_in_helper(obj1);
13728 if (arg2 == NULL) SWIG_fail;
13729 temp2 = true;
13730 }
13731 {
13732 PyThreadState* __tstate = wxPyBeginAllowThreads();
13733 (arg1)->SetDialogTitle((wxString const &)*arg2);
13734 wxPyEndAllowThreads(__tstate);
13735 if (PyErr_Occurred()) SWIG_fail;
13736 }
13737 resultobj = SWIG_Py_Void();
13738 {
13739 if (temp2)
13740 delete arg2;
13741 }
13742 return resultobj;
13743fail:
13744 {
13745 if (temp2)
13746 delete arg2;
13747 }
13748 return NULL;
13749}
13750
13751
13752SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13753 PyObject *obj;
13754 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13755 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13756 return SWIG_Py_Void();
13757}
13758
13759SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13760 return SWIG_Python_InitShadowInstance(args);
13761}
13762
13763SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13764 PyObject *resultobj = 0;
13765 int arg1 ;
13766 int arg2 ;
13767 int arg3 ;
13768 int arg4 ;
13769 bool arg5 = (bool) false ;
13770 wxString const &arg6_defvalue = wxPyEmptyString ;
13771 wxString *arg6 = (wxString *) &arg6_defvalue ;
13772 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13773 wxFont *result = 0 ;
13774 int val1 ;
13775 int ecode1 = 0 ;
13776 int val2 ;
13777 int ecode2 = 0 ;
13778 int val3 ;
13779 int ecode3 = 0 ;
13780 int val4 ;
13781 int ecode4 = 0 ;
13782 bool val5 ;
13783 int ecode5 = 0 ;
13784 bool temp6 = false ;
13785 int val7 ;
13786 int ecode7 = 0 ;
13787 PyObject * obj0 = 0 ;
13788 PyObject * obj1 = 0 ;
13789 PyObject * obj2 = 0 ;
13790 PyObject * obj3 = 0 ;
13791 PyObject * obj4 = 0 ;
13792 PyObject * obj5 = 0 ;
13793 PyObject * obj6 = 0 ;
13794 char * kwnames[] = {
13795 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13796 };
13797
13798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13799 ecode1 = SWIG_AsVal_int(obj0, &val1);
13800 if (!SWIG_IsOK(ecode1)) {
13801 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13802 }
13803 arg1 = static_cast< int >(val1);
13804 ecode2 = SWIG_AsVal_int(obj1, &val2);
13805 if (!SWIG_IsOK(ecode2)) {
13806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13807 }
13808 arg2 = static_cast< int >(val2);
13809 ecode3 = SWIG_AsVal_int(obj2, &val3);
13810 if (!SWIG_IsOK(ecode3)) {
13811 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13812 }
13813 arg3 = static_cast< int >(val3);
13814 ecode4 = SWIG_AsVal_int(obj3, &val4);
13815 if (!SWIG_IsOK(ecode4)) {
13816 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13817 }
13818 arg4 = static_cast< int >(val4);
13819 if (obj4) {
13820 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13821 if (!SWIG_IsOK(ecode5)) {
13822 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13823 }
13824 arg5 = static_cast< bool >(val5);
13825 }
13826 if (obj5) {
d55e5bfc 13827 {
1bd55598
RD
13828 arg6 = wxString_in_helper(obj5);
13829 if (arg6 == NULL) SWIG_fail;
13830 temp6 = true;
d55e5bfc 13831 }
1bd55598
RD
13832 }
13833 if (obj6) {
13834 ecode7 = SWIG_AsVal_int(obj6, &val7);
13835 if (!SWIG_IsOK(ecode7)) {
13836 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13837 }
13838 arg7 = static_cast< wxFontEncoding >(val7);
13839 }
13840 {
13841 if (!wxPyCheckForApp()) SWIG_fail;
13842 PyThreadState* __tstate = wxPyBeginAllowThreads();
13843 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13844 wxPyEndAllowThreads(__tstate);
13845 if (PyErr_Occurred()) SWIG_fail;
13846 }
13847 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13848 {
13849 if (temp6)
13850 delete arg6;
13851 }
13852 return resultobj;
13853fail:
13854 {
13855 if (temp6)
13856 delete arg6;
13857 }
13858 return NULL;
d55e5bfc
RD
13859}
13860
13861
1bd55598
RD
13862SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13863 PyObject *resultobj = 0;
13864 wxFont *arg1 = (wxFont *) 0 ;
13865 void *argp1 = 0 ;
13866 int res1 = 0 ;
13867 PyObject *swig_obj[1] ;
13868
13869 if (!args) SWIG_fail;
13870 swig_obj[0] = args;
13871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13872 if (!SWIG_IsOK(res1)) {
13873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13874 }
13875 arg1 = reinterpret_cast< wxFont * >(argp1);
13876 {
13877 PyThreadState* __tstate = wxPyBeginAllowThreads();
13878 delete arg1;
d55e5bfc 13879
1bd55598
RD
13880 wxPyEndAllowThreads(__tstate);
13881 if (PyErr_Occurred()) SWIG_fail;
13882 }
13883 resultobj = SWIG_Py_Void();
13884 return resultobj;
13885fail:
13886 return NULL;
13887}
13888
13889
13890SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13891 PyObject *resultobj = 0;
13892 wxNativeFontInfo *arg1 = 0 ;
13893 wxFont *result = 0 ;
13894 void *argp1 = 0 ;
13895 int res1 = 0 ;
13896 PyObject * obj0 = 0 ;
13897 char * kwnames[] = {
13898 (char *) "info", NULL
13899 };
13900
13901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13902 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13903 if (!SWIG_IsOK(res1)) {
13904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13905 }
13906 if (!argp1) {
13907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13908 }
13909 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13910 {
13911 if (!wxPyCheckForApp()) SWIG_fail;
13912 PyThreadState* __tstate = wxPyBeginAllowThreads();
13913 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13914 wxPyEndAllowThreads(__tstate);
13915 if (PyErr_Occurred()) SWIG_fail;
13916 }
13917 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13918 return resultobj;
13919fail:
13920 return NULL;
d55e5bfc
RD
13921}
13922
13923
1bd55598
RD
13924SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13925 PyObject *resultobj = 0;
13926 wxString *arg1 = 0 ;
13927 wxFont *result = 0 ;
13928 bool temp1 = false ;
13929 PyObject * obj0 = 0 ;
13930 char * kwnames[] = {
13931 (char *) "info", NULL
13932 };
13933
13934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13935 {
13936 arg1 = wxString_in_helper(obj0);
13937 if (arg1 == NULL) SWIG_fail;
13938 temp1 = true;
13939 }
13940 {
13941 if (!wxPyCheckForApp()) SWIG_fail;
13942 PyThreadState* __tstate = wxPyBeginAllowThreads();
13943 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13944 wxPyEndAllowThreads(__tstate);
13945 if (PyErr_Occurred()) SWIG_fail;
13946 }
13947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13948 {
13949 if (temp1)
13950 delete arg1;
13951 }
13952 return resultobj;
13953fail:
13954 {
13955 if (temp1)
13956 delete arg1;
13957 }
13958 return NULL;
13959}
13960
13961
13962SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13963 PyObject *resultobj = 0;
13964 int arg1 ;
13965 wxFontFamily arg2 ;
13966 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13967 wxString const &arg4_defvalue = wxPyEmptyString ;
13968 wxString *arg4 = (wxString *) &arg4_defvalue ;
13969 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13970 wxFont *result = 0 ;
13971 int val1 ;
13972 int ecode1 = 0 ;
13973 int val2 ;
13974 int ecode2 = 0 ;
13975 int val3 ;
13976 int ecode3 = 0 ;
13977 bool temp4 = false ;
13978 int val5 ;
13979 int ecode5 = 0 ;
13980 PyObject * obj0 = 0 ;
13981 PyObject * obj1 = 0 ;
13982 PyObject * obj2 = 0 ;
13983 PyObject * obj3 = 0 ;
13984 PyObject * obj4 = 0 ;
13985 char * kwnames[] = {
13986 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13987 };
13988
13989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13990 ecode1 = SWIG_AsVal_int(obj0, &val1);
13991 if (!SWIG_IsOK(ecode1)) {
13992 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13993 }
13994 arg1 = static_cast< int >(val1);
13995 ecode2 = SWIG_AsVal_int(obj1, &val2);
13996 if (!SWIG_IsOK(ecode2)) {
13997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13998 }
13999 arg2 = static_cast< wxFontFamily >(val2);
14000 if (obj2) {
14001 ecode3 = SWIG_AsVal_int(obj2, &val3);
14002 if (!SWIG_IsOK(ecode3)) {
14003 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14004 }
14005 arg3 = static_cast< int >(val3);
14006 }
14007 if (obj3) {
36ed4f51 14008 {
1bd55598
RD
14009 arg4 = wxString_in_helper(obj3);
14010 if (arg4 == NULL) SWIG_fail;
14011 temp4 = true;
36ed4f51 14012 }
1bd55598
RD
14013 }
14014 if (obj4) {
14015 ecode5 = SWIG_AsVal_int(obj4, &val5);
14016 if (!SWIG_IsOK(ecode5)) {
14017 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14018 }
14019 arg5 = static_cast< wxFontEncoding >(val5);
14020 }
14021 {
14022 if (!wxPyCheckForApp()) SWIG_fail;
14023 PyThreadState* __tstate = wxPyBeginAllowThreads();
14024 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14025 wxPyEndAllowThreads(__tstate);
14026 if (PyErr_Occurred()) SWIG_fail;
14027 }
14028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14029 {
14030 if (temp4)
14031 delete arg4;
14032 }
14033 return resultobj;
14034fail:
14035 {
14036 if (temp4)
14037 delete arg4;
14038 }
14039 return NULL;
14040}
14041
14042
14043SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14044 PyObject *resultobj = 0;
14045 wxSize *arg1 = 0 ;
14046 int arg2 ;
14047 int arg3 ;
14048 int arg4 ;
14049 bool arg5 = (bool) false ;
14050 wxString const &arg6_defvalue = wxEmptyString ;
14051 wxString *arg6 = (wxString *) &arg6_defvalue ;
14052 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14053 wxFont *result = 0 ;
14054 wxSize temp1 ;
14055 int val2 ;
14056 int ecode2 = 0 ;
14057 int val3 ;
14058 int ecode3 = 0 ;
14059 int val4 ;
14060 int ecode4 = 0 ;
14061 bool val5 ;
14062 int ecode5 = 0 ;
14063 bool temp6 = false ;
14064 int val7 ;
14065 int ecode7 = 0 ;
14066 PyObject * obj0 = 0 ;
14067 PyObject * obj1 = 0 ;
14068 PyObject * obj2 = 0 ;
14069 PyObject * obj3 = 0 ;
14070 PyObject * obj4 = 0 ;
14071 PyObject * obj5 = 0 ;
14072 PyObject * obj6 = 0 ;
14073 char * kwnames[] = {
14074 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14075 };
14076
14077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14078 {
14079 arg1 = &temp1;
14080 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14081 }
14082 ecode2 = SWIG_AsVal_int(obj1, &val2);
14083 if (!SWIG_IsOK(ecode2)) {
14084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14085 }
14086 arg2 = static_cast< int >(val2);
14087 ecode3 = SWIG_AsVal_int(obj2, &val3);
14088 if (!SWIG_IsOK(ecode3)) {
14089 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14090 }
14091 arg3 = static_cast< int >(val3);
14092 ecode4 = SWIG_AsVal_int(obj3, &val4);
14093 if (!SWIG_IsOK(ecode4)) {
14094 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14095 }
14096 arg4 = static_cast< int >(val4);
14097 if (obj4) {
14098 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14099 if (!SWIG_IsOK(ecode5)) {
14100 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14101 }
14102 arg5 = static_cast< bool >(val5);
14103 }
14104 if (obj5) {
d55e5bfc 14105 {
1bd55598
RD
14106 arg6 = wxString_in_helper(obj5);
14107 if (arg6 == NULL) SWIG_fail;
14108 temp6 = true;
d55e5bfc 14109 }
1bd55598
RD
14110 }
14111 if (obj6) {
14112 ecode7 = SWIG_AsVal_int(obj6, &val7);
14113 if (!SWIG_IsOK(ecode7)) {
14114 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14115 }
14116 arg7 = static_cast< wxFontEncoding >(val7);
14117 }
14118 {
14119 if (!wxPyCheckForApp()) SWIG_fail;
14120 PyThreadState* __tstate = wxPyBeginAllowThreads();
14121 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14122 wxPyEndAllowThreads(__tstate);
14123 if (PyErr_Occurred()) SWIG_fail;
14124 }
14125 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14126 {
14127 if (temp6)
14128 delete arg6;
14129 }
14130 return resultobj;
14131fail:
14132 {
14133 if (temp6)
14134 delete arg6;
14135 }
14136 return NULL;
14137}
14138
14139
14140SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14141 PyObject *resultobj = 0;
14142 wxSize *arg1 = 0 ;
14143 wxFontFamily arg2 ;
14144 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14145 wxString const &arg4_defvalue = wxEmptyString ;
14146 wxString *arg4 = (wxString *) &arg4_defvalue ;
14147 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14148 wxFont *result = 0 ;
14149 wxSize temp1 ;
14150 int val2 ;
14151 int ecode2 = 0 ;
14152 int val3 ;
14153 int ecode3 = 0 ;
14154 bool temp4 = false ;
14155 int val5 ;
14156 int ecode5 = 0 ;
14157 PyObject * obj0 = 0 ;
14158 PyObject * obj1 = 0 ;
14159 PyObject * obj2 = 0 ;
14160 PyObject * obj3 = 0 ;
14161 PyObject * obj4 = 0 ;
14162 char * kwnames[] = {
14163 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14164 };
14165
14166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14167 {
14168 arg1 = &temp1;
14169 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14170 }
14171 ecode2 = SWIG_AsVal_int(obj1, &val2);
14172 if (!SWIG_IsOK(ecode2)) {
14173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14174 }
14175 arg2 = static_cast< wxFontFamily >(val2);
14176 if (obj2) {
14177 ecode3 = SWIG_AsVal_int(obj2, &val3);
14178 if (!SWIG_IsOK(ecode3)) {
14179 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14180 }
14181 arg3 = static_cast< int >(val3);
14182 }
14183 if (obj3) {
36ed4f51 14184 {
1bd55598
RD
14185 arg4 = wxString_in_helper(obj3);
14186 if (arg4 == NULL) SWIG_fail;
14187 temp4 = true;
36ed4f51 14188 }
1bd55598
RD
14189 }
14190 if (obj4) {
14191 ecode5 = SWIG_AsVal_int(obj4, &val5);
14192 if (!SWIG_IsOK(ecode5)) {
14193 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14194 }
14195 arg5 = static_cast< wxFontEncoding >(val5);
14196 }
14197 {
14198 if (!wxPyCheckForApp()) SWIG_fail;
14199 PyThreadState* __tstate = wxPyBeginAllowThreads();
14200 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14201 wxPyEndAllowThreads(__tstate);
14202 if (PyErr_Occurred()) SWIG_fail;
14203 }
14204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14205 {
14206 if (temp4)
14207 delete arg4;
14208 }
14209 return resultobj;
14210fail:
14211 {
14212 if (temp4)
14213 delete arg4;
14214 }
14215 return NULL;
d55e5bfc
RD
14216}
14217
14218
b39fe951 14219SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
14220 PyObject *resultobj = 0;
14221 wxFont *arg1 = (wxFont *) 0 ;
14222 bool result;
14223 void *argp1 = 0 ;
14224 int res1 = 0 ;
14225 PyObject *swig_obj[1] ;
14226
14227 if (!args) SWIG_fail;
14228 swig_obj[0] = args;
14229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14230 if (!SWIG_IsOK(res1)) {
b39fe951 14231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
1bd55598
RD
14232 }
14233 arg1 = reinterpret_cast< wxFont * >(argp1);
14234 {
14235 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 14236 result = (bool)((wxFont const *)arg1)->IsOk();
1bd55598
RD
14237 wxPyEndAllowThreads(__tstate);
14238 if (PyErr_Occurred()) SWIG_fail;
14239 }
14240 {
14241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14242 }
14243 return resultobj;
14244fail:
14245 return NULL;
14246}
14247
14248
14249SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14250 PyObject *resultobj = 0;
14251 wxFont *arg1 = (wxFont *) 0 ;
14252 wxFont *arg2 = (wxFont *) 0 ;
14253 bool result;
14254 void *argp1 = 0 ;
14255 int res1 = 0 ;
14256 void *argp2 = 0 ;
14257 int res2 = 0 ;
14258 PyObject * obj0 = 0 ;
14259 PyObject * obj1 = 0 ;
14260 char * kwnames[] = {
14261 (char *) "self",(char *) "other", NULL
14262 };
14263
14264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14266 if (!SWIG_IsOK(res1)) {
14267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14268 }
14269 arg1 = reinterpret_cast< wxFont * >(argp1);
14270 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14271 if (!SWIG_IsOK(res2)) {
14272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14273 }
14274 arg2 = reinterpret_cast< wxFont * >(argp2);
14275 {
14276 PyThreadState* __tstate = wxPyBeginAllowThreads();
14277 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14278 wxPyEndAllowThreads(__tstate);
14279 if (PyErr_Occurred()) SWIG_fail;
14280 }
14281 {
14282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14283 }
14284 return resultobj;
14285fail:
14286 return NULL;
14287}
14288
14289
14290SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14291 PyObject *resultobj = 0;
14292 wxFont *arg1 = (wxFont *) 0 ;
14293 wxFont *arg2 = (wxFont *) 0 ;
14294 bool result;
14295 void *argp1 = 0 ;
14296 int res1 = 0 ;
14297 void *argp2 = 0 ;
14298 int res2 = 0 ;
14299 PyObject * obj0 = 0 ;
14300 PyObject * obj1 = 0 ;
14301 char * kwnames[] = {
14302 (char *) "self",(char *) "other", NULL
14303 };
14304
14305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14307 if (!SWIG_IsOK(res1)) {
14308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14309 }
14310 arg1 = reinterpret_cast< wxFont * >(argp1);
14311 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14312 if (!SWIG_IsOK(res2)) {
14313 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14314 }
14315 arg2 = reinterpret_cast< wxFont * >(argp2);
14316 {
14317 PyThreadState* __tstate = wxPyBeginAllowThreads();
14318 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14319 wxPyEndAllowThreads(__tstate);
14320 if (PyErr_Occurred()) SWIG_fail;
14321 }
14322 {
14323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14324 }
14325 return resultobj;
14326fail:
14327 return NULL;
d55e5bfc
RD
14328}
14329
14330
1bd55598
RD
14331SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14332 PyObject *resultobj = 0;
14333 wxFont *arg1 = (wxFont *) 0 ;
14334 int result;
14335 void *argp1 = 0 ;
14336 int res1 = 0 ;
14337 PyObject *swig_obj[1] ;
14338
14339 if (!args) SWIG_fail;
14340 swig_obj[0] = args;
14341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14342 if (!SWIG_IsOK(res1)) {
14343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14344 }
14345 arg1 = reinterpret_cast< wxFont * >(argp1);
14346 {
14347 PyThreadState* __tstate = wxPyBeginAllowThreads();
14348 result = (int)((wxFont const *)arg1)->GetPointSize();
14349 wxPyEndAllowThreads(__tstate);
14350 if (PyErr_Occurred()) SWIG_fail;
14351 }
14352 resultobj = SWIG_From_int(static_cast< int >(result));
14353 return resultobj;
14354fail:
14355 return NULL;
d55e5bfc
RD
14356}
14357
14358
1bd55598
RD
14359SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14360 PyObject *resultobj = 0;
14361 wxFont *arg1 = (wxFont *) 0 ;
14362 wxSize result;
14363 void *argp1 = 0 ;
14364 int res1 = 0 ;
14365 PyObject *swig_obj[1] ;
14366
14367 if (!args) SWIG_fail;
14368 swig_obj[0] = args;
14369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14370 if (!SWIG_IsOK(res1)) {
14371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14372 }
14373 arg1 = reinterpret_cast< wxFont * >(argp1);
14374 {
14375 PyThreadState* __tstate = wxPyBeginAllowThreads();
14376 result = ((wxFont const *)arg1)->GetPixelSize();
14377 wxPyEndAllowThreads(__tstate);
14378 if (PyErr_Occurred()) SWIG_fail;
14379 }
14380 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14381 return resultobj;
14382fail:
14383 return NULL;
d55e5bfc
RD
14384}
14385
14386
1bd55598
RD
14387SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14388 PyObject *resultobj = 0;
14389 wxFont *arg1 = (wxFont *) 0 ;
14390 bool result;
14391 void *argp1 = 0 ;
14392 int res1 = 0 ;
14393 PyObject *swig_obj[1] ;
14394
14395 if (!args) SWIG_fail;
14396 swig_obj[0] = args;
14397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14398 if (!SWIG_IsOK(res1)) {
14399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14400 }
14401 arg1 = reinterpret_cast< wxFont * >(argp1);
14402 {
14403 PyThreadState* __tstate = wxPyBeginAllowThreads();
14404 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14405 wxPyEndAllowThreads(__tstate);
14406 if (PyErr_Occurred()) SWIG_fail;
14407 }
14408 {
14409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14410 }
14411 return resultobj;
14412fail:
14413 return NULL;
d55e5bfc
RD
14414}
14415
14416
1bd55598
RD
14417SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14418 PyObject *resultobj = 0;
14419 wxFont *arg1 = (wxFont *) 0 ;
14420 int result;
14421 void *argp1 = 0 ;
14422 int res1 = 0 ;
14423 PyObject *swig_obj[1] ;
14424
14425 if (!args) SWIG_fail;
14426 swig_obj[0] = args;
14427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14428 if (!SWIG_IsOK(res1)) {
14429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14430 }
14431 arg1 = reinterpret_cast< wxFont * >(argp1);
14432 {
14433 PyThreadState* __tstate = wxPyBeginAllowThreads();
14434 result = (int)((wxFont const *)arg1)->GetFamily();
14435 wxPyEndAllowThreads(__tstate);
14436 if (PyErr_Occurred()) SWIG_fail;
14437 }
14438 resultobj = SWIG_From_int(static_cast< int >(result));
14439 return resultobj;
14440fail:
14441 return NULL;
d55e5bfc
RD
14442}
14443
14444
1bd55598
RD
14445SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14446 PyObject *resultobj = 0;
14447 wxFont *arg1 = (wxFont *) 0 ;
14448 int result;
14449 void *argp1 = 0 ;
14450 int res1 = 0 ;
14451 PyObject *swig_obj[1] ;
14452
14453 if (!args) SWIG_fail;
14454 swig_obj[0] = args;
14455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14456 if (!SWIG_IsOK(res1)) {
14457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14458 }
14459 arg1 = reinterpret_cast< wxFont * >(argp1);
14460 {
14461 PyThreadState* __tstate = wxPyBeginAllowThreads();
14462 result = (int)((wxFont const *)arg1)->GetStyle();
14463 wxPyEndAllowThreads(__tstate);
14464 if (PyErr_Occurred()) SWIG_fail;
14465 }
14466 resultobj = SWIG_From_int(static_cast< int >(result));
14467 return resultobj;
14468fail:
14469 return NULL;
d55e5bfc
RD
14470}
14471
14472
1bd55598
RD
14473SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14474 PyObject *resultobj = 0;
14475 wxFont *arg1 = (wxFont *) 0 ;
14476 int result;
14477 void *argp1 = 0 ;
14478 int res1 = 0 ;
14479 PyObject *swig_obj[1] ;
14480
14481 if (!args) SWIG_fail;
14482 swig_obj[0] = args;
14483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14484 if (!SWIG_IsOK(res1)) {
14485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14486 }
14487 arg1 = reinterpret_cast< wxFont * >(argp1);
14488 {
14489 PyThreadState* __tstate = wxPyBeginAllowThreads();
14490 result = (int)((wxFont const *)arg1)->GetWeight();
14491 wxPyEndAllowThreads(__tstate);
14492 if (PyErr_Occurred()) SWIG_fail;
14493 }
14494 resultobj = SWIG_From_int(static_cast< int >(result));
14495 return resultobj;
14496fail:
14497 return NULL;
d55e5bfc
RD
14498}
14499
14500
1bd55598
RD
14501SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14502 PyObject *resultobj = 0;
14503 wxFont *arg1 = (wxFont *) 0 ;
14504 bool result;
14505 void *argp1 = 0 ;
14506 int res1 = 0 ;
14507 PyObject *swig_obj[1] ;
14508
14509 if (!args) SWIG_fail;
14510 swig_obj[0] = args;
14511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14512 if (!SWIG_IsOK(res1)) {
14513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14514 }
14515 arg1 = reinterpret_cast< wxFont * >(argp1);
14516 {
14517 PyThreadState* __tstate = wxPyBeginAllowThreads();
14518 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14519 wxPyEndAllowThreads(__tstate);
14520 if (PyErr_Occurred()) SWIG_fail;
14521 }
14522 {
14523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14524 }
14525 return resultobj;
14526fail:
14527 return NULL;
d55e5bfc
RD
14528}
14529
14530
1bd55598
RD
14531SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14532 PyObject *resultobj = 0;
14533 wxFont *arg1 = (wxFont *) 0 ;
14534 wxString result;
14535 void *argp1 = 0 ;
14536 int res1 = 0 ;
14537 PyObject *swig_obj[1] ;
14538
14539 if (!args) SWIG_fail;
14540 swig_obj[0] = args;
14541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14542 if (!SWIG_IsOK(res1)) {
14543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14544 }
14545 arg1 = reinterpret_cast< wxFont * >(argp1);
14546 {
14547 PyThreadState* __tstate = wxPyBeginAllowThreads();
14548 result = ((wxFont const *)arg1)->GetFaceName();
14549 wxPyEndAllowThreads(__tstate);
14550 if (PyErr_Occurred()) SWIG_fail;
14551 }
14552 {
14553#if wxUSE_UNICODE
14554 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14555#else
14556 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14557#endif
14558 }
14559 return resultobj;
14560fail:
14561 return NULL;
d55e5bfc
RD
14562}
14563
14564
1bd55598
RD
14565SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14566 PyObject *resultobj = 0;
14567 wxFont *arg1 = (wxFont *) 0 ;
14568 wxFontEncoding result;
14569 void *argp1 = 0 ;
14570 int res1 = 0 ;
14571 PyObject *swig_obj[1] ;
14572
14573 if (!args) SWIG_fail;
14574 swig_obj[0] = args;
14575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14576 if (!SWIG_IsOK(res1)) {
14577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14578 }
14579 arg1 = reinterpret_cast< wxFont * >(argp1);
14580 {
14581 PyThreadState* __tstate = wxPyBeginAllowThreads();
14582 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14583 wxPyEndAllowThreads(__tstate);
14584 if (PyErr_Occurred()) SWIG_fail;
14585 }
14586 resultobj = SWIG_From_int(static_cast< int >(result));
14587 return resultobj;
14588fail:
14589 return NULL;
d55e5bfc
RD
14590}
14591
14592
1bd55598
RD
14593SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14594 PyObject *resultobj = 0;
14595 wxFont *arg1 = (wxFont *) 0 ;
14596 wxNativeFontInfo *result = 0 ;
14597 void *argp1 = 0 ;
14598 int res1 = 0 ;
14599 PyObject *swig_obj[1] ;
14600
14601 if (!args) SWIG_fail;
14602 swig_obj[0] = args;
14603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14604 if (!SWIG_IsOK(res1)) {
14605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14606 }
14607 arg1 = reinterpret_cast< wxFont * >(argp1);
14608 {
14609 PyThreadState* __tstate = wxPyBeginAllowThreads();
14610 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14611 wxPyEndAllowThreads(__tstate);
14612 if (PyErr_Occurred()) SWIG_fail;
14613 }
14614 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14615 return resultobj;
14616fail:
14617 return NULL;
d55e5bfc
RD
14618}
14619
14620
1bd55598
RD
14621SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14622 PyObject *resultobj = 0;
14623 wxFont *arg1 = (wxFont *) 0 ;
14624 bool result;
14625 void *argp1 = 0 ;
14626 int res1 = 0 ;
14627 PyObject *swig_obj[1] ;
14628
14629 if (!args) SWIG_fail;
14630 swig_obj[0] = args;
14631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14632 if (!SWIG_IsOK(res1)) {
14633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14634 }
14635 arg1 = reinterpret_cast< wxFont * >(argp1);
14636 {
14637 PyThreadState* __tstate = wxPyBeginAllowThreads();
14638 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14639 wxPyEndAllowThreads(__tstate);
14640 if (PyErr_Occurred()) SWIG_fail;
14641 }
14642 {
14643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14644 }
14645 return resultobj;
14646fail:
14647 return NULL;
d55e5bfc
RD
14648}
14649
14650
1bd55598
RD
14651SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14652 PyObject *resultobj = 0;
14653 wxFont *arg1 = (wxFont *) 0 ;
14654 wxString result;
14655 void *argp1 = 0 ;
14656 int res1 = 0 ;
14657 PyObject *swig_obj[1] ;
14658
14659 if (!args) SWIG_fail;
14660 swig_obj[0] = args;
14661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14662 if (!SWIG_IsOK(res1)) {
14663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14664 }
14665 arg1 = reinterpret_cast< wxFont * >(argp1);
14666 {
14667 PyThreadState* __tstate = wxPyBeginAllowThreads();
14668 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14669 wxPyEndAllowThreads(__tstate);
14670 if (PyErr_Occurred()) SWIG_fail;
14671 }
14672 {
14673#if wxUSE_UNICODE
14674 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14675#else
14676 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14677#endif
14678 }
14679 return resultobj;
14680fail:
14681 return NULL;
d55e5bfc
RD
14682}
14683
14684
1bd55598
RD
14685SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14686 PyObject *resultobj = 0;
14687 wxFont *arg1 = (wxFont *) 0 ;
14688 wxString result;
14689 void *argp1 = 0 ;
14690 int res1 = 0 ;
14691 PyObject *swig_obj[1] ;
14692
14693 if (!args) SWIG_fail;
14694 swig_obj[0] = args;
14695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14696 if (!SWIG_IsOK(res1)) {
14697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14698 }
14699 arg1 = reinterpret_cast< wxFont * >(argp1);
14700 {
14701 PyThreadState* __tstate = wxPyBeginAllowThreads();
14702 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14703 wxPyEndAllowThreads(__tstate);
14704 if (PyErr_Occurred()) SWIG_fail;
14705 }
14706 {
14707#if wxUSE_UNICODE
14708 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14709#else
14710 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14711#endif
14712 }
14713 return resultobj;
14714fail:
14715 return NULL;
14716}
14717
14718
14719SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14720 PyObject *resultobj = 0;
14721 wxFont *arg1 = (wxFont *) 0 ;
14722 int arg2 ;
14723 void *argp1 = 0 ;
14724 int res1 = 0 ;
14725 int val2 ;
14726 int ecode2 = 0 ;
14727 PyObject * obj0 = 0 ;
14728 PyObject * obj1 = 0 ;
14729 char * kwnames[] = {
14730 (char *) "self",(char *) "pointSize", NULL
14731 };
14732
14733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14735 if (!SWIG_IsOK(res1)) {
14736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14737 }
14738 arg1 = reinterpret_cast< wxFont * >(argp1);
14739 ecode2 = SWIG_AsVal_int(obj1, &val2);
14740 if (!SWIG_IsOK(ecode2)) {
14741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14742 }
14743 arg2 = static_cast< int >(val2);
14744 {
14745 PyThreadState* __tstate = wxPyBeginAllowThreads();
14746 (arg1)->SetPointSize(arg2);
14747 wxPyEndAllowThreads(__tstate);
14748 if (PyErr_Occurred()) SWIG_fail;
14749 }
14750 resultobj = SWIG_Py_Void();
14751 return resultobj;
14752fail:
14753 return NULL;
14754}
14755
14756
14757SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14758 PyObject *resultobj = 0;
14759 wxFont *arg1 = (wxFont *) 0 ;
14760 wxSize *arg2 = 0 ;
14761 void *argp1 = 0 ;
14762 int res1 = 0 ;
14763 wxSize temp2 ;
14764 PyObject * obj0 = 0 ;
14765 PyObject * obj1 = 0 ;
14766 char * kwnames[] = {
14767 (char *) "self",(char *) "pixelSize", NULL
14768 };
14769
14770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14772 if (!SWIG_IsOK(res1)) {
14773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14774 }
14775 arg1 = reinterpret_cast< wxFont * >(argp1);
14776 {
14777 arg2 = &temp2;
14778 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14779 }
14780 {
14781 PyThreadState* __tstate = wxPyBeginAllowThreads();
14782 (arg1)->SetPixelSize((wxSize const &)*arg2);
14783 wxPyEndAllowThreads(__tstate);
14784 if (PyErr_Occurred()) SWIG_fail;
14785 }
14786 resultobj = SWIG_Py_Void();
14787 return resultobj;
14788fail:
14789 return NULL;
14790}
14791
14792
14793SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14794 PyObject *resultobj = 0;
14795 wxFont *arg1 = (wxFont *) 0 ;
14796 int arg2 ;
14797 void *argp1 = 0 ;
14798 int res1 = 0 ;
14799 int val2 ;
14800 int ecode2 = 0 ;
14801 PyObject * obj0 = 0 ;
14802 PyObject * obj1 = 0 ;
14803 char * kwnames[] = {
14804 (char *) "self",(char *) "family", NULL
14805 };
14806
14807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14809 if (!SWIG_IsOK(res1)) {
14810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14811 }
14812 arg1 = reinterpret_cast< wxFont * >(argp1);
14813 ecode2 = SWIG_AsVal_int(obj1, &val2);
14814 if (!SWIG_IsOK(ecode2)) {
14815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14816 }
14817 arg2 = static_cast< int >(val2);
14818 {
14819 PyThreadState* __tstate = wxPyBeginAllowThreads();
14820 (arg1)->SetFamily(arg2);
14821 wxPyEndAllowThreads(__tstate);
14822 if (PyErr_Occurred()) SWIG_fail;
14823 }
14824 resultobj = SWIG_Py_Void();
14825 return resultobj;
14826fail:
14827 return NULL;
14828}
14829
14830
14831SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14832 PyObject *resultobj = 0;
14833 wxFont *arg1 = (wxFont *) 0 ;
14834 int arg2 ;
14835 void *argp1 = 0 ;
14836 int res1 = 0 ;
14837 int val2 ;
14838 int ecode2 = 0 ;
14839 PyObject * obj0 = 0 ;
14840 PyObject * obj1 = 0 ;
14841 char * kwnames[] = {
14842 (char *) "self",(char *) "style", NULL
14843 };
14844
14845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14847 if (!SWIG_IsOK(res1)) {
14848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14849 }
14850 arg1 = reinterpret_cast< wxFont * >(argp1);
14851 ecode2 = SWIG_AsVal_int(obj1, &val2);
14852 if (!SWIG_IsOK(ecode2)) {
14853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14854 }
14855 arg2 = static_cast< int >(val2);
14856 {
14857 PyThreadState* __tstate = wxPyBeginAllowThreads();
14858 (arg1)->SetStyle(arg2);
14859 wxPyEndAllowThreads(__tstate);
14860 if (PyErr_Occurred()) SWIG_fail;
14861 }
14862 resultobj = SWIG_Py_Void();
14863 return resultobj;
14864fail:
14865 return NULL;
14866}
14867
14868
14869SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14870 PyObject *resultobj = 0;
14871 wxFont *arg1 = (wxFont *) 0 ;
14872 int arg2 ;
14873 void *argp1 = 0 ;
14874 int res1 = 0 ;
14875 int val2 ;
14876 int ecode2 = 0 ;
14877 PyObject * obj0 = 0 ;
14878 PyObject * obj1 = 0 ;
14879 char * kwnames[] = {
14880 (char *) "self",(char *) "weight", NULL
14881 };
14882
14883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14885 if (!SWIG_IsOK(res1)) {
14886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14887 }
14888 arg1 = reinterpret_cast< wxFont * >(argp1);
14889 ecode2 = SWIG_AsVal_int(obj1, &val2);
14890 if (!SWIG_IsOK(ecode2)) {
14891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14892 }
14893 arg2 = static_cast< int >(val2);
14894 {
14895 PyThreadState* __tstate = wxPyBeginAllowThreads();
14896 (arg1)->SetWeight(arg2);
14897 wxPyEndAllowThreads(__tstate);
14898 if (PyErr_Occurred()) SWIG_fail;
14899 }
14900 resultobj = SWIG_Py_Void();
14901 return resultobj;
14902fail:
14903 return NULL;
14904}
14905
14906
14907SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14908 PyObject *resultobj = 0;
14909 wxFont *arg1 = (wxFont *) 0 ;
14910 wxString *arg2 = 0 ;
704eda0c 14911 bool result;
1bd55598
RD
14912 void *argp1 = 0 ;
14913 int res1 = 0 ;
14914 bool temp2 = false ;
14915 PyObject * obj0 = 0 ;
14916 PyObject * obj1 = 0 ;
14917 char * kwnames[] = {
14918 (char *) "self",(char *) "faceName", NULL
14919 };
14920
14921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14923 if (!SWIG_IsOK(res1)) {
14924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14925 }
14926 arg1 = reinterpret_cast< wxFont * >(argp1);
14927 {
14928 arg2 = wxString_in_helper(obj1);
14929 if (arg2 == NULL) SWIG_fail;
14930 temp2 = true;
14931 }
14932 {
14933 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14934 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
1bd55598
RD
14935 wxPyEndAllowThreads(__tstate);
14936 if (PyErr_Occurred()) SWIG_fail;
14937 }
704eda0c
RD
14938 {
14939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14940 }
1bd55598
RD
14941 {
14942 if (temp2)
14943 delete arg2;
14944 }
14945 return resultobj;
14946fail:
14947 {
14948 if (temp2)
14949 delete arg2;
14950 }
14951 return NULL;
14952}
14953
14954
14955SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14956 PyObject *resultobj = 0;
14957 wxFont *arg1 = (wxFont *) 0 ;
14958 bool arg2 ;
14959 void *argp1 = 0 ;
14960 int res1 = 0 ;
14961 bool val2 ;
14962 int ecode2 = 0 ;
14963 PyObject * obj0 = 0 ;
14964 PyObject * obj1 = 0 ;
14965 char * kwnames[] = {
14966 (char *) "self",(char *) "underlined", NULL
14967 };
14968
14969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14971 if (!SWIG_IsOK(res1)) {
14972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14973 }
14974 arg1 = reinterpret_cast< wxFont * >(argp1);
14975 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14976 if (!SWIG_IsOK(ecode2)) {
14977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14978 }
14979 arg2 = static_cast< bool >(val2);
14980 {
14981 PyThreadState* __tstate = wxPyBeginAllowThreads();
14982 (arg1)->SetUnderlined(arg2);
14983 wxPyEndAllowThreads(__tstate);
14984 if (PyErr_Occurred()) SWIG_fail;
14985 }
14986 resultobj = SWIG_Py_Void();
14987 return resultobj;
14988fail:
14989 return NULL;
14990}
14991
14992
14993SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14994 PyObject *resultobj = 0;
14995 wxFont *arg1 = (wxFont *) 0 ;
14996 wxFontEncoding arg2 ;
14997 void *argp1 = 0 ;
14998 int res1 = 0 ;
14999 int val2 ;
15000 int ecode2 = 0 ;
15001 PyObject * obj0 = 0 ;
15002 PyObject * obj1 = 0 ;
15003 char * kwnames[] = {
15004 (char *) "self",(char *) "encoding", NULL
15005 };
15006
15007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15009 if (!SWIG_IsOK(res1)) {
15010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15011 }
15012 arg1 = reinterpret_cast< wxFont * >(argp1);
15013 ecode2 = SWIG_AsVal_int(obj1, &val2);
15014 if (!SWIG_IsOK(ecode2)) {
15015 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15016 }
15017 arg2 = static_cast< wxFontEncoding >(val2);
15018 {
15019 PyThreadState* __tstate = wxPyBeginAllowThreads();
15020 (arg1)->SetEncoding(arg2);
15021 wxPyEndAllowThreads(__tstate);
15022 if (PyErr_Occurred()) SWIG_fail;
15023 }
15024 resultobj = SWIG_Py_Void();
15025 return resultobj;
15026fail:
15027 return NULL;
15028}
15029
15030
15031SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15032 PyObject *resultobj = 0;
15033 wxFont *arg1 = (wxFont *) 0 ;
15034 wxNativeFontInfo *arg2 = 0 ;
15035 void *argp1 = 0 ;
15036 int res1 = 0 ;
15037 void *argp2 = 0 ;
15038 int res2 = 0 ;
15039 PyObject * obj0 = 0 ;
15040 PyObject * obj1 = 0 ;
15041 char * kwnames[] = {
15042 (char *) "self",(char *) "info", NULL
15043 };
15044
15045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15047 if (!SWIG_IsOK(res1)) {
15048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15049 }
15050 arg1 = reinterpret_cast< wxFont * >(argp1);
15051 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15052 if (!SWIG_IsOK(res2)) {
15053 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15054 }
15055 if (!argp2) {
15056 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15057 }
15058 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15059 {
15060 PyThreadState* __tstate = wxPyBeginAllowThreads();
15061 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15062 wxPyEndAllowThreads(__tstate);
15063 if (PyErr_Occurred()) SWIG_fail;
15064 }
15065 resultobj = SWIG_Py_Void();
15066 return resultobj;
15067fail:
15068 return NULL;
15069}
15070
15071
15072SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15073 PyObject *resultobj = 0;
15074 wxFont *arg1 = (wxFont *) 0 ;
15075 wxString *arg2 = 0 ;
704eda0c 15076 bool result;
1bd55598
RD
15077 void *argp1 = 0 ;
15078 int res1 = 0 ;
15079 bool temp2 = false ;
15080 PyObject * obj0 = 0 ;
15081 PyObject * obj1 = 0 ;
15082 char * kwnames[] = {
15083 (char *) "self",(char *) "info", NULL
15084 };
15085
15086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15088 if (!SWIG_IsOK(res1)) {
15089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15090 }
15091 arg1 = reinterpret_cast< wxFont * >(argp1);
15092 {
15093 arg2 = wxString_in_helper(obj1);
15094 if (arg2 == NULL) SWIG_fail;
15095 temp2 = true;
15096 }
15097 {
15098 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15099 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
1bd55598
RD
15100 wxPyEndAllowThreads(__tstate);
15101 if (PyErr_Occurred()) SWIG_fail;
15102 }
704eda0c
RD
15103 {
15104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15105 }
1bd55598
RD
15106 {
15107 if (temp2)
15108 delete arg2;
15109 }
15110 return resultobj;
15111fail:
15112 {
15113 if (temp2)
15114 delete arg2;
15115 }
15116 return NULL;
d55e5bfc
RD
15117}
15118
15119
1bd55598
RD
15120SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15121 PyObject *resultobj = 0;
15122 wxFont *arg1 = (wxFont *) 0 ;
15123 wxString *arg2 = 0 ;
704eda0c 15124 bool result;
1bd55598
RD
15125 void *argp1 = 0 ;
15126 int res1 = 0 ;
15127 bool temp2 = false ;
15128 PyObject * obj0 = 0 ;
15129 PyObject * obj1 = 0 ;
15130 char * kwnames[] = {
15131 (char *) "self",(char *) "info", NULL
15132 };
15133
15134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15136 if (!SWIG_IsOK(res1)) {
15137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15138 }
15139 arg1 = reinterpret_cast< wxFont * >(argp1);
15140 {
15141 arg2 = wxString_in_helper(obj1);
15142 if (arg2 == NULL) SWIG_fail;
15143 temp2 = true;
15144 }
15145 {
15146 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15147 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
1bd55598
RD
15148 wxPyEndAllowThreads(__tstate);
15149 if (PyErr_Occurred()) SWIG_fail;
15150 }
704eda0c
RD
15151 {
15152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15153 }
1bd55598
RD
15154 {
15155 if (temp2)
15156 delete arg2;
15157 }
15158 return resultobj;
15159fail:
15160 {
15161 if (temp2)
15162 delete arg2;
15163 }
15164 return NULL;
d55e5bfc
RD
15165}
15166
15167
1bd55598
RD
15168SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15169 PyObject *resultobj = 0;
15170 wxFont *arg1 = (wxFont *) 0 ;
15171 wxString result;
15172 void *argp1 = 0 ;
15173 int res1 = 0 ;
15174 PyObject *swig_obj[1] ;
15175
15176 if (!args) SWIG_fail;
15177 swig_obj[0] = args;
15178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15179 if (!SWIG_IsOK(res1)) {
15180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15181 }
15182 arg1 = reinterpret_cast< wxFont * >(argp1);
15183 {
15184 PyThreadState* __tstate = wxPyBeginAllowThreads();
15185 result = ((wxFont const *)arg1)->GetFamilyString();
15186 wxPyEndAllowThreads(__tstate);
15187 if (PyErr_Occurred()) SWIG_fail;
15188 }
15189 {
15190#if wxUSE_UNICODE
15191 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15192#else
15193 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15194#endif
15195 }
15196 return resultobj;
15197fail:
15198 return NULL;
d55e5bfc
RD
15199}
15200
15201
1bd55598
RD
15202SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15203 PyObject *resultobj = 0;
15204 wxFont *arg1 = (wxFont *) 0 ;
15205 wxString result;
15206 void *argp1 = 0 ;
15207 int res1 = 0 ;
15208 PyObject *swig_obj[1] ;
15209
15210 if (!args) SWIG_fail;
15211 swig_obj[0] = args;
15212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15213 if (!SWIG_IsOK(res1)) {
15214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15215 }
15216 arg1 = reinterpret_cast< wxFont * >(argp1);
15217 {
15218 PyThreadState* __tstate = wxPyBeginAllowThreads();
15219 result = ((wxFont const *)arg1)->GetStyleString();
15220 wxPyEndAllowThreads(__tstate);
15221 if (PyErr_Occurred()) SWIG_fail;
15222 }
15223 {
15224#if wxUSE_UNICODE
15225 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15226#else
15227 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15228#endif
15229 }
15230 return resultobj;
15231fail:
15232 return NULL;
d55e5bfc
RD
15233}
15234
15235
1bd55598
RD
15236SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15237 PyObject *resultobj = 0;
15238 wxFont *arg1 = (wxFont *) 0 ;
15239 wxString result;
15240 void *argp1 = 0 ;
15241 int res1 = 0 ;
15242 PyObject *swig_obj[1] ;
15243
15244 if (!args) SWIG_fail;
15245 swig_obj[0] = args;
15246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15247 if (!SWIG_IsOK(res1)) {
15248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15249 }
15250 arg1 = reinterpret_cast< wxFont * >(argp1);
15251 {
15252 PyThreadState* __tstate = wxPyBeginAllowThreads();
15253 result = ((wxFont const *)arg1)->GetWeightString();
15254 wxPyEndAllowThreads(__tstate);
15255 if (PyErr_Occurred()) SWIG_fail;
15256 }
15257 {
15258#if wxUSE_UNICODE
15259 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15260#else
15261 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15262#endif
15263 }
15264 return resultobj;
15265fail:
15266 return NULL;
15267}
15268
15269
15270SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15271 PyObject *resultobj = 0;
15272 wxFont *arg1 = (wxFont *) 0 ;
15273 bool arg2 = (bool) true ;
15274 void *argp1 = 0 ;
15275 int res1 = 0 ;
15276 bool val2 ;
15277 int ecode2 = 0 ;
15278 PyObject * obj0 = 0 ;
15279 PyObject * obj1 = 0 ;
15280 char * kwnames[] = {
15281 (char *) "self",(char *) "no", NULL
15282 };
15283
15284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15286 if (!SWIG_IsOK(res1)) {
15287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15288 }
15289 arg1 = reinterpret_cast< wxFont * >(argp1);
15290 if (obj1) {
15291 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15292 if (!SWIG_IsOK(ecode2)) {
15293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15294 }
15295 arg2 = static_cast< bool >(val2);
15296 }
15297 {
15298 PyThreadState* __tstate = wxPyBeginAllowThreads();
15299 (arg1)->SetNoAntiAliasing(arg2);
15300 wxPyEndAllowThreads(__tstate);
15301 if (PyErr_Occurred()) SWIG_fail;
15302 }
15303 resultobj = SWIG_Py_Void();
15304 return resultobj;
15305fail:
15306 return NULL;
d55e5bfc
RD
15307}
15308
15309
1bd55598
RD
15310SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15311 PyObject *resultobj = 0;
15312 wxFont *arg1 = (wxFont *) 0 ;
15313 bool result;
15314 void *argp1 = 0 ;
15315 int res1 = 0 ;
15316 PyObject *swig_obj[1] ;
15317
15318 if (!args) SWIG_fail;
15319 swig_obj[0] = args;
15320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15321 if (!SWIG_IsOK(res1)) {
15322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15323 }
15324 arg1 = reinterpret_cast< wxFont * >(argp1);
15325 {
15326 PyThreadState* __tstate = wxPyBeginAllowThreads();
15327 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15328 wxPyEndAllowThreads(__tstate);
15329 if (PyErr_Occurred()) SWIG_fail;
15330 }
15331 {
15332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15333 }
15334 return resultobj;
15335fail:
15336 return NULL;
d55e5bfc
RD
15337}
15338
15339
1bd55598
RD
15340SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15341 PyObject *resultobj = 0;
15342 wxFontEncoding result;
15343
15344 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15345 {
15346 if (!wxPyCheckForApp()) SWIG_fail;
15347 PyThreadState* __tstate = wxPyBeginAllowThreads();
15348 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15349 wxPyEndAllowThreads(__tstate);
15350 if (PyErr_Occurred()) SWIG_fail;
15351 }
15352 resultobj = SWIG_From_int(static_cast< int >(result));
15353 return resultobj;
15354fail:
15355 return NULL;
d55e5bfc
RD
15356}
15357
15358
1bd55598
RD
15359SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15360 PyObject *resultobj = 0;
15361 wxFontEncoding arg1 ;
15362 int val1 ;
15363 int ecode1 = 0 ;
15364 PyObject * obj0 = 0 ;
15365 char * kwnames[] = {
15366 (char *) "encoding", NULL
15367 };
15368
15369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15370 ecode1 = SWIG_AsVal_int(obj0, &val1);
15371 if (!SWIG_IsOK(ecode1)) {
15372 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15373 }
15374 arg1 = static_cast< wxFontEncoding >(val1);
15375 {
15376 if (!wxPyCheckForApp()) SWIG_fail;
15377 PyThreadState* __tstate = wxPyBeginAllowThreads();
15378 wxFont::SetDefaultEncoding(arg1);
15379 wxPyEndAllowThreads(__tstate);
15380 if (PyErr_Occurred()) SWIG_fail;
15381 }
15382 resultobj = SWIG_Py_Void();
15383 return resultobj;
15384fail:
15385 return NULL;
d55e5bfc
RD
15386}
15387
15388
1bd55598
RD
15389SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15390 PyObject *obj;
15391 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15392 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15393 return SWIG_Py_Void();
d55e5bfc 15394}
d55e5bfc 15395
1bd55598
RD
15396SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15397 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
15398}
15399
1bd55598
RD
15400SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15401 PyObject *resultobj = 0;
15402 wxPyFontEnumerator *result = 0 ;
15403
15404 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15405 {
15406 if (!wxPyCheckForApp()) SWIG_fail;
15407 PyThreadState* __tstate = wxPyBeginAllowThreads();
15408 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15409 wxPyEndAllowThreads(__tstate);
15410 if (PyErr_Occurred()) SWIG_fail;
15411 }
15412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15413 return resultobj;
15414fail:
15415 return NULL;
d55e5bfc
RD
15416}
15417
15418
1bd55598
RD
15419SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15420 PyObject *resultobj = 0;
15421 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15422 void *argp1 = 0 ;
15423 int res1 = 0 ;
15424 PyObject *swig_obj[1] ;
15425
15426 if (!args) SWIG_fail;
15427 swig_obj[0] = args;
15428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15429 if (!SWIG_IsOK(res1)) {
15430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15431 }
15432 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15433 {
15434 PyThreadState* __tstate = wxPyBeginAllowThreads();
15435 delete arg1;
d55e5bfc 15436
1bd55598
RD
15437 wxPyEndAllowThreads(__tstate);
15438 if (PyErr_Occurred()) SWIG_fail;
15439 }
15440 resultobj = SWIG_Py_Void();
15441 return resultobj;
15442fail:
15443 return NULL;
15444}
15445
15446
15447SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15448 PyObject *resultobj = 0;
15449 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15450 PyObject *arg2 = (PyObject *) 0 ;
15451 PyObject *arg3 = (PyObject *) 0 ;
c25f90f6 15452 int arg4 = (int) 0 ;
1bd55598
RD
15453 void *argp1 = 0 ;
15454 int res1 = 0 ;
c25f90f6 15455 int val4 ;
1bd55598
RD
15456 int ecode4 = 0 ;
15457 PyObject * obj0 = 0 ;
15458 PyObject * obj1 = 0 ;
15459 PyObject * obj2 = 0 ;
15460 PyObject * obj3 = 0 ;
15461 char * kwnames[] = {
15462 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15463 };
15464
c25f90f6 15465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
15466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15467 if (!SWIG_IsOK(res1)) {
15468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15469 }
15470 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15471 arg2 = obj1;
15472 arg3 = obj2;
c25f90f6
RD
15473 if (obj3) {
15474 ecode4 = SWIG_AsVal_int(obj3, &val4);
15475 if (!SWIG_IsOK(ecode4)) {
15476 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
15477 }
15478 arg4 = static_cast< int >(val4);
15479 }
1bd55598
RD
15480 {
15481 PyThreadState* __tstate = wxPyBeginAllowThreads();
15482 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15483 wxPyEndAllowThreads(__tstate);
15484 if (PyErr_Occurred()) SWIG_fail;
15485 }
15486 resultobj = SWIG_Py_Void();
15487 return resultobj;
15488fail:
15489 return NULL;
15490}
15491
15492
15493SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15494 PyObject *resultobj = 0;
15495 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15496 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15497 bool arg3 = (bool) false ;
15498 bool result;
15499 void *argp1 = 0 ;
15500 int res1 = 0 ;
15501 int val2 ;
15502 int ecode2 = 0 ;
15503 bool val3 ;
15504 int ecode3 = 0 ;
15505 PyObject * obj0 = 0 ;
15506 PyObject * obj1 = 0 ;
15507 PyObject * obj2 = 0 ;
15508 char * kwnames[] = {
15509 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15510 };
15511
15512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15514 if (!SWIG_IsOK(res1)) {
15515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15516 }
15517 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15518 if (obj1) {
15519 ecode2 = SWIG_AsVal_int(obj1, &val2);
15520 if (!SWIG_IsOK(ecode2)) {
15521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15522 }
15523 arg2 = static_cast< wxFontEncoding >(val2);
15524 }
15525 if (obj2) {
15526 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15527 if (!SWIG_IsOK(ecode3)) {
15528 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15529 }
15530 arg3 = static_cast< bool >(val3);
15531 }
15532 {
15533 PyThreadState* __tstate = wxPyBeginAllowThreads();
15534 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15535 wxPyEndAllowThreads(__tstate);
15536 if (PyErr_Occurred()) SWIG_fail;
15537 }
15538 {
15539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15540 }
15541 return resultobj;
15542fail:
15543 return NULL;
15544}
15545
15546
15547SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15548 PyObject *resultobj = 0;
15549 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15550 wxString const &arg2_defvalue = wxPyEmptyString ;
15551 wxString *arg2 = (wxString *) &arg2_defvalue ;
15552 bool result;
15553 void *argp1 = 0 ;
15554 int res1 = 0 ;
15555 bool temp2 = false ;
15556 PyObject * obj0 = 0 ;
15557 PyObject * obj1 = 0 ;
15558 char * kwnames[] = {
15559 (char *) "self",(char *) "facename", NULL
15560 };
15561
15562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15564 if (!SWIG_IsOK(res1)) {
15565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15566 }
15567 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15568 if (obj1) {
36ed4f51 15569 {
1bd55598
RD
15570 arg2 = wxString_in_helper(obj1);
15571 if (arg2 == NULL) SWIG_fail;
15572 temp2 = true;
36ed4f51 15573 }
1bd55598
RD
15574 }
15575 {
15576 PyThreadState* __tstate = wxPyBeginAllowThreads();
15577 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15578 wxPyEndAllowThreads(__tstate);
15579 if (PyErr_Occurred()) SWIG_fail;
15580 }
15581 {
15582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15583 }
15584 {
15585 if (temp2)
15586 delete arg2;
15587 }
15588 return resultobj;
15589fail:
15590 {
15591 if (temp2)
15592 delete arg2;
15593 }
15594 return NULL;
d55e5bfc
RD
15595}
15596
15597
1bd55598
RD
15598SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15599 PyObject *resultobj = 0;
1bd55598 15600 PyObject *result = 0 ;
1bd55598 15601
704eda0c 15602 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
1bd55598
RD
15603 {
15604 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15605 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
1bd55598
RD
15606 wxPyEndAllowThreads(__tstate);
15607 if (PyErr_Occurred()) SWIG_fail;
15608 }
15609 resultobj = result;
15610 return resultobj;
15611fail:
15612 return NULL;
d55e5bfc
RD
15613}
15614
15615
1bd55598
RD
15616SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15617 PyObject *resultobj = 0;
1bd55598 15618 PyObject *result = 0 ;
1bd55598 15619
704eda0c 15620 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
1bd55598
RD
15621 {
15622 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15623 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
1bd55598
RD
15624 wxPyEndAllowThreads(__tstate);
15625 if (PyErr_Occurred()) SWIG_fail;
15626 }
15627 resultobj = result;
15628 return resultobj;
15629fail:
15630 return NULL;
d55e5bfc
RD
15631}
15632
15633
704eda0c
RD
15634SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15635 PyObject *resultobj = 0;
15636 wxString *arg1 = 0 ;
15637 bool result;
15638 bool temp1 = false ;
15639 PyObject * obj0 = 0 ;
15640 char * kwnames[] = {
15641 (char *) "str", NULL
15642 };
15643
15644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15645 {
15646 arg1 = wxString_in_helper(obj0);
15647 if (arg1 == NULL) SWIG_fail;
15648 temp1 = true;
15649 }
15650 {
15651 PyThreadState* __tstate = wxPyBeginAllowThreads();
15652 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15653 wxPyEndAllowThreads(__tstate);
15654 if (PyErr_Occurred()) SWIG_fail;
15655 }
15656 {
15657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15658 }
15659 {
15660 if (temp1)
15661 delete arg1;
15662 }
15663 return resultobj;
15664fail:
15665 {
15666 if (temp1)
15667 delete arg1;
15668 }
15669 return NULL;
15670}
15671
15672
1bd55598
RD
15673SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15674 PyObject *obj;
15675 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15676 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15677 return SWIG_Py_Void();
d55e5bfc
RD
15678}
15679
1bd55598
RD
15680SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15681 return SWIG_Python_InitShadowInstance(args);
15682}
d55e5bfc 15683
1bd55598
RD
15684SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15685 PyObject *resultobj = 0;
15686 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15687 int arg2 ;
15688 void *argp1 = 0 ;
15689 int res1 = 0 ;
15690 int val2 ;
15691 int ecode2 = 0 ;
15692 PyObject *swig_obj[2] ;
15693
15694 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15696 if (!SWIG_IsOK(res1)) {
15697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15698 }
15699 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15700 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15701 if (!SWIG_IsOK(ecode2)) {
15702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15703 }
15704 arg2 = static_cast< int >(val2);
15705 if (arg1) (arg1)->Language = arg2;
15706
15707 resultobj = SWIG_Py_Void();
15708 return resultobj;
15709fail:
15710 return NULL;
d55e5bfc
RD
15711}
15712
15713
1bd55598
RD
15714SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15715 PyObject *resultobj = 0;
15716 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15717 int result;
15718 void *argp1 = 0 ;
15719 int res1 = 0 ;
15720 PyObject *swig_obj[1] ;
15721
15722 if (!args) SWIG_fail;
15723 swig_obj[0] = args;
15724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15725 if (!SWIG_IsOK(res1)) {
15726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15727 }
15728 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15729 result = (int) ((arg1)->Language);
15730 resultobj = SWIG_From_int(static_cast< int >(result));
15731 return resultobj;
15732fail:
15733 return NULL;
15734}
15735
15736
15737SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15738 PyObject *resultobj = 0;
15739 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15740 wxString *arg2 = (wxString *) 0 ;
15741 void *argp1 = 0 ;
15742 int res1 = 0 ;
15743 bool temp2 = false ;
15744 PyObject *swig_obj[2] ;
15745
15746 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15748 if (!SWIG_IsOK(res1)) {
15749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15750 }
15751 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15752 {
15753 arg2 = wxString_in_helper(swig_obj[1]);
15754 if (arg2 == NULL) SWIG_fail;
15755 temp2 = true;
15756 }
15757 if (arg1) (arg1)->CanonicalName = *arg2;
15758
15759 resultobj = SWIG_Py_Void();
15760 {
15761 if (temp2)
15762 delete arg2;
15763 }
15764 return resultobj;
15765fail:
15766 {
15767 if (temp2)
15768 delete arg2;
15769 }
15770 return NULL;
d55e5bfc
RD
15771}
15772
15773
1bd55598
RD
15774SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15775 PyObject *resultobj = 0;
15776 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15777 wxString *result = 0 ;
15778 void *argp1 = 0 ;
15779 int res1 = 0 ;
15780 PyObject *swig_obj[1] ;
15781
15782 if (!args) SWIG_fail;
15783 swig_obj[0] = args;
15784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15785 if (!SWIG_IsOK(res1)) {
15786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15787 }
15788 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15789 result = (wxString *)& ((arg1)->CanonicalName);
15790 {
15791#if wxUSE_UNICODE
15792 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15793#else
15794 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15795#endif
15796 }
15797 return resultobj;
15798fail:
15799 return NULL;
d55e5bfc
RD
15800}
15801
15802
1bd55598
RD
15803SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15804 PyObject *resultobj = 0;
15805 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15806 wxString *arg2 = (wxString *) 0 ;
15807 void *argp1 = 0 ;
15808 int res1 = 0 ;
15809 bool temp2 = false ;
15810 PyObject *swig_obj[2] ;
15811
15812 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15814 if (!SWIG_IsOK(res1)) {
15815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15816 }
15817 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15818 {
15819 arg2 = wxString_in_helper(swig_obj[1]);
15820 if (arg2 == NULL) SWIG_fail;
15821 temp2 = true;
15822 }
15823 if (arg1) (arg1)->Description = *arg2;
15824
15825 resultobj = SWIG_Py_Void();
15826 {
15827 if (temp2)
15828 delete arg2;
15829 }
15830 return resultobj;
15831fail:
15832 {
15833 if (temp2)
15834 delete arg2;
15835 }
15836 return NULL;
d55e5bfc
RD
15837}
15838
15839
1bd55598
RD
15840SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15841 PyObject *resultobj = 0;
15842 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15843 wxString *result = 0 ;
15844 void *argp1 = 0 ;
15845 int res1 = 0 ;
15846 PyObject *swig_obj[1] ;
15847
15848 if (!args) SWIG_fail;
15849 swig_obj[0] = args;
15850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15851 if (!SWIG_IsOK(res1)) {
15852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15853 }
15854 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15855 result = (wxString *)& ((arg1)->Description);
15856 {
15857#if wxUSE_UNICODE
15858 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15859#else
15860 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15861#endif
15862 }
15863 return resultobj;
15864fail:
15865 return NULL;
15866}
15867
15868
15869SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15870 PyObject *obj;
15871 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15872 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15873 return SWIG_Py_Void();
15874}
15875
15876SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15877 PyObject *resultobj = 0;
15878 int arg1 = (int) -1 ;
15879 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15880 wxLocale *result = 0 ;
15881 int val1 ;
15882 int ecode1 = 0 ;
15883 int val2 ;
15884 int ecode2 = 0 ;
15885 PyObject * obj0 = 0 ;
15886 PyObject * obj1 = 0 ;
15887 char * kwnames[] = {
15888 (char *) "language",(char *) "flags", NULL
15889 };
15890
15891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15892 if (obj0) {
15893 ecode1 = SWIG_AsVal_int(obj0, &val1);
15894 if (!SWIG_IsOK(ecode1)) {
15895 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15896 }
15897 arg1 = static_cast< int >(val1);
15898 }
15899 if (obj1) {
15900 ecode2 = SWIG_AsVal_int(obj1, &val2);
15901 if (!SWIG_IsOK(ecode2)) {
15902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15903 }
15904 arg2 = static_cast< int >(val2);
15905 }
15906 {
15907 PyThreadState* __tstate = wxPyBeginAllowThreads();
15908 result = (wxLocale *)new_wxLocale(arg1,arg2);
15909 wxPyEndAllowThreads(__tstate);
15910 if (PyErr_Occurred()) SWIG_fail;
15911 }
15912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15913 return resultobj;
15914fail:
15915 return NULL;
d55e5bfc
RD
15916}
15917
15918
1bd55598
RD
15919SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15920 PyObject *resultobj = 0;
15921 wxLocale *arg1 = (wxLocale *) 0 ;
15922 void *argp1 = 0 ;
15923 int res1 = 0 ;
15924 PyObject *swig_obj[1] ;
15925
15926 if (!args) SWIG_fail;
15927 swig_obj[0] = args;
15928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15929 if (!SWIG_IsOK(res1)) {
15930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15931 }
15932 arg1 = reinterpret_cast< wxLocale * >(argp1);
15933 {
15934 PyThreadState* __tstate = wxPyBeginAllowThreads();
15935 delete arg1;
d55e5bfc 15936
1bd55598
RD
15937 wxPyEndAllowThreads(__tstate);
15938 if (PyErr_Occurred()) SWIG_fail;
15939 }
15940 resultobj = SWIG_Py_Void();
15941 return resultobj;
15942fail:
15943 return NULL;
15944}
15945
15946
15947SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15948 PyObject *resultobj = 0;
15949 wxLocale *arg1 = (wxLocale *) 0 ;
15950 wxString *arg2 = 0 ;
15951 wxString const &arg3_defvalue = wxPyEmptyString ;
15952 wxString *arg3 = (wxString *) &arg3_defvalue ;
15953 wxString const &arg4_defvalue = wxPyEmptyString ;
15954 wxString *arg4 = (wxString *) &arg4_defvalue ;
15955 bool arg5 = (bool) true ;
15956 bool arg6 = (bool) false ;
15957 bool result;
15958 void *argp1 = 0 ;
15959 int res1 = 0 ;
15960 bool temp2 = false ;
15961 bool temp3 = false ;
15962 bool temp4 = false ;
15963 bool val5 ;
15964 int ecode5 = 0 ;
15965 bool val6 ;
15966 int ecode6 = 0 ;
15967 PyObject * obj0 = 0 ;
15968 PyObject * obj1 = 0 ;
15969 PyObject * obj2 = 0 ;
15970 PyObject * obj3 = 0 ;
15971 PyObject * obj4 = 0 ;
15972 PyObject * obj5 = 0 ;
15973 char * kwnames[] = {
cbfc9df6 15974 (char *) "self",(char *) "name",(char *) "shortName",(char *) "locale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
1bd55598
RD
15975 };
15976
15977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15979 if (!SWIG_IsOK(res1)) {
15980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15981 }
15982 arg1 = reinterpret_cast< wxLocale * >(argp1);
15983 {
15984 arg2 = wxString_in_helper(obj1);
15985 if (arg2 == NULL) SWIG_fail;
15986 temp2 = true;
15987 }
15988 if (obj2) {
d55e5bfc 15989 {
1bd55598
RD
15990 arg3 = wxString_in_helper(obj2);
15991 if (arg3 == NULL) SWIG_fail;
15992 temp3 = true;
d55e5bfc 15993 }
1bd55598
RD
15994 }
15995 if (obj3) {
36ed4f51 15996 {
1bd55598
RD
15997 arg4 = wxString_in_helper(obj3);
15998 if (arg4 == NULL) SWIG_fail;
15999 temp4 = true;
36ed4f51 16000 }
1bd55598
RD
16001 }
16002 if (obj4) {
16003 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16004 if (!SWIG_IsOK(ecode5)) {
16005 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16006 }
16007 arg5 = static_cast< bool >(val5);
16008 }
16009 if (obj5) {
16010 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16011 if (!SWIG_IsOK(ecode6)) {
16012 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16013 }
16014 arg6 = static_cast< bool >(val6);
16015 }
16016 {
16017 PyThreadState* __tstate = wxPyBeginAllowThreads();
16018 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16019 wxPyEndAllowThreads(__tstate);
16020 if (PyErr_Occurred()) SWIG_fail;
16021 }
16022 {
16023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16024 }
16025 {
16026 if (temp2)
16027 delete arg2;
16028 }
16029 {
16030 if (temp3)
16031 delete arg3;
16032 }
16033 {
16034 if (temp4)
16035 delete arg4;
16036 }
16037 return resultobj;
16038fail:
16039 {
16040 if (temp2)
16041 delete arg2;
16042 }
16043 {
16044 if (temp3)
16045 delete arg3;
16046 }
16047 {
16048 if (temp4)
16049 delete arg4;
16050 }
16051 return NULL;
16052}
16053
16054
16055SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16056 PyObject *resultobj = 0;
16057 wxLocale *arg1 = (wxLocale *) 0 ;
16058 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16059 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16060 bool result;
16061 void *argp1 = 0 ;
16062 int res1 = 0 ;
16063 int val2 ;
16064 int ecode2 = 0 ;
16065 int val3 ;
16066 int ecode3 = 0 ;
16067 PyObject * obj0 = 0 ;
16068 PyObject * obj1 = 0 ;
16069 PyObject * obj2 = 0 ;
16070 char * kwnames[] = {
16071 (char *) "self",(char *) "language",(char *) "flags", NULL
16072 };
16073
16074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16076 if (!SWIG_IsOK(res1)) {
16077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16078 }
16079 arg1 = reinterpret_cast< wxLocale * >(argp1);
16080 if (obj1) {
16081 ecode2 = SWIG_AsVal_int(obj1, &val2);
16082 if (!SWIG_IsOK(ecode2)) {
16083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16084 }
16085 arg2 = static_cast< int >(val2);
16086 }
16087 if (obj2) {
16088 ecode3 = SWIG_AsVal_int(obj2, &val3);
16089 if (!SWIG_IsOK(ecode3)) {
16090 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16091 }
16092 arg3 = static_cast< int >(val3);
16093 }
16094 {
16095 PyThreadState* __tstate = wxPyBeginAllowThreads();
16096 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16097 wxPyEndAllowThreads(__tstate);
16098 if (PyErr_Occurred()) SWIG_fail;
16099 }
16100 {
16101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16102 }
16103 return resultobj;
16104fail:
16105 return NULL;
d55e5bfc
RD
16106}
16107
16108
1bd55598
RD
16109SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16110 PyObject *resultobj = 0;
16111 int result;
16112
16113 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16114 {
16115 PyThreadState* __tstate = wxPyBeginAllowThreads();
16116 result = (int)wxLocale::GetSystemLanguage();
16117 wxPyEndAllowThreads(__tstate);
16118 if (PyErr_Occurred()) SWIG_fail;
16119 }
16120 resultobj = SWIG_From_int(static_cast< int >(result));
16121 return resultobj;
16122fail:
16123 return NULL;
d55e5bfc
RD
16124}
16125
16126
1bd55598
RD
16127SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16128 PyObject *resultobj = 0;
16129 wxFontEncoding result;
16130
16131 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16132 {
16133 PyThreadState* __tstate = wxPyBeginAllowThreads();
16134 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16135 wxPyEndAllowThreads(__tstate);
16136 if (PyErr_Occurred()) SWIG_fail;
16137 }
16138 resultobj = SWIG_From_int(static_cast< int >(result));
16139 return resultobj;
16140fail:
16141 return NULL;
d55e5bfc
RD
16142}
16143
16144
1bd55598
RD
16145SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16146 PyObject *resultobj = 0;
16147 wxString result;
16148
16149 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16150 {
16151 PyThreadState* __tstate = wxPyBeginAllowThreads();
16152 result = wxLocale::GetSystemEncodingName();
16153 wxPyEndAllowThreads(__tstate);
16154 if (PyErr_Occurred()) SWIG_fail;
16155 }
16156 {
16157#if wxUSE_UNICODE
16158 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16159#else
16160 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16161#endif
16162 }
16163 return resultobj;
16164fail:
16165 return NULL;
d55e5bfc
RD
16166}
16167
16168
1bd55598
RD
16169SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16170 PyObject *resultobj = 0;
16171 wxLocale *arg1 = (wxLocale *) 0 ;
16172 bool result;
16173 void *argp1 = 0 ;
16174 int res1 = 0 ;
16175 PyObject *swig_obj[1] ;
16176
16177 if (!args) SWIG_fail;
16178 swig_obj[0] = args;
16179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16180 if (!SWIG_IsOK(res1)) {
16181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16182 }
16183 arg1 = reinterpret_cast< wxLocale * >(argp1);
16184 {
16185 PyThreadState* __tstate = wxPyBeginAllowThreads();
16186 result = (bool)((wxLocale const *)arg1)->IsOk();
16187 wxPyEndAllowThreads(__tstate);
16188 if (PyErr_Occurred()) SWIG_fail;
16189 }
16190 {
16191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16192 }
16193 return resultobj;
16194fail:
16195 return NULL;
d55e5bfc
RD
16196}
16197
16198
1bd55598
RD
16199SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16200 PyObject *resultobj = 0;
16201 wxLocale *arg1 = (wxLocale *) 0 ;
16202 wxString result;
16203 void *argp1 = 0 ;
16204 int res1 = 0 ;
16205 PyObject *swig_obj[1] ;
16206
16207 if (!args) SWIG_fail;
16208 swig_obj[0] = args;
16209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16210 if (!SWIG_IsOK(res1)) {
16211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16212 }
16213 arg1 = reinterpret_cast< wxLocale * >(argp1);
16214 {
16215 PyThreadState* __tstate = wxPyBeginAllowThreads();
16216 result = ((wxLocale const *)arg1)->GetLocale();
16217 wxPyEndAllowThreads(__tstate);
16218 if (PyErr_Occurred()) SWIG_fail;
16219 }
16220 {
16221#if wxUSE_UNICODE
16222 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16223#else
16224 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16225#endif
16226 }
16227 return resultobj;
16228fail:
16229 return NULL;
d55e5bfc
RD
16230}
16231
16232
1bd55598
RD
16233SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16234 PyObject *resultobj = 0;
16235 wxLocale *arg1 = (wxLocale *) 0 ;
16236 int result;
16237 void *argp1 = 0 ;
16238 int res1 = 0 ;
16239 PyObject *swig_obj[1] ;
16240
16241 if (!args) SWIG_fail;
16242 swig_obj[0] = args;
16243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16244 if (!SWIG_IsOK(res1)) {
16245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16246 }
16247 arg1 = reinterpret_cast< wxLocale * >(argp1);
16248 {
16249 PyThreadState* __tstate = wxPyBeginAllowThreads();
16250 result = (int)((wxLocale const *)arg1)->GetLanguage();
16251 wxPyEndAllowThreads(__tstate);
16252 if (PyErr_Occurred()) SWIG_fail;
16253 }
16254 resultobj = SWIG_From_int(static_cast< int >(result));
16255 return resultobj;
16256fail:
16257 return NULL;
d55e5bfc
RD
16258}
16259
16260
1bd55598
RD
16261SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16262 PyObject *resultobj = 0;
16263 wxLocale *arg1 = (wxLocale *) 0 ;
16264 wxString result;
16265 void *argp1 = 0 ;
16266 int res1 = 0 ;
16267 PyObject *swig_obj[1] ;
16268
16269 if (!args) SWIG_fail;
16270 swig_obj[0] = args;
16271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16272 if (!SWIG_IsOK(res1)) {
16273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16274 }
16275 arg1 = reinterpret_cast< wxLocale * >(argp1);
16276 {
16277 PyThreadState* __tstate = wxPyBeginAllowThreads();
16278 result = ((wxLocale const *)arg1)->GetSysName();
16279 wxPyEndAllowThreads(__tstate);
16280 if (PyErr_Occurred()) SWIG_fail;
16281 }
16282 {
36ed4f51 16283#if wxUSE_UNICODE
1bd55598 16284 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16285#else
1bd55598 16286 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16287#endif
1bd55598
RD
16288 }
16289 return resultobj;
16290fail:
16291 return NULL;
d55e5bfc
RD
16292}
16293
16294
1bd55598
RD
16295SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16296 PyObject *resultobj = 0;
16297 wxLocale *arg1 = (wxLocale *) 0 ;
16298 wxString result;
16299 void *argp1 = 0 ;
16300 int res1 = 0 ;
16301 PyObject *swig_obj[1] ;
16302
16303 if (!args) SWIG_fail;
16304 swig_obj[0] = args;
16305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16306 if (!SWIG_IsOK(res1)) {
16307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16308 }
16309 arg1 = reinterpret_cast< wxLocale * >(argp1);
16310 {
16311 PyThreadState* __tstate = wxPyBeginAllowThreads();
16312 result = ((wxLocale const *)arg1)->GetCanonicalName();
16313 wxPyEndAllowThreads(__tstate);
16314 if (PyErr_Occurred()) SWIG_fail;
16315 }
16316 {
16317#if wxUSE_UNICODE
16318 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16319#else
16320 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16321#endif
16322 }
16323 return resultobj;
16324fail:
16325 return NULL;
d55e5bfc
RD
16326}
16327
16328
1bd55598
RD
16329SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16330 PyObject *resultobj = 0;
16331 wxString *arg1 = 0 ;
16332 bool temp1 = false ;
16333 PyObject * obj0 = 0 ;
16334 char * kwnames[] = {
16335 (char *) "prefix", NULL
16336 };
16337
16338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16339 {
16340 arg1 = wxString_in_helper(obj0);
16341 if (arg1 == NULL) SWIG_fail;
16342 temp1 = true;
16343 }
16344 {
16345 PyThreadState* __tstate = wxPyBeginAllowThreads();
16346 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16347 wxPyEndAllowThreads(__tstate);
16348 if (PyErr_Occurred()) SWIG_fail;
16349 }
16350 resultobj = SWIG_Py_Void();
16351 {
16352 if (temp1)
16353 delete arg1;
16354 }
16355 return resultobj;
16356fail:
16357 {
16358 if (temp1)
16359 delete arg1;
16360 }
16361 return NULL;
16362}
16363
16364
16365SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16366 PyObject *resultobj = 0;
16367 wxLocale *arg1 = (wxLocale *) 0 ;
16368 wxString *arg2 = 0 ;
16369 bool result;
16370 void *argp1 = 0 ;
16371 int res1 = 0 ;
16372 bool temp2 = false ;
16373 PyObject * obj0 = 0 ;
16374 PyObject * obj1 = 0 ;
16375 char * kwnames[] = {
cbfc9df6 16376 (char *) "self",(char *) "domain", NULL
1bd55598
RD
16377 };
16378
16379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16381 if (!SWIG_IsOK(res1)) {
16382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16383 }
16384 arg1 = reinterpret_cast< wxLocale * >(argp1);
16385 {
16386 arg2 = wxString_in_helper(obj1);
16387 if (arg2 == NULL) SWIG_fail;
16388 temp2 = true;
16389 }
16390 {
16391 PyThreadState* __tstate = wxPyBeginAllowThreads();
16392 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16393 wxPyEndAllowThreads(__tstate);
16394 if (PyErr_Occurred()) SWIG_fail;
16395 }
16396 {
16397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16398 }
16399 {
16400 if (temp2)
16401 delete arg2;
16402 }
16403 return resultobj;
16404fail:
16405 {
16406 if (temp2)
16407 delete arg2;
16408 }
16409 return NULL;
16410}
16411
16412
33d6fd3b
RD
16413SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16414 PyObject *resultobj = 0;
16415 int arg1 ;
16416 bool result;
16417 int val1 ;
16418 int ecode1 = 0 ;
16419 PyObject * obj0 = 0 ;
16420 char * kwnames[] = {
16421 (char *) "lang", NULL
16422 };
16423
16424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16425 ecode1 = SWIG_AsVal_int(obj0, &val1);
16426 if (!SWIG_IsOK(ecode1)) {
16427 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16428 }
16429 arg1 = static_cast< int >(val1);
16430 {
16431 PyThreadState* __tstate = wxPyBeginAllowThreads();
16432 result = (bool)wxLocale::IsAvailable(arg1);
16433 wxPyEndAllowThreads(__tstate);
16434 if (PyErr_Occurred()) SWIG_fail;
16435 }
16436 {
16437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16438 }
16439 return resultobj;
16440fail:
16441 return NULL;
16442}
16443
16444
1bd55598
RD
16445SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16446 PyObject *resultobj = 0;
16447 wxLocale *arg1 = (wxLocale *) 0 ;
16448 wxString *arg2 = 0 ;
16449 bool result;
16450 void *argp1 = 0 ;
16451 int res1 = 0 ;
16452 bool temp2 = false ;
16453 PyObject * obj0 = 0 ;
16454 PyObject * obj1 = 0 ;
16455 char * kwnames[] = {
cbfc9df6 16456 (char *) "self",(char *) "domain", NULL
1bd55598
RD
16457 };
16458
16459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16461 if (!SWIG_IsOK(res1)) {
16462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16463 }
16464 arg1 = reinterpret_cast< wxLocale * >(argp1);
16465 {
16466 arg2 = wxString_in_helper(obj1);
16467 if (arg2 == NULL) SWIG_fail;
16468 temp2 = true;
16469 }
16470 {
16471 PyThreadState* __tstate = wxPyBeginAllowThreads();
16472 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16473 wxPyEndAllowThreads(__tstate);
16474 if (PyErr_Occurred()) SWIG_fail;
16475 }
16476 {
16477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16478 }
16479 {
16480 if (temp2)
16481 delete arg2;
16482 }
16483 return resultobj;
16484fail:
16485 {
16486 if (temp2)
16487 delete arg2;
16488 }
16489 return NULL;
d55e5bfc
RD
16490}
16491
16492
1bd55598
RD
16493SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16494 PyObject *resultobj = 0;
16495 int arg1 ;
16496 wxLanguageInfo *result = 0 ;
16497 int val1 ;
16498 int ecode1 = 0 ;
16499 PyObject * obj0 = 0 ;
16500 char * kwnames[] = {
16501 (char *) "lang", NULL
16502 };
16503
16504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16505 ecode1 = SWIG_AsVal_int(obj0, &val1);
16506 if (!SWIG_IsOK(ecode1)) {
16507 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16508 }
16509 arg1 = static_cast< int >(val1);
16510 {
16511 PyThreadState* __tstate = wxPyBeginAllowThreads();
16512 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16513 wxPyEndAllowThreads(__tstate);
16514 if (PyErr_Occurred()) SWIG_fail;
16515 }
16516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16517 return resultobj;
16518fail:
16519 return NULL;
16520}
16521
16522
16523SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16524 PyObject *resultobj = 0;
16525 int arg1 ;
16526 wxString result;
16527 int val1 ;
16528 int ecode1 = 0 ;
16529 PyObject * obj0 = 0 ;
16530 char * kwnames[] = {
16531 (char *) "lang", NULL
16532 };
16533
16534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16535 ecode1 = SWIG_AsVal_int(obj0, &val1);
16536 if (!SWIG_IsOK(ecode1)) {
16537 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16538 }
16539 arg1 = static_cast< int >(val1);
16540 {
16541 PyThreadState* __tstate = wxPyBeginAllowThreads();
16542 result = wxLocale::GetLanguageName(arg1);
16543 wxPyEndAllowThreads(__tstate);
16544 if (PyErr_Occurred()) SWIG_fail;
16545 }
16546 {
16547#if wxUSE_UNICODE
16548 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16549#else
16550 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16551#endif
16552 }
16553 return resultobj;
16554fail:
16555 return NULL;
d55e5bfc
RD
16556}
16557
16558
1bd55598
RD
16559SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16560 PyObject *resultobj = 0;
16561 wxString *arg1 = 0 ;
16562 wxLanguageInfo *result = 0 ;
16563 bool temp1 = false ;
16564 PyObject * obj0 = 0 ;
16565 char * kwnames[] = {
16566 (char *) "locale", NULL
16567 };
16568
16569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16570 {
16571 arg1 = wxString_in_helper(obj0);
16572 if (arg1 == NULL) SWIG_fail;
16573 temp1 = true;
16574 }
16575 {
16576 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16577 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16578 wxPyEndAllowThreads(__tstate);
16579 if (PyErr_Occurred()) SWIG_fail;
16580 }
16581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16582 {
16583 if (temp1)
16584 delete arg1;
16585 }
16586 return resultobj;
16587fail:
16588 {
16589 if (temp1)
16590 delete arg1;
16591 }
16592 return NULL;
16593}
16594
16595
16596SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16597 PyObject *resultobj = 0;
16598 wxLanguageInfo *arg1 = 0 ;
16599 void *argp1 = 0 ;
16600 int res1 = 0 ;
16601 PyObject * obj0 = 0 ;
16602 char * kwnames[] = {
16603 (char *) "info", NULL
16604 };
16605
16606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16607 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16608 if (!SWIG_IsOK(res1)) {
16609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16610 }
16611 if (!argp1) {
16612 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16613 }
16614 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16615 {
16616 PyThreadState* __tstate = wxPyBeginAllowThreads();
16617 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16618 wxPyEndAllowThreads(__tstate);
16619 if (PyErr_Occurred()) SWIG_fail;
16620 }
16621 resultobj = SWIG_Py_Void();
16622 return resultobj;
16623fail:
16624 return NULL;
16625}
16626
16627
16628SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16629 PyObject *resultobj = 0;
16630 wxLocale *arg1 = (wxLocale *) 0 ;
16631 wxString *arg2 = 0 ;
16632 wxString const &arg3_defvalue = wxPyEmptyString ;
16633 wxString *arg3 = (wxString *) &arg3_defvalue ;
16634 wxString result;
16635 void *argp1 = 0 ;
16636 int res1 = 0 ;
16637 bool temp2 = false ;
16638 bool temp3 = false ;
16639 PyObject * obj0 = 0 ;
16640 PyObject * obj1 = 0 ;
16641 PyObject * obj2 = 0 ;
16642 char * kwnames[] = {
cbfc9df6 16643 (char *) "self",(char *) "origString",(char *) "domain", NULL
fc46b7f3
RD
16644 };
16645
16646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16648 if (!SWIG_IsOK(res1)) {
16649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16650 }
16651 arg1 = reinterpret_cast< wxLocale * >(argp1);
16652 {
16653 arg2 = wxString_in_helper(obj1);
16654 if (arg2 == NULL) SWIG_fail;
16655 temp2 = true;
16656 }
16657 if (obj2) {
16658 {
16659 arg3 = wxString_in_helper(obj2);
16660 if (arg3 == NULL) SWIG_fail;
16661 temp3 = true;
16662 }
16663 }
16664 {
16665 PyThreadState* __tstate = wxPyBeginAllowThreads();
16666 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16667 wxPyEndAllowThreads(__tstate);
16668 if (PyErr_Occurred()) SWIG_fail;
16669 }
16670 {
16671#if wxUSE_UNICODE
16672 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16673#else
16674 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16675#endif
16676 }
16677 {
16678 if (temp2)
16679 delete arg2;
16680 }
16681 {
16682 if (temp3)
16683 delete arg3;
16684 }
16685 return resultobj;
16686fail:
16687 {
16688 if (temp2)
16689 delete arg2;
16690 }
16691 {
16692 if (temp3)
16693 delete arg3;
16694 }
16695 return NULL;
16696}
16697
16698
16699SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16700 PyObject *resultobj = 0;
16701 wxLocale *arg1 = (wxLocale *) 0 ;
16702 wxString *result = 0 ;
16703 void *argp1 = 0 ;
16704 int res1 = 0 ;
16705 PyObject *swig_obj[1] ;
16706
16707 if (!args) SWIG_fail;
16708 swig_obj[0] = args;
16709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16710 if (!SWIG_IsOK(res1)) {
16711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16712 }
16713 arg1 = reinterpret_cast< wxLocale * >(argp1);
16714 {
16715 PyThreadState* __tstate = wxPyBeginAllowThreads();
16716 {
16717 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16718 result = (wxString *) &_result_ref;
16719 }
16720 wxPyEndAllowThreads(__tstate);
16721 if (PyErr_Occurred()) SWIG_fail;
16722 }
16723 {
16724#if wxUSE_UNICODE
16725 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16726#else
16727 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16728#endif
16729 }
16730 return resultobj;
16731fail:
16732 return NULL;
16733}
16734
16735
16736SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16737 PyObject *obj;
16738 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16739 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16740 return SWIG_Py_Void();
16741}
16742
16743SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16744 return SWIG_Python_InitShadowInstance(args);
16745}
16746
16747SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16748 PyObject *resultobj = 0;
16749 int arg1 = (int) -1 ;
16750 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16751 wxPyLocale *result = 0 ;
16752 int val1 ;
16753 int ecode1 = 0 ;
16754 int val2 ;
16755 int ecode2 = 0 ;
16756 PyObject * obj0 = 0 ;
16757 PyObject * obj1 = 0 ;
16758 char * kwnames[] = {
16759 (char *) "language",(char *) "flags", NULL
16760 };
16761
16762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16763 if (obj0) {
16764 ecode1 = SWIG_AsVal_int(obj0, &val1);
16765 if (!SWIG_IsOK(ecode1)) {
16766 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16767 }
16768 arg1 = static_cast< int >(val1);
16769 }
16770 if (obj1) {
16771 ecode2 = SWIG_AsVal_int(obj1, &val2);
16772 if (!SWIG_IsOK(ecode2)) {
16773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16774 }
16775 arg2 = static_cast< int >(val2);
16776 }
16777 {
16778 PyThreadState* __tstate = wxPyBeginAllowThreads();
16779 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16780 wxPyEndAllowThreads(__tstate);
16781 if (PyErr_Occurred()) SWIG_fail;
16782 }
16783 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16784 return resultobj;
16785fail:
16786 return NULL;
16787}
16788
16789
16790SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16791 PyObject *resultobj = 0;
16792 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16793 void *argp1 = 0 ;
16794 int res1 = 0 ;
16795 PyObject *swig_obj[1] ;
16796
16797 if (!args) SWIG_fail;
16798 swig_obj[0] = args;
16799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16800 if (!SWIG_IsOK(res1)) {
16801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16802 }
16803 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16804 {
16805 PyThreadState* __tstate = wxPyBeginAllowThreads();
16806 delete arg1;
16807
1bd55598
RD
16808 wxPyEndAllowThreads(__tstate);
16809 if (PyErr_Occurred()) SWIG_fail;
16810 }
fc46b7f3 16811 resultobj = SWIG_Py_Void();
1bd55598
RD
16812 return resultobj;
16813fail:
1bd55598 16814 return NULL;
d55e5bfc
RD
16815}
16816
16817
fc46b7f3 16818SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16819 PyObject *resultobj = 0;
fc46b7f3
RD
16820 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16821 PyObject *arg2 = (PyObject *) 0 ;
16822 PyObject *arg3 = (PyObject *) 0 ;
1bd55598
RD
16823 void *argp1 = 0 ;
16824 int res1 = 0 ;
16825 PyObject * obj0 = 0 ;
fc46b7f3
RD
16826 PyObject * obj1 = 0 ;
16827 PyObject * obj2 = 0 ;
1bd55598 16828 char * kwnames[] = {
fc46b7f3 16829 (char *) "self",(char *) "self",(char *) "_class", NULL
1bd55598
RD
16830 };
16831
fc46b7f3
RD
16832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16834 if (!SWIG_IsOK(res1)) {
fc46b7f3 16835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
1bd55598 16836 }
fc46b7f3
RD
16837 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16838 arg2 = obj1;
16839 arg3 = obj2;
1bd55598
RD
16840 {
16841 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16842 (arg1)->_setCallbackInfo(arg2,arg3);
1bd55598
RD
16843 wxPyEndAllowThreads(__tstate);
16844 if (PyErr_Occurred()) SWIG_fail;
16845 }
16846 resultobj = SWIG_Py_Void();
16847 return resultobj;
16848fail:
16849 return NULL;
16850}
16851
16852
fc46b7f3 16853SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16854 PyObject *resultobj = 0;
fc46b7f3 16855 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
cbfc9df6
RD
16856 wxString *arg2 = 0 ;
16857 wxString const &arg3_defvalue = wxPyEmptyString ;
16858 wxString *arg3 = (wxString *) &arg3_defvalue ;
16859 wxString *result = 0 ;
1bd55598
RD
16860 void *argp1 = 0 ;
16861 int res1 = 0 ;
cbfc9df6
RD
16862 bool temp2 = false ;
16863 bool temp3 = false ;
1bd55598
RD
16864 PyObject * obj0 = 0 ;
16865 PyObject * obj1 = 0 ;
16866 PyObject * obj2 = 0 ;
16867 char * kwnames[] = {
cbfc9df6 16868 (char *) "self",(char *) "origString",(char *) "domain", NULL
1bd55598
RD
16869 };
16870
fc46b7f3
RD
16871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16873 if (!SWIG_IsOK(res1)) {
fc46b7f3 16874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
1bd55598 16875 }
fc46b7f3 16876 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
cbfc9df6
RD
16877 {
16878 arg2 = wxString_in_helper(obj1);
16879 if (arg2 == NULL) SWIG_fail;
16880 temp2 = true;
1bd55598
RD
16881 }
16882 if (obj2) {
cbfc9df6
RD
16883 {
16884 arg3 = wxString_in_helper(obj2);
16885 if (arg3 == NULL) SWIG_fail;
16886 temp3 = true;
d55e5bfc 16887 }
1bd55598
RD
16888 }
16889 {
16890 PyThreadState* __tstate = wxPyBeginAllowThreads();
cbfc9df6
RD
16891 {
16892 wxString const &_result_ref = ((wxPyLocale const *)arg1)->GetSingularString((wxString const &)*arg2,(wxString const &)*arg3);
16893 result = (wxString *) &_result_ref;
16894 }
1bd55598
RD
16895 wxPyEndAllowThreads(__tstate);
16896 if (PyErr_Occurred()) SWIG_fail;
16897 }
cbfc9df6
RD
16898 {
16899#if wxUSE_UNICODE
16900 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16901#else
16902 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16903#endif
16904 }
16905 {
16906 if (temp2)
16907 delete arg2;
16908 }
16909 {
16910 if (temp3)
16911 delete arg3;
16912 }
1bd55598
RD
16913 return resultobj;
16914fail:
cbfc9df6
RD
16915 {
16916 if (temp2)
16917 delete arg2;
16918 }
16919 {
16920 if (temp3)
16921 delete arg3;
16922 }
1bd55598 16923 return NULL;
d55e5bfc
RD
16924}
16925
16926
fc46b7f3 16927SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16928 PyObject *resultobj = 0;
fc46b7f3 16929 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
cbfc9df6
RD
16930 wxString *arg2 = 0 ;
16931 wxString *arg3 = 0 ;
fc46b7f3 16932 size_t arg4 ;
cbfc9df6
RD
16933 wxString const &arg5_defvalue = wxPyEmptyString ;
16934 wxString *arg5 = (wxString *) &arg5_defvalue ;
16935 wxString *result = 0 ;
1bd55598
RD
16936 void *argp1 = 0 ;
16937 int res1 = 0 ;
cbfc9df6
RD
16938 bool temp2 = false ;
16939 bool temp3 = false ;
fc46b7f3
RD
16940 size_t val4 ;
16941 int ecode4 = 0 ;
cbfc9df6 16942 bool temp5 = false ;
fc46b7f3
RD
16943 PyObject * obj0 = 0 ;
16944 PyObject * obj1 = 0 ;
16945 PyObject * obj2 = 0 ;
16946 PyObject * obj3 = 0 ;
16947 PyObject * obj4 = 0 ;
16948 char * kwnames[] = {
cbfc9df6 16949 (char *) "self",(char *) "origString",(char *) "origString2",(char *) "n",(char *) "domain", NULL
fc46b7f3 16950 };
1bd55598 16951
fc46b7f3
RD
16952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16954 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
16955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16956 }
16957 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
cbfc9df6
RD
16958 {
16959 arg2 = wxString_in_helper(obj1);
16960 if (arg2 == NULL) SWIG_fail;
16961 temp2 = true;
fc46b7f3 16962 }
cbfc9df6
RD
16963 {
16964 arg3 = wxString_in_helper(obj2);
16965 if (arg3 == NULL) SWIG_fail;
16966 temp3 = true;
fc46b7f3 16967 }
fc46b7f3
RD
16968 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16969 if (!SWIG_IsOK(ecode4)) {
16970 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16971 }
16972 arg4 = static_cast< size_t >(val4);
16973 if (obj4) {
cbfc9df6
RD
16974 {
16975 arg5 = wxString_in_helper(obj4);
16976 if (arg5 == NULL) SWIG_fail;
16977 temp5 = true;
fc46b7f3 16978 }
1bd55598 16979 }
1bd55598
RD
16980 {
16981 PyThreadState* __tstate = wxPyBeginAllowThreads();
cbfc9df6
RD
16982 {
16983 wxString const &_result_ref = ((wxPyLocale const *)arg1)->GetPluralString((wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
16984 result = (wxString *) &_result_ref;
16985 }
1bd55598
RD
16986 wxPyEndAllowThreads(__tstate);
16987 if (PyErr_Occurred()) SWIG_fail;
16988 }
cbfc9df6
RD
16989 {
16990#if wxUSE_UNICODE
16991 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16992#else
16993 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16994#endif
16995 }
16996 {
16997 if (temp2)
16998 delete arg2;
16999 }
17000 {
17001 if (temp3)
17002 delete arg3;
17003 }
17004 {
17005 if (temp5)
17006 delete arg5;
17007 }
1bd55598
RD
17008 return resultobj;
17009fail:
cbfc9df6
RD
17010 {
17011 if (temp2)
17012 delete arg2;
17013 }
17014 {
17015 if (temp3)
17016 delete arg3;
17017 }
17018 {
17019 if (temp5)
17020 delete arg5;
17021 }
1bd55598 17022 return NULL;
d55e5bfc
RD
17023}
17024
17025
fc46b7f3 17026SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
17027 PyObject *obj;
17028 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 17029 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
1bd55598 17030 return SWIG_Py_Void();
d55e5bfc
RD
17031}
17032
fc46b7f3 17033SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 17034 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17035}
17036
1bd55598
RD
17037SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17038 PyObject *resultobj = 0;
17039 wxLocale *result = 0 ;
17040
17041 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17042 {
17043 PyThreadState* __tstate = wxPyBeginAllowThreads();
17044 result = (wxLocale *)wxGetLocale();
17045 wxPyEndAllowThreads(__tstate);
17046 if (PyErr_Occurred()) SWIG_fail;
17047 }
17048 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17049 return resultobj;
17050fail:
17051 return NULL;
d55e5bfc
RD
17052}
17053
17054
1bd55598
RD
17055SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17056 PyObject *resultobj = 0;
17057 wxString *arg1 = 0 ;
17058 wxString result;
17059 bool temp1 = false ;
17060
17061 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17062 {
17063 arg1 = wxString_in_helper(swig_obj[0]);
17064 if (arg1 == NULL) SWIG_fail;
17065 temp1 = true;
17066 }
17067 {
17068 PyThreadState* __tstate = wxPyBeginAllowThreads();
17069 result = wxGetTranslation((wxString const &)*arg1);
17070 wxPyEndAllowThreads(__tstate);
17071 if (PyErr_Occurred()) SWIG_fail;
17072 }
17073 {
36ed4f51 17074#if wxUSE_UNICODE
1bd55598 17075 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 17076#else
1bd55598 17077 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 17078#endif
1bd55598
RD
17079 }
17080 {
17081 if (temp1)
17082 delete arg1;
17083 }
17084 return resultobj;
17085fail:
17086 {
17087 if (temp1)
17088 delete arg1;
17089 }
17090 return NULL;
5e483524
RD
17091}
17092
17093
1bd55598 17094SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
17095 PyObject *resultobj = 0;
17096 wxString *arg1 = 0 ;
17097 wxString *arg2 = 0 ;
17098 wxString result;
17099 bool temp1 = false ;
17100 bool temp2 = false ;
17101
17102 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17103 {
17104 arg1 = wxString_in_helper(swig_obj[0]);
17105 if (arg1 == NULL) SWIG_fail;
17106 temp1 = true;
17107 }
17108 {
17109 arg2 = wxString_in_helper(swig_obj[1]);
17110 if (arg2 == NULL) SWIG_fail;
17111 temp2 = true;
17112 }
17113 {
17114 PyThreadState* __tstate = wxPyBeginAllowThreads();
17115 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17116 wxPyEndAllowThreads(__tstate);
17117 if (PyErr_Occurred()) SWIG_fail;
17118 }
17119 {
17120#if wxUSE_UNICODE
17121 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17122#else
17123 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17124#endif
17125 }
17126 {
17127 if (temp1)
17128 delete arg1;
17129 }
17130 {
17131 if (temp2)
17132 delete arg2;
17133 }
17134 return resultobj;
17135fail:
17136 {
17137 if (temp1)
17138 delete arg1;
17139 }
17140 {
17141 if (temp2)
17142 delete arg2;
17143 }
17144 return NULL;
17145}
17146
17147
17148SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598
RD
17149 PyObject *resultobj = 0;
17150 wxString *arg1 = 0 ;
17151 wxString *arg2 = 0 ;
17152 size_t arg3 ;
17153 wxString result;
17154 bool temp1 = false ;
17155 bool temp2 = false ;
17156 size_t val3 ;
17157 int ecode3 = 0 ;
17158
17159 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17160 {
17161 arg1 = wxString_in_helper(swig_obj[0]);
17162 if (arg1 == NULL) SWIG_fail;
17163 temp1 = true;
17164 }
17165 {
17166 arg2 = wxString_in_helper(swig_obj[1]);
17167 if (arg2 == NULL) SWIG_fail;
17168 temp2 = true;
17169 }
17170 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17171 if (!SWIG_IsOK(ecode3)) {
17172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17173 }
17174 arg3 = static_cast< size_t >(val3);
17175 {
17176 PyThreadState* __tstate = wxPyBeginAllowThreads();
17177 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17178 wxPyEndAllowThreads(__tstate);
17179 if (PyErr_Occurred()) SWIG_fail;
17180 }
17181 {
36ed4f51 17182#if wxUSE_UNICODE
1bd55598 17183 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 17184#else
1bd55598 17185 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 17186#endif
1bd55598
RD
17187 }
17188 {
17189 if (temp1)
17190 delete arg1;
17191 }
17192 {
17193 if (temp2)
17194 delete arg2;
17195 }
17196 return resultobj;
17197fail:
17198 {
17199 if (temp1)
17200 delete arg1;
17201 }
17202 {
17203 if (temp2)
17204 delete arg2;
17205 }
17206 return NULL;
d55e5bfc
RD
17207}
17208
17209
fc46b7f3
RD
17210SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17211 PyObject *resultobj = 0;
17212 wxString *arg1 = 0 ;
17213 wxString *arg2 = 0 ;
17214 size_t arg3 ;
17215 wxString *arg4 = 0 ;
17216 wxString result;
17217 bool temp1 = false ;
17218 bool temp2 = false ;
17219 size_t val3 ;
17220 int ecode3 = 0 ;
17221 bool temp4 = false ;
17222
17223 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17224 {
17225 arg1 = wxString_in_helper(swig_obj[0]);
17226 if (arg1 == NULL) SWIG_fail;
17227 temp1 = true;
17228 }
17229 {
17230 arg2 = wxString_in_helper(swig_obj[1]);
17231 if (arg2 == NULL) SWIG_fail;
17232 temp2 = true;
17233 }
17234 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17235 if (!SWIG_IsOK(ecode3)) {
17236 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17237 }
17238 arg3 = static_cast< size_t >(val3);
17239 {
17240 arg4 = wxString_in_helper(swig_obj[3]);
17241 if (arg4 == NULL) SWIG_fail;
17242 temp4 = true;
17243 }
17244 {
17245 PyThreadState* __tstate = wxPyBeginAllowThreads();
17246 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17247 wxPyEndAllowThreads(__tstate);
17248 if (PyErr_Occurred()) SWIG_fail;
17249 }
17250 {
17251#if wxUSE_UNICODE
17252 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17253#else
17254 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17255#endif
17256 }
17257 {
17258 if (temp1)
17259 delete arg1;
17260 }
17261 {
17262 if (temp2)
17263 delete arg2;
17264 }
17265 {
17266 if (temp4)
17267 delete arg4;
17268 }
17269 return resultobj;
17270fail:
17271 {
17272 if (temp1)
17273 delete arg1;
17274 }
17275 {
17276 if (temp2)
17277 delete arg2;
17278 }
17279 {
17280 if (temp4)
17281 delete arg4;
17282 }
17283 return NULL;
17284}
17285
17286
1bd55598
RD
17287SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17288 int argc;
fc46b7f3 17289 PyObject *argv[5];
1bd55598 17290
fc46b7f3 17291 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
1bd55598
RD
17292 --argc;
17293 if (argc == 1) {
17294 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17295 }
fc46b7f3 17296 if (argc == 2) {
1bd55598
RD
17297 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17298 }
fc46b7f3
RD
17299 if (argc == 3) {
17300 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17301 }
17302 if (argc == 4) {
17303 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17304 }
1bd55598
RD
17305
17306fail:
17307 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17308 return NULL;
d55e5bfc
RD
17309}
17310
17311
1bd55598
RD
17312SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17313 PyObject *resultobj = 0;
17314 wxEncodingConverter *result = 0 ;
17315
17316 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17317 {
17318 PyThreadState* __tstate = wxPyBeginAllowThreads();
17319 result = (wxEncodingConverter *)new wxEncodingConverter();
17320 wxPyEndAllowThreads(__tstate);
17321 if (PyErr_Occurred()) SWIG_fail;
17322 }
17323 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17324 return resultobj;
17325fail:
17326 return NULL;
d55e5bfc
RD
17327}
17328
17329
1bd55598
RD
17330SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17331 PyObject *resultobj = 0;
17332 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17333 void *argp1 = 0 ;
17334 int res1 = 0 ;
17335 PyObject *swig_obj[1] ;
17336
17337 if (!args) SWIG_fail;
17338 swig_obj[0] = args;
17339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17340 if (!SWIG_IsOK(res1)) {
17341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17342 }
17343 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17344 {
17345 PyThreadState* __tstate = wxPyBeginAllowThreads();
17346 delete arg1;
d55e5bfc 17347
1bd55598
RD
17348 wxPyEndAllowThreads(__tstate);
17349 if (PyErr_Occurred()) SWIG_fail;
17350 }
17351 resultobj = SWIG_Py_Void();
17352 return resultobj;
17353fail:
17354 return NULL;
17355}
17356
17357
17358SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17359 PyObject *resultobj = 0;
17360 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17361 wxFontEncoding arg2 ;
17362 wxFontEncoding arg3 ;
17363 int arg4 = (int) wxCONVERT_STRICT ;
17364 bool result;
17365 void *argp1 = 0 ;
17366 int res1 = 0 ;
17367 int val2 ;
17368 int ecode2 = 0 ;
17369 int val3 ;
17370 int ecode3 = 0 ;
17371 int val4 ;
17372 int ecode4 = 0 ;
17373 PyObject * obj0 = 0 ;
17374 PyObject * obj1 = 0 ;
17375 PyObject * obj2 = 0 ;
17376 PyObject * obj3 = 0 ;
17377 char * kwnames[] = {
17378 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17379 };
17380
17381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17383 if (!SWIG_IsOK(res1)) {
17384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17385 }
17386 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17387 ecode2 = SWIG_AsVal_int(obj1, &val2);
17388 if (!SWIG_IsOK(ecode2)) {
17389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17390 }
17391 arg2 = static_cast< wxFontEncoding >(val2);
17392 ecode3 = SWIG_AsVal_int(obj2, &val3);
17393 if (!SWIG_IsOK(ecode3)) {
17394 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17395 }
17396 arg3 = static_cast< wxFontEncoding >(val3);
17397 if (obj3) {
17398 ecode4 = SWIG_AsVal_int(obj3, &val4);
17399 if (!SWIG_IsOK(ecode4)) {
17400 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17401 }
17402 arg4 = static_cast< int >(val4);
17403 }
17404 {
17405 PyThreadState* __tstate = wxPyBeginAllowThreads();
17406 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17407 wxPyEndAllowThreads(__tstate);
17408 if (PyErr_Occurred()) SWIG_fail;
17409 }
17410 {
17411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17412 }
17413 return resultobj;
17414fail:
17415 return NULL;
17416}
17417
17418
17419SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17420 PyObject *resultobj = 0;
17421 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17422 wxString *arg2 = 0 ;
17423 wxString result;
17424 void *argp1 = 0 ;
17425 int res1 = 0 ;
17426 bool temp2 = false ;
17427 PyObject * obj0 = 0 ;
17428 PyObject * obj1 = 0 ;
17429 char * kwnames[] = {
17430 (char *) "self",(char *) "input", NULL
17431 };
17432
17433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17435 if (!SWIG_IsOK(res1)) {
17436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17437 }
17438 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17439 {
17440 arg2 = wxString_in_helper(obj1);
17441 if (arg2 == NULL) SWIG_fail;
17442 temp2 = true;
17443 }
17444 {
17445 PyThreadState* __tstate = wxPyBeginAllowThreads();
17446 result = (arg1)->Convert((wxString const &)*arg2);
17447 wxPyEndAllowThreads(__tstate);
17448 if (PyErr_Occurred()) SWIG_fail;
17449 }
17450 {
d55e5bfc 17451#if wxUSE_UNICODE
1bd55598 17452 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 17453#else
1bd55598 17454 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 17455#endif
1bd55598
RD
17456 }
17457 {
17458 if (temp2)
17459 delete arg2;
17460 }
17461 return resultobj;
17462fail:
17463 {
17464 if (temp2)
17465 delete arg2;
17466 }
17467 return NULL;
17468}
17469
17470
17471SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17472 PyObject *resultobj = 0;
17473 wxFontEncoding arg1 ;
17474 int arg2 = (int) wxPLATFORM_CURRENT ;
17475 wxFontEncodingArray result;
17476 int val1 ;
17477 int ecode1 = 0 ;
17478 int val2 ;
17479 int ecode2 = 0 ;
17480 PyObject * obj0 = 0 ;
17481 PyObject * obj1 = 0 ;
17482 char * kwnames[] = {
17483 (char *) "enc",(char *) "platform", NULL
17484 };
17485
17486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17487 ecode1 = SWIG_AsVal_int(obj0, &val1);
17488 if (!SWIG_IsOK(ecode1)) {
17489 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17490 }
17491 arg1 = static_cast< wxFontEncoding >(val1);
17492 if (obj1) {
17493 ecode2 = SWIG_AsVal_int(obj1, &val2);
17494 if (!SWIG_IsOK(ecode2)) {
17495 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17496 }
17497 arg2 = static_cast< int >(val2);
17498 }
17499 {
17500 PyThreadState* __tstate = wxPyBeginAllowThreads();
17501 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17502 wxPyEndAllowThreads(__tstate);
17503 if (PyErr_Occurred()) SWIG_fail;
17504 }
17505 {
17506 resultobj = PyList_New(0);
17507 for (size_t i=0; i < (&result)->GetCount(); i++) {
17508 PyObject* number = PyInt_FromLong((&result)->Item(i));
17509 PyList_Append(resultobj, number);
17510 Py_DECREF(number);
d55e5bfc 17511 }
1bd55598
RD
17512 }
17513 return resultobj;
17514fail:
17515 return NULL;
d55e5bfc
RD
17516}
17517
17518
1bd55598
RD
17519SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17520 PyObject *resultobj = 0;
17521 wxFontEncoding arg1 ;
17522 wxFontEncodingArray result;
17523 int val1 ;
17524 int ecode1 = 0 ;
17525 PyObject * obj0 = 0 ;
17526 char * kwnames[] = {
17527 (char *) "enc", NULL
17528 };
17529
17530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17531 ecode1 = SWIG_AsVal_int(obj0, &val1);
17532 if (!SWIG_IsOK(ecode1)) {
17533 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17534 }
17535 arg1 = static_cast< wxFontEncoding >(val1);
17536 {
17537 PyThreadState* __tstate = wxPyBeginAllowThreads();
17538 result = wxEncodingConverter::GetAllEquivalents(arg1);
17539 wxPyEndAllowThreads(__tstate);
17540 if (PyErr_Occurred()) SWIG_fail;
17541 }
17542 {
17543 resultobj = PyList_New(0);
17544 for (size_t i=0; i < (&result)->GetCount(); i++) {
17545 PyObject* number = PyInt_FromLong((&result)->Item(i));
17546 PyList_Append(resultobj, number);
17547 Py_DECREF(number);
d55e5bfc 17548 }
1bd55598
RD
17549 }
17550 return resultobj;
17551fail:
17552 return NULL;
17553}
17554
17555
17556SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17557 PyObject *resultobj = 0;
17558 wxFontEncoding arg1 ;
17559 wxFontEncoding arg2 ;
17560 bool result;
17561 int val1 ;
17562 int ecode1 = 0 ;
17563 int val2 ;
17564 int ecode2 = 0 ;
17565 PyObject * obj0 = 0 ;
17566 PyObject * obj1 = 0 ;
17567 char * kwnames[] = {
17568 (char *) "encIn",(char *) "encOut", NULL
17569 };
17570
17571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17572 ecode1 = SWIG_AsVal_int(obj0, &val1);
17573 if (!SWIG_IsOK(ecode1)) {
17574 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17575 }
17576 arg1 = static_cast< wxFontEncoding >(val1);
17577 ecode2 = SWIG_AsVal_int(obj1, &val2);
17578 if (!SWIG_IsOK(ecode2)) {
17579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17580 }
17581 arg2 = static_cast< wxFontEncoding >(val2);
17582 {
17583 PyThreadState* __tstate = wxPyBeginAllowThreads();
17584 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17585 wxPyEndAllowThreads(__tstate);
17586 if (PyErr_Occurred()) SWIG_fail;
17587 }
17588 {
17589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17590 }
17591 return resultobj;
17592fail:
17593 return NULL;
d55e5bfc
RD
17594}
17595
17596
1bd55598
RD
17597SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17598 PyObject *obj;
17599 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17600 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17601 return SWIG_Py_Void();
d55e5bfc
RD
17602}
17603
1bd55598
RD
17604SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17605 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17606}
17607
1bd55598
RD
17608SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17609 PyObject *resultobj = 0;
17610 wxDC *arg1 = (wxDC *) 0 ;
17611 void *argp1 = 0 ;
17612 int res1 = 0 ;
17613 PyObject *swig_obj[1] ;
17614
17615 if (!args) SWIG_fail;
17616 swig_obj[0] = args;
17617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17618 if (!SWIG_IsOK(res1)) {
17619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17620 }
17621 arg1 = reinterpret_cast< wxDC * >(argp1);
17622 {
17623 PyThreadState* __tstate = wxPyBeginAllowThreads();
17624 delete arg1;
d55e5bfc 17625
1bd55598
RD
17626 wxPyEndAllowThreads(__tstate);
17627 if (PyErr_Occurred()) SWIG_fail;
17628 }
17629 resultobj = SWIG_Py_Void();
17630 return resultobj;
17631fail:
17632 return NULL;
17633}
17634
17635
17636SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17637 PyObject *resultobj = 0;
17638 wxDC *arg1 = (wxDC *) 0 ;
17639 int arg2 ;
17640 int arg3 ;
17641 wxColour *arg4 = 0 ;
17642 int arg5 = (int) wxFLOOD_SURFACE ;
17643 bool result;
17644 void *argp1 = 0 ;
17645 int res1 = 0 ;
17646 int val2 ;
17647 int ecode2 = 0 ;
17648 int val3 ;
17649 int ecode3 = 0 ;
17650 wxColour temp4 ;
17651 int val5 ;
17652 int ecode5 = 0 ;
17653 PyObject * obj0 = 0 ;
17654 PyObject * obj1 = 0 ;
17655 PyObject * obj2 = 0 ;
17656 PyObject * obj3 = 0 ;
17657 PyObject * obj4 = 0 ;
17658 char * kwnames[] = {
17659 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17660 };
17661
17662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17664 if (!SWIG_IsOK(res1)) {
17665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17666 }
17667 arg1 = reinterpret_cast< wxDC * >(argp1);
17668 ecode2 = SWIG_AsVal_int(obj1, &val2);
17669 if (!SWIG_IsOK(ecode2)) {
17670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17671 }
17672 arg2 = static_cast< int >(val2);
17673 ecode3 = SWIG_AsVal_int(obj2, &val3);
17674 if (!SWIG_IsOK(ecode3)) {
17675 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17676 }
17677 arg3 = static_cast< int >(val3);
17678 {
17679 arg4 = &temp4;
17680 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17681 }
17682 if (obj4) {
17683 ecode5 = SWIG_AsVal_int(obj4, &val5);
17684 if (!SWIG_IsOK(ecode5)) {
17685 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17686 }
17687 arg5 = static_cast< int >(val5);
17688 }
17689 {
17690 PyThreadState* __tstate = wxPyBeginAllowThreads();
17691 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17692 wxPyEndAllowThreads(__tstate);
17693 if (PyErr_Occurred()) SWIG_fail;
17694 }
17695 {
17696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17697 }
17698 return resultobj;
17699fail:
17700 return NULL;
17701}
17702
17703
17704SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17705 PyObject *resultobj = 0;
17706 wxDC *arg1 = (wxDC *) 0 ;
17707 wxPoint *arg2 = 0 ;
17708 wxColour *arg3 = 0 ;
17709 int arg4 = (int) wxFLOOD_SURFACE ;
17710 bool result;
17711 void *argp1 = 0 ;
17712 int res1 = 0 ;
17713 wxPoint temp2 ;
17714 wxColour temp3 ;
17715 int val4 ;
17716 int ecode4 = 0 ;
17717 PyObject * obj0 = 0 ;
17718 PyObject * obj1 = 0 ;
17719 PyObject * obj2 = 0 ;
17720 PyObject * obj3 = 0 ;
17721 char * kwnames[] = {
17722 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17723 };
17724
17725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17727 if (!SWIG_IsOK(res1)) {
17728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17729 }
17730 arg1 = reinterpret_cast< wxDC * >(argp1);
17731 {
17732 arg2 = &temp2;
17733 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17734 }
17735 {
17736 arg3 = &temp3;
17737 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17738 }
17739 if (obj3) {
17740 ecode4 = SWIG_AsVal_int(obj3, &val4);
17741 if (!SWIG_IsOK(ecode4)) {
17742 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17743 }
17744 arg4 = static_cast< int >(val4);
17745 }
17746 {
17747 PyThreadState* __tstate = wxPyBeginAllowThreads();
17748 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17749 wxPyEndAllowThreads(__tstate);
17750 if (PyErr_Occurred()) SWIG_fail;
17751 }
17752 {
17753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17754 }
17755 return resultobj;
17756fail:
17757 return NULL;
17758}
17759
17760
17761SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17762 PyObject *resultobj = 0;
17763 wxDC *arg1 = (wxDC *) 0 ;
17764 wxRect *arg2 = 0 ;
17765 wxColour *arg3 = 0 ;
17766 wxColour *arg4 = 0 ;
17767 wxPoint *arg5 = 0 ;
17768 void *argp1 = 0 ;
17769 int res1 = 0 ;
17770 wxRect temp2 ;
17771 wxColour temp3 ;
17772 wxColour temp4 ;
17773 wxPoint temp5 ;
17774 PyObject * obj0 = 0 ;
17775 PyObject * obj1 = 0 ;
17776 PyObject * obj2 = 0 ;
17777 PyObject * obj3 = 0 ;
17778 PyObject * obj4 = 0 ;
17779 char * kwnames[] = {
17780 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17781 };
17782
17783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17785 if (!SWIG_IsOK(res1)) {
17786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17787 }
17788 arg1 = reinterpret_cast< wxDC * >(argp1);
17789 {
17790 arg2 = &temp2;
17791 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17792 }
17793 {
17794 arg3 = &temp3;
17795 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17796 }
17797 {
17798 arg4 = &temp4;
17799 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17800 }
17801 {
17802 arg5 = &temp5;
17803 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17804 }
17805 {
17806 PyThreadState* __tstate = wxPyBeginAllowThreads();
17807 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17808 wxPyEndAllowThreads(__tstate);
17809 if (PyErr_Occurred()) SWIG_fail;
17810 }
17811 resultobj = SWIG_Py_Void();
17812 return resultobj;
17813fail:
17814 return NULL;
17815}
17816
17817
17818SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17819 PyObject *resultobj = 0;
17820 wxDC *arg1 = (wxDC *) 0 ;
17821 wxRect *arg2 = 0 ;
17822 wxColour *arg3 = 0 ;
17823 wxColour *arg4 = 0 ;
17824 wxDirection arg5 = (wxDirection) wxEAST ;
17825 void *argp1 = 0 ;
17826 int res1 = 0 ;
17827 wxRect temp2 ;
17828 wxColour temp3 ;
17829 wxColour temp4 ;
17830 int val5 ;
17831 int ecode5 = 0 ;
17832 PyObject * obj0 = 0 ;
17833 PyObject * obj1 = 0 ;
17834 PyObject * obj2 = 0 ;
17835 PyObject * obj3 = 0 ;
17836 PyObject * obj4 = 0 ;
17837 char * kwnames[] = {
17838 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17839 };
17840
17841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17843 if (!SWIG_IsOK(res1)) {
17844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17845 }
17846 arg1 = reinterpret_cast< wxDC * >(argp1);
17847 {
17848 arg2 = &temp2;
17849 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17850 }
17851 {
17852 arg3 = &temp3;
17853 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17854 }
17855 {
17856 arg4 = &temp4;
17857 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17858 }
17859 if (obj4) {
17860 ecode5 = SWIG_AsVal_int(obj4, &val5);
17861 if (!SWIG_IsOK(ecode5)) {
17862 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17863 }
17864 arg5 = static_cast< wxDirection >(val5);
17865 }
17866 {
17867 PyThreadState* __tstate = wxPyBeginAllowThreads();
17868 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17869 wxPyEndAllowThreads(__tstate);
17870 if (PyErr_Occurred()) SWIG_fail;
17871 }
17872 resultobj = SWIG_Py_Void();
17873 return resultobj;
17874fail:
17875 return NULL;
17876}
17877
17878
17879SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17880 PyObject *resultobj = 0;
17881 wxDC *arg1 = (wxDC *) 0 ;
17882 int arg2 ;
17883 int arg3 ;
17884 wxColour result;
17885 void *argp1 = 0 ;
17886 int res1 = 0 ;
17887 int val2 ;
17888 int ecode2 = 0 ;
17889 int val3 ;
17890 int ecode3 = 0 ;
17891 PyObject * obj0 = 0 ;
17892 PyObject * obj1 = 0 ;
17893 PyObject * obj2 = 0 ;
17894 char * kwnames[] = {
17895 (char *) "self",(char *) "x",(char *) "y", NULL
17896 };
17897
17898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17900 if (!SWIG_IsOK(res1)) {
17901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17902 }
17903 arg1 = reinterpret_cast< wxDC * >(argp1);
17904 ecode2 = SWIG_AsVal_int(obj1, &val2);
17905 if (!SWIG_IsOK(ecode2)) {
17906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17907 }
17908 arg2 = static_cast< int >(val2);
17909 ecode3 = SWIG_AsVal_int(obj2, &val3);
17910 if (!SWIG_IsOK(ecode3)) {
17911 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17912 }
17913 arg3 = static_cast< int >(val3);
17914 {
17915 PyThreadState* __tstate = wxPyBeginAllowThreads();
17916 result = wxDC_GetPixel(arg1,arg2,arg3);
17917 wxPyEndAllowThreads(__tstate);
17918 if (PyErr_Occurred()) SWIG_fail;
17919 }
17920 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17921 return resultobj;
17922fail:
17923 return NULL;
17924}
17925
17926
17927SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17928 PyObject *resultobj = 0;
17929 wxDC *arg1 = (wxDC *) 0 ;
17930 wxPoint *arg2 = 0 ;
17931 wxColour result;
17932 void *argp1 = 0 ;
17933 int res1 = 0 ;
17934 wxPoint temp2 ;
17935 PyObject * obj0 = 0 ;
17936 PyObject * obj1 = 0 ;
17937 char * kwnames[] = {
17938 (char *) "self",(char *) "pt", NULL
17939 };
17940
17941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17943 if (!SWIG_IsOK(res1)) {
17944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17945 }
17946 arg1 = reinterpret_cast< wxDC * >(argp1);
17947 {
17948 arg2 = &temp2;
17949 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17950 }
17951 {
17952 PyThreadState* __tstate = wxPyBeginAllowThreads();
17953 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17954 wxPyEndAllowThreads(__tstate);
17955 if (PyErr_Occurred()) SWIG_fail;
17956 }
17957 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17958 return resultobj;
17959fail:
17960 return NULL;
17961}
17962
17963
17964SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17965 PyObject *resultobj = 0;
17966 wxDC *arg1 = (wxDC *) 0 ;
17967 int arg2 ;
17968 int arg3 ;
17969 int arg4 ;
17970 int arg5 ;
17971 void *argp1 = 0 ;
17972 int res1 = 0 ;
17973 int val2 ;
17974 int ecode2 = 0 ;
17975 int val3 ;
17976 int ecode3 = 0 ;
17977 int val4 ;
17978 int ecode4 = 0 ;
17979 int val5 ;
17980 int ecode5 = 0 ;
17981 PyObject * obj0 = 0 ;
17982 PyObject * obj1 = 0 ;
17983 PyObject * obj2 = 0 ;
17984 PyObject * obj3 = 0 ;
17985 PyObject * obj4 = 0 ;
17986 char * kwnames[] = {
17987 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17988 };
17989
17990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17992 if (!SWIG_IsOK(res1)) {
17993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17994 }
17995 arg1 = reinterpret_cast< wxDC * >(argp1);
17996 ecode2 = SWIG_AsVal_int(obj1, &val2);
17997 if (!SWIG_IsOK(ecode2)) {
17998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17999 }
18000 arg2 = static_cast< int >(val2);
18001 ecode3 = SWIG_AsVal_int(obj2, &val3);
18002 if (!SWIG_IsOK(ecode3)) {
18003 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18004 }
18005 arg3 = static_cast< int >(val3);
18006 ecode4 = SWIG_AsVal_int(obj3, &val4);
18007 if (!SWIG_IsOK(ecode4)) {
18008 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18009 }
18010 arg4 = static_cast< int >(val4);
18011 ecode5 = SWIG_AsVal_int(obj4, &val5);
18012 if (!SWIG_IsOK(ecode5)) {
18013 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18014 }
18015 arg5 = static_cast< int >(val5);
18016 {
18017 PyThreadState* __tstate = wxPyBeginAllowThreads();
18018 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18019 wxPyEndAllowThreads(__tstate);
18020 if (PyErr_Occurred()) SWIG_fail;
18021 }
18022 resultobj = SWIG_Py_Void();
18023 return resultobj;
18024fail:
18025 return NULL;
18026}
18027
18028
18029SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18030 PyObject *resultobj = 0;
18031 wxDC *arg1 = (wxDC *) 0 ;
18032 wxPoint *arg2 = 0 ;
18033 wxPoint *arg3 = 0 ;
18034 void *argp1 = 0 ;
18035 int res1 = 0 ;
18036 wxPoint temp2 ;
18037 wxPoint temp3 ;
18038 PyObject * obj0 = 0 ;
18039 PyObject * obj1 = 0 ;
18040 PyObject * obj2 = 0 ;
18041 char * kwnames[] = {
18042 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18043 };
18044
18045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18047 if (!SWIG_IsOK(res1)) {
18048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18049 }
18050 arg1 = reinterpret_cast< wxDC * >(argp1);
18051 {
18052 arg2 = &temp2;
18053 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18054 }
18055 {
18056 arg3 = &temp3;
18057 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18058 }
18059 {
18060 PyThreadState* __tstate = wxPyBeginAllowThreads();
18061 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18062 wxPyEndAllowThreads(__tstate);
18063 if (PyErr_Occurred()) SWIG_fail;
18064 }
18065 resultobj = SWIG_Py_Void();
18066 return resultobj;
18067fail:
18068 return NULL;
18069}
18070
18071
18072SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18073 PyObject *resultobj = 0;
18074 wxDC *arg1 = (wxDC *) 0 ;
18075 int arg2 ;
18076 int arg3 ;
18077 void *argp1 = 0 ;
18078 int res1 = 0 ;
18079 int val2 ;
18080 int ecode2 = 0 ;
18081 int val3 ;
18082 int ecode3 = 0 ;
18083 PyObject * obj0 = 0 ;
18084 PyObject * obj1 = 0 ;
18085 PyObject * obj2 = 0 ;
18086 char * kwnames[] = {
18087 (char *) "self",(char *) "x",(char *) "y", NULL
18088 };
18089
18090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18092 if (!SWIG_IsOK(res1)) {
18093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18094 }
18095 arg1 = reinterpret_cast< wxDC * >(argp1);
18096 ecode2 = SWIG_AsVal_int(obj1, &val2);
18097 if (!SWIG_IsOK(ecode2)) {
18098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18099 }
18100 arg2 = static_cast< int >(val2);
18101 ecode3 = SWIG_AsVal_int(obj2, &val3);
18102 if (!SWIG_IsOK(ecode3)) {
18103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18104 }
18105 arg3 = static_cast< int >(val3);
18106 {
18107 PyThreadState* __tstate = wxPyBeginAllowThreads();
18108 (arg1)->CrossHair(arg2,arg3);
18109 wxPyEndAllowThreads(__tstate);
18110 if (PyErr_Occurred()) SWIG_fail;
18111 }
18112 resultobj = SWIG_Py_Void();
18113 return resultobj;
18114fail:
18115 return NULL;
18116}
18117
18118
18119SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18120 PyObject *resultobj = 0;
18121 wxDC *arg1 = (wxDC *) 0 ;
18122 wxPoint *arg2 = 0 ;
18123 void *argp1 = 0 ;
18124 int res1 = 0 ;
18125 wxPoint temp2 ;
18126 PyObject * obj0 = 0 ;
18127 PyObject * obj1 = 0 ;
18128 char * kwnames[] = {
18129 (char *) "self",(char *) "pt", NULL
18130 };
18131
18132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18134 if (!SWIG_IsOK(res1)) {
18135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18136 }
18137 arg1 = reinterpret_cast< wxDC * >(argp1);
18138 {
18139 arg2 = &temp2;
18140 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18141 }
18142 {
18143 PyThreadState* __tstate = wxPyBeginAllowThreads();
18144 (arg1)->CrossHair((wxPoint const &)*arg2);
18145 wxPyEndAllowThreads(__tstate);
18146 if (PyErr_Occurred()) SWIG_fail;
18147 }
18148 resultobj = SWIG_Py_Void();
18149 return resultobj;
18150fail:
18151 return NULL;
18152}
18153
18154
18155SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18156 PyObject *resultobj = 0;
18157 wxDC *arg1 = (wxDC *) 0 ;
18158 int arg2 ;
18159 int arg3 ;
18160 int arg4 ;
18161 int arg5 ;
18162 int arg6 ;
18163 int arg7 ;
18164 void *argp1 = 0 ;
18165 int res1 = 0 ;
18166 int val2 ;
18167 int ecode2 = 0 ;
18168 int val3 ;
18169 int ecode3 = 0 ;
18170 int val4 ;
18171 int ecode4 = 0 ;
18172 int val5 ;
18173 int ecode5 = 0 ;
18174 int val6 ;
18175 int ecode6 = 0 ;
18176 int val7 ;
18177 int ecode7 = 0 ;
18178 PyObject * obj0 = 0 ;
18179 PyObject * obj1 = 0 ;
18180 PyObject * obj2 = 0 ;
18181 PyObject * obj3 = 0 ;
18182 PyObject * obj4 = 0 ;
18183 PyObject * obj5 = 0 ;
18184 PyObject * obj6 = 0 ;
18185 char * kwnames[] = {
18186 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18187 };
18188
18189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18191 if (!SWIG_IsOK(res1)) {
18192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18193 }
18194 arg1 = reinterpret_cast< wxDC * >(argp1);
18195 ecode2 = SWIG_AsVal_int(obj1, &val2);
18196 if (!SWIG_IsOK(ecode2)) {
18197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18198 }
18199 arg2 = static_cast< int >(val2);
18200 ecode3 = SWIG_AsVal_int(obj2, &val3);
18201 if (!SWIG_IsOK(ecode3)) {
18202 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18203 }
18204 arg3 = static_cast< int >(val3);
18205 ecode4 = SWIG_AsVal_int(obj3, &val4);
18206 if (!SWIG_IsOK(ecode4)) {
18207 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18208 }
18209 arg4 = static_cast< int >(val4);
18210 ecode5 = SWIG_AsVal_int(obj4, &val5);
18211 if (!SWIG_IsOK(ecode5)) {
18212 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18213 }
18214 arg5 = static_cast< int >(val5);
18215 ecode6 = SWIG_AsVal_int(obj5, &val6);
18216 if (!SWIG_IsOK(ecode6)) {
18217 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18218 }
18219 arg6 = static_cast< int >(val6);
18220 ecode7 = SWIG_AsVal_int(obj6, &val7);
18221 if (!SWIG_IsOK(ecode7)) {
18222 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18223 }
18224 arg7 = static_cast< int >(val7);
18225 {
18226 PyThreadState* __tstate = wxPyBeginAllowThreads();
18227 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18228 wxPyEndAllowThreads(__tstate);
18229 if (PyErr_Occurred()) SWIG_fail;
18230 }
18231 resultobj = SWIG_Py_Void();
18232 return resultobj;
18233fail:
18234 return NULL;
18235}
18236
18237
18238SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18239 PyObject *resultobj = 0;
18240 wxDC *arg1 = (wxDC *) 0 ;
18241 wxPoint *arg2 = 0 ;
18242 wxPoint *arg3 = 0 ;
18243 wxPoint *arg4 = 0 ;
18244 void *argp1 = 0 ;
18245 int res1 = 0 ;
18246 wxPoint temp2 ;
18247 wxPoint temp3 ;
18248 wxPoint temp4 ;
18249 PyObject * obj0 = 0 ;
18250 PyObject * obj1 = 0 ;
18251 PyObject * obj2 = 0 ;
18252 PyObject * obj3 = 0 ;
18253 char * kwnames[] = {
18254 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18255 };
18256
18257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18259 if (!SWIG_IsOK(res1)) {
18260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18261 }
18262 arg1 = reinterpret_cast< wxDC * >(argp1);
18263 {
18264 arg2 = &temp2;
18265 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18266 }
18267 {
18268 arg3 = &temp3;
18269 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18270 }
18271 {
18272 arg4 = &temp4;
18273 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18274 }
18275 {
18276 PyThreadState* __tstate = wxPyBeginAllowThreads();
18277 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18278 wxPyEndAllowThreads(__tstate);
18279 if (PyErr_Occurred()) SWIG_fail;
18280 }
18281 resultobj = SWIG_Py_Void();
18282 return resultobj;
18283fail:
18284 return NULL;
18285}
18286
18287
18288SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18289 PyObject *resultobj = 0;
18290 wxDC *arg1 = (wxDC *) 0 ;
18291 int arg2 ;
18292 int arg3 ;
18293 int arg4 ;
18294 int arg5 ;
18295 void *argp1 = 0 ;
18296 int res1 = 0 ;
18297 int val2 ;
18298 int ecode2 = 0 ;
18299 int val3 ;
18300 int ecode3 = 0 ;
18301 int val4 ;
18302 int ecode4 = 0 ;
18303 int val5 ;
18304 int ecode5 = 0 ;
18305 PyObject * obj0 = 0 ;
18306 PyObject * obj1 = 0 ;
18307 PyObject * obj2 = 0 ;
18308 PyObject * obj3 = 0 ;
18309 PyObject * obj4 = 0 ;
18310 char * kwnames[] = {
18311 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18312 };
18313
18314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18316 if (!SWIG_IsOK(res1)) {
18317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18318 }
18319 arg1 = reinterpret_cast< wxDC * >(argp1);
18320 ecode2 = SWIG_AsVal_int(obj1, &val2);
18321 if (!SWIG_IsOK(ecode2)) {
18322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18323 }
18324 arg2 = static_cast< int >(val2);
18325 ecode3 = SWIG_AsVal_int(obj2, &val3);
18326 if (!SWIG_IsOK(ecode3)) {
18327 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18328 }
18329 arg3 = static_cast< int >(val3);
18330 ecode4 = SWIG_AsVal_int(obj3, &val4);
18331 if (!SWIG_IsOK(ecode4)) {
18332 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18333 }
18334 arg4 = static_cast< int >(val4);
18335 ecode5 = SWIG_AsVal_int(obj4, &val5);
18336 if (!SWIG_IsOK(ecode5)) {
18337 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18338 }
18339 arg5 = static_cast< int >(val5);
18340 {
18341 PyThreadState* __tstate = wxPyBeginAllowThreads();
18342 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18343 wxPyEndAllowThreads(__tstate);
18344 if (PyErr_Occurred()) SWIG_fail;
18345 }
18346 resultobj = SWIG_Py_Void();
18347 return resultobj;
18348fail:
18349 return NULL;
18350}
18351
18352
18353SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18354 PyObject *resultobj = 0;
18355 wxDC *arg1 = (wxDC *) 0 ;
18356 wxRect *arg2 = 0 ;
18357 void *argp1 = 0 ;
18358 int res1 = 0 ;
18359 wxRect temp2 ;
18360 PyObject * obj0 = 0 ;
18361 PyObject * obj1 = 0 ;
18362 char * kwnames[] = {
18363 (char *) "self",(char *) "rect", NULL
18364 };
18365
18366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18368 if (!SWIG_IsOK(res1)) {
18369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18370 }
18371 arg1 = reinterpret_cast< wxDC * >(argp1);
18372 {
18373 arg2 = &temp2;
18374 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18375 }
18376 {
18377 PyThreadState* __tstate = wxPyBeginAllowThreads();
18378 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18379 wxPyEndAllowThreads(__tstate);
18380 if (PyErr_Occurred()) SWIG_fail;
18381 }
18382 resultobj = SWIG_Py_Void();
18383 return resultobj;
18384fail:
18385 return NULL;
18386}
18387
18388
18389SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18390 PyObject *resultobj = 0;
18391 wxDC *arg1 = (wxDC *) 0 ;
18392 int arg2 ;
18393 int arg3 ;
18394 int arg4 ;
18395 int arg5 ;
18396 double arg6 ;
18397 double arg7 ;
18398 void *argp1 = 0 ;
18399 int res1 = 0 ;
18400 int val2 ;
18401 int ecode2 = 0 ;
18402 int val3 ;
18403 int ecode3 = 0 ;
18404 int val4 ;
18405 int ecode4 = 0 ;
18406 int val5 ;
18407 int ecode5 = 0 ;
18408 double val6 ;
18409 int ecode6 = 0 ;
18410 double val7 ;
18411 int ecode7 = 0 ;
18412 PyObject * obj0 = 0 ;
18413 PyObject * obj1 = 0 ;
18414 PyObject * obj2 = 0 ;
18415 PyObject * obj3 = 0 ;
18416 PyObject * obj4 = 0 ;
18417 PyObject * obj5 = 0 ;
18418 PyObject * obj6 = 0 ;
18419 char * kwnames[] = {
18420 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18421 };
18422
18423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18425 if (!SWIG_IsOK(res1)) {
18426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18427 }
18428 arg1 = reinterpret_cast< wxDC * >(argp1);
18429 ecode2 = SWIG_AsVal_int(obj1, &val2);
18430 if (!SWIG_IsOK(ecode2)) {
18431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18432 }
18433 arg2 = static_cast< int >(val2);
18434 ecode3 = SWIG_AsVal_int(obj2, &val3);
18435 if (!SWIG_IsOK(ecode3)) {
18436 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18437 }
18438 arg3 = static_cast< int >(val3);
18439 ecode4 = SWIG_AsVal_int(obj3, &val4);
18440 if (!SWIG_IsOK(ecode4)) {
18441 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18442 }
18443 arg4 = static_cast< int >(val4);
18444 ecode5 = SWIG_AsVal_int(obj4, &val5);
18445 if (!SWIG_IsOK(ecode5)) {
18446 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18447 }
18448 arg5 = static_cast< int >(val5);
18449 ecode6 = SWIG_AsVal_double(obj5, &val6);
18450 if (!SWIG_IsOK(ecode6)) {
18451 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18452 }
18453 arg6 = static_cast< double >(val6);
18454 ecode7 = SWIG_AsVal_double(obj6, &val7);
18455 if (!SWIG_IsOK(ecode7)) {
18456 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18457 }
18458 arg7 = static_cast< double >(val7);
18459 {
18460 PyThreadState* __tstate = wxPyBeginAllowThreads();
18461 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18462 wxPyEndAllowThreads(__tstate);
18463 if (PyErr_Occurred()) SWIG_fail;
18464 }
18465 resultobj = SWIG_Py_Void();
18466 return resultobj;
18467fail:
18468 return NULL;
18469}
18470
18471
18472SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18473 PyObject *resultobj = 0;
18474 wxDC *arg1 = (wxDC *) 0 ;
18475 wxPoint *arg2 = 0 ;
18476 wxSize *arg3 = 0 ;
18477 double arg4 ;
18478 double arg5 ;
18479 void *argp1 = 0 ;
18480 int res1 = 0 ;
18481 wxPoint temp2 ;
18482 wxSize temp3 ;
18483 double val4 ;
18484 int ecode4 = 0 ;
18485 double val5 ;
18486 int ecode5 = 0 ;
18487 PyObject * obj0 = 0 ;
18488 PyObject * obj1 = 0 ;
18489 PyObject * obj2 = 0 ;
18490 PyObject * obj3 = 0 ;
18491 PyObject * obj4 = 0 ;
18492 char * kwnames[] = {
18493 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18494 };
18495
18496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18498 if (!SWIG_IsOK(res1)) {
18499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18500 }
18501 arg1 = reinterpret_cast< wxDC * >(argp1);
18502 {
18503 arg2 = &temp2;
18504 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18505 }
18506 {
18507 arg3 = &temp3;
18508 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18509 }
18510 ecode4 = SWIG_AsVal_double(obj3, &val4);
18511 if (!SWIG_IsOK(ecode4)) {
18512 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18513 }
18514 arg4 = static_cast< double >(val4);
18515 ecode5 = SWIG_AsVal_double(obj4, &val5);
18516 if (!SWIG_IsOK(ecode5)) {
18517 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18518 }
18519 arg5 = static_cast< double >(val5);
18520 {
18521 PyThreadState* __tstate = wxPyBeginAllowThreads();
18522 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18523 wxPyEndAllowThreads(__tstate);
18524 if (PyErr_Occurred()) SWIG_fail;
18525 }
18526 resultobj = SWIG_Py_Void();
18527 return resultobj;
18528fail:
18529 return NULL;
18530}
18531
18532
18533SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18534 PyObject *resultobj = 0;
18535 wxDC *arg1 = (wxDC *) 0 ;
18536 int arg2 ;
18537 int arg3 ;
18538 void *argp1 = 0 ;
18539 int res1 = 0 ;
18540 int val2 ;
18541 int ecode2 = 0 ;
18542 int val3 ;
18543 int ecode3 = 0 ;
18544 PyObject * obj0 = 0 ;
18545 PyObject * obj1 = 0 ;
18546 PyObject * obj2 = 0 ;
18547 char * kwnames[] = {
18548 (char *) "self",(char *) "x",(char *) "y", NULL
18549 };
18550
18551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18553 if (!SWIG_IsOK(res1)) {
18554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18555 }
18556 arg1 = reinterpret_cast< wxDC * >(argp1);
18557 ecode2 = SWIG_AsVal_int(obj1, &val2);
18558 if (!SWIG_IsOK(ecode2)) {
18559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18560 }
18561 arg2 = static_cast< int >(val2);
18562 ecode3 = SWIG_AsVal_int(obj2, &val3);
18563 if (!SWIG_IsOK(ecode3)) {
18564 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18565 }
18566 arg3 = static_cast< int >(val3);
18567 {
18568 PyThreadState* __tstate = wxPyBeginAllowThreads();
18569 (arg1)->DrawPoint(arg2,arg3);
18570 wxPyEndAllowThreads(__tstate);
18571 if (PyErr_Occurred()) SWIG_fail;
18572 }
18573 resultobj = SWIG_Py_Void();
18574 return resultobj;
18575fail:
18576 return NULL;
18577}
18578
18579
18580SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18581 PyObject *resultobj = 0;
18582 wxDC *arg1 = (wxDC *) 0 ;
18583 wxPoint *arg2 = 0 ;
18584 void *argp1 = 0 ;
18585 int res1 = 0 ;
18586 wxPoint temp2 ;
18587 PyObject * obj0 = 0 ;
18588 PyObject * obj1 = 0 ;
18589 char * kwnames[] = {
18590 (char *) "self",(char *) "pt", NULL
18591 };
18592
18593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18595 if (!SWIG_IsOK(res1)) {
18596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18597 }
18598 arg1 = reinterpret_cast< wxDC * >(argp1);
18599 {
18600 arg2 = &temp2;
18601 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18602 }
18603 {
18604 PyThreadState* __tstate = wxPyBeginAllowThreads();
18605 (arg1)->DrawPoint((wxPoint const &)*arg2);
18606 wxPyEndAllowThreads(__tstate);
18607 if (PyErr_Occurred()) SWIG_fail;
18608 }
18609 resultobj = SWIG_Py_Void();
18610 return resultobj;
18611fail:
18612 return NULL;
18613}
18614
18615
18616SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18617 PyObject *resultobj = 0;
18618 wxDC *arg1 = (wxDC *) 0 ;
18619 int arg2 ;
18620 int arg3 ;
18621 int arg4 ;
18622 int arg5 ;
18623 void *argp1 = 0 ;
18624 int res1 = 0 ;
18625 int val2 ;
18626 int ecode2 = 0 ;
18627 int val3 ;
18628 int ecode3 = 0 ;
18629 int val4 ;
18630 int ecode4 = 0 ;
18631 int val5 ;
18632 int ecode5 = 0 ;
18633 PyObject * obj0 = 0 ;
18634 PyObject * obj1 = 0 ;
18635 PyObject * obj2 = 0 ;
18636 PyObject * obj3 = 0 ;
18637 PyObject * obj4 = 0 ;
18638 char * kwnames[] = {
18639 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18640 };
18641
18642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18644 if (!SWIG_IsOK(res1)) {
18645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18646 }
18647 arg1 = reinterpret_cast< wxDC * >(argp1);
18648 ecode2 = SWIG_AsVal_int(obj1, &val2);
18649 if (!SWIG_IsOK(ecode2)) {
18650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18651 }
18652 arg2 = static_cast< int >(val2);
18653 ecode3 = SWIG_AsVal_int(obj2, &val3);
18654 if (!SWIG_IsOK(ecode3)) {
18655 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18656 }
18657 arg3 = static_cast< int >(val3);
18658 ecode4 = SWIG_AsVal_int(obj3, &val4);
18659 if (!SWIG_IsOK(ecode4)) {
18660 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18661 }
18662 arg4 = static_cast< int >(val4);
18663 ecode5 = SWIG_AsVal_int(obj4, &val5);
18664 if (!SWIG_IsOK(ecode5)) {
18665 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18666 }
18667 arg5 = static_cast< int >(val5);
18668 {
18669 PyThreadState* __tstate = wxPyBeginAllowThreads();
18670 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18671 wxPyEndAllowThreads(__tstate);
18672 if (PyErr_Occurred()) SWIG_fail;
18673 }
18674 resultobj = SWIG_Py_Void();
18675 return resultobj;
18676fail:
18677 return NULL;
18678}
18679
18680
18681SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18682 PyObject *resultobj = 0;
18683 wxDC *arg1 = (wxDC *) 0 ;
18684 wxRect *arg2 = 0 ;
18685 void *argp1 = 0 ;
18686 int res1 = 0 ;
18687 wxRect temp2 ;
18688 PyObject * obj0 = 0 ;
18689 PyObject * obj1 = 0 ;
18690 char * kwnames[] = {
18691 (char *) "self",(char *) "rect", NULL
18692 };
18693
18694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18696 if (!SWIG_IsOK(res1)) {
18697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18698 }
18699 arg1 = reinterpret_cast< wxDC * >(argp1);
18700 {
18701 arg2 = &temp2;
18702 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18703 }
18704 {
18705 PyThreadState* __tstate = wxPyBeginAllowThreads();
18706 (arg1)->DrawRectangle((wxRect const &)*arg2);
18707 wxPyEndAllowThreads(__tstate);
18708 if (PyErr_Occurred()) SWIG_fail;
18709 }
18710 resultobj = SWIG_Py_Void();
18711 return resultobj;
18712fail:
18713 return NULL;
18714}
18715
18716
18717SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18718 PyObject *resultobj = 0;
18719 wxDC *arg1 = (wxDC *) 0 ;
18720 wxPoint *arg2 = 0 ;
18721 wxSize *arg3 = 0 ;
18722 void *argp1 = 0 ;
18723 int res1 = 0 ;
18724 wxPoint temp2 ;
18725 wxSize temp3 ;
18726 PyObject * obj0 = 0 ;
18727 PyObject * obj1 = 0 ;
18728 PyObject * obj2 = 0 ;
18729 char * kwnames[] = {
18730 (char *) "self",(char *) "pt",(char *) "sz", NULL
18731 };
18732
18733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18735 if (!SWIG_IsOK(res1)) {
18736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18737 }
18738 arg1 = reinterpret_cast< wxDC * >(argp1);
18739 {
18740 arg2 = &temp2;
18741 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18742 }
18743 {
18744 arg3 = &temp3;
18745 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18746 }
18747 {
18748 PyThreadState* __tstate = wxPyBeginAllowThreads();
18749 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18750 wxPyEndAllowThreads(__tstate);
18751 if (PyErr_Occurred()) SWIG_fail;
18752 }
18753 resultobj = SWIG_Py_Void();
18754 return resultobj;
18755fail:
18756 return NULL;
18757}
18758
18759
18760SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18761 PyObject *resultobj = 0;
18762 wxDC *arg1 = (wxDC *) 0 ;
18763 int arg2 ;
18764 int arg3 ;
18765 int arg4 ;
18766 int arg5 ;
18767 double arg6 ;
18768 void *argp1 = 0 ;
18769 int res1 = 0 ;
18770 int val2 ;
18771 int ecode2 = 0 ;
18772 int val3 ;
18773 int ecode3 = 0 ;
18774 int val4 ;
18775 int ecode4 = 0 ;
18776 int val5 ;
18777 int ecode5 = 0 ;
18778 double val6 ;
18779 int ecode6 = 0 ;
18780 PyObject * obj0 = 0 ;
18781 PyObject * obj1 = 0 ;
18782 PyObject * obj2 = 0 ;
18783 PyObject * obj3 = 0 ;
18784 PyObject * obj4 = 0 ;
18785 PyObject * obj5 = 0 ;
18786 char * kwnames[] = {
18787 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18788 };
18789
18790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18792 if (!SWIG_IsOK(res1)) {
18793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18794 }
18795 arg1 = reinterpret_cast< wxDC * >(argp1);
18796 ecode2 = SWIG_AsVal_int(obj1, &val2);
18797 if (!SWIG_IsOK(ecode2)) {
18798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18799 }
18800 arg2 = static_cast< int >(val2);
18801 ecode3 = SWIG_AsVal_int(obj2, &val3);
18802 if (!SWIG_IsOK(ecode3)) {
18803 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18804 }
18805 arg3 = static_cast< int >(val3);
18806 ecode4 = SWIG_AsVal_int(obj3, &val4);
18807 if (!SWIG_IsOK(ecode4)) {
18808 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18809 }
18810 arg4 = static_cast< int >(val4);
18811 ecode5 = SWIG_AsVal_int(obj4, &val5);
18812 if (!SWIG_IsOK(ecode5)) {
18813 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18814 }
18815 arg5 = static_cast< int >(val5);
18816 ecode6 = SWIG_AsVal_double(obj5, &val6);
18817 if (!SWIG_IsOK(ecode6)) {
18818 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18819 }
18820 arg6 = static_cast< double >(val6);
18821 {
18822 PyThreadState* __tstate = wxPyBeginAllowThreads();
18823 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18824 wxPyEndAllowThreads(__tstate);
18825 if (PyErr_Occurred()) SWIG_fail;
18826 }
18827 resultobj = SWIG_Py_Void();
18828 return resultobj;
18829fail:
18830 return NULL;
18831}
18832
18833
18834SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18835 PyObject *resultobj = 0;
18836 wxDC *arg1 = (wxDC *) 0 ;
18837 wxRect *arg2 = 0 ;
18838 double arg3 ;
18839 void *argp1 = 0 ;
18840 int res1 = 0 ;
18841 wxRect temp2 ;
18842 double val3 ;
18843 int ecode3 = 0 ;
18844 PyObject * obj0 = 0 ;
18845 PyObject * obj1 = 0 ;
18846 PyObject * obj2 = 0 ;
18847 char * kwnames[] = {
18848 (char *) "self",(char *) "r",(char *) "radius", NULL
18849 };
18850
18851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18853 if (!SWIG_IsOK(res1)) {
18854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18855 }
18856 arg1 = reinterpret_cast< wxDC * >(argp1);
18857 {
18858 arg2 = &temp2;
18859 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18860 }
18861 ecode3 = SWIG_AsVal_double(obj2, &val3);
18862 if (!SWIG_IsOK(ecode3)) {
18863 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18864 }
18865 arg3 = static_cast< double >(val3);
18866 {
18867 PyThreadState* __tstate = wxPyBeginAllowThreads();
18868 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18869 wxPyEndAllowThreads(__tstate);
18870 if (PyErr_Occurred()) SWIG_fail;
18871 }
18872 resultobj = SWIG_Py_Void();
18873 return resultobj;
18874fail:
18875 return NULL;
18876}
18877
18878
18879SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18880 PyObject *resultobj = 0;
18881 wxDC *arg1 = (wxDC *) 0 ;
18882 wxPoint *arg2 = 0 ;
18883 wxSize *arg3 = 0 ;
18884 double arg4 ;
18885 void *argp1 = 0 ;
18886 int res1 = 0 ;
18887 wxPoint temp2 ;
18888 wxSize temp3 ;
18889 double val4 ;
18890 int ecode4 = 0 ;
18891 PyObject * obj0 = 0 ;
18892 PyObject * obj1 = 0 ;
18893 PyObject * obj2 = 0 ;
18894 PyObject * obj3 = 0 ;
18895 char * kwnames[] = {
18896 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18897 };
18898
18899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18901 if (!SWIG_IsOK(res1)) {
18902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18903 }
18904 arg1 = reinterpret_cast< wxDC * >(argp1);
18905 {
18906 arg2 = &temp2;
18907 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18908 }
18909 {
18910 arg3 = &temp3;
18911 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18912 }
18913 ecode4 = SWIG_AsVal_double(obj3, &val4);
18914 if (!SWIG_IsOK(ecode4)) {
18915 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18916 }
18917 arg4 = static_cast< double >(val4);
18918 {
18919 PyThreadState* __tstate = wxPyBeginAllowThreads();
18920 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18921 wxPyEndAllowThreads(__tstate);
18922 if (PyErr_Occurred()) SWIG_fail;
18923 }
18924 resultobj = SWIG_Py_Void();
18925 return resultobj;
18926fail:
18927 return NULL;
18928}
18929
18930
18931SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18932 PyObject *resultobj = 0;
18933 wxDC *arg1 = (wxDC *) 0 ;
18934 int arg2 ;
18935 int arg3 ;
18936 int arg4 ;
18937 void *argp1 = 0 ;
18938 int res1 = 0 ;
18939 int val2 ;
18940 int ecode2 = 0 ;
18941 int val3 ;
18942 int ecode3 = 0 ;
18943 int val4 ;
18944 int ecode4 = 0 ;
18945 PyObject * obj0 = 0 ;
18946 PyObject * obj1 = 0 ;
18947 PyObject * obj2 = 0 ;
18948 PyObject * obj3 = 0 ;
18949 char * kwnames[] = {
18950 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18951 };
18952
18953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18955 if (!SWIG_IsOK(res1)) {
18956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18957 }
18958 arg1 = reinterpret_cast< wxDC * >(argp1);
18959 ecode2 = SWIG_AsVal_int(obj1, &val2);
18960 if (!SWIG_IsOK(ecode2)) {
18961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18962 }
18963 arg2 = static_cast< int >(val2);
18964 ecode3 = SWIG_AsVal_int(obj2, &val3);
18965 if (!SWIG_IsOK(ecode3)) {
18966 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18967 }
18968 arg3 = static_cast< int >(val3);
18969 ecode4 = SWIG_AsVal_int(obj3, &val4);
18970 if (!SWIG_IsOK(ecode4)) {
18971 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18972 }
18973 arg4 = static_cast< int >(val4);
18974 {
18975 PyThreadState* __tstate = wxPyBeginAllowThreads();
18976 (arg1)->DrawCircle(arg2,arg3,arg4);
18977 wxPyEndAllowThreads(__tstate);
18978 if (PyErr_Occurred()) SWIG_fail;
18979 }
18980 resultobj = SWIG_Py_Void();
18981 return resultobj;
18982fail:
18983 return NULL;
18984}
18985
18986
18987SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18988 PyObject *resultobj = 0;
18989 wxDC *arg1 = (wxDC *) 0 ;
18990 wxPoint *arg2 = 0 ;
18991 int arg3 ;
18992 void *argp1 = 0 ;
18993 int res1 = 0 ;
18994 wxPoint temp2 ;
18995 int val3 ;
18996 int ecode3 = 0 ;
18997 PyObject * obj0 = 0 ;
18998 PyObject * obj1 = 0 ;
18999 PyObject * obj2 = 0 ;
19000 char * kwnames[] = {
19001 (char *) "self",(char *) "pt",(char *) "radius", NULL
19002 };
19003
19004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19006 if (!SWIG_IsOK(res1)) {
19007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19008 }
19009 arg1 = reinterpret_cast< wxDC * >(argp1);
19010 {
19011 arg2 = &temp2;
19012 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19013 }
19014 ecode3 = SWIG_AsVal_int(obj2, &val3);
19015 if (!SWIG_IsOK(ecode3)) {
19016 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19017 }
19018 arg3 = static_cast< int >(val3);
19019 {
19020 PyThreadState* __tstate = wxPyBeginAllowThreads();
19021 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19022 wxPyEndAllowThreads(__tstate);
19023 if (PyErr_Occurred()) SWIG_fail;
19024 }
19025 resultobj = SWIG_Py_Void();
19026 return resultobj;
19027fail:
19028 return NULL;
19029}
19030
19031
19032SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19033 PyObject *resultobj = 0;
19034 wxDC *arg1 = (wxDC *) 0 ;
19035 int arg2 ;
19036 int arg3 ;
19037 int arg4 ;
19038 int arg5 ;
19039 void *argp1 = 0 ;
19040 int res1 = 0 ;
19041 int val2 ;
19042 int ecode2 = 0 ;
19043 int val3 ;
19044 int ecode3 = 0 ;
19045 int val4 ;
19046 int ecode4 = 0 ;
19047 int val5 ;
19048 int ecode5 = 0 ;
19049 PyObject * obj0 = 0 ;
19050 PyObject * obj1 = 0 ;
19051 PyObject * obj2 = 0 ;
19052 PyObject * obj3 = 0 ;
19053 PyObject * obj4 = 0 ;
19054 char * kwnames[] = {
19055 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19056 };
19057
19058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19060 if (!SWIG_IsOK(res1)) {
19061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19062 }
19063 arg1 = reinterpret_cast< wxDC * >(argp1);
19064 ecode2 = SWIG_AsVal_int(obj1, &val2);
19065 if (!SWIG_IsOK(ecode2)) {
19066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19067 }
19068 arg2 = static_cast< int >(val2);
19069 ecode3 = SWIG_AsVal_int(obj2, &val3);
19070 if (!SWIG_IsOK(ecode3)) {
19071 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19072 }
19073 arg3 = static_cast< int >(val3);
19074 ecode4 = SWIG_AsVal_int(obj3, &val4);
19075 if (!SWIG_IsOK(ecode4)) {
19076 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19077 }
19078 arg4 = static_cast< int >(val4);
19079 ecode5 = SWIG_AsVal_int(obj4, &val5);
19080 if (!SWIG_IsOK(ecode5)) {
19081 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19082 }
19083 arg5 = static_cast< int >(val5);
19084 {
19085 PyThreadState* __tstate = wxPyBeginAllowThreads();
19086 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19087 wxPyEndAllowThreads(__tstate);
19088 if (PyErr_Occurred()) SWIG_fail;
19089 }
19090 resultobj = SWIG_Py_Void();
19091 return resultobj;
19092fail:
19093 return NULL;
19094}
19095
19096
19097SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19098 PyObject *resultobj = 0;
19099 wxDC *arg1 = (wxDC *) 0 ;
19100 wxRect *arg2 = 0 ;
19101 void *argp1 = 0 ;
19102 int res1 = 0 ;
19103 wxRect temp2 ;
19104 PyObject * obj0 = 0 ;
19105 PyObject * obj1 = 0 ;
19106 char * kwnames[] = {
19107 (char *) "self",(char *) "rect", NULL
19108 };
19109
19110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19112 if (!SWIG_IsOK(res1)) {
19113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19114 }
19115 arg1 = reinterpret_cast< wxDC * >(argp1);
19116 {
19117 arg2 = &temp2;
19118 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19119 }
19120 {
19121 PyThreadState* __tstate = wxPyBeginAllowThreads();
19122 (arg1)->DrawEllipse((wxRect const &)*arg2);
19123 wxPyEndAllowThreads(__tstate);
19124 if (PyErr_Occurred()) SWIG_fail;
19125 }
19126 resultobj = SWIG_Py_Void();
19127 return resultobj;
19128fail:
19129 return NULL;
19130}
19131
19132
19133SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19134 PyObject *resultobj = 0;
19135 wxDC *arg1 = (wxDC *) 0 ;
19136 wxPoint *arg2 = 0 ;
19137 wxSize *arg3 = 0 ;
19138 void *argp1 = 0 ;
19139 int res1 = 0 ;
19140 wxPoint temp2 ;
19141 wxSize temp3 ;
19142 PyObject * obj0 = 0 ;
19143 PyObject * obj1 = 0 ;
19144 PyObject * obj2 = 0 ;
19145 char * kwnames[] = {
19146 (char *) "self",(char *) "pt",(char *) "sz", NULL
19147 };
19148
19149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19151 if (!SWIG_IsOK(res1)) {
19152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19153 }
19154 arg1 = reinterpret_cast< wxDC * >(argp1);
19155 {
19156 arg2 = &temp2;
19157 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19158 }
19159 {
19160 arg3 = &temp3;
19161 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19162 }
19163 {
19164 PyThreadState* __tstate = wxPyBeginAllowThreads();
19165 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19166 wxPyEndAllowThreads(__tstate);
19167 if (PyErr_Occurred()) SWIG_fail;
19168 }
19169 resultobj = SWIG_Py_Void();
19170 return resultobj;
19171fail:
19172 return NULL;
19173}
19174
19175
19176SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19177 PyObject *resultobj = 0;
19178 wxDC *arg1 = (wxDC *) 0 ;
19179 wxIcon *arg2 = 0 ;
19180 int arg3 ;
19181 int arg4 ;
19182 void *argp1 = 0 ;
19183 int res1 = 0 ;
19184 void *argp2 = 0 ;
19185 int res2 = 0 ;
19186 int val3 ;
19187 int ecode3 = 0 ;
19188 int val4 ;
19189 int ecode4 = 0 ;
19190 PyObject * obj0 = 0 ;
19191 PyObject * obj1 = 0 ;
19192 PyObject * obj2 = 0 ;
19193 PyObject * obj3 = 0 ;
19194 char * kwnames[] = {
19195 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19196 };
19197
19198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19200 if (!SWIG_IsOK(res1)) {
19201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19202 }
19203 arg1 = reinterpret_cast< wxDC * >(argp1);
19204 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19205 if (!SWIG_IsOK(res2)) {
19206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19207 }
19208 if (!argp2) {
19209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19210 }
19211 arg2 = reinterpret_cast< wxIcon * >(argp2);
19212 ecode3 = SWIG_AsVal_int(obj2, &val3);
19213 if (!SWIG_IsOK(ecode3)) {
19214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19215 }
19216 arg3 = static_cast< int >(val3);
19217 ecode4 = SWIG_AsVal_int(obj3, &val4);
19218 if (!SWIG_IsOK(ecode4)) {
19219 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19220 }
19221 arg4 = static_cast< int >(val4);
19222 {
19223 PyThreadState* __tstate = wxPyBeginAllowThreads();
19224 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19225 wxPyEndAllowThreads(__tstate);
19226 if (PyErr_Occurred()) SWIG_fail;
19227 }
19228 resultobj = SWIG_Py_Void();
19229 return resultobj;
19230fail:
19231 return NULL;
19232}
19233
19234
19235SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19236 PyObject *resultobj = 0;
19237 wxDC *arg1 = (wxDC *) 0 ;
19238 wxIcon *arg2 = 0 ;
19239 wxPoint *arg3 = 0 ;
19240 void *argp1 = 0 ;
19241 int res1 = 0 ;
19242 void *argp2 = 0 ;
19243 int res2 = 0 ;
19244 wxPoint temp3 ;
19245 PyObject * obj0 = 0 ;
19246 PyObject * obj1 = 0 ;
19247 PyObject * obj2 = 0 ;
19248 char * kwnames[] = {
19249 (char *) "self",(char *) "icon",(char *) "pt", NULL
19250 };
19251
19252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19254 if (!SWIG_IsOK(res1)) {
19255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19256 }
19257 arg1 = reinterpret_cast< wxDC * >(argp1);
19258 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19259 if (!SWIG_IsOK(res2)) {
19260 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19261 }
19262 if (!argp2) {
19263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19264 }
19265 arg2 = reinterpret_cast< wxIcon * >(argp2);
19266 {
19267 arg3 = &temp3;
19268 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19269 }
19270 {
19271 PyThreadState* __tstate = wxPyBeginAllowThreads();
19272 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19273 wxPyEndAllowThreads(__tstate);
19274 if (PyErr_Occurred()) SWIG_fail;
19275 }
19276 resultobj = SWIG_Py_Void();
19277 return resultobj;
19278fail:
19279 return NULL;
19280}
19281
19282
19283SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19284 PyObject *resultobj = 0;
19285 wxDC *arg1 = (wxDC *) 0 ;
19286 wxBitmap *arg2 = 0 ;
19287 int arg3 ;
19288 int arg4 ;
19289 bool arg5 = (bool) false ;
19290 void *argp1 = 0 ;
19291 int res1 = 0 ;
19292 void *argp2 = 0 ;
19293 int res2 = 0 ;
19294 int val3 ;
19295 int ecode3 = 0 ;
19296 int val4 ;
19297 int ecode4 = 0 ;
19298 bool val5 ;
19299 int ecode5 = 0 ;
19300 PyObject * obj0 = 0 ;
19301 PyObject * obj1 = 0 ;
19302 PyObject * obj2 = 0 ;
19303 PyObject * obj3 = 0 ;
19304 PyObject * obj4 = 0 ;
19305 char * kwnames[] = {
19306 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19307 };
19308
19309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19311 if (!SWIG_IsOK(res1)) {
19312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19313 }
19314 arg1 = reinterpret_cast< wxDC * >(argp1);
19315 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19316 if (!SWIG_IsOK(res2)) {
19317 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19318 }
19319 if (!argp2) {
19320 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19321 }
19322 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19323 ecode3 = SWIG_AsVal_int(obj2, &val3);
19324 if (!SWIG_IsOK(ecode3)) {
19325 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19326 }
19327 arg3 = static_cast< int >(val3);
19328 ecode4 = SWIG_AsVal_int(obj3, &val4);
19329 if (!SWIG_IsOK(ecode4)) {
19330 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19331 }
19332 arg4 = static_cast< int >(val4);
19333 if (obj4) {
19334 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19335 if (!SWIG_IsOK(ecode5)) {
19336 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19337 }
19338 arg5 = static_cast< bool >(val5);
19339 }
19340 {
19341 PyThreadState* __tstate = wxPyBeginAllowThreads();
19342 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19343 wxPyEndAllowThreads(__tstate);
19344 if (PyErr_Occurred()) SWIG_fail;
19345 }
19346 resultobj = SWIG_Py_Void();
19347 return resultobj;
19348fail:
19349 return NULL;
19350}
19351
19352
19353SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19354 PyObject *resultobj = 0;
19355 wxDC *arg1 = (wxDC *) 0 ;
19356 wxBitmap *arg2 = 0 ;
19357 wxPoint *arg3 = 0 ;
19358 bool arg4 = (bool) false ;
19359 void *argp1 = 0 ;
19360 int res1 = 0 ;
19361 void *argp2 = 0 ;
19362 int res2 = 0 ;
19363 wxPoint temp3 ;
19364 bool val4 ;
19365 int ecode4 = 0 ;
19366 PyObject * obj0 = 0 ;
19367 PyObject * obj1 = 0 ;
19368 PyObject * obj2 = 0 ;
19369 PyObject * obj3 = 0 ;
19370 char * kwnames[] = {
19371 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19372 };
19373
19374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19376 if (!SWIG_IsOK(res1)) {
19377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19378 }
19379 arg1 = reinterpret_cast< wxDC * >(argp1);
19380 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19381 if (!SWIG_IsOK(res2)) {
19382 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19383 }
19384 if (!argp2) {
19385 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19386 }
19387 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19388 {
19389 arg3 = &temp3;
19390 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19391 }
19392 if (obj3) {
19393 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19394 if (!SWIG_IsOK(ecode4)) {
19395 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19396 }
19397 arg4 = static_cast< bool >(val4);
19398 }
19399 {
19400 PyThreadState* __tstate = wxPyBeginAllowThreads();
19401 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19402 wxPyEndAllowThreads(__tstate);
19403 if (PyErr_Occurred()) SWIG_fail;
19404 }
19405 resultobj = SWIG_Py_Void();
19406 return resultobj;
19407fail:
19408 return NULL;
19409}
19410
19411
19412SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19413 PyObject *resultobj = 0;
19414 wxDC *arg1 = (wxDC *) 0 ;
19415 wxString *arg2 = 0 ;
19416 int arg3 ;
19417 int arg4 ;
19418 void *argp1 = 0 ;
19419 int res1 = 0 ;
19420 bool temp2 = false ;
19421 int val3 ;
19422 int ecode3 = 0 ;
19423 int val4 ;
19424 int ecode4 = 0 ;
19425 PyObject * obj0 = 0 ;
19426 PyObject * obj1 = 0 ;
19427 PyObject * obj2 = 0 ;
19428 PyObject * obj3 = 0 ;
19429 char * kwnames[] = {
19430 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19431 };
19432
19433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19435 if (!SWIG_IsOK(res1)) {
19436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19437 }
19438 arg1 = reinterpret_cast< wxDC * >(argp1);
19439 {
19440 arg2 = wxString_in_helper(obj1);
19441 if (arg2 == NULL) SWIG_fail;
19442 temp2 = true;
19443 }
19444 ecode3 = SWIG_AsVal_int(obj2, &val3);
19445 if (!SWIG_IsOK(ecode3)) {
19446 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19447 }
19448 arg3 = static_cast< int >(val3);
19449 ecode4 = SWIG_AsVal_int(obj3, &val4);
19450 if (!SWIG_IsOK(ecode4)) {
19451 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19452 }
19453 arg4 = static_cast< int >(val4);
19454 {
19455 PyThreadState* __tstate = wxPyBeginAllowThreads();
19456 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19457 wxPyEndAllowThreads(__tstate);
19458 if (PyErr_Occurred()) SWIG_fail;
19459 }
19460 resultobj = SWIG_Py_Void();
19461 {
19462 if (temp2)
19463 delete arg2;
19464 }
19465 return resultobj;
19466fail:
19467 {
19468 if (temp2)
19469 delete arg2;
19470 }
19471 return NULL;
19472}
19473
19474
19475SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19476 PyObject *resultobj = 0;
19477 wxDC *arg1 = (wxDC *) 0 ;
19478 wxString *arg2 = 0 ;
19479 wxPoint *arg3 = 0 ;
19480 void *argp1 = 0 ;
19481 int res1 = 0 ;
19482 bool temp2 = false ;
19483 wxPoint temp3 ;
19484 PyObject * obj0 = 0 ;
19485 PyObject * obj1 = 0 ;
19486 PyObject * obj2 = 0 ;
19487 char * kwnames[] = {
19488 (char *) "self",(char *) "text",(char *) "pt", NULL
19489 };
19490
19491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19493 if (!SWIG_IsOK(res1)) {
19494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19495 }
19496 arg1 = reinterpret_cast< wxDC * >(argp1);
19497 {
19498 arg2 = wxString_in_helper(obj1);
19499 if (arg2 == NULL) SWIG_fail;
19500 temp2 = true;
19501 }
19502 {
19503 arg3 = &temp3;
19504 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19505 }
19506 {
19507 PyThreadState* __tstate = wxPyBeginAllowThreads();
19508 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19509 wxPyEndAllowThreads(__tstate);
19510 if (PyErr_Occurred()) SWIG_fail;
19511 }
19512 resultobj = SWIG_Py_Void();
19513 {
19514 if (temp2)
19515 delete arg2;
19516 }
19517 return resultobj;
19518fail:
19519 {
19520 if (temp2)
19521 delete arg2;
19522 }
19523 return NULL;
19524}
19525
19526
19527SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19528 PyObject *resultobj = 0;
19529 wxDC *arg1 = (wxDC *) 0 ;
19530 wxString *arg2 = 0 ;
19531 int arg3 ;
19532 int arg4 ;
19533 double arg5 ;
19534 void *argp1 = 0 ;
19535 int res1 = 0 ;
19536 bool temp2 = false ;
19537 int val3 ;
19538 int ecode3 = 0 ;
19539 int val4 ;
19540 int ecode4 = 0 ;
19541 double val5 ;
19542 int ecode5 = 0 ;
19543 PyObject * obj0 = 0 ;
19544 PyObject * obj1 = 0 ;
19545 PyObject * obj2 = 0 ;
19546 PyObject * obj3 = 0 ;
19547 PyObject * obj4 = 0 ;
19548 char * kwnames[] = {
19549 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19550 };
19551
19552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19554 if (!SWIG_IsOK(res1)) {
19555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19556 }
19557 arg1 = reinterpret_cast< wxDC * >(argp1);
19558 {
19559 arg2 = wxString_in_helper(obj1);
19560 if (arg2 == NULL) SWIG_fail;
19561 temp2 = true;
19562 }
19563 ecode3 = SWIG_AsVal_int(obj2, &val3);
19564 if (!SWIG_IsOK(ecode3)) {
19565 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19566 }
19567 arg3 = static_cast< int >(val3);
19568 ecode4 = SWIG_AsVal_int(obj3, &val4);
19569 if (!SWIG_IsOK(ecode4)) {
19570 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19571 }
19572 arg4 = static_cast< int >(val4);
19573 ecode5 = SWIG_AsVal_double(obj4, &val5);
19574 if (!SWIG_IsOK(ecode5)) {
19575 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19576 }
19577 arg5 = static_cast< double >(val5);
19578 {
19579 PyThreadState* __tstate = wxPyBeginAllowThreads();
19580 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19581 wxPyEndAllowThreads(__tstate);
19582 if (PyErr_Occurred()) SWIG_fail;
19583 }
19584 resultobj = SWIG_Py_Void();
19585 {
19586 if (temp2)
19587 delete arg2;
19588 }
19589 return resultobj;
19590fail:
19591 {
19592 if (temp2)
19593 delete arg2;
19594 }
19595 return NULL;
19596}
19597
19598
19599SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19600 PyObject *resultobj = 0;
19601 wxDC *arg1 = (wxDC *) 0 ;
19602 wxString *arg2 = 0 ;
19603 wxPoint *arg3 = 0 ;
19604 double arg4 ;
19605 void *argp1 = 0 ;
19606 int res1 = 0 ;
19607 bool temp2 = false ;
19608 wxPoint temp3 ;
19609 double val4 ;
19610 int ecode4 = 0 ;
19611 PyObject * obj0 = 0 ;
19612 PyObject * obj1 = 0 ;
19613 PyObject * obj2 = 0 ;
19614 PyObject * obj3 = 0 ;
19615 char * kwnames[] = {
19616 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19617 };
19618
19619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19621 if (!SWIG_IsOK(res1)) {
19622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19623 }
19624 arg1 = reinterpret_cast< wxDC * >(argp1);
19625 {
19626 arg2 = wxString_in_helper(obj1);
19627 if (arg2 == NULL) SWIG_fail;
19628 temp2 = true;
19629 }
19630 {
19631 arg3 = &temp3;
19632 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19633 }
19634 ecode4 = SWIG_AsVal_double(obj3, &val4);
19635 if (!SWIG_IsOK(ecode4)) {
19636 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19637 }
19638 arg4 = static_cast< double >(val4);
19639 {
19640 PyThreadState* __tstate = wxPyBeginAllowThreads();
19641 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19642 wxPyEndAllowThreads(__tstate);
19643 if (PyErr_Occurred()) SWIG_fail;
19644 }
19645 resultobj = SWIG_Py_Void();
19646 {
19647 if (temp2)
19648 delete arg2;
19649 }
19650 return resultobj;
19651fail:
19652 {
19653 if (temp2)
19654 delete arg2;
19655 }
19656 return NULL;
19657}
19658
19659
19660SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19661 PyObject *resultobj = 0;
19662 wxDC *arg1 = (wxDC *) 0 ;
19663 int arg2 ;
19664 int arg3 ;
19665 int arg4 ;
19666 int arg5 ;
19667 wxDC *arg6 = (wxDC *) 0 ;
19668 int arg7 ;
19669 int arg8 ;
19670 int arg9 = (int) wxCOPY ;
19671 bool arg10 = (bool) false ;
19672 int arg11 = (int) -1 ;
19673 int arg12 = (int) -1 ;
19674 bool result;
19675 void *argp1 = 0 ;
19676 int res1 = 0 ;
19677 int val2 ;
19678 int ecode2 = 0 ;
19679 int val3 ;
19680 int ecode3 = 0 ;
19681 int val4 ;
19682 int ecode4 = 0 ;
19683 int val5 ;
19684 int ecode5 = 0 ;
19685 void *argp6 = 0 ;
19686 int res6 = 0 ;
19687 int val7 ;
19688 int ecode7 = 0 ;
19689 int val8 ;
19690 int ecode8 = 0 ;
19691 int val9 ;
19692 int ecode9 = 0 ;
19693 bool val10 ;
19694 int ecode10 = 0 ;
19695 int val11 ;
19696 int ecode11 = 0 ;
19697 int val12 ;
19698 int ecode12 = 0 ;
19699 PyObject * obj0 = 0 ;
19700 PyObject * obj1 = 0 ;
19701 PyObject * obj2 = 0 ;
19702 PyObject * obj3 = 0 ;
19703 PyObject * obj4 = 0 ;
19704 PyObject * obj5 = 0 ;
19705 PyObject * obj6 = 0 ;
19706 PyObject * obj7 = 0 ;
19707 PyObject * obj8 = 0 ;
19708 PyObject * obj9 = 0 ;
19709 PyObject * obj10 = 0 ;
19710 PyObject * obj11 = 0 ;
19711 char * kwnames[] = {
19712 (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
19713 };
19714
19715 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;
19716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19717 if (!SWIG_IsOK(res1)) {
19718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19719 }
19720 arg1 = reinterpret_cast< wxDC * >(argp1);
19721 ecode2 = SWIG_AsVal_int(obj1, &val2);
19722 if (!SWIG_IsOK(ecode2)) {
19723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19724 }
19725 arg2 = static_cast< int >(val2);
19726 ecode3 = SWIG_AsVal_int(obj2, &val3);
19727 if (!SWIG_IsOK(ecode3)) {
19728 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19729 }
19730 arg3 = static_cast< int >(val3);
19731 ecode4 = SWIG_AsVal_int(obj3, &val4);
19732 if (!SWIG_IsOK(ecode4)) {
19733 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19734 }
19735 arg4 = static_cast< int >(val4);
19736 ecode5 = SWIG_AsVal_int(obj4, &val5);
19737 if (!SWIG_IsOK(ecode5)) {
19738 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19739 }
19740 arg5 = static_cast< int >(val5);
19741 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19742 if (!SWIG_IsOK(res6)) {
19743 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19744 }
19745 arg6 = reinterpret_cast< wxDC * >(argp6);
19746 ecode7 = SWIG_AsVal_int(obj6, &val7);
19747 if (!SWIG_IsOK(ecode7)) {
19748 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19749 }
19750 arg7 = static_cast< int >(val7);
19751 ecode8 = SWIG_AsVal_int(obj7, &val8);
19752 if (!SWIG_IsOK(ecode8)) {
19753 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19754 }
19755 arg8 = static_cast< int >(val8);
19756 if (obj8) {
19757 ecode9 = SWIG_AsVal_int(obj8, &val9);
19758 if (!SWIG_IsOK(ecode9)) {
19759 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19760 }
19761 arg9 = static_cast< int >(val9);
19762 }
19763 if (obj9) {
19764 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19765 if (!SWIG_IsOK(ecode10)) {
19766 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19767 }
19768 arg10 = static_cast< bool >(val10);
19769 }
19770 if (obj10) {
19771 ecode11 = SWIG_AsVal_int(obj10, &val11);
19772 if (!SWIG_IsOK(ecode11)) {
19773 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19774 }
19775 arg11 = static_cast< int >(val11);
19776 }
19777 if (obj11) {
19778 ecode12 = SWIG_AsVal_int(obj11, &val12);
19779 if (!SWIG_IsOK(ecode12)) {
19780 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19781 }
19782 arg12 = static_cast< int >(val12);
19783 }
19784 {
19785 PyThreadState* __tstate = wxPyBeginAllowThreads();
19786 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19787 wxPyEndAllowThreads(__tstate);
19788 if (PyErr_Occurred()) SWIG_fail;
19789 }
19790 {
19791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19792 }
19793 return resultobj;
19794fail:
19795 return NULL;
19796}
19797
19798
19799SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19800 PyObject *resultobj = 0;
19801 wxDC *arg1 = (wxDC *) 0 ;
19802 wxPoint *arg2 = 0 ;
19803 wxSize *arg3 = 0 ;
19804 wxDC *arg4 = (wxDC *) 0 ;
19805 wxPoint *arg5 = 0 ;
19806 int arg6 = (int) wxCOPY ;
19807 bool arg7 = (bool) false ;
19808 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19809 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19810 bool result;
19811 void *argp1 = 0 ;
19812 int res1 = 0 ;
19813 wxPoint temp2 ;
19814 wxSize temp3 ;
19815 void *argp4 = 0 ;
19816 int res4 = 0 ;
19817 wxPoint temp5 ;
19818 int val6 ;
19819 int ecode6 = 0 ;
19820 bool val7 ;
19821 int ecode7 = 0 ;
19822 wxPoint temp8 ;
19823 PyObject * obj0 = 0 ;
19824 PyObject * obj1 = 0 ;
19825 PyObject * obj2 = 0 ;
19826 PyObject * obj3 = 0 ;
19827 PyObject * obj4 = 0 ;
19828 PyObject * obj5 = 0 ;
19829 PyObject * obj6 = 0 ;
19830 PyObject * obj7 = 0 ;
19831 char * kwnames[] = {
19832 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19833 };
19834
19835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19837 if (!SWIG_IsOK(res1)) {
19838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19839 }
19840 arg1 = reinterpret_cast< wxDC * >(argp1);
19841 {
19842 arg2 = &temp2;
19843 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19844 }
19845 {
19846 arg3 = &temp3;
19847 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19848 }
19849 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19850 if (!SWIG_IsOK(res4)) {
19851 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19852 }
19853 arg4 = reinterpret_cast< wxDC * >(argp4);
19854 {
19855 arg5 = &temp5;
19856 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19857 }
19858 if (obj5) {
19859 ecode6 = SWIG_AsVal_int(obj5, &val6);
19860 if (!SWIG_IsOK(ecode6)) {
19861 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19862 }
19863 arg6 = static_cast< int >(val6);
19864 }
19865 if (obj6) {
19866 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19867 if (!SWIG_IsOK(ecode7)) {
19868 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19869 }
19870 arg7 = static_cast< bool >(val7);
19871 }
19872 if (obj7) {
36ed4f51 19873 {
1bd55598
RD
19874 arg8 = &temp8;
19875 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
36ed4f51 19876 }
1bd55598
RD
19877 }
19878 {
19879 PyThreadState* __tstate = wxPyBeginAllowThreads();
19880 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19881 wxPyEndAllowThreads(__tstate);
19882 if (PyErr_Occurred()) SWIG_fail;
19883 }
19884 {
19885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19886 }
19887 return resultobj;
19888fail:
19889 return NULL;
19890}
19891
19892
cbfc9df6
RD
19893SWIGINTERN PyObject *_wrap_DC_StretchBlit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19894 PyObject *resultobj = 0;
19895 wxDC *arg1 = (wxDC *) 0 ;
19896 int arg2 ;
19897 int arg3 ;
19898 int arg4 ;
19899 int arg5 ;
19900 wxDC *arg6 = (wxDC *) 0 ;
19901 int arg7 ;
19902 int arg8 ;
19903 int arg9 ;
19904 int arg10 ;
19905 int arg11 = (int) wxCOPY ;
19906 bool arg12 = (bool) false ;
19907 int arg13 = (int) wxDefaultCoord ;
19908 int arg14 = (int) wxDefaultCoord ;
19909 bool result;
19910 void *argp1 = 0 ;
19911 int res1 = 0 ;
19912 int val2 ;
19913 int ecode2 = 0 ;
19914 int val3 ;
19915 int ecode3 = 0 ;
19916 int val4 ;
19917 int ecode4 = 0 ;
19918 int val5 ;
19919 int ecode5 = 0 ;
19920 void *argp6 = 0 ;
19921 int res6 = 0 ;
19922 int val7 ;
19923 int ecode7 = 0 ;
19924 int val8 ;
19925 int ecode8 = 0 ;
19926 int val9 ;
19927 int ecode9 = 0 ;
19928 int val10 ;
19929 int ecode10 = 0 ;
19930 int val11 ;
19931 int ecode11 = 0 ;
19932 bool val12 ;
19933 int ecode12 = 0 ;
19934 int val13 ;
19935 int ecode13 = 0 ;
19936 int val14 ;
19937 int ecode14 = 0 ;
19938 PyObject * obj0 = 0 ;
19939 PyObject * obj1 = 0 ;
19940 PyObject * obj2 = 0 ;
19941 PyObject * obj3 = 0 ;
19942 PyObject * obj4 = 0 ;
19943 PyObject * obj5 = 0 ;
19944 PyObject * obj6 = 0 ;
19945 PyObject * obj7 = 0 ;
19946 PyObject * obj8 = 0 ;
19947 PyObject * obj9 = 0 ;
19948 PyObject * obj10 = 0 ;
19949 PyObject * obj11 = 0 ;
19950 PyObject * obj12 = 0 ;
19951 PyObject * obj13 = 0 ;
19952 char * kwnames[] = {
19953 (char *) "self",(char *) "dstX",(char *) "dstY",(char *) "dstWidth",(char *) "dstHeight",(char *) "source",(char *) "srcX",(char *) "srcY",(char *) "srcWidth",(char *) "srcHeight",(char *) "rop",(char *) "useMask",(char *) "srcMaskX",(char *) "srcMaskY", NULL
19954 };
19955
19956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOOOO|OOOO:DC_StretchBlit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13)) SWIG_fail;
19957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19958 if (!SWIG_IsOK(res1)) {
19959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StretchBlit" "', expected argument " "1"" of type '" "wxDC *""'");
19960 }
19961 arg1 = reinterpret_cast< wxDC * >(argp1);
19962 ecode2 = SWIG_AsVal_int(obj1, &val2);
19963 if (!SWIG_IsOK(ecode2)) {
19964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_StretchBlit" "', expected argument " "2"" of type '" "int""'");
19965 }
19966 arg2 = static_cast< int >(val2);
19967 ecode3 = SWIG_AsVal_int(obj2, &val3);
19968 if (!SWIG_IsOK(ecode3)) {
19969 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_StretchBlit" "', expected argument " "3"" of type '" "int""'");
19970 }
19971 arg3 = static_cast< int >(val3);
19972 ecode4 = SWIG_AsVal_int(obj3, &val4);
19973 if (!SWIG_IsOK(ecode4)) {
19974 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_StretchBlit" "', expected argument " "4"" of type '" "int""'");
19975 }
19976 arg4 = static_cast< int >(val4);
19977 ecode5 = SWIG_AsVal_int(obj4, &val5);
19978 if (!SWIG_IsOK(ecode5)) {
19979 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_StretchBlit" "', expected argument " "5"" of type '" "int""'");
19980 }
19981 arg5 = static_cast< int >(val5);
19982 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19983 if (!SWIG_IsOK(res6)) {
19984 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_StretchBlit" "', expected argument " "6"" of type '" "wxDC *""'");
19985 }
19986 arg6 = reinterpret_cast< wxDC * >(argp6);
19987 ecode7 = SWIG_AsVal_int(obj6, &val7);
19988 if (!SWIG_IsOK(ecode7)) {
19989 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_StretchBlit" "', expected argument " "7"" of type '" "int""'");
19990 }
19991 arg7 = static_cast< int >(val7);
19992 ecode8 = SWIG_AsVal_int(obj7, &val8);
19993 if (!SWIG_IsOK(ecode8)) {
19994 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_StretchBlit" "', expected argument " "8"" of type '" "int""'");
19995 }
19996 arg8 = static_cast< int >(val8);
19997 ecode9 = SWIG_AsVal_int(obj8, &val9);
19998 if (!SWIG_IsOK(ecode9)) {
19999 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_StretchBlit" "', expected argument " "9"" of type '" "int""'");
20000 }
20001 arg9 = static_cast< int >(val9);
20002 ecode10 = SWIG_AsVal_int(obj9, &val10);
20003 if (!SWIG_IsOK(ecode10)) {
20004 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_StretchBlit" "', expected argument " "10"" of type '" "int""'");
20005 }
20006 arg10 = static_cast< int >(val10);
20007 if (obj10) {
20008 ecode11 = SWIG_AsVal_int(obj10, &val11);
20009 if (!SWIG_IsOK(ecode11)) {
20010 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_StretchBlit" "', expected argument " "11"" of type '" "int""'");
20011 }
20012 arg11 = static_cast< int >(val11);
20013 }
20014 if (obj11) {
20015 ecode12 = SWIG_AsVal_bool(obj11, &val12);
20016 if (!SWIG_IsOK(ecode12)) {
20017 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_StretchBlit" "', expected argument " "12"" of type '" "bool""'");
20018 }
20019 arg12 = static_cast< bool >(val12);
20020 }
20021 if (obj12) {
20022 ecode13 = SWIG_AsVal_int(obj12, &val13);
20023 if (!SWIG_IsOK(ecode13)) {
20024 SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "DC_StretchBlit" "', expected argument " "13"" of type '" "int""'");
20025 }
20026 arg13 = static_cast< int >(val13);
20027 }
20028 if (obj13) {
20029 ecode14 = SWIG_AsVal_int(obj13, &val14);
20030 if (!SWIG_IsOK(ecode14)) {
20031 SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "DC_StretchBlit" "', expected argument " "14"" of type '" "int""'");
20032 }
20033 arg14 = static_cast< int >(val14);
20034 }
20035 {
20036 PyThreadState* __tstate = wxPyBeginAllowThreads();
20037 result = (bool)(arg1)->StretchBlit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14);
20038 wxPyEndAllowThreads(__tstate);
20039 if (PyErr_Occurred()) SWIG_fail;
20040 }
20041 {
20042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20043 }
20044 return resultobj;
20045fail:
20046 return NULL;
20047}
20048
20049
20050SWIGINTERN PyObject *_wrap_DC_StretchBlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20051 PyObject *resultobj = 0;
20052 wxDC *arg1 = (wxDC *) 0 ;
20053 wxPoint *arg2 = 0 ;
20054 wxSize *arg3 = 0 ;
20055 wxDC *arg4 = (wxDC *) 0 ;
20056 wxPoint *arg5 = 0 ;
20057 wxSize *arg6 = 0 ;
20058 int arg7 = (int) wxCOPY ;
20059 bool arg8 = (bool) false ;
20060 wxPoint const &arg9_defvalue = wxDefaultPosition ;
20061 wxPoint *arg9 = (wxPoint *) &arg9_defvalue ;
20062 bool result;
20063 void *argp1 = 0 ;
20064 int res1 = 0 ;
20065 wxPoint temp2 ;
20066 wxSize temp3 ;
20067 void *argp4 = 0 ;
20068 int res4 = 0 ;
20069 wxPoint temp5 ;
20070 wxSize temp6 ;
20071 int val7 ;
20072 int ecode7 = 0 ;
20073 bool val8 ;
20074 int ecode8 = 0 ;
20075 wxPoint temp9 ;
20076 PyObject * obj0 = 0 ;
20077 PyObject * obj1 = 0 ;
20078 PyObject * obj2 = 0 ;
20079 PyObject * obj3 = 0 ;
20080 PyObject * obj4 = 0 ;
20081 PyObject * obj5 = 0 ;
20082 PyObject * obj6 = 0 ;
20083 PyObject * obj7 = 0 ;
20084 PyObject * obj8 = 0 ;
20085 char * kwnames[] = {
20086 (char *) "self",(char *) "dstPt",(char *) "dstSize",(char *) "source",(char *) "srcPt",(char *) "srcSize",(char *) "rop",(char *) "useMask",(char *) "srcMaskPt", NULL
20087 };
20088
20089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOO:DC_StretchBlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
20090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20091 if (!SWIG_IsOK(res1)) {
20092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StretchBlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20093 }
20094 arg1 = reinterpret_cast< wxDC * >(argp1);
20095 {
20096 arg2 = &temp2;
20097 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20098 }
20099 {
20100 arg3 = &temp3;
20101 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20102 }
20103 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20104 if (!SWIG_IsOK(res4)) {
20105 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_StretchBlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20106 }
20107 arg4 = reinterpret_cast< wxDC * >(argp4);
20108 {
20109 arg5 = &temp5;
20110 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20111 }
20112 {
20113 arg6 = &temp6;
20114 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
20115 }
20116 if (obj6) {
20117 ecode7 = SWIG_AsVal_int(obj6, &val7);
20118 if (!SWIG_IsOK(ecode7)) {
20119 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_StretchBlitPointSize" "', expected argument " "7"" of type '" "int""'");
20120 }
20121 arg7 = static_cast< int >(val7);
20122 }
20123 if (obj7) {
20124 ecode8 = SWIG_AsVal_bool(obj7, &val8);
20125 if (!SWIG_IsOK(ecode8)) {
20126 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_StretchBlitPointSize" "', expected argument " "8"" of type '" "bool""'");
20127 }
20128 arg8 = static_cast< bool >(val8);
20129 }
20130 if (obj8) {
20131 {
20132 arg9 = &temp9;
20133 if ( ! wxPoint_helper(obj8, &arg9)) SWIG_fail;
20134 }
20135 }
20136 {
20137 PyThreadState* __tstate = wxPyBeginAllowThreads();
20138 result = (bool)(arg1)->StretchBlit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,(wxPoint const &)*arg9);
20139 wxPyEndAllowThreads(__tstate);
20140 if (PyErr_Occurred()) SWIG_fail;
20141 }
20142 {
20143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20144 }
20145 return resultobj;
20146fail:
20147 return NULL;
20148}
20149
20150
8f514ab4
RD
20151SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20152 PyObject *resultobj = 0;
20153 wxDC *arg1 = (wxDC *) 0 ;
20154 wxRect *arg2 = (wxRect *) NULL ;
20155 SwigValueWrapper<wxBitmap > result;
20156 void *argp1 = 0 ;
20157 int res1 = 0 ;
20158 void *argp2 = 0 ;
20159 int res2 = 0 ;
20160 PyObject * obj0 = 0 ;
20161 PyObject * obj1 = 0 ;
20162 char * kwnames[] = {
20163 (char *) "self",(char *) "subrect", NULL
20164 };
20165
20166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
20167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20168 if (!SWIG_IsOK(res1)) {
20169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
20170 }
20171 arg1 = reinterpret_cast< wxDC * >(argp1);
20172 if (obj1) {
20173 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20174 if (!SWIG_IsOK(res2)) {
20175 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
20176 }
20177 arg2 = reinterpret_cast< wxRect * >(argp2);
20178 }
20179 {
20180 PyThreadState* __tstate = wxPyBeginAllowThreads();
20181 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
20182 wxPyEndAllowThreads(__tstate);
20183 if (PyErr_Occurred()) SWIG_fail;
20184 }
20185 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
20186 return resultobj;
20187fail:
20188 return NULL;
20189}
20190
20191
1bd55598
RD
20192SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20193 PyObject *resultobj = 0;
20194 wxDC *arg1 = (wxDC *) 0 ;
20195 int arg2 ;
20196 int arg3 ;
20197 int arg4 ;
20198 int arg5 ;
20199 void *argp1 = 0 ;
20200 int res1 = 0 ;
20201 int val2 ;
20202 int ecode2 = 0 ;
20203 int val3 ;
20204 int ecode3 = 0 ;
20205 int val4 ;
20206 int ecode4 = 0 ;
20207 int val5 ;
20208 int ecode5 = 0 ;
20209 PyObject * obj0 = 0 ;
20210 PyObject * obj1 = 0 ;
20211 PyObject * obj2 = 0 ;
20212 PyObject * obj3 = 0 ;
20213 PyObject * obj4 = 0 ;
20214 char * kwnames[] = {
20215 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20216 };
20217
20218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20220 if (!SWIG_IsOK(res1)) {
20221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20222 }
20223 arg1 = reinterpret_cast< wxDC * >(argp1);
20224 ecode2 = SWIG_AsVal_int(obj1, &val2);
20225 if (!SWIG_IsOK(ecode2)) {
20226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20227 }
20228 arg2 = static_cast< int >(val2);
20229 ecode3 = SWIG_AsVal_int(obj2, &val3);
20230 if (!SWIG_IsOK(ecode3)) {
20231 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20232 }
20233 arg3 = static_cast< int >(val3);
20234 ecode4 = SWIG_AsVal_int(obj3, &val4);
20235 if (!SWIG_IsOK(ecode4)) {
20236 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20237 }
20238 arg4 = static_cast< int >(val4);
20239 ecode5 = SWIG_AsVal_int(obj4, &val5);
20240 if (!SWIG_IsOK(ecode5)) {
20241 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20242 }
20243 arg5 = static_cast< int >(val5);
20244 {
20245 PyThreadState* __tstate = wxPyBeginAllowThreads();
20246 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20247 wxPyEndAllowThreads(__tstate);
20248 if (PyErr_Occurred()) SWIG_fail;
20249 }
20250 resultobj = SWIG_Py_Void();
20251 return resultobj;
20252fail:
20253 return NULL;
20254}
20255
20256
20257SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20258 PyObject *resultobj = 0;
20259 wxDC *arg1 = (wxDC *) 0 ;
20260 wxPoint *arg2 = 0 ;
20261 wxSize *arg3 = 0 ;
20262 void *argp1 = 0 ;
20263 int res1 = 0 ;
20264 wxPoint temp2 ;
20265 wxSize temp3 ;
20266 PyObject * obj0 = 0 ;
20267 PyObject * obj1 = 0 ;
20268 PyObject * obj2 = 0 ;
20269 char * kwnames[] = {
20270 (char *) "self",(char *) "pt",(char *) "sz", NULL
20271 };
20272
20273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20275 if (!SWIG_IsOK(res1)) {
20276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20277 }
20278 arg1 = reinterpret_cast< wxDC * >(argp1);
20279 {
20280 arg2 = &temp2;
20281 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20282 }
20283 {
20284 arg3 = &temp3;
20285 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20286 }
20287 {
20288 PyThreadState* __tstate = wxPyBeginAllowThreads();
20289 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20290 wxPyEndAllowThreads(__tstate);
20291 if (PyErr_Occurred()) SWIG_fail;
20292 }
20293 resultobj = SWIG_Py_Void();
20294 return resultobj;
20295fail:
20296 return NULL;
20297}
20298
20299
20300SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20301 PyObject *resultobj = 0;
20302 wxDC *arg1 = (wxDC *) 0 ;
20303 wxRegion *arg2 = 0 ;
20304 void *argp1 = 0 ;
20305 int res1 = 0 ;
20306 void *argp2 = 0 ;
20307 int res2 = 0 ;
20308 PyObject * obj0 = 0 ;
20309 PyObject * obj1 = 0 ;
20310 char * kwnames[] = {
20311 (char *) "self",(char *) "region", NULL
20312 };
20313
20314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20316 if (!SWIG_IsOK(res1)) {
20317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20318 }
20319 arg1 = reinterpret_cast< wxDC * >(argp1);
20320 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20321 if (!SWIG_IsOK(res2)) {
20322 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20323 }
20324 if (!argp2) {
20325 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20326 }
20327 arg2 = reinterpret_cast< wxRegion * >(argp2);
20328 {
20329 PyThreadState* __tstate = wxPyBeginAllowThreads();
20330 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20331 wxPyEndAllowThreads(__tstate);
20332 if (PyErr_Occurred()) SWIG_fail;
20333 }
20334 resultobj = SWIG_Py_Void();
20335 return resultobj;
20336fail:
20337 return NULL;
20338}
20339
20340
20341SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20342 PyObject *resultobj = 0;
20343 wxDC *arg1 = (wxDC *) 0 ;
20344 wxRect *arg2 = 0 ;
20345 void *argp1 = 0 ;
20346 int res1 = 0 ;
20347 wxRect temp2 ;
20348 PyObject * obj0 = 0 ;
20349 PyObject * obj1 = 0 ;
20350 char * kwnames[] = {
20351 (char *) "self",(char *) "rect", NULL
20352 };
20353
20354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20356 if (!SWIG_IsOK(res1)) {
20357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20358 }
20359 arg1 = reinterpret_cast< wxDC * >(argp1);
20360 {
20361 arg2 = &temp2;
20362 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20363 }
20364 {
20365 PyThreadState* __tstate = wxPyBeginAllowThreads();
20366 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20367 wxPyEndAllowThreads(__tstate);
20368 if (PyErr_Occurred()) SWIG_fail;
20369 }
20370 resultobj = SWIG_Py_Void();
20371 return resultobj;
20372fail:
20373 return NULL;
20374}
20375
20376
20377SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20378 PyObject *resultobj = 0;
20379 wxDC *arg1 = (wxDC *) 0 ;
20380 int arg2 ;
20381 wxPoint *arg3 = (wxPoint *) 0 ;
20382 int arg4 = (int) 0 ;
20383 int arg5 = (int) 0 ;
20384 void *argp1 = 0 ;
20385 int res1 = 0 ;
20386 int val4 ;
20387 int ecode4 = 0 ;
20388 int val5 ;
20389 int ecode5 = 0 ;
20390 PyObject * obj0 = 0 ;
20391 PyObject * obj1 = 0 ;
20392 PyObject * obj2 = 0 ;
20393 PyObject * obj3 = 0 ;
20394 char * kwnames[] = {
20395 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20396 };
20397
20398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20400 if (!SWIG_IsOK(res1)) {
20401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20402 }
20403 arg1 = reinterpret_cast< wxDC * >(argp1);
20404 {
20405 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20406 if (arg3 == NULL) SWIG_fail;
20407 }
20408 if (obj2) {
20409 ecode4 = SWIG_AsVal_int(obj2, &val4);
20410 if (!SWIG_IsOK(ecode4)) {
20411 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20412 }
20413 arg4 = static_cast< int >(val4);
20414 }
20415 if (obj3) {
20416 ecode5 = SWIG_AsVal_int(obj3, &val5);
20417 if (!SWIG_IsOK(ecode5)) {
20418 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20419 }
20420 arg5 = static_cast< int >(val5);
20421 }
20422 {
20423 PyThreadState* __tstate = wxPyBeginAllowThreads();
20424 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20425 wxPyEndAllowThreads(__tstate);
20426 if (PyErr_Occurred()) SWIG_fail;
20427 }
20428 resultobj = SWIG_Py_Void();
20429 {
20430 if (arg3) delete [] arg3;
20431 }
20432 return resultobj;
20433fail:
20434 {
20435 if (arg3) delete [] arg3;
20436 }
20437 return NULL;
20438}
20439
20440
20441SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20442 PyObject *resultobj = 0;
20443 wxDC *arg1 = (wxDC *) 0 ;
20444 int arg2 ;
20445 wxPoint *arg3 = (wxPoint *) 0 ;
20446 int arg4 = (int) 0 ;
20447 int arg5 = (int) 0 ;
20448 int arg6 = (int) wxODDEVEN_RULE ;
20449 void *argp1 = 0 ;
20450 int res1 = 0 ;
20451 int val4 ;
20452 int ecode4 = 0 ;
20453 int val5 ;
20454 int ecode5 = 0 ;
20455 int val6 ;
20456 int ecode6 = 0 ;
20457 PyObject * obj0 = 0 ;
20458 PyObject * obj1 = 0 ;
20459 PyObject * obj2 = 0 ;
20460 PyObject * obj3 = 0 ;
20461 PyObject * obj4 = 0 ;
20462 char * kwnames[] = {
20463 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20464 };
20465
20466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20468 if (!SWIG_IsOK(res1)) {
20469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20470 }
20471 arg1 = reinterpret_cast< wxDC * >(argp1);
20472 {
20473 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20474 if (arg3 == NULL) SWIG_fail;
20475 }
20476 if (obj2) {
20477 ecode4 = SWIG_AsVal_int(obj2, &val4);
20478 if (!SWIG_IsOK(ecode4)) {
20479 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20480 }
20481 arg4 = static_cast< int >(val4);
20482 }
20483 if (obj3) {
20484 ecode5 = SWIG_AsVal_int(obj3, &val5);
20485 if (!SWIG_IsOK(ecode5)) {
20486 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20487 }
20488 arg5 = static_cast< int >(val5);
20489 }
20490 if (obj4) {
20491 ecode6 = SWIG_AsVal_int(obj4, &val6);
20492 if (!SWIG_IsOK(ecode6)) {
20493 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20494 }
20495 arg6 = static_cast< int >(val6);
20496 }
20497 {
20498 PyThreadState* __tstate = wxPyBeginAllowThreads();
20499 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20500 wxPyEndAllowThreads(__tstate);
20501 if (PyErr_Occurred()) SWIG_fail;
20502 }
20503 resultobj = SWIG_Py_Void();
20504 {
20505 if (arg3) delete [] arg3;
20506 }
20507 return resultobj;
20508fail:
20509 {
20510 if (arg3) delete [] arg3;
20511 }
20512 return NULL;
20513}
20514
20515
20516SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20517 PyObject *resultobj = 0;
20518 wxDC *arg1 = (wxDC *) 0 ;
20519 wxString *arg2 = 0 ;
20520 wxRect *arg3 = 0 ;
20521 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20522 int arg5 = (int) -1 ;
20523 void *argp1 = 0 ;
20524 int res1 = 0 ;
20525 bool temp2 = false ;
20526 wxRect temp3 ;
20527 int val4 ;
20528 int ecode4 = 0 ;
20529 int val5 ;
20530 int ecode5 = 0 ;
20531 PyObject * obj0 = 0 ;
20532 PyObject * obj1 = 0 ;
20533 PyObject * obj2 = 0 ;
20534 PyObject * obj3 = 0 ;
20535 PyObject * obj4 = 0 ;
20536 char * kwnames[] = {
20537 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20538 };
20539
20540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20542 if (!SWIG_IsOK(res1)) {
20543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20544 }
20545 arg1 = reinterpret_cast< wxDC * >(argp1);
20546 {
20547 arg2 = wxString_in_helper(obj1);
20548 if (arg2 == NULL) SWIG_fail;
20549 temp2 = true;
20550 }
20551 {
20552 arg3 = &temp3;
20553 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20554 }
20555 if (obj3) {
20556 ecode4 = SWIG_AsVal_int(obj3, &val4);
20557 if (!SWIG_IsOK(ecode4)) {
20558 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20559 }
20560 arg4 = static_cast< int >(val4);
20561 }
20562 if (obj4) {
20563 ecode5 = SWIG_AsVal_int(obj4, &val5);
20564 if (!SWIG_IsOK(ecode5)) {
20565 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20566 }
20567 arg5 = static_cast< int >(val5);
20568 }
20569 {
20570 PyThreadState* __tstate = wxPyBeginAllowThreads();
20571 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20572 wxPyEndAllowThreads(__tstate);
20573 if (PyErr_Occurred()) SWIG_fail;
20574 }
20575 resultobj = SWIG_Py_Void();
20576 {
20577 if (temp2)
20578 delete arg2;
20579 }
20580 return resultobj;
20581fail:
20582 {
20583 if (temp2)
20584 delete arg2;
20585 }
20586 return NULL;
20587}
20588
20589
20590SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20591 PyObject *resultobj = 0;
20592 wxDC *arg1 = (wxDC *) 0 ;
20593 wxString *arg2 = 0 ;
20594 wxBitmap *arg3 = 0 ;
20595 wxRect *arg4 = 0 ;
20596 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20597 int arg6 = (int) -1 ;
20598 wxRect result;
20599 void *argp1 = 0 ;
20600 int res1 = 0 ;
20601 bool temp2 = false ;
20602 void *argp3 = 0 ;
20603 int res3 = 0 ;
20604 wxRect temp4 ;
20605 int val5 ;
20606 int ecode5 = 0 ;
20607 int val6 ;
20608 int ecode6 = 0 ;
20609 PyObject * obj0 = 0 ;
20610 PyObject * obj1 = 0 ;
20611 PyObject * obj2 = 0 ;
20612 PyObject * obj3 = 0 ;
20613 PyObject * obj4 = 0 ;
20614 PyObject * obj5 = 0 ;
20615 char * kwnames[] = {
20616 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20617 };
20618
20619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20621 if (!SWIG_IsOK(res1)) {
20622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20623 }
20624 arg1 = reinterpret_cast< wxDC * >(argp1);
20625 {
20626 arg2 = wxString_in_helper(obj1);
20627 if (arg2 == NULL) SWIG_fail;
20628 temp2 = true;
20629 }
20630 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20631 if (!SWIG_IsOK(res3)) {
20632 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20633 }
20634 if (!argp3) {
20635 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20636 }
20637 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20638 {
20639 arg4 = &temp4;
20640 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20641 }
20642 if (obj4) {
20643 ecode5 = SWIG_AsVal_int(obj4, &val5);
20644 if (!SWIG_IsOK(ecode5)) {
20645 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20646 }
20647 arg5 = static_cast< int >(val5);
20648 }
20649 if (obj5) {
20650 ecode6 = SWIG_AsVal_int(obj5, &val6);
20651 if (!SWIG_IsOK(ecode6)) {
20652 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20653 }
20654 arg6 = static_cast< int >(val6);
20655 }
20656 {
20657 PyThreadState* __tstate = wxPyBeginAllowThreads();
20658 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20659 wxPyEndAllowThreads(__tstate);
20660 if (PyErr_Occurred()) SWIG_fail;
20661 }
20662 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20663 {
20664 if (temp2)
20665 delete arg2;
20666 }
20667 return resultobj;
20668fail:
20669 {
20670 if (temp2)
20671 delete arg2;
20672 }
20673 return NULL;
20674}
20675
20676
20677SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20678 PyObject *resultobj = 0;
20679 wxDC *arg1 = (wxDC *) 0 ;
20680 int arg2 ;
20681 wxPoint *arg3 = (wxPoint *) 0 ;
20682 void *argp1 = 0 ;
20683 int res1 = 0 ;
20684 PyObject * obj0 = 0 ;
20685 PyObject * obj1 = 0 ;
20686 char * kwnames[] = {
20687 (char *) "self",(char *) "points", NULL
20688 };
20689
20690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20692 if (!SWIG_IsOK(res1)) {
20693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20694 }
20695 arg1 = reinterpret_cast< wxDC * >(argp1);
20696 {
20697 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20698 if (arg3 == NULL) SWIG_fail;
20699 }
20700 {
20701 PyThreadState* __tstate = wxPyBeginAllowThreads();
20702 (arg1)->DrawSpline(arg2,arg3);
20703 wxPyEndAllowThreads(__tstate);
20704 if (PyErr_Occurred()) SWIG_fail;
20705 }
20706 resultobj = SWIG_Py_Void();
20707 {
20708 if (arg3) delete [] arg3;
20709 }
20710 return resultobj;
20711fail:
20712 {
20713 if (arg3) delete [] arg3;
20714 }
20715 return NULL;
20716}
20717
20718
20719SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20720 PyObject *resultobj = 0;
20721 wxDC *arg1 = (wxDC *) 0 ;
20722 void *argp1 = 0 ;
20723 int res1 = 0 ;
20724 PyObject *swig_obj[1] ;
20725
20726 if (!args) SWIG_fail;
20727 swig_obj[0] = args;
20728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20729 if (!SWIG_IsOK(res1)) {
20730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20731 }
20732 arg1 = reinterpret_cast< wxDC * >(argp1);
20733 {
20734 PyThreadState* __tstate = wxPyBeginAllowThreads();
20735 (arg1)->Clear();
20736 wxPyEndAllowThreads(__tstate);
20737 if (PyErr_Occurred()) SWIG_fail;
20738 }
20739 resultobj = SWIG_Py_Void();
20740 return resultobj;
20741fail:
20742 return NULL;
20743}
20744
20745
20746SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20747 PyObject *resultobj = 0;
20748 wxDC *arg1 = (wxDC *) 0 ;
20749 wxString *arg2 = 0 ;
20750 bool result;
20751 void *argp1 = 0 ;
20752 int res1 = 0 ;
20753 bool temp2 = false ;
20754 PyObject * obj0 = 0 ;
20755 PyObject * obj1 = 0 ;
20756 char * kwnames[] = {
20757 (char *) "self",(char *) "message", NULL
20758 };
20759
20760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20762 if (!SWIG_IsOK(res1)) {
20763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20764 }
20765 arg1 = reinterpret_cast< wxDC * >(argp1);
20766 {
20767 arg2 = wxString_in_helper(obj1);
20768 if (arg2 == NULL) SWIG_fail;
20769 temp2 = true;
20770 }
20771 {
20772 PyThreadState* __tstate = wxPyBeginAllowThreads();
20773 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20774 wxPyEndAllowThreads(__tstate);
20775 if (PyErr_Occurred()) SWIG_fail;
20776 }
20777 {
20778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20779 }
20780 {
20781 if (temp2)
20782 delete arg2;
20783 }
20784 return resultobj;
20785fail:
20786 {
20787 if (temp2)
20788 delete arg2;
20789 }
20790 return NULL;
20791}
20792
20793
20794SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20795 PyObject *resultobj = 0;
20796 wxDC *arg1 = (wxDC *) 0 ;
20797 void *argp1 = 0 ;
20798 int res1 = 0 ;
20799 PyObject *swig_obj[1] ;
20800
20801 if (!args) SWIG_fail;
20802 swig_obj[0] = args;
20803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20804 if (!SWIG_IsOK(res1)) {
20805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20806 }
20807 arg1 = reinterpret_cast< wxDC * >(argp1);
20808 {
20809 PyThreadState* __tstate = wxPyBeginAllowThreads();
20810 (arg1)->EndDoc();
20811 wxPyEndAllowThreads(__tstate);
20812 if (PyErr_Occurred()) SWIG_fail;
20813 }
20814 resultobj = SWIG_Py_Void();
20815 return resultobj;
20816fail:
20817 return NULL;
20818}
20819
20820
20821SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20822 PyObject *resultobj = 0;
20823 wxDC *arg1 = (wxDC *) 0 ;
20824 void *argp1 = 0 ;
20825 int res1 = 0 ;
20826 PyObject *swig_obj[1] ;
20827
20828 if (!args) SWIG_fail;
20829 swig_obj[0] = args;
20830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20831 if (!SWIG_IsOK(res1)) {
20832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20833 }
20834 arg1 = reinterpret_cast< wxDC * >(argp1);
20835 {
20836 PyThreadState* __tstate = wxPyBeginAllowThreads();
20837 (arg1)->StartPage();
20838 wxPyEndAllowThreads(__tstate);
20839 if (PyErr_Occurred()) SWIG_fail;
20840 }
20841 resultobj = SWIG_Py_Void();
20842 return resultobj;
20843fail:
20844 return NULL;
20845}
20846
20847
20848SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20849 PyObject *resultobj = 0;
20850 wxDC *arg1 = (wxDC *) 0 ;
20851 void *argp1 = 0 ;
20852 int res1 = 0 ;
20853 PyObject *swig_obj[1] ;
20854
20855 if (!args) SWIG_fail;
20856 swig_obj[0] = args;
20857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20858 if (!SWIG_IsOK(res1)) {
20859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20860 }
20861 arg1 = reinterpret_cast< wxDC * >(argp1);
20862 {
20863 PyThreadState* __tstate = wxPyBeginAllowThreads();
20864 (arg1)->EndPage();
20865 wxPyEndAllowThreads(__tstate);
20866 if (PyErr_Occurred()) SWIG_fail;
20867 }
20868 resultobj = SWIG_Py_Void();
20869 return resultobj;
20870fail:
20871 return NULL;
20872}
20873
20874
20875SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20876 PyObject *resultobj = 0;
20877 wxDC *arg1 = (wxDC *) 0 ;
20878 wxFont *arg2 = 0 ;
20879 void *argp1 = 0 ;
20880 int res1 = 0 ;
20881 void *argp2 = 0 ;
20882 int res2 = 0 ;
20883 PyObject * obj0 = 0 ;
20884 PyObject * obj1 = 0 ;
20885 char * kwnames[] = {
20886 (char *) "self",(char *) "font", NULL
20887 };
20888
20889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20891 if (!SWIG_IsOK(res1)) {
20892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20893 }
20894 arg1 = reinterpret_cast< wxDC * >(argp1);
20895 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20896 if (!SWIG_IsOK(res2)) {
20897 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20898 }
20899 if (!argp2) {
20900 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20901 }
20902 arg2 = reinterpret_cast< wxFont * >(argp2);
20903 {
20904 PyThreadState* __tstate = wxPyBeginAllowThreads();
20905 (arg1)->SetFont((wxFont const &)*arg2);
20906 wxPyEndAllowThreads(__tstate);
20907 if (PyErr_Occurred()) SWIG_fail;
20908 }
20909 resultobj = SWIG_Py_Void();
20910 return resultobj;
20911fail:
20912 return NULL;
20913}
20914
20915
20916SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20917 PyObject *resultobj = 0;
20918 wxDC *arg1 = (wxDC *) 0 ;
20919 wxPen *arg2 = 0 ;
20920 void *argp1 = 0 ;
20921 int res1 = 0 ;
20922 void *argp2 = 0 ;
20923 int res2 = 0 ;
20924 PyObject * obj0 = 0 ;
20925 PyObject * obj1 = 0 ;
20926 char * kwnames[] = {
20927 (char *) "self",(char *) "pen", NULL
20928 };
20929
20930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20932 if (!SWIG_IsOK(res1)) {
20933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20934 }
20935 arg1 = reinterpret_cast< wxDC * >(argp1);
20936 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20937 if (!SWIG_IsOK(res2)) {
20938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20939 }
20940 if (!argp2) {
20941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20942 }
20943 arg2 = reinterpret_cast< wxPen * >(argp2);
20944 {
20945 PyThreadState* __tstate = wxPyBeginAllowThreads();
20946 (arg1)->SetPen((wxPen const &)*arg2);
20947 wxPyEndAllowThreads(__tstate);
20948 if (PyErr_Occurred()) SWIG_fail;
20949 }
20950 resultobj = SWIG_Py_Void();
20951 return resultobj;
20952fail:
20953 return NULL;
20954}
20955
20956
20957SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20958 PyObject *resultobj = 0;
20959 wxDC *arg1 = (wxDC *) 0 ;
20960 wxBrush *arg2 = 0 ;
20961 void *argp1 = 0 ;
20962 int res1 = 0 ;
20963 void *argp2 = 0 ;
20964 int res2 = 0 ;
20965 PyObject * obj0 = 0 ;
20966 PyObject * obj1 = 0 ;
20967 char * kwnames[] = {
20968 (char *) "self",(char *) "brush", NULL
20969 };
20970
20971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20973 if (!SWIG_IsOK(res1)) {
20974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20975 }
20976 arg1 = reinterpret_cast< wxDC * >(argp1);
20977 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20978 if (!SWIG_IsOK(res2)) {
20979 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20980 }
20981 if (!argp2) {
20982 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20983 }
20984 arg2 = reinterpret_cast< wxBrush * >(argp2);
20985 {
20986 PyThreadState* __tstate = wxPyBeginAllowThreads();
20987 (arg1)->SetBrush((wxBrush const &)*arg2);
20988 wxPyEndAllowThreads(__tstate);
20989 if (PyErr_Occurred()) SWIG_fail;
20990 }
20991 resultobj = SWIG_Py_Void();
20992 return resultobj;
20993fail:
20994 return NULL;
20995}
20996
20997
20998SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20999 PyObject *resultobj = 0;
21000 wxDC *arg1 = (wxDC *) 0 ;
21001 wxBrush *arg2 = 0 ;
21002 void *argp1 = 0 ;
21003 int res1 = 0 ;
21004 void *argp2 = 0 ;
21005 int res2 = 0 ;
21006 PyObject * obj0 = 0 ;
21007 PyObject * obj1 = 0 ;
21008 char * kwnames[] = {
21009 (char *) "self",(char *) "brush", NULL
21010 };
21011
21012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21014 if (!SWIG_IsOK(res1)) {
21015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21016 }
21017 arg1 = reinterpret_cast< wxDC * >(argp1);
21018 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21019 if (!SWIG_IsOK(res2)) {
21020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21021 }
21022 if (!argp2) {
21023 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21024 }
21025 arg2 = reinterpret_cast< wxBrush * >(argp2);
21026 {
21027 PyThreadState* __tstate = wxPyBeginAllowThreads();
21028 (arg1)->SetBackground((wxBrush const &)*arg2);
21029 wxPyEndAllowThreads(__tstate);
21030 if (PyErr_Occurred()) SWIG_fail;
21031 }
21032 resultobj = SWIG_Py_Void();
21033 return resultobj;
21034fail:
21035 return NULL;
21036}
21037
21038
21039SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21040 PyObject *resultobj = 0;
21041 wxDC *arg1 = (wxDC *) 0 ;
21042 int arg2 ;
21043 void *argp1 = 0 ;
21044 int res1 = 0 ;
21045 int val2 ;
21046 int ecode2 = 0 ;
21047 PyObject * obj0 = 0 ;
21048 PyObject * obj1 = 0 ;
21049 char * kwnames[] = {
21050 (char *) "self",(char *) "mode", NULL
21051 };
21052
21053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21055 if (!SWIG_IsOK(res1)) {
21056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21057 }
21058 arg1 = reinterpret_cast< wxDC * >(argp1);
21059 ecode2 = SWIG_AsVal_int(obj1, &val2);
21060 if (!SWIG_IsOK(ecode2)) {
21061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21062 }
21063 arg2 = static_cast< int >(val2);
21064 {
21065 PyThreadState* __tstate = wxPyBeginAllowThreads();
21066 (arg1)->SetBackgroundMode(arg2);
21067 wxPyEndAllowThreads(__tstate);
21068 if (PyErr_Occurred()) SWIG_fail;
21069 }
21070 resultobj = SWIG_Py_Void();
21071 return resultobj;
21072fail:
21073 return NULL;
21074}
21075
21076
21077SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21078 PyObject *resultobj = 0;
21079 wxDC *arg1 = (wxDC *) 0 ;
21080 wxPalette *arg2 = 0 ;
21081 void *argp1 = 0 ;
21082 int res1 = 0 ;
21083 void *argp2 = 0 ;
21084 int res2 = 0 ;
21085 PyObject * obj0 = 0 ;
21086 PyObject * obj1 = 0 ;
21087 char * kwnames[] = {
21088 (char *) "self",(char *) "palette", NULL
21089 };
21090
21091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21093 if (!SWIG_IsOK(res1)) {
21094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21095 }
21096 arg1 = reinterpret_cast< wxDC * >(argp1);
21097 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21098 if (!SWIG_IsOK(res2)) {
21099 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21100 }
21101 if (!argp2) {
21102 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21103 }
21104 arg2 = reinterpret_cast< wxPalette * >(argp2);
21105 {
21106 PyThreadState* __tstate = wxPyBeginAllowThreads();
21107 (arg1)->SetPalette((wxPalette const &)*arg2);
21108 wxPyEndAllowThreads(__tstate);
21109 if (PyErr_Occurred()) SWIG_fail;
21110 }
21111 resultobj = SWIG_Py_Void();
21112 return resultobj;
21113fail:
21114 return NULL;
21115}
21116
21117
21118SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21119 PyObject *resultobj = 0;
21120 wxDC *arg1 = (wxDC *) 0 ;
21121 void *argp1 = 0 ;
21122 int res1 = 0 ;
21123 PyObject *swig_obj[1] ;
21124
21125 if (!args) SWIG_fail;
21126 swig_obj[0] = args;
21127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21128 if (!SWIG_IsOK(res1)) {
21129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21130 }
21131 arg1 = reinterpret_cast< wxDC * >(argp1);
21132 {
21133 PyThreadState* __tstate = wxPyBeginAllowThreads();
21134 (arg1)->DestroyClippingRegion();
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_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21146 PyObject *resultobj = 0;
21147 wxDC *arg1 = (wxDC *) 0 ;
21148 int *arg2 = (int *) 0 ;
21149 int *arg3 = (int *) 0 ;
21150 int *arg4 = (int *) 0 ;
21151 int *arg5 = (int *) 0 ;
21152 void *argp1 = 0 ;
21153 int res1 = 0 ;
21154 int temp2 ;
21155 int res2 = SWIG_TMPOBJ ;
21156 int temp3 ;
21157 int res3 = SWIG_TMPOBJ ;
21158 int temp4 ;
21159 int res4 = SWIG_TMPOBJ ;
21160 int temp5 ;
21161 int res5 = SWIG_TMPOBJ ;
21162 PyObject *swig_obj[1] ;
21163
21164 arg2 = &temp2;
21165 arg3 = &temp3;
21166 arg4 = &temp4;
21167 arg5 = &temp5;
21168 if (!args) SWIG_fail;
21169 swig_obj[0] = args;
21170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21171 if (!SWIG_IsOK(res1)) {
21172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21173 }
21174 arg1 = reinterpret_cast< wxDC * >(argp1);
21175 {
21176 PyThreadState* __tstate = wxPyBeginAllowThreads();
21177 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21178 wxPyEndAllowThreads(__tstate);
21179 if (PyErr_Occurred()) SWIG_fail;
21180 }
21181 resultobj = SWIG_Py_Void();
21182 if (SWIG_IsTmpObj(res2)) {
21183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21184 } else {
21185 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21186 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21187 }
21188 if (SWIG_IsTmpObj(res3)) {
21189 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21190 } else {
21191 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21192 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21193 }
21194 if (SWIG_IsTmpObj(res4)) {
21195 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21196 } else {
21197 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21198 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21199 }
21200 if (SWIG_IsTmpObj(res5)) {
21201 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21202 } else {
21203 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21204 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21205 }
21206 return resultobj;
21207fail:
21208 return NULL;
21209}
21210
21211
21212SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21213 PyObject *resultobj = 0;
21214 wxDC *arg1 = (wxDC *) 0 ;
21215 wxRect result;
21216 void *argp1 = 0 ;
21217 int res1 = 0 ;
21218 PyObject *swig_obj[1] ;
21219
21220 if (!args) SWIG_fail;
21221 swig_obj[0] = args;
21222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21223 if (!SWIG_IsOK(res1)) {
21224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21225 }
21226 arg1 = reinterpret_cast< wxDC * >(argp1);
21227 {
21228 PyThreadState* __tstate = wxPyBeginAllowThreads();
21229 result = wxDC_GetClippingRect(arg1);
21230 wxPyEndAllowThreads(__tstate);
21231 if (PyErr_Occurred()) SWIG_fail;
21232 }
21233 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21234 return resultobj;
21235fail:
21236 return NULL;
21237}
21238
21239
21240SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21241 PyObject *resultobj = 0;
21242 wxDC *arg1 = (wxDC *) 0 ;
21243 int result;
21244 void *argp1 = 0 ;
21245 int res1 = 0 ;
21246 PyObject *swig_obj[1] ;
21247
21248 if (!args) SWIG_fail;
21249 swig_obj[0] = args;
21250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21251 if (!SWIG_IsOK(res1)) {
21252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21253 }
21254 arg1 = reinterpret_cast< wxDC * >(argp1);
21255 {
21256 PyThreadState* __tstate = wxPyBeginAllowThreads();
21257 result = (int)((wxDC const *)arg1)->GetCharHeight();
21258 wxPyEndAllowThreads(__tstate);
21259 if (PyErr_Occurred()) SWIG_fail;
21260 }
21261 resultobj = SWIG_From_int(static_cast< int >(result));
21262 return resultobj;
21263fail:
21264 return NULL;
21265}
21266
21267
21268SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21269 PyObject *resultobj = 0;
21270 wxDC *arg1 = (wxDC *) 0 ;
21271 int result;
21272 void *argp1 = 0 ;
21273 int res1 = 0 ;
21274 PyObject *swig_obj[1] ;
21275
21276 if (!args) SWIG_fail;
21277 swig_obj[0] = args;
21278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21279 if (!SWIG_IsOK(res1)) {
21280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21281 }
21282 arg1 = reinterpret_cast< wxDC * >(argp1);
21283 {
21284 PyThreadState* __tstate = wxPyBeginAllowThreads();
21285 result = (int)((wxDC const *)arg1)->GetCharWidth();
21286 wxPyEndAllowThreads(__tstate);
21287 if (PyErr_Occurred()) SWIG_fail;
21288 }
21289 resultobj = SWIG_From_int(static_cast< int >(result));
21290 return resultobj;
21291fail:
21292 return NULL;
21293}
21294
21295
21296SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21297 PyObject *resultobj = 0;
21298 wxDC *arg1 = (wxDC *) 0 ;
21299 wxString *arg2 = 0 ;
21300 int *arg3 = (int *) 0 ;
21301 int *arg4 = (int *) 0 ;
21302 void *argp1 = 0 ;
21303 int res1 = 0 ;
21304 bool temp2 = false ;
21305 int temp3 ;
21306 int res3 = SWIG_TMPOBJ ;
21307 int temp4 ;
21308 int res4 = SWIG_TMPOBJ ;
21309 PyObject * obj0 = 0 ;
21310 PyObject * obj1 = 0 ;
21311 char * kwnames[] = {
21312 (char *) "self",(char *) "string", NULL
21313 };
21314
21315 arg3 = &temp3;
21316 arg4 = &temp4;
21317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21319 if (!SWIG_IsOK(res1)) {
21320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21321 }
21322 arg1 = reinterpret_cast< wxDC * >(argp1);
21323 {
21324 arg2 = wxString_in_helper(obj1);
21325 if (arg2 == NULL) SWIG_fail;
21326 temp2 = true;
21327 }
21328 {
21329 PyThreadState* __tstate = wxPyBeginAllowThreads();
21330 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21331 wxPyEndAllowThreads(__tstate);
21332 if (PyErr_Occurred()) SWIG_fail;
21333 }
21334 resultobj = SWIG_Py_Void();
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 {
21348 if (temp2)
21349 delete arg2;
21350 }
21351 return resultobj;
21352fail:
21353 {
21354 if (temp2)
21355 delete arg2;
21356 }
21357 return NULL;
21358}
21359
21360
21361SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21362 PyObject *resultobj = 0;
21363 wxDC *arg1 = (wxDC *) 0 ;
21364 wxString *arg2 = 0 ;
21365 int *arg3 = (int *) 0 ;
21366 int *arg4 = (int *) 0 ;
21367 int *arg5 = (int *) 0 ;
21368 int *arg6 = (int *) 0 ;
21369 wxFont *arg7 = (wxFont *) NULL ;
21370 void *argp1 = 0 ;
21371 int res1 = 0 ;
21372 bool temp2 = false ;
21373 int temp3 ;
21374 int res3 = SWIG_TMPOBJ ;
21375 int temp4 ;
21376 int res4 = SWIG_TMPOBJ ;
21377 int temp5 ;
21378 int res5 = SWIG_TMPOBJ ;
21379 int temp6 ;
21380 int res6 = SWIG_TMPOBJ ;
21381 void *argp7 = 0 ;
21382 int res7 = 0 ;
21383 PyObject * obj0 = 0 ;
21384 PyObject * obj1 = 0 ;
21385 PyObject * obj2 = 0 ;
21386 char * kwnames[] = {
21387 (char *) "self",(char *) "string",(char *) "font", NULL
21388 };
21389
21390 arg3 = &temp3;
21391 arg4 = &temp4;
21392 arg5 = &temp5;
21393 arg6 = &temp6;
21394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21396 if (!SWIG_IsOK(res1)) {
21397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21398 }
21399 arg1 = reinterpret_cast< wxDC * >(argp1);
21400 {
21401 arg2 = wxString_in_helper(obj1);
21402 if (arg2 == NULL) SWIG_fail;
21403 temp2 = true;
21404 }
21405 if (obj2) {
21406 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21407 if (!SWIG_IsOK(res7)) {
21408 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
36ed4f51 21409 }
1bd55598
RD
21410 arg7 = reinterpret_cast< wxFont * >(argp7);
21411 }
21412 {
21413 PyThreadState* __tstate = wxPyBeginAllowThreads();
21414 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21415 wxPyEndAllowThreads(__tstate);
21416 if (PyErr_Occurred()) SWIG_fail;
21417 }
21418 resultobj = SWIG_Py_Void();
21419 if (SWIG_IsTmpObj(res3)) {
21420 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21421 } else {
21422 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21423 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21424 }
21425 if (SWIG_IsTmpObj(res4)) {
21426 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21427 } else {
21428 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21429 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21430 }
21431 if (SWIG_IsTmpObj(res5)) {
21432 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21433 } else {
21434 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21435 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21436 }
21437 if (SWIG_IsTmpObj(res6)) {
21438 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21439 } else {
21440 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21441 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21442 }
21443 {
21444 if (temp2)
21445 delete arg2;
21446 }
21447 return resultobj;
21448fail:
21449 {
21450 if (temp2)
21451 delete arg2;
21452 }
21453 return NULL;
21454}
21455
21456
21457SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21458 PyObject *resultobj = 0;
21459 wxDC *arg1 = (wxDC *) 0 ;
21460 wxString *arg2 = 0 ;
21461 int *arg3 = (int *) 0 ;
21462 int *arg4 = (int *) 0 ;
21463 int *arg5 = (int *) 0 ;
21464 wxFont *arg6 = (wxFont *) NULL ;
21465 void *argp1 = 0 ;
21466 int res1 = 0 ;
21467 bool temp2 = false ;
21468 int temp3 ;
21469 int res3 = SWIG_TMPOBJ ;
21470 int temp4 ;
21471 int res4 = SWIG_TMPOBJ ;
21472 int temp5 ;
21473 int res5 = SWIG_TMPOBJ ;
21474 void *argp6 = 0 ;
21475 int res6 = 0 ;
21476 PyObject * obj0 = 0 ;
21477 PyObject * obj1 = 0 ;
21478 PyObject * obj2 = 0 ;
21479 char * kwnames[] = {
21480 (char *) "self",(char *) "text",(char *) "font", NULL
21481 };
21482
21483 arg3 = &temp3;
21484 arg4 = &temp4;
21485 arg5 = &temp5;
21486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21488 if (!SWIG_IsOK(res1)) {
21489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21490 }
21491 arg1 = reinterpret_cast< wxDC * >(argp1);
21492 {
21493 arg2 = wxString_in_helper(obj1);
21494 if (arg2 == NULL) SWIG_fail;
21495 temp2 = true;
21496 }
21497 if (obj2) {
21498 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21499 if (!SWIG_IsOK(res6)) {
21500 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
36ed4f51 21501 }
1bd55598
RD
21502 arg6 = reinterpret_cast< wxFont * >(argp6);
21503 }
21504 {
21505 PyThreadState* __tstate = wxPyBeginAllowThreads();
21506 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21507 wxPyEndAllowThreads(__tstate);
21508 if (PyErr_Occurred()) SWIG_fail;
21509 }
21510 resultobj = SWIG_Py_Void();
21511 if (SWIG_IsTmpObj(res3)) {
21512 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21513 } else {
21514 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21515 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21516 }
21517 if (SWIG_IsTmpObj(res4)) {
21518 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21519 } else {
21520 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21521 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21522 }
21523 if (SWIG_IsTmpObj(res5)) {
21524 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21525 } else {
21526 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21527 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21528 }
21529 {
21530 if (temp2)
21531 delete arg2;
21532 }
21533 return resultobj;
21534fail:
21535 {
21536 if (temp2)
21537 delete arg2;
21538 }
21539 return NULL;
21540}
21541
21542
21543SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21544 PyObject *resultobj = 0;
21545 wxDC *arg1 = (wxDC *) 0 ;
21546 wxString *arg2 = 0 ;
21547 wxArrayInt result;
21548 void *argp1 = 0 ;
21549 int res1 = 0 ;
21550 bool temp2 = false ;
21551 PyObject * obj0 = 0 ;
21552 PyObject * obj1 = 0 ;
21553 char * kwnames[] = {
21554 (char *) "self",(char *) "text", NULL
21555 };
21556
21557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21559 if (!SWIG_IsOK(res1)) {
21560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21561 }
21562 arg1 = reinterpret_cast< wxDC * >(argp1);
21563 {
21564 arg2 = wxString_in_helper(obj1);
21565 if (arg2 == NULL) SWIG_fail;
21566 temp2 = true;
21567 }
21568 {
21569 PyThreadState* __tstate = wxPyBeginAllowThreads();
21570 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21571 wxPyEndAllowThreads(__tstate);
21572 if (PyErr_Occurred()) SWIG_fail;
21573 }
21574 {
b39fe951 21575 resultobj = wxArrayInt2PyList_helper(result);
1bd55598
RD
21576 }
21577 {
21578 if (temp2)
21579 delete arg2;
21580 }
21581 return resultobj;
21582fail:
21583 {
21584 if (temp2)
21585 delete arg2;
21586 }
21587 return NULL;
21588}
21589
21590
21591SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21592 PyObject *resultobj = 0;
21593 wxDC *arg1 = (wxDC *) 0 ;
21594 wxSize result;
21595 void *argp1 = 0 ;
21596 int res1 = 0 ;
21597 PyObject *swig_obj[1] ;
21598
21599 if (!args) SWIG_fail;
21600 swig_obj[0] = args;
21601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21602 if (!SWIG_IsOK(res1)) {
21603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21604 }
21605 arg1 = reinterpret_cast< wxDC * >(argp1);
21606 {
21607 PyThreadState* __tstate = wxPyBeginAllowThreads();
21608 result = (arg1)->GetSize();
21609 wxPyEndAllowThreads(__tstate);
21610 if (PyErr_Occurred()) SWIG_fail;
21611 }
21612 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21613 return resultobj;
21614fail:
21615 return NULL;
21616}
21617
21618
21619SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21620 PyObject *resultobj = 0;
21621 wxDC *arg1 = (wxDC *) 0 ;
21622 int *arg2 = (int *) 0 ;
21623 int *arg3 = (int *) 0 ;
21624 void *argp1 = 0 ;
21625 int res1 = 0 ;
21626 int temp2 ;
21627 int res2 = SWIG_TMPOBJ ;
21628 int temp3 ;
21629 int res3 = SWIG_TMPOBJ ;
21630 PyObject *swig_obj[1] ;
21631
21632 arg2 = &temp2;
21633 arg3 = &temp3;
21634 if (!args) SWIG_fail;
21635 swig_obj[0] = args;
21636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21637 if (!SWIG_IsOK(res1)) {
21638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21639 }
21640 arg1 = reinterpret_cast< wxDC * >(argp1);
21641 {
21642 PyThreadState* __tstate = wxPyBeginAllowThreads();
21643 (arg1)->GetSize(arg2,arg3);
21644 wxPyEndAllowThreads(__tstate);
21645 if (PyErr_Occurred()) SWIG_fail;
21646 }
21647 resultobj = SWIG_Py_Void();
21648 if (SWIG_IsTmpObj(res2)) {
21649 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21650 } else {
21651 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21652 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21653 }
21654 if (SWIG_IsTmpObj(res3)) {
21655 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21656 } else {
21657 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21658 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21659 }
21660 return resultobj;
21661fail:
21662 return NULL;
21663}
21664
21665
21666SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21667 PyObject *resultobj = 0;
21668 wxDC *arg1 = (wxDC *) 0 ;
21669 wxSize result;
21670 void *argp1 = 0 ;
21671 int res1 = 0 ;
21672 PyObject *swig_obj[1] ;
21673
21674 if (!args) SWIG_fail;
21675 swig_obj[0] = args;
21676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21677 if (!SWIG_IsOK(res1)) {
21678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21679 }
21680 arg1 = reinterpret_cast< wxDC * >(argp1);
21681 {
21682 PyThreadState* __tstate = wxPyBeginAllowThreads();
21683 result = ((wxDC const *)arg1)->GetSizeMM();
21684 wxPyEndAllowThreads(__tstate);
21685 if (PyErr_Occurred()) SWIG_fail;
21686 }
21687 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21688 return resultobj;
21689fail:
21690 return NULL;
21691}
21692
21693
21694SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21695 PyObject *resultobj = 0;
21696 wxDC *arg1 = (wxDC *) 0 ;
21697 int *arg2 = (int *) 0 ;
21698 int *arg3 = (int *) 0 ;
21699 void *argp1 = 0 ;
21700 int res1 = 0 ;
21701 int temp2 ;
21702 int res2 = SWIG_TMPOBJ ;
21703 int temp3 ;
21704 int res3 = SWIG_TMPOBJ ;
21705 PyObject *swig_obj[1] ;
21706
21707 arg2 = &temp2;
21708 arg3 = &temp3;
21709 if (!args) SWIG_fail;
21710 swig_obj[0] = args;
21711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21712 if (!SWIG_IsOK(res1)) {
21713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21714 }
21715 arg1 = reinterpret_cast< wxDC * >(argp1);
21716 {
21717 PyThreadState* __tstate = wxPyBeginAllowThreads();
21718 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21719 wxPyEndAllowThreads(__tstate);
21720 if (PyErr_Occurred()) SWIG_fail;
21721 }
21722 resultobj = SWIG_Py_Void();
21723 if (SWIG_IsTmpObj(res2)) {
21724 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21725 } else {
21726 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21727 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21728 }
21729 if (SWIG_IsTmpObj(res3)) {
21730 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21731 } else {
21732 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21733 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21734 }
21735 return resultobj;
21736fail:
21737 return NULL;
21738}
21739
21740
21741SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21742 PyObject *resultobj = 0;
21743 wxDC *arg1 = (wxDC *) 0 ;
21744 int arg2 ;
21745 int result;
21746 void *argp1 = 0 ;
21747 int res1 = 0 ;
21748 int val2 ;
21749 int ecode2 = 0 ;
21750 PyObject * obj0 = 0 ;
21751 PyObject * obj1 = 0 ;
21752 char * kwnames[] = {
21753 (char *) "self",(char *) "x", NULL
21754 };
21755
21756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21758 if (!SWIG_IsOK(res1)) {
21759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21760 }
21761 arg1 = reinterpret_cast< wxDC * >(argp1);
21762 ecode2 = SWIG_AsVal_int(obj1, &val2);
21763 if (!SWIG_IsOK(ecode2)) {
21764 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21765 }
21766 arg2 = static_cast< int >(val2);
21767 {
21768 PyThreadState* __tstate = wxPyBeginAllowThreads();
21769 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21770 wxPyEndAllowThreads(__tstate);
21771 if (PyErr_Occurred()) SWIG_fail;
21772 }
21773 resultobj = SWIG_From_int(static_cast< int >(result));
21774 return resultobj;
21775fail:
21776 return NULL;
21777}
21778
21779
21780SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21781 PyObject *resultobj = 0;
21782 wxDC *arg1 = (wxDC *) 0 ;
21783 int arg2 ;
21784 int result;
21785 void *argp1 = 0 ;
21786 int res1 = 0 ;
21787 int val2 ;
21788 int ecode2 = 0 ;
21789 PyObject * obj0 = 0 ;
21790 PyObject * obj1 = 0 ;
21791 char * kwnames[] = {
21792 (char *) "self",(char *) "y", NULL
21793 };
21794
21795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21797 if (!SWIG_IsOK(res1)) {
21798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21799 }
21800 arg1 = reinterpret_cast< wxDC * >(argp1);
21801 ecode2 = SWIG_AsVal_int(obj1, &val2);
21802 if (!SWIG_IsOK(ecode2)) {
21803 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21804 }
21805 arg2 = static_cast< int >(val2);
21806 {
21807 PyThreadState* __tstate = wxPyBeginAllowThreads();
21808 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21809 wxPyEndAllowThreads(__tstate);
21810 if (PyErr_Occurred()) SWIG_fail;
21811 }
21812 resultobj = SWIG_From_int(static_cast< int >(result));
21813 return resultobj;
21814fail:
21815 return NULL;
21816}
21817
21818
21819SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21820 PyObject *resultobj = 0;
21821 wxDC *arg1 = (wxDC *) 0 ;
21822 int arg2 ;
21823 int result;
21824 void *argp1 = 0 ;
21825 int res1 = 0 ;
21826 int val2 ;
21827 int ecode2 = 0 ;
21828 PyObject * obj0 = 0 ;
21829 PyObject * obj1 = 0 ;
21830 char * kwnames[] = {
21831 (char *) "self",(char *) "x", NULL
21832 };
21833
21834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21836 if (!SWIG_IsOK(res1)) {
21837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21838 }
21839 arg1 = reinterpret_cast< wxDC * >(argp1);
21840 ecode2 = SWIG_AsVal_int(obj1, &val2);
21841 if (!SWIG_IsOK(ecode2)) {
21842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21843 }
21844 arg2 = static_cast< int >(val2);
21845 {
21846 PyThreadState* __tstate = wxPyBeginAllowThreads();
21847 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21848 wxPyEndAllowThreads(__tstate);
21849 if (PyErr_Occurred()) SWIG_fail;
21850 }
21851 resultobj = SWIG_From_int(static_cast< int >(result));
21852 return resultobj;
21853fail:
21854 return NULL;
21855}
21856
21857
21858SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21859 PyObject *resultobj = 0;
21860 wxDC *arg1 = (wxDC *) 0 ;
21861 int arg2 ;
21862 int result;
21863 void *argp1 = 0 ;
21864 int res1 = 0 ;
21865 int val2 ;
21866 int ecode2 = 0 ;
21867 PyObject * obj0 = 0 ;
21868 PyObject * obj1 = 0 ;
21869 char * kwnames[] = {
21870 (char *) "self",(char *) "y", NULL
21871 };
21872
21873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21875 if (!SWIG_IsOK(res1)) {
21876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21877 }
21878 arg1 = reinterpret_cast< wxDC * >(argp1);
21879 ecode2 = SWIG_AsVal_int(obj1, &val2);
21880 if (!SWIG_IsOK(ecode2)) {
21881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21882 }
21883 arg2 = static_cast< int >(val2);
21884 {
21885 PyThreadState* __tstate = wxPyBeginAllowThreads();
21886 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21887 wxPyEndAllowThreads(__tstate);
21888 if (PyErr_Occurred()) SWIG_fail;
21889 }
21890 resultobj = SWIG_From_int(static_cast< int >(result));
21891 return resultobj;
21892fail:
21893 return NULL;
21894}
21895
21896
21897SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21898 PyObject *resultobj = 0;
21899 wxDC *arg1 = (wxDC *) 0 ;
21900 int arg2 ;
21901 int result;
21902 void *argp1 = 0 ;
21903 int res1 = 0 ;
21904 int val2 ;
21905 int ecode2 = 0 ;
21906 PyObject * obj0 = 0 ;
21907 PyObject * obj1 = 0 ;
21908 char * kwnames[] = {
21909 (char *) "self",(char *) "x", NULL
21910 };
21911
21912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21914 if (!SWIG_IsOK(res1)) {
21915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21916 }
21917 arg1 = reinterpret_cast< wxDC * >(argp1);
21918 ecode2 = SWIG_AsVal_int(obj1, &val2);
21919 if (!SWIG_IsOK(ecode2)) {
21920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21921 }
21922 arg2 = static_cast< int >(val2);
21923 {
21924 PyThreadState* __tstate = wxPyBeginAllowThreads();
21925 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21926 wxPyEndAllowThreads(__tstate);
21927 if (PyErr_Occurred()) SWIG_fail;
21928 }
21929 resultobj = SWIG_From_int(static_cast< int >(result));
21930 return resultobj;
21931fail:
21932 return NULL;
21933}
21934
21935
21936SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21937 PyObject *resultobj = 0;
21938 wxDC *arg1 = (wxDC *) 0 ;
21939 int arg2 ;
21940 int result;
21941 void *argp1 = 0 ;
21942 int res1 = 0 ;
21943 int val2 ;
21944 int ecode2 = 0 ;
21945 PyObject * obj0 = 0 ;
21946 PyObject * obj1 = 0 ;
21947 char * kwnames[] = {
21948 (char *) "self",(char *) "y", NULL
21949 };
21950
21951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21953 if (!SWIG_IsOK(res1)) {
21954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21955 }
21956 arg1 = reinterpret_cast< wxDC * >(argp1);
21957 ecode2 = SWIG_AsVal_int(obj1, &val2);
21958 if (!SWIG_IsOK(ecode2)) {
21959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21960 }
21961 arg2 = static_cast< int >(val2);
21962 {
21963 PyThreadState* __tstate = wxPyBeginAllowThreads();
21964 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21965 wxPyEndAllowThreads(__tstate);
21966 if (PyErr_Occurred()) SWIG_fail;
21967 }
21968 resultobj = SWIG_From_int(static_cast< int >(result));
21969 return resultobj;
21970fail:
21971 return NULL;
21972}
21973
21974
21975SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21976 PyObject *resultobj = 0;
21977 wxDC *arg1 = (wxDC *) 0 ;
21978 int arg2 ;
21979 int result;
21980 void *argp1 = 0 ;
21981 int res1 = 0 ;
21982 int val2 ;
21983 int ecode2 = 0 ;
21984 PyObject * obj0 = 0 ;
21985 PyObject * obj1 = 0 ;
21986 char * kwnames[] = {
21987 (char *) "self",(char *) "x", NULL
21988 };
21989
21990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21992 if (!SWIG_IsOK(res1)) {
21993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21994 }
21995 arg1 = reinterpret_cast< wxDC * >(argp1);
21996 ecode2 = SWIG_AsVal_int(obj1, &val2);
21997 if (!SWIG_IsOK(ecode2)) {
21998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21999 }
22000 arg2 = static_cast< int >(val2);
22001 {
22002 PyThreadState* __tstate = wxPyBeginAllowThreads();
22003 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
22004 wxPyEndAllowThreads(__tstate);
22005 if (PyErr_Occurred()) SWIG_fail;
22006 }
22007 resultobj = SWIG_From_int(static_cast< int >(result));
22008 return resultobj;
22009fail:
22010 return NULL;
22011}
22012
22013
22014SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22015 PyObject *resultobj = 0;
22016 wxDC *arg1 = (wxDC *) 0 ;
22017 int arg2 ;
22018 int result;
22019 void *argp1 = 0 ;
22020 int res1 = 0 ;
22021 int val2 ;
22022 int ecode2 = 0 ;
22023 PyObject * obj0 = 0 ;
22024 PyObject * obj1 = 0 ;
22025 char * kwnames[] = {
22026 (char *) "self",(char *) "y", NULL
22027 };
22028
22029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22031 if (!SWIG_IsOK(res1)) {
22032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22033 }
22034 arg1 = reinterpret_cast< wxDC * >(argp1);
22035 ecode2 = SWIG_AsVal_int(obj1, &val2);
22036 if (!SWIG_IsOK(ecode2)) {
22037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
22038 }
22039 arg2 = static_cast< int >(val2);
22040 {
22041 PyThreadState* __tstate = wxPyBeginAllowThreads();
22042 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
22043 wxPyEndAllowThreads(__tstate);
22044 if (PyErr_Occurred()) SWIG_fail;
22045 }
22046 resultobj = SWIG_From_int(static_cast< int >(result));
22047 return resultobj;
22048fail:
22049 return NULL;
22050}
22051
22052
22053SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22054 PyObject *resultobj = 0;
22055 wxDC *arg1 = (wxDC *) 0 ;
22056 bool result;
22057 void *argp1 = 0 ;
22058 int res1 = 0 ;
22059 PyObject *swig_obj[1] ;
22060
22061 if (!args) SWIG_fail;
22062 swig_obj[0] = args;
22063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22064 if (!SWIG_IsOK(res1)) {
22065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22066 }
22067 arg1 = reinterpret_cast< wxDC * >(argp1);
22068 {
22069 PyThreadState* __tstate = wxPyBeginAllowThreads();
22070 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22071 wxPyEndAllowThreads(__tstate);
22072 if (PyErr_Occurred()) SWIG_fail;
22073 }
22074 {
22075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22076 }
22077 return resultobj;
22078fail:
22079 return NULL;
22080}
22081
22082
22083SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22084 PyObject *resultobj = 0;
22085 wxDC *arg1 = (wxDC *) 0 ;
22086 bool result;
22087 void *argp1 = 0 ;
22088 int res1 = 0 ;
22089 PyObject *swig_obj[1] ;
22090
22091 if (!args) SWIG_fail;
22092 swig_obj[0] = args;
22093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22094 if (!SWIG_IsOK(res1)) {
22095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22096 }
22097 arg1 = reinterpret_cast< wxDC * >(argp1);
22098 {
22099 PyThreadState* __tstate = wxPyBeginAllowThreads();
22100 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22101 wxPyEndAllowThreads(__tstate);
22102 if (PyErr_Occurred()) SWIG_fail;
22103 }
22104 {
22105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22106 }
22107 return resultobj;
22108fail:
22109 return NULL;
22110}
22111
22112
22113SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22114 PyObject *resultobj = 0;
22115 wxDC *arg1 = (wxDC *) 0 ;
22116 int result;
22117 void *argp1 = 0 ;
22118 int res1 = 0 ;
22119 PyObject *swig_obj[1] ;
22120
22121 if (!args) SWIG_fail;
22122 swig_obj[0] = args;
22123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22124 if (!SWIG_IsOK(res1)) {
22125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22126 }
22127 arg1 = reinterpret_cast< wxDC * >(argp1);
22128 {
22129 PyThreadState* __tstate = wxPyBeginAllowThreads();
22130 result = (int)((wxDC const *)arg1)->GetDepth();
22131 wxPyEndAllowThreads(__tstate);
22132 if (PyErr_Occurred()) SWIG_fail;
22133 }
22134 resultobj = SWIG_From_int(static_cast< int >(result));
22135 return resultobj;
22136fail:
22137 return NULL;
22138}
22139
22140
22141SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22142 PyObject *resultobj = 0;
22143 wxDC *arg1 = (wxDC *) 0 ;
22144 wxSize result;
22145 void *argp1 = 0 ;
22146 int res1 = 0 ;
22147 PyObject *swig_obj[1] ;
22148
22149 if (!args) SWIG_fail;
22150 swig_obj[0] = args;
22151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22152 if (!SWIG_IsOK(res1)) {
22153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22154 }
22155 arg1 = reinterpret_cast< wxDC * >(argp1);
22156 {
22157 PyThreadState* __tstate = wxPyBeginAllowThreads();
22158 result = ((wxDC const *)arg1)->GetPPI();
22159 wxPyEndAllowThreads(__tstate);
22160 if (PyErr_Occurred()) SWIG_fail;
22161 }
22162 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22163 return resultobj;
22164fail:
22165 return NULL;
22166}
22167
22168
b39fe951 22169SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
22170 PyObject *resultobj = 0;
22171 wxDC *arg1 = (wxDC *) 0 ;
22172 bool result;
22173 void *argp1 = 0 ;
22174 int res1 = 0 ;
22175 PyObject *swig_obj[1] ;
22176
22177 if (!args) SWIG_fail;
22178 swig_obj[0] = args;
22179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22180 if (!SWIG_IsOK(res1)) {
b39fe951 22181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
1bd55598
RD
22182 }
22183 arg1 = reinterpret_cast< wxDC * >(argp1);
22184 {
22185 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 22186 result = (bool)((wxDC const *)arg1)->IsOk();
1bd55598
RD
22187 wxPyEndAllowThreads(__tstate);
22188 if (PyErr_Occurred()) SWIG_fail;
22189 }
22190 {
22191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22192 }
22193 return resultobj;
22194fail:
22195 return NULL;
22196}
22197
22198
22199SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22200 PyObject *resultobj = 0;
22201 wxDC *arg1 = (wxDC *) 0 ;
22202 int result;
22203 void *argp1 = 0 ;
22204 int res1 = 0 ;
22205 PyObject *swig_obj[1] ;
22206
22207 if (!args) SWIG_fail;
22208 swig_obj[0] = args;
22209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22210 if (!SWIG_IsOK(res1)) {
22211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22212 }
22213 arg1 = reinterpret_cast< wxDC * >(argp1);
22214 {
22215 PyThreadState* __tstate = wxPyBeginAllowThreads();
22216 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22217 wxPyEndAllowThreads(__tstate);
22218 if (PyErr_Occurred()) SWIG_fail;
22219 }
22220 resultobj = SWIG_From_int(static_cast< int >(result));
22221 return resultobj;
22222fail:
22223 return NULL;
22224}
22225
22226
22227SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22228 PyObject *resultobj = 0;
22229 wxDC *arg1 = (wxDC *) 0 ;
22230 wxBrush *result = 0 ;
22231 void *argp1 = 0 ;
22232 int res1 = 0 ;
22233 PyObject *swig_obj[1] ;
22234
22235 if (!args) SWIG_fail;
22236 swig_obj[0] = args;
22237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22238 if (!SWIG_IsOK(res1)) {
22239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22240 }
22241 arg1 = reinterpret_cast< wxDC * >(argp1);
22242 {
22243 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22244 {
1bd55598
RD
22245 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22246 result = (wxBrush *) &_result_ref;
36ed4f51 22247 }
1bd55598
RD
22248 wxPyEndAllowThreads(__tstate);
22249 if (PyErr_Occurred()) SWIG_fail;
22250 }
22251 {
22252 wxBrush* resultptr = new wxBrush(*result);
22253 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22254 }
22255 return resultobj;
22256fail:
22257 return NULL;
22258}
22259
22260
22261SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22262 PyObject *resultobj = 0;
22263 wxDC *arg1 = (wxDC *) 0 ;
22264 wxBrush *result = 0 ;
22265 void *argp1 = 0 ;
22266 int res1 = 0 ;
22267 PyObject *swig_obj[1] ;
22268
22269 if (!args) SWIG_fail;
22270 swig_obj[0] = args;
22271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22272 if (!SWIG_IsOK(res1)) {
22273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22274 }
22275 arg1 = reinterpret_cast< wxDC * >(argp1);
22276 {
22277 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22278 {
1bd55598
RD
22279 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22280 result = (wxBrush *) &_result_ref;
36ed4f51 22281 }
1bd55598
RD
22282 wxPyEndAllowThreads(__tstate);
22283 if (PyErr_Occurred()) SWIG_fail;
22284 }
22285 {
22286 wxBrush* resultptr = new wxBrush(*result);
22287 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22288 }
22289 return resultobj;
22290fail:
22291 return NULL;
22292}
22293
22294
22295SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22296 PyObject *resultobj = 0;
22297 wxDC *arg1 = (wxDC *) 0 ;
22298 wxFont *result = 0 ;
22299 void *argp1 = 0 ;
22300 int res1 = 0 ;
22301 PyObject *swig_obj[1] ;
22302
22303 if (!args) SWIG_fail;
22304 swig_obj[0] = args;
22305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22306 if (!SWIG_IsOK(res1)) {
22307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22308 }
22309 arg1 = reinterpret_cast< wxDC * >(argp1);
22310 {
22311 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22312 {
1bd55598
RD
22313 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22314 result = (wxFont *) &_result_ref;
36ed4f51 22315 }
1bd55598
RD
22316 wxPyEndAllowThreads(__tstate);
22317 if (PyErr_Occurred()) SWIG_fail;
22318 }
22319 {
22320 wxFont* resultptr = new wxFont(*result);
22321 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22322 }
22323 return resultobj;
22324fail:
22325 return NULL;
22326}
22327
22328
22329SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22330 PyObject *resultobj = 0;
22331 wxDC *arg1 = (wxDC *) 0 ;
22332 wxPen *result = 0 ;
22333 void *argp1 = 0 ;
22334 int res1 = 0 ;
22335 PyObject *swig_obj[1] ;
22336
22337 if (!args) SWIG_fail;
22338 swig_obj[0] = args;
22339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22340 if (!SWIG_IsOK(res1)) {
22341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22342 }
22343 arg1 = reinterpret_cast< wxDC * >(argp1);
22344 {
22345 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22346 {
1bd55598
RD
22347 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22348 result = (wxPen *) &_result_ref;
36ed4f51 22349 }
1bd55598
RD
22350 wxPyEndAllowThreads(__tstate);
22351 if (PyErr_Occurred()) SWIG_fail;
22352 }
22353 {
22354 wxPen* resultptr = new wxPen(*result);
22355 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22356 }
22357 return resultobj;
22358fail:
22359 return NULL;
22360}
22361
22362
22363SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22364 PyObject *resultobj = 0;
22365 wxDC *arg1 = (wxDC *) 0 ;
22366 wxColour *result = 0 ;
22367 void *argp1 = 0 ;
22368 int res1 = 0 ;
22369 PyObject *swig_obj[1] ;
22370
22371 if (!args) SWIG_fail;
22372 swig_obj[0] = args;
22373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22374 if (!SWIG_IsOK(res1)) {
22375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22376 }
22377 arg1 = reinterpret_cast< wxDC * >(argp1);
22378 {
22379 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22380 {
1bd55598
RD
22381 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22382 result = (wxColour *) &_result_ref;
36ed4f51 22383 }
1bd55598
RD
22384 wxPyEndAllowThreads(__tstate);
22385 if (PyErr_Occurred()) SWIG_fail;
22386 }
22387 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22388 return resultobj;
22389fail:
22390 return NULL;
22391}
22392
22393
22394SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22395 PyObject *resultobj = 0;
22396 wxDC *arg1 = (wxDC *) 0 ;
22397 wxColour *result = 0 ;
22398 void *argp1 = 0 ;
22399 int res1 = 0 ;
22400 PyObject *swig_obj[1] ;
22401
22402 if (!args) SWIG_fail;
22403 swig_obj[0] = args;
22404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22405 if (!SWIG_IsOK(res1)) {
22406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22407 }
22408 arg1 = reinterpret_cast< wxDC * >(argp1);
22409 {
22410 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22411 {
1bd55598
RD
22412 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22413 result = (wxColour *) &_result_ref;
36ed4f51 22414 }
1bd55598
RD
22415 wxPyEndAllowThreads(__tstate);
22416 if (PyErr_Occurred()) SWIG_fail;
22417 }
22418 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22419 return resultobj;
22420fail:
22421 return NULL;
22422}
22423
22424
22425SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22426 PyObject *resultobj = 0;
22427 wxDC *arg1 = (wxDC *) 0 ;
22428 wxColour *arg2 = 0 ;
22429 void *argp1 = 0 ;
22430 int res1 = 0 ;
22431 wxColour temp2 ;
22432 PyObject * obj0 = 0 ;
22433 PyObject * obj1 = 0 ;
22434 char * kwnames[] = {
22435 (char *) "self",(char *) "colour", NULL
22436 };
22437
22438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22440 if (!SWIG_IsOK(res1)) {
22441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22442 }
22443 arg1 = reinterpret_cast< wxDC * >(argp1);
22444 {
22445 arg2 = &temp2;
22446 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22447 }
22448 {
22449 PyThreadState* __tstate = wxPyBeginAllowThreads();
22450 (arg1)->SetTextForeground((wxColour const &)*arg2);
22451 wxPyEndAllowThreads(__tstate);
22452 if (PyErr_Occurred()) SWIG_fail;
22453 }
22454 resultobj = SWIG_Py_Void();
22455 return resultobj;
22456fail:
22457 return NULL;
22458}
22459
22460
22461SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22462 PyObject *resultobj = 0;
22463 wxDC *arg1 = (wxDC *) 0 ;
22464 wxColour *arg2 = 0 ;
22465 void *argp1 = 0 ;
22466 int res1 = 0 ;
22467 wxColour temp2 ;
22468 PyObject * obj0 = 0 ;
22469 PyObject * obj1 = 0 ;
22470 char * kwnames[] = {
22471 (char *) "self",(char *) "colour", NULL
22472 };
22473
22474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22476 if (!SWIG_IsOK(res1)) {
22477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22478 }
22479 arg1 = reinterpret_cast< wxDC * >(argp1);
22480 {
22481 arg2 = &temp2;
22482 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22483 }
22484 {
22485 PyThreadState* __tstate = wxPyBeginAllowThreads();
22486 (arg1)->SetTextBackground((wxColour const &)*arg2);
22487 wxPyEndAllowThreads(__tstate);
22488 if (PyErr_Occurred()) SWIG_fail;
22489 }
22490 resultobj = SWIG_Py_Void();
22491 return resultobj;
22492fail:
22493 return NULL;
22494}
22495
22496
22497SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22498 PyObject *resultobj = 0;
22499 wxDC *arg1 = (wxDC *) 0 ;
22500 int result;
22501 void *argp1 = 0 ;
22502 int res1 = 0 ;
22503 PyObject *swig_obj[1] ;
22504
22505 if (!args) SWIG_fail;
22506 swig_obj[0] = args;
22507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22508 if (!SWIG_IsOK(res1)) {
22509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22510 }
22511 arg1 = reinterpret_cast< wxDC * >(argp1);
22512 {
22513 PyThreadState* __tstate = wxPyBeginAllowThreads();
22514 result = (int)((wxDC const *)arg1)->GetMapMode();
22515 wxPyEndAllowThreads(__tstate);
22516 if (PyErr_Occurred()) SWIG_fail;
22517 }
22518 resultobj = SWIG_From_int(static_cast< int >(result));
22519 return resultobj;
22520fail:
22521 return NULL;
22522}
22523
22524
22525SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22526 PyObject *resultobj = 0;
22527 wxDC *arg1 = (wxDC *) 0 ;
22528 int arg2 ;
22529 void *argp1 = 0 ;
22530 int res1 = 0 ;
22531 int val2 ;
22532 int ecode2 = 0 ;
22533 PyObject * obj0 = 0 ;
22534 PyObject * obj1 = 0 ;
22535 char * kwnames[] = {
22536 (char *) "self",(char *) "mode", NULL
22537 };
22538
22539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22541 if (!SWIG_IsOK(res1)) {
22542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22543 }
22544 arg1 = reinterpret_cast< wxDC * >(argp1);
22545 ecode2 = SWIG_AsVal_int(obj1, &val2);
22546 if (!SWIG_IsOK(ecode2)) {
22547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22548 }
22549 arg2 = static_cast< int >(val2);
22550 {
22551 PyThreadState* __tstate = wxPyBeginAllowThreads();
22552 (arg1)->SetMapMode(arg2);
22553 wxPyEndAllowThreads(__tstate);
22554 if (PyErr_Occurred()) SWIG_fail;
22555 }
22556 resultobj = SWIG_Py_Void();
22557 return resultobj;
22558fail:
22559 return NULL;
22560}
22561
22562
22563SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22564 PyObject *resultobj = 0;
22565 wxDC *arg1 = (wxDC *) 0 ;
22566 double *arg2 = (double *) 0 ;
22567 double *arg3 = (double *) 0 ;
22568 void *argp1 = 0 ;
22569 int res1 = 0 ;
22570 double temp2 ;
22571 int res2 = SWIG_TMPOBJ ;
22572 double temp3 ;
22573 int res3 = SWIG_TMPOBJ ;
22574 PyObject *swig_obj[1] ;
22575
22576 arg2 = &temp2;
22577 arg3 = &temp3;
22578 if (!args) SWIG_fail;
22579 swig_obj[0] = args;
22580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22581 if (!SWIG_IsOK(res1)) {
22582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22583 }
22584 arg1 = reinterpret_cast< wxDC * >(argp1);
22585 {
22586 PyThreadState* __tstate = wxPyBeginAllowThreads();
22587 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22588 wxPyEndAllowThreads(__tstate);
22589 if (PyErr_Occurred()) SWIG_fail;
22590 }
22591 resultobj = SWIG_Py_Void();
22592 if (SWIG_IsTmpObj(res2)) {
22593 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22594 } else {
22595 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22596 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22597 }
22598 if (SWIG_IsTmpObj(res3)) {
22599 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22600 } else {
22601 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22602 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22603 }
22604 return resultobj;
22605fail:
22606 return NULL;
22607}
22608
22609
22610SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22611 PyObject *resultobj = 0;
22612 wxDC *arg1 = (wxDC *) 0 ;
22613 double arg2 ;
22614 double arg3 ;
22615 void *argp1 = 0 ;
22616 int res1 = 0 ;
22617 double val2 ;
22618 int ecode2 = 0 ;
22619 double val3 ;
22620 int ecode3 = 0 ;
22621 PyObject * obj0 = 0 ;
22622 PyObject * obj1 = 0 ;
22623 PyObject * obj2 = 0 ;
22624 char * kwnames[] = {
22625 (char *) "self",(char *) "x",(char *) "y", NULL
22626 };
22627
22628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22630 if (!SWIG_IsOK(res1)) {
22631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22632 }
22633 arg1 = reinterpret_cast< wxDC * >(argp1);
22634 ecode2 = SWIG_AsVal_double(obj1, &val2);
22635 if (!SWIG_IsOK(ecode2)) {
22636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22637 }
22638 arg2 = static_cast< double >(val2);
22639 ecode3 = SWIG_AsVal_double(obj2, &val3);
22640 if (!SWIG_IsOK(ecode3)) {
22641 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22642 }
22643 arg3 = static_cast< double >(val3);
22644 {
22645 PyThreadState* __tstate = wxPyBeginAllowThreads();
22646 (arg1)->SetUserScale(arg2,arg3);
22647 wxPyEndAllowThreads(__tstate);
22648 if (PyErr_Occurred()) SWIG_fail;
22649 }
22650 resultobj = SWIG_Py_Void();
22651 return resultobj;
22652fail:
22653 return NULL;
22654}
22655
22656
22657SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22658 PyObject *resultobj = 0;
22659 wxDC *arg1 = (wxDC *) 0 ;
22660 double *arg2 = (double *) 0 ;
22661 double *arg3 = (double *) 0 ;
22662 void *argp1 = 0 ;
22663 int res1 = 0 ;
22664 double temp2 ;
22665 int res2 = SWIG_TMPOBJ ;
22666 double temp3 ;
22667 int res3 = SWIG_TMPOBJ ;
22668 PyObject *swig_obj[1] ;
22669
22670 arg2 = &temp2;
22671 arg3 = &temp3;
22672 if (!args) SWIG_fail;
22673 swig_obj[0] = args;
22674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22675 if (!SWIG_IsOK(res1)) {
22676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22677 }
22678 arg1 = reinterpret_cast< wxDC * >(argp1);
22679 {
22680 PyThreadState* __tstate = wxPyBeginAllowThreads();
22681 (arg1)->GetLogicalScale(arg2,arg3);
22682 wxPyEndAllowThreads(__tstate);
22683 if (PyErr_Occurred()) SWIG_fail;
22684 }
22685 resultobj = SWIG_Py_Void();
22686 if (SWIG_IsTmpObj(res2)) {
22687 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22688 } else {
22689 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22690 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22691 }
22692 if (SWIG_IsTmpObj(res3)) {
22693 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22694 } else {
22695 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22696 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22697 }
22698 return resultobj;
22699fail:
22700 return NULL;
22701}
22702
22703
22704SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22705 PyObject *resultobj = 0;
22706 wxDC *arg1 = (wxDC *) 0 ;
22707 double arg2 ;
22708 double arg3 ;
22709 void *argp1 = 0 ;
22710 int res1 = 0 ;
22711 double val2 ;
22712 int ecode2 = 0 ;
22713 double val3 ;
22714 int ecode3 = 0 ;
22715 PyObject * obj0 = 0 ;
22716 PyObject * obj1 = 0 ;
22717 PyObject * obj2 = 0 ;
22718 char * kwnames[] = {
22719 (char *) "self",(char *) "x",(char *) "y", NULL
22720 };
22721
22722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22724 if (!SWIG_IsOK(res1)) {
22725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22726 }
22727 arg1 = reinterpret_cast< wxDC * >(argp1);
22728 ecode2 = SWIG_AsVal_double(obj1, &val2);
22729 if (!SWIG_IsOK(ecode2)) {
22730 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22731 }
22732 arg2 = static_cast< double >(val2);
22733 ecode3 = SWIG_AsVal_double(obj2, &val3);
22734 if (!SWIG_IsOK(ecode3)) {
22735 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22736 }
22737 arg3 = static_cast< double >(val3);
22738 {
22739 PyThreadState* __tstate = wxPyBeginAllowThreads();
22740 (arg1)->SetLogicalScale(arg2,arg3);
22741 wxPyEndAllowThreads(__tstate);
22742 if (PyErr_Occurred()) SWIG_fail;
22743 }
22744 resultobj = SWIG_Py_Void();
22745 return resultobj;
22746fail:
22747 return NULL;
22748}
22749
22750
22751SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22752 PyObject *resultobj = 0;
22753 wxDC *arg1 = (wxDC *) 0 ;
22754 wxPoint result;
22755 void *argp1 = 0 ;
22756 int res1 = 0 ;
22757 PyObject *swig_obj[1] ;
22758
22759 if (!args) SWIG_fail;
22760 swig_obj[0] = args;
22761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22762 if (!SWIG_IsOK(res1)) {
22763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22764 }
22765 arg1 = reinterpret_cast< wxDC * >(argp1);
22766 {
22767 PyThreadState* __tstate = wxPyBeginAllowThreads();
22768 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22769 wxPyEndAllowThreads(__tstate);
22770 if (PyErr_Occurred()) SWIG_fail;
22771 }
22772 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22773 return resultobj;
22774fail:
22775 return NULL;
22776}
22777
22778
22779SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22780 PyObject *resultobj = 0;
22781 wxDC *arg1 = (wxDC *) 0 ;
22782 int *arg2 = (int *) 0 ;
22783 int *arg3 = (int *) 0 ;
22784 void *argp1 = 0 ;
22785 int res1 = 0 ;
22786 int temp2 ;
22787 int res2 = SWIG_TMPOBJ ;
22788 int temp3 ;
22789 int res3 = SWIG_TMPOBJ ;
22790 PyObject *swig_obj[1] ;
22791
22792 arg2 = &temp2;
22793 arg3 = &temp3;
22794 if (!args) SWIG_fail;
22795 swig_obj[0] = args;
22796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22797 if (!SWIG_IsOK(res1)) {
22798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22799 }
22800 arg1 = reinterpret_cast< wxDC * >(argp1);
22801 {
22802 PyThreadState* __tstate = wxPyBeginAllowThreads();
22803 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22804 wxPyEndAllowThreads(__tstate);
22805 if (PyErr_Occurred()) SWIG_fail;
22806 }
22807 resultobj = SWIG_Py_Void();
22808 if (SWIG_IsTmpObj(res2)) {
22809 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22810 } else {
22811 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22812 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22813 }
22814 if (SWIG_IsTmpObj(res3)) {
22815 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22816 } else {
22817 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22818 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22819 }
22820 return resultobj;
22821fail:
22822 return NULL;
22823}
22824
22825
22826SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22827 PyObject *resultobj = 0;
22828 wxDC *arg1 = (wxDC *) 0 ;
22829 int arg2 ;
22830 int arg3 ;
22831 void *argp1 = 0 ;
22832 int res1 = 0 ;
22833 int val2 ;
22834 int ecode2 = 0 ;
22835 int val3 ;
22836 int ecode3 = 0 ;
22837 PyObject * obj0 = 0 ;
22838 PyObject * obj1 = 0 ;
22839 PyObject * obj2 = 0 ;
22840 char * kwnames[] = {
22841 (char *) "self",(char *) "x",(char *) "y", NULL
22842 };
22843
22844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22846 if (!SWIG_IsOK(res1)) {
22847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22848 }
22849 arg1 = reinterpret_cast< wxDC * >(argp1);
22850 ecode2 = SWIG_AsVal_int(obj1, &val2);
22851 if (!SWIG_IsOK(ecode2)) {
22852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22853 }
22854 arg2 = static_cast< int >(val2);
22855 ecode3 = SWIG_AsVal_int(obj2, &val3);
22856 if (!SWIG_IsOK(ecode3)) {
22857 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22858 }
22859 arg3 = static_cast< int >(val3);
22860 {
22861 PyThreadState* __tstate = wxPyBeginAllowThreads();
22862 (arg1)->SetLogicalOrigin(arg2,arg3);
22863 wxPyEndAllowThreads(__tstate);
22864 if (PyErr_Occurred()) SWIG_fail;
22865 }
22866 resultobj = SWIG_Py_Void();
22867 return resultobj;
22868fail:
22869 return NULL;
22870}
22871
22872
22873SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22874 PyObject *resultobj = 0;
22875 wxDC *arg1 = (wxDC *) 0 ;
22876 wxPoint *arg2 = 0 ;
22877 void *argp1 = 0 ;
22878 int res1 = 0 ;
22879 wxPoint temp2 ;
22880 PyObject * obj0 = 0 ;
22881 PyObject * obj1 = 0 ;
22882 char * kwnames[] = {
22883 (char *) "self",(char *) "point", NULL
22884 };
22885
22886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22888 if (!SWIG_IsOK(res1)) {
22889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22890 }
22891 arg1 = reinterpret_cast< wxDC * >(argp1);
22892 {
22893 arg2 = &temp2;
22894 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22895 }
22896 {
22897 PyThreadState* __tstate = wxPyBeginAllowThreads();
22898 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22899 wxPyEndAllowThreads(__tstate);
22900 if (PyErr_Occurred()) SWIG_fail;
22901 }
22902 resultobj = SWIG_Py_Void();
22903 return resultobj;
22904fail:
22905 return NULL;
22906}
22907
22908
22909SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22910 PyObject *resultobj = 0;
22911 wxDC *arg1 = (wxDC *) 0 ;
22912 wxPoint result;
22913 void *argp1 = 0 ;
22914 int res1 = 0 ;
22915 PyObject *swig_obj[1] ;
22916
22917 if (!args) SWIG_fail;
22918 swig_obj[0] = args;
22919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22920 if (!SWIG_IsOK(res1)) {
22921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22922 }
22923 arg1 = reinterpret_cast< wxDC * >(argp1);
22924 {
22925 PyThreadState* __tstate = wxPyBeginAllowThreads();
22926 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22927 wxPyEndAllowThreads(__tstate);
22928 if (PyErr_Occurred()) SWIG_fail;
22929 }
22930 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22931 return resultobj;
22932fail:
22933 return NULL;
22934}
22935
22936
22937SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22938 PyObject *resultobj = 0;
22939 wxDC *arg1 = (wxDC *) 0 ;
22940 int *arg2 = (int *) 0 ;
22941 int *arg3 = (int *) 0 ;
22942 void *argp1 = 0 ;
22943 int res1 = 0 ;
22944 int temp2 ;
22945 int res2 = SWIG_TMPOBJ ;
22946 int temp3 ;
22947 int res3 = SWIG_TMPOBJ ;
22948 PyObject *swig_obj[1] ;
22949
22950 arg2 = &temp2;
22951 arg3 = &temp3;
22952 if (!args) SWIG_fail;
22953 swig_obj[0] = args;
22954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22955 if (!SWIG_IsOK(res1)) {
22956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22957 }
22958 arg1 = reinterpret_cast< wxDC * >(argp1);
22959 {
22960 PyThreadState* __tstate = wxPyBeginAllowThreads();
22961 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22962 wxPyEndAllowThreads(__tstate);
22963 if (PyErr_Occurred()) SWIG_fail;
22964 }
22965 resultobj = SWIG_Py_Void();
22966 if (SWIG_IsTmpObj(res2)) {
22967 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22968 } else {
22969 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22970 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22971 }
22972 if (SWIG_IsTmpObj(res3)) {
22973 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22974 } else {
22975 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22976 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22977 }
22978 return resultobj;
22979fail:
22980 return NULL;
22981}
22982
22983
22984SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22985 PyObject *resultobj = 0;
22986 wxDC *arg1 = (wxDC *) 0 ;
22987 int arg2 ;
22988 int arg3 ;
22989 void *argp1 = 0 ;
22990 int res1 = 0 ;
22991 int val2 ;
22992 int ecode2 = 0 ;
22993 int val3 ;
22994 int ecode3 = 0 ;
22995 PyObject * obj0 = 0 ;
22996 PyObject * obj1 = 0 ;
22997 PyObject * obj2 = 0 ;
22998 char * kwnames[] = {
22999 (char *) "self",(char *) "x",(char *) "y", NULL
23000 };
23001
23002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23004 if (!SWIG_IsOK(res1)) {
23005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23006 }
23007 arg1 = reinterpret_cast< wxDC * >(argp1);
23008 ecode2 = SWIG_AsVal_int(obj1, &val2);
23009 if (!SWIG_IsOK(ecode2)) {
23010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
23011 }
23012 arg2 = static_cast< int >(val2);
23013 ecode3 = SWIG_AsVal_int(obj2, &val3);
23014 if (!SWIG_IsOK(ecode3)) {
23015 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
23016 }
23017 arg3 = static_cast< int >(val3);
23018 {
23019 PyThreadState* __tstate = wxPyBeginAllowThreads();
23020 (arg1)->SetDeviceOrigin(arg2,arg3);
23021 wxPyEndAllowThreads(__tstate);
23022 if (PyErr_Occurred()) SWIG_fail;
23023 }
23024 resultobj = SWIG_Py_Void();
23025 return resultobj;
23026fail:
23027 return NULL;
23028}
23029
23030
23031SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23032 PyObject *resultobj = 0;
23033 wxDC *arg1 = (wxDC *) 0 ;
23034 wxPoint *arg2 = 0 ;
23035 void *argp1 = 0 ;
23036 int res1 = 0 ;
23037 wxPoint temp2 ;
23038 PyObject * obj0 = 0 ;
23039 PyObject * obj1 = 0 ;
23040 char * kwnames[] = {
23041 (char *) "self",(char *) "point", NULL
23042 };
23043
23044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23046 if (!SWIG_IsOK(res1)) {
23047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23048 }
23049 arg1 = reinterpret_cast< wxDC * >(argp1);
23050 {
23051 arg2 = &temp2;
23052 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23053 }
23054 {
23055 PyThreadState* __tstate = wxPyBeginAllowThreads();
23056 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23057 wxPyEndAllowThreads(__tstate);
23058 if (PyErr_Occurred()) SWIG_fail;
23059 }
23060 resultobj = SWIG_Py_Void();
23061 return resultobj;
23062fail:
23063 return NULL;
23064}
23065
23066
23067SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23068 PyObject *resultobj = 0;
23069 wxDC *arg1 = (wxDC *) 0 ;
23070 bool arg2 ;
23071 bool arg3 ;
23072 void *argp1 = 0 ;
23073 int res1 = 0 ;
23074 bool val2 ;
23075 int ecode2 = 0 ;
23076 bool val3 ;
23077 int ecode3 = 0 ;
23078 PyObject * obj0 = 0 ;
23079 PyObject * obj1 = 0 ;
23080 PyObject * obj2 = 0 ;
23081 char * kwnames[] = {
23082 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23083 };
23084
23085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23087 if (!SWIG_IsOK(res1)) {
23088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23089 }
23090 arg1 = reinterpret_cast< wxDC * >(argp1);
23091 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23092 if (!SWIG_IsOK(ecode2)) {
23093 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23094 }
23095 arg2 = static_cast< bool >(val2);
23096 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23097 if (!SWIG_IsOK(ecode3)) {
23098 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23099 }
23100 arg3 = static_cast< bool >(val3);
23101 {
23102 PyThreadState* __tstate = wxPyBeginAllowThreads();
23103 (arg1)->SetAxisOrientation(arg2,arg3);
23104 wxPyEndAllowThreads(__tstate);
23105 if (PyErr_Occurred()) SWIG_fail;
23106 }
23107 resultobj = SWIG_Py_Void();
23108 return resultobj;
23109fail:
23110 return NULL;
23111}
23112
23113
23114SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23115 PyObject *resultobj = 0;
23116 wxDC *arg1 = (wxDC *) 0 ;
23117 int result;
23118 void *argp1 = 0 ;
23119 int res1 = 0 ;
23120 PyObject *swig_obj[1] ;
23121
23122 if (!args) SWIG_fail;
23123 swig_obj[0] = args;
23124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23125 if (!SWIG_IsOK(res1)) {
23126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23127 }
23128 arg1 = reinterpret_cast< wxDC * >(argp1);
23129 {
23130 PyThreadState* __tstate = wxPyBeginAllowThreads();
23131 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23132 wxPyEndAllowThreads(__tstate);
23133 if (PyErr_Occurred()) SWIG_fail;
23134 }
23135 resultobj = SWIG_From_int(static_cast< int >(result));
23136 return resultobj;
23137fail:
23138 return NULL;
23139}
23140
23141
23142SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23143 PyObject *resultobj = 0;
23144 wxDC *arg1 = (wxDC *) 0 ;
23145 int arg2 ;
23146 void *argp1 = 0 ;
23147 int res1 = 0 ;
23148 int val2 ;
23149 int ecode2 = 0 ;
23150 PyObject * obj0 = 0 ;
23151 PyObject * obj1 = 0 ;
23152 char * kwnames[] = {
23153 (char *) "self",(char *) "function", NULL
23154 };
23155
23156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23158 if (!SWIG_IsOK(res1)) {
23159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23160 }
23161 arg1 = reinterpret_cast< wxDC * >(argp1);
23162 ecode2 = SWIG_AsVal_int(obj1, &val2);
23163 if (!SWIG_IsOK(ecode2)) {
23164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23165 }
23166 arg2 = static_cast< int >(val2);
23167 {
23168 PyThreadState* __tstate = wxPyBeginAllowThreads();
23169 (arg1)->SetLogicalFunction(arg2);
23170 wxPyEndAllowThreads(__tstate);
23171 if (PyErr_Occurred()) SWIG_fail;
23172 }
23173 resultobj = SWIG_Py_Void();
23174 return resultobj;
23175fail:
23176 return NULL;
23177}
23178
23179
23180SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23181 PyObject *resultobj = 0;
23182 wxDC *arg1 = (wxDC *) 0 ;
23183 void *argp1 = 0 ;
23184 int res1 = 0 ;
23185 PyObject *swig_obj[1] ;
23186
23187 if (!args) SWIG_fail;
23188 swig_obj[0] = args;
23189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23190 if (!SWIG_IsOK(res1)) {
23191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23192 }
23193 arg1 = reinterpret_cast< wxDC * >(argp1);
23194 {
23195 PyThreadState* __tstate = wxPyBeginAllowThreads();
23196 (arg1)->ComputeScaleAndOrigin();
23197 wxPyEndAllowThreads(__tstate);
23198 if (PyErr_Occurred()) SWIG_fail;
23199 }
23200 resultobj = SWIG_Py_Void();
23201 return resultobj;
23202fail:
23203 return NULL;
23204}
23205
23206
23207SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23208 PyObject *resultobj = 0;
23209 wxDC *arg1 = (wxDC *) 0 ;
23210 int arg2 ;
23211 int arg3 ;
23212 void *argp1 = 0 ;
23213 int res1 = 0 ;
23214 int val2 ;
23215 int ecode2 = 0 ;
23216 int val3 ;
23217 int ecode3 = 0 ;
23218 PyObject * obj0 = 0 ;
23219 PyObject * obj1 = 0 ;
23220 PyObject * obj2 = 0 ;
23221 char * kwnames[] = {
23222 (char *) "self",(char *) "x",(char *) "y", NULL
23223 };
23224
23225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23227 if (!SWIG_IsOK(res1)) {
23228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23229 }
23230 arg1 = reinterpret_cast< wxDC * >(argp1);
23231 ecode2 = SWIG_AsVal_int(obj1, &val2);
23232 if (!SWIG_IsOK(ecode2)) {
23233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23234 }
23235 arg2 = static_cast< int >(val2);
23236 ecode3 = SWIG_AsVal_int(obj2, &val3);
23237 if (!SWIG_IsOK(ecode3)) {
23238 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23239 }
23240 arg3 = static_cast< int >(val3);
23241 {
23242 PyThreadState* __tstate = wxPyBeginAllowThreads();
23243 (arg1)->CalcBoundingBox(arg2,arg3);
23244 wxPyEndAllowThreads(__tstate);
23245 if (PyErr_Occurred()) SWIG_fail;
23246 }
23247 resultobj = SWIG_Py_Void();
23248 return resultobj;
23249fail:
23250 return NULL;
23251}
23252
23253
23254SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23255 PyObject *resultobj = 0;
23256 wxDC *arg1 = (wxDC *) 0 ;
23257 wxPoint *arg2 = 0 ;
23258 void *argp1 = 0 ;
23259 int res1 = 0 ;
23260 wxPoint temp2 ;
23261 PyObject * obj0 = 0 ;
23262 PyObject * obj1 = 0 ;
23263 char * kwnames[] = {
23264 (char *) "self",(char *) "point", NULL
23265 };
23266
23267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23269 if (!SWIG_IsOK(res1)) {
23270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23271 }
23272 arg1 = reinterpret_cast< wxDC * >(argp1);
23273 {
23274 arg2 = &temp2;
23275 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23276 }
23277 {
23278 PyThreadState* __tstate = wxPyBeginAllowThreads();
23279 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23280 wxPyEndAllowThreads(__tstate);
23281 if (PyErr_Occurred()) SWIG_fail;
23282 }
23283 resultobj = SWIG_Py_Void();
23284 return resultobj;
23285fail:
23286 return NULL;
23287}
23288
23289
23290SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23291 PyObject *resultobj = 0;
23292 wxDC *arg1 = (wxDC *) 0 ;
23293 void *argp1 = 0 ;
23294 int res1 = 0 ;
23295 PyObject *swig_obj[1] ;
23296
23297 if (!args) SWIG_fail;
23298 swig_obj[0] = args;
23299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23300 if (!SWIG_IsOK(res1)) {
23301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23302 }
23303 arg1 = reinterpret_cast< wxDC * >(argp1);
23304 {
23305 PyThreadState* __tstate = wxPyBeginAllowThreads();
23306 (arg1)->ResetBoundingBox();
23307 wxPyEndAllowThreads(__tstate);
23308 if (PyErr_Occurred()) SWIG_fail;
23309 }
23310 resultobj = SWIG_Py_Void();
23311 return resultobj;
23312fail:
23313 return NULL;
23314}
23315
23316
23317SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23318 PyObject *resultobj = 0;
23319 wxDC *arg1 = (wxDC *) 0 ;
23320 int result;
23321 void *argp1 = 0 ;
23322 int res1 = 0 ;
23323 PyObject *swig_obj[1] ;
23324
23325 if (!args) SWIG_fail;
23326 swig_obj[0] = args;
23327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23328 if (!SWIG_IsOK(res1)) {
23329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23330 }
23331 arg1 = reinterpret_cast< wxDC * >(argp1);
23332 {
23333 PyThreadState* __tstate = wxPyBeginAllowThreads();
23334 result = (int)((wxDC const *)arg1)->MinX();
23335 wxPyEndAllowThreads(__tstate);
23336 if (PyErr_Occurred()) SWIG_fail;
23337 }
23338 resultobj = SWIG_From_int(static_cast< int >(result));
23339 return resultobj;
23340fail:
23341 return NULL;
23342}
23343
23344
23345SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23346 PyObject *resultobj = 0;
23347 wxDC *arg1 = (wxDC *) 0 ;
23348 int result;
23349 void *argp1 = 0 ;
23350 int res1 = 0 ;
23351 PyObject *swig_obj[1] ;
23352
23353 if (!args) SWIG_fail;
23354 swig_obj[0] = args;
23355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23356 if (!SWIG_IsOK(res1)) {
23357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23358 }
23359 arg1 = reinterpret_cast< wxDC * >(argp1);
23360 {
23361 PyThreadState* __tstate = wxPyBeginAllowThreads();
23362 result = (int)((wxDC const *)arg1)->MaxX();
23363 wxPyEndAllowThreads(__tstate);
23364 if (PyErr_Occurred()) SWIG_fail;
23365 }
23366 resultobj = SWIG_From_int(static_cast< int >(result));
23367 return resultobj;
23368fail:
23369 return NULL;
23370}
23371
23372
23373SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23374 PyObject *resultobj = 0;
23375 wxDC *arg1 = (wxDC *) 0 ;
23376 int result;
23377 void *argp1 = 0 ;
23378 int res1 = 0 ;
23379 PyObject *swig_obj[1] ;
23380
23381 if (!args) SWIG_fail;
23382 swig_obj[0] = args;
23383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23384 if (!SWIG_IsOK(res1)) {
23385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23386 }
23387 arg1 = reinterpret_cast< wxDC * >(argp1);
23388 {
23389 PyThreadState* __tstate = wxPyBeginAllowThreads();
23390 result = (int)((wxDC const *)arg1)->MinY();
23391 wxPyEndAllowThreads(__tstate);
23392 if (PyErr_Occurred()) SWIG_fail;
23393 }
23394 resultobj = SWIG_From_int(static_cast< int >(result));
23395 return resultobj;
23396fail:
23397 return NULL;
23398}
23399
23400
23401SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23402 PyObject *resultobj = 0;
23403 wxDC *arg1 = (wxDC *) 0 ;
23404 int result;
23405 void *argp1 = 0 ;
23406 int res1 = 0 ;
23407 PyObject *swig_obj[1] ;
23408
23409 if (!args) SWIG_fail;
23410 swig_obj[0] = args;
23411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23412 if (!SWIG_IsOK(res1)) {
23413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23414 }
23415 arg1 = reinterpret_cast< wxDC * >(argp1);
23416 {
23417 PyThreadState* __tstate = wxPyBeginAllowThreads();
23418 result = (int)((wxDC const *)arg1)->MaxY();
23419 wxPyEndAllowThreads(__tstate);
23420 if (PyErr_Occurred()) SWIG_fail;
23421 }
23422 resultobj = SWIG_From_int(static_cast< int >(result));
23423 return resultobj;
23424fail:
23425 return NULL;
23426}
23427
23428
23429SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23430 PyObject *resultobj = 0;
23431 wxDC *arg1 = (wxDC *) 0 ;
23432 int *arg2 = (int *) 0 ;
23433 int *arg3 = (int *) 0 ;
23434 int *arg4 = (int *) 0 ;
23435 int *arg5 = (int *) 0 ;
23436 void *argp1 = 0 ;
23437 int res1 = 0 ;
23438 int temp2 ;
23439 int res2 = SWIG_TMPOBJ ;
23440 int temp3 ;
23441 int res3 = SWIG_TMPOBJ ;
23442 int temp4 ;
23443 int res4 = SWIG_TMPOBJ ;
23444 int temp5 ;
23445 int res5 = SWIG_TMPOBJ ;
23446 PyObject *swig_obj[1] ;
23447
23448 arg2 = &temp2;
23449 arg3 = &temp3;
23450 arg4 = &temp4;
23451 arg5 = &temp5;
23452 if (!args) SWIG_fail;
23453 swig_obj[0] = args;
23454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23455 if (!SWIG_IsOK(res1)) {
23456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23457 }
23458 arg1 = reinterpret_cast< wxDC * >(argp1);
23459 {
23460 PyThreadState* __tstate = wxPyBeginAllowThreads();
23461 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23462 wxPyEndAllowThreads(__tstate);
23463 if (PyErr_Occurred()) SWIG_fail;
23464 }
23465 resultobj = SWIG_Py_Void();
23466 if (SWIG_IsTmpObj(res2)) {
23467 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23468 } else {
23469 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23470 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23471 }
23472 if (SWIG_IsTmpObj(res3)) {
23473 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23474 } else {
23475 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23476 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23477 }
23478 if (SWIG_IsTmpObj(res4)) {
23479 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23480 } else {
23481 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23482 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23483 }
23484 if (SWIG_IsTmpObj(res5)) {
23485 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23486 } else {
23487 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23488 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23489 }
23490 return resultobj;
23491fail:
23492 return NULL;
23493}
23494
23495
b39fe951
RD
23496SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23497 PyObject *resultobj = 0;
23498 wxDC *arg1 = (wxDC *) 0 ;
23499 wxLayoutDirection result;
23500 void *argp1 = 0 ;
23501 int res1 = 0 ;
23502 PyObject *swig_obj[1] ;
23503
23504 if (!args) SWIG_fail;
23505 swig_obj[0] = args;
23506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23507 if (!SWIG_IsOK(res1)) {
23508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23509 }
23510 arg1 = reinterpret_cast< wxDC * >(argp1);
23511 {
23512 PyThreadState* __tstate = wxPyBeginAllowThreads();
23513 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23514 wxPyEndAllowThreads(__tstate);
23515 if (PyErr_Occurred()) SWIG_fail;
23516 }
23517 resultobj = SWIG_From_int(static_cast< int >(result));
23518 return resultobj;
23519fail:
23520 return NULL;
23521}
23522
23523
23524SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23525 PyObject *resultobj = 0;
23526 wxDC *arg1 = (wxDC *) 0 ;
23527 wxLayoutDirection arg2 ;
23528 void *argp1 = 0 ;
23529 int res1 = 0 ;
23530 int val2 ;
23531 int ecode2 = 0 ;
23532 PyObject * obj0 = 0 ;
23533 PyObject * obj1 = 0 ;
23534 char * kwnames[] = {
23535 (char *) "self",(char *) "dir", NULL
23536 };
23537
23538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23540 if (!SWIG_IsOK(res1)) {
23541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23542 }
23543 arg1 = reinterpret_cast< wxDC * >(argp1);
23544 ecode2 = SWIG_AsVal_int(obj1, &val2);
23545 if (!SWIG_IsOK(ecode2)) {
23546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23547 }
23548 arg2 = static_cast< wxLayoutDirection >(val2);
23549 {
23550 PyThreadState* __tstate = wxPyBeginAllowThreads();
23551 (arg1)->SetLayoutDirection(arg2);
23552 wxPyEndAllowThreads(__tstate);
23553 if (PyErr_Occurred()) SWIG_fail;
23554 }
23555 resultobj = SWIG_Py_Void();
23556 return resultobj;
23557fail:
23558 return NULL;
23559}
23560
23561
1bd55598
RD
23562SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23563 PyObject *resultobj = 0;
23564 wxDC *arg1 = (wxDC *) 0 ;
23565 PyObject *arg2 = (PyObject *) 0 ;
23566 PyObject *arg3 = (PyObject *) 0 ;
23567 PyObject *arg4 = (PyObject *) 0 ;
23568 PyObject *result = 0 ;
23569 void *argp1 = 0 ;
23570 int res1 = 0 ;
23571 PyObject * obj0 = 0 ;
23572 PyObject * obj1 = 0 ;
23573 PyObject * obj2 = 0 ;
23574 PyObject * obj3 = 0 ;
23575 char * kwnames[] = {
23576 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23577 };
23578
23579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23581 if (!SWIG_IsOK(res1)) {
23582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23583 }
23584 arg1 = reinterpret_cast< wxDC * >(argp1);
23585 arg2 = obj1;
23586 arg3 = obj2;
23587 arg4 = obj3;
23588 {
23589 PyThreadState* __tstate = wxPyBeginAllowThreads();
23590 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23591 wxPyEndAllowThreads(__tstate);
23592 if (PyErr_Occurred()) SWIG_fail;
23593 }
23594 resultobj = result;
23595 return resultobj;
23596fail:
23597 return NULL;
23598}
23599
23600
23601SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23602 PyObject *resultobj = 0;
23603 wxDC *arg1 = (wxDC *) 0 ;
23604 PyObject *arg2 = (PyObject *) 0 ;
23605 PyObject *arg3 = (PyObject *) 0 ;
23606 PyObject *arg4 = (PyObject *) 0 ;
23607 PyObject *result = 0 ;
23608 void *argp1 = 0 ;
23609 int res1 = 0 ;
23610 PyObject * obj0 = 0 ;
23611 PyObject * obj1 = 0 ;
23612 PyObject * obj2 = 0 ;
23613 PyObject * obj3 = 0 ;
23614 char * kwnames[] = {
23615 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23616 };
23617
23618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23620 if (!SWIG_IsOK(res1)) {
23621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23622 }
23623 arg1 = reinterpret_cast< wxDC * >(argp1);
23624 arg2 = obj1;
23625 arg3 = obj2;
23626 arg4 = obj3;
23627 {
23628 PyThreadState* __tstate = wxPyBeginAllowThreads();
23629 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23630 wxPyEndAllowThreads(__tstate);
23631 if (PyErr_Occurred()) SWIG_fail;
23632 }
23633 resultobj = result;
23634 return resultobj;
23635fail:
23636 return NULL;
23637}
23638
23639
23640SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23641 PyObject *resultobj = 0;
23642 wxDC *arg1 = (wxDC *) 0 ;
23643 PyObject *arg2 = (PyObject *) 0 ;
23644 PyObject *arg3 = (PyObject *) 0 ;
23645 PyObject *arg4 = (PyObject *) 0 ;
23646 PyObject *result = 0 ;
23647 void *argp1 = 0 ;
23648 int res1 = 0 ;
23649 PyObject * obj0 = 0 ;
23650 PyObject * obj1 = 0 ;
23651 PyObject * obj2 = 0 ;
23652 PyObject * obj3 = 0 ;
23653 char * kwnames[] = {
23654 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23655 };
23656
23657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23659 if (!SWIG_IsOK(res1)) {
23660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23661 }
23662 arg1 = reinterpret_cast< wxDC * >(argp1);
23663 arg2 = obj1;
23664 arg3 = obj2;
23665 arg4 = obj3;
23666 {
23667 PyThreadState* __tstate = wxPyBeginAllowThreads();
23668 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23669 wxPyEndAllowThreads(__tstate);
23670 if (PyErr_Occurred()) SWIG_fail;
23671 }
23672 resultobj = result;
23673 return resultobj;
23674fail:
23675 return NULL;
23676}
23677
23678
23679SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23680 PyObject *resultobj = 0;
23681 wxDC *arg1 = (wxDC *) 0 ;
23682 PyObject *arg2 = (PyObject *) 0 ;
23683 PyObject *arg3 = (PyObject *) 0 ;
23684 PyObject *arg4 = (PyObject *) 0 ;
23685 PyObject *result = 0 ;
23686 void *argp1 = 0 ;
23687 int res1 = 0 ;
23688 PyObject * obj0 = 0 ;
23689 PyObject * obj1 = 0 ;
23690 PyObject * obj2 = 0 ;
23691 PyObject * obj3 = 0 ;
23692 char * kwnames[] = {
23693 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23694 };
23695
23696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23698 if (!SWIG_IsOK(res1)) {
23699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23700 }
23701 arg1 = reinterpret_cast< wxDC * >(argp1);
23702 arg2 = obj1;
23703 arg3 = obj2;
23704 arg4 = obj3;
23705 {
23706 PyThreadState* __tstate = wxPyBeginAllowThreads();
23707 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23708 wxPyEndAllowThreads(__tstate);
23709 if (PyErr_Occurred()) SWIG_fail;
23710 }
23711 resultobj = result;
23712 return resultobj;
23713fail:
23714 return NULL;
23715}
23716
23717
23718SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23719 PyObject *resultobj = 0;
23720 wxDC *arg1 = (wxDC *) 0 ;
23721 PyObject *arg2 = (PyObject *) 0 ;
23722 PyObject *arg3 = (PyObject *) 0 ;
23723 PyObject *arg4 = (PyObject *) 0 ;
23724 PyObject *result = 0 ;
23725 void *argp1 = 0 ;
23726 int res1 = 0 ;
23727 PyObject * obj0 = 0 ;
23728 PyObject * obj1 = 0 ;
23729 PyObject * obj2 = 0 ;
23730 PyObject * obj3 = 0 ;
23731 char * kwnames[] = {
23732 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23733 };
23734
23735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23737 if (!SWIG_IsOK(res1)) {
23738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23739 }
23740 arg1 = reinterpret_cast< wxDC * >(argp1);
23741 arg2 = obj1;
23742 arg3 = obj2;
23743 arg4 = obj3;
23744 {
23745 PyThreadState* __tstate = wxPyBeginAllowThreads();
23746 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23747 wxPyEndAllowThreads(__tstate);
23748 if (PyErr_Occurred()) SWIG_fail;
23749 }
23750 resultobj = result;
23751 return resultobj;
23752fail:
23753 return NULL;
23754}
23755
23756
23757SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23758 PyObject *resultobj = 0;
23759 wxDC *arg1 = (wxDC *) 0 ;
23760 PyObject *arg2 = (PyObject *) 0 ;
23761 PyObject *arg3 = (PyObject *) 0 ;
23762 PyObject *arg4 = (PyObject *) 0 ;
23763 PyObject *arg5 = (PyObject *) 0 ;
23764 PyObject *result = 0 ;
23765 void *argp1 = 0 ;
23766 int res1 = 0 ;
23767 PyObject * obj0 = 0 ;
23768 PyObject * obj1 = 0 ;
23769 PyObject * obj2 = 0 ;
23770 PyObject * obj3 = 0 ;
23771 PyObject * obj4 = 0 ;
23772 char * kwnames[] = {
23773 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23774 };
23775
23776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23778 if (!SWIG_IsOK(res1)) {
23779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23780 }
23781 arg1 = reinterpret_cast< wxDC * >(argp1);
23782 arg2 = obj1;
23783 arg3 = obj2;
23784 arg4 = obj3;
23785 arg5 = obj4;
23786 {
23787 PyThreadState* __tstate = wxPyBeginAllowThreads();
23788 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23789 wxPyEndAllowThreads(__tstate);
23790 if (PyErr_Occurred()) SWIG_fail;
23791 }
23792 resultobj = result;
23793 return resultobj;
23794fail:
23795 return NULL;
23796}
23797
23798
23799SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23800 PyObject *obj;
23801 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23802 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23803 return SWIG_Py_Void();
23804}
23805
70d7cb34
RD
23806SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23807 PyObject *resultobj = 0;
23808 wxDC *arg1 = 0 ;
23809 wxColour *arg2 = 0 ;
23810 wxDCTextColourChanger *result = 0 ;
23811 void *argp1 = 0 ;
23812 int res1 = 0 ;
23813 wxColour temp2 ;
23814 PyObject * obj0 = 0 ;
23815 PyObject * obj1 = 0 ;
23816 char * kwnames[] = {
23817 (char *) "dc",(char *) "col", NULL
23818 };
23819
23820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23821 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23822 if (!SWIG_IsOK(res1)) {
23823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23824 }
23825 if (!argp1) {
23826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23827 }
23828 arg1 = reinterpret_cast< wxDC * >(argp1);
23829 {
23830 arg2 = &temp2;
23831 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23832 }
23833 {
23834 PyThreadState* __tstate = wxPyBeginAllowThreads();
23835 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23836 wxPyEndAllowThreads(__tstate);
23837 if (PyErr_Occurred()) SWIG_fail;
23838 }
23839 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23840 return resultobj;
23841fail:
23842 return NULL;
23843}
23844
23845
23846SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23847 PyObject *resultobj = 0;
23848 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23849 void *argp1 = 0 ;
23850 int res1 = 0 ;
23851 PyObject *swig_obj[1] ;
23852
23853 if (!args) SWIG_fail;
23854 swig_obj[0] = args;
23855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23856 if (!SWIG_IsOK(res1)) {
23857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23858 }
23859 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23860 {
23861 PyThreadState* __tstate = wxPyBeginAllowThreads();
23862 delete arg1;
23863
23864 wxPyEndAllowThreads(__tstate);
23865 if (PyErr_Occurred()) SWIG_fail;
23866 }
23867 resultobj = SWIG_Py_Void();
23868 return resultobj;
23869fail:
23870 return NULL;
23871}
23872
23873
23874SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23875 PyObject *obj;
23876 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23877 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
23878 return SWIG_Py_Void();
23879}
23880
23881SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23882 return SWIG_Python_InitShadowInstance(args);
23883}
23884
23885SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23886 PyObject *resultobj = 0;
23887 wxDC *arg1 = 0 ;
23888 wxPen *arg2 = 0 ;
23889 wxDCPenChanger *result = 0 ;
23890 void *argp1 = 0 ;
23891 int res1 = 0 ;
23892 void *argp2 = 0 ;
23893 int res2 = 0 ;
23894 PyObject * obj0 = 0 ;
23895 PyObject * obj1 = 0 ;
23896 char * kwnames[] = {
23897 (char *) "dc",(char *) "pen", NULL
23898 };
23899
23900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23901 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23902 if (!SWIG_IsOK(res1)) {
23903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23904 }
23905 if (!argp1) {
23906 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23907 }
23908 arg1 = reinterpret_cast< wxDC * >(argp1);
23909 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23910 if (!SWIG_IsOK(res2)) {
23911 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23912 }
23913 if (!argp2) {
23914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23915 }
23916 arg2 = reinterpret_cast< wxPen * >(argp2);
23917 {
23918 PyThreadState* __tstate = wxPyBeginAllowThreads();
23919 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23920 wxPyEndAllowThreads(__tstate);
23921 if (PyErr_Occurred()) SWIG_fail;
23922 }
23923 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23924 return resultobj;
23925fail:
23926 return NULL;
23927}
23928
23929
23930SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23931 PyObject *resultobj = 0;
23932 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23933 void *argp1 = 0 ;
23934 int res1 = 0 ;
23935 PyObject *swig_obj[1] ;
23936
23937 if (!args) SWIG_fail;
23938 swig_obj[0] = args;
23939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23940 if (!SWIG_IsOK(res1)) {
23941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23942 }
23943 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23944 {
23945 PyThreadState* __tstate = wxPyBeginAllowThreads();
23946 delete arg1;
23947
23948 wxPyEndAllowThreads(__tstate);
23949 if (PyErr_Occurred()) SWIG_fail;
23950 }
23951 resultobj = SWIG_Py_Void();
23952 return resultobj;
23953fail:
23954 return NULL;
23955}
23956
23957
23958SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23959 PyObject *obj;
23960 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23961 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
23962 return SWIG_Py_Void();
23963}
23964
23965SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23966 return SWIG_Python_InitShadowInstance(args);
23967}
23968
23969SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23970 PyObject *resultobj = 0;
23971 wxDC *arg1 = 0 ;
23972 wxBrush *arg2 = 0 ;
23973 wxDCBrushChanger *result = 0 ;
23974 void *argp1 = 0 ;
23975 int res1 = 0 ;
23976 void *argp2 = 0 ;
23977 int res2 = 0 ;
23978 PyObject * obj0 = 0 ;
23979 PyObject * obj1 = 0 ;
23980 char * kwnames[] = {
23981 (char *) "dc",(char *) "brush", NULL
23982 };
23983
23984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23985 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23986 if (!SWIG_IsOK(res1)) {
23987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23988 }
23989 if (!argp1) {
23990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23991 }
23992 arg1 = reinterpret_cast< wxDC * >(argp1);
23993 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
23994 if (!SWIG_IsOK(res2)) {
23995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23996 }
23997 if (!argp2) {
23998 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23999 }
24000 arg2 = reinterpret_cast< wxBrush * >(argp2);
24001 {
24002 PyThreadState* __tstate = wxPyBeginAllowThreads();
24003 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
24004 wxPyEndAllowThreads(__tstate);
24005 if (PyErr_Occurred()) SWIG_fail;
24006 }
24007 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
24008 return resultobj;
24009fail:
24010 return NULL;
24011}
24012
24013
24014SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24015 PyObject *resultobj = 0;
24016 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
24017 void *argp1 = 0 ;
24018 int res1 = 0 ;
24019 PyObject *swig_obj[1] ;
24020
24021 if (!args) SWIG_fail;
24022 swig_obj[0] = args;
24023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
24024 if (!SWIG_IsOK(res1)) {
24025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
24026 }
24027 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
24028 {
24029 PyThreadState* __tstate = wxPyBeginAllowThreads();
24030 delete arg1;
24031
24032 wxPyEndAllowThreads(__tstate);
24033 if (PyErr_Occurred()) SWIG_fail;
24034 }
24035 resultobj = SWIG_Py_Void();
24036 return resultobj;
24037fail:
24038 return NULL;
24039}
24040
24041
24042SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24043 PyObject *obj;
24044 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24045 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
24046 return SWIG_Py_Void();
24047}
24048
24049SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24050 return SWIG_Python_InitShadowInstance(args);
24051}
24052
24053SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24054 PyObject *resultobj = 0;
24055 wxDC *arg1 = 0 ;
24056 wxRegion *arg2 = 0 ;
24057 wxDCClipper *result = 0 ;
24058 void *argp1 = 0 ;
24059 int res1 = 0 ;
24060 void *argp2 = 0 ;
24061 int res2 = 0 ;
24062
24063 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24065 if (!SWIG_IsOK(res1)) {
24066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24067 }
24068 if (!argp1) {
24069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24070 }
24071 arg1 = reinterpret_cast< wxDC * >(argp1);
24072 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
24073 if (!SWIG_IsOK(res2)) {
24074 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24075 }
24076 if (!argp2) {
24077 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24078 }
24079 arg2 = reinterpret_cast< wxRegion * >(argp2);
24080 {
24081 PyThreadState* __tstate = wxPyBeginAllowThreads();
24082 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
24083 wxPyEndAllowThreads(__tstate);
24084 if (PyErr_Occurred()) SWIG_fail;
24085 }
24086 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24087 return resultobj;
24088fail:
24089 return NULL;
24090}
24091
24092
24093SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24094 PyObject *resultobj = 0;
24095 wxDC *arg1 = 0 ;
24096 wxRect *arg2 = 0 ;
24097 wxDCClipper *result = 0 ;
24098 void *argp1 = 0 ;
24099 int res1 = 0 ;
24100 wxRect temp2 ;
24101
24102 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24104 if (!SWIG_IsOK(res1)) {
24105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24106 }
24107 if (!argp1) {
24108 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24109 }
24110 arg1 = reinterpret_cast< wxDC * >(argp1);
24111 {
24112 arg2 = &temp2;
24113 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
24114 }
24115 {
24116 PyThreadState* __tstate = wxPyBeginAllowThreads();
24117 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
24118 wxPyEndAllowThreads(__tstate);
24119 if (PyErr_Occurred()) SWIG_fail;
24120 }
24121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24122 return resultobj;
24123fail:
24124 return NULL;
24125}
24126
24127
24128SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24129 PyObject *resultobj = 0;
24130 wxDC *arg1 = 0 ;
24131 int arg2 ;
24132 int arg3 ;
24133 int arg4 ;
24134 int arg5 ;
24135 wxDCClipper *result = 0 ;
24136 void *argp1 = 0 ;
24137 int res1 = 0 ;
24138 int val2 ;
24139 int ecode2 = 0 ;
24140 int val3 ;
24141 int ecode3 = 0 ;
24142 int val4 ;
24143 int ecode4 = 0 ;
24144 int val5 ;
24145 int ecode5 = 0 ;
24146
24147 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
24148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24149 if (!SWIG_IsOK(res1)) {
24150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24151 }
24152 if (!argp1) {
24153 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24154 }
24155 arg1 = reinterpret_cast< wxDC * >(argp1);
24156 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24157 if (!SWIG_IsOK(ecode2)) {
24158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
24159 }
24160 arg2 = static_cast< int >(val2);
24161 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24162 if (!SWIG_IsOK(ecode3)) {
24163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
24164 }
24165 arg3 = static_cast< int >(val3);
24166 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
24167 if (!SWIG_IsOK(ecode4)) {
24168 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
24169 }
24170 arg4 = static_cast< int >(val4);
24171 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
24172 if (!SWIG_IsOK(ecode5)) {
24173 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
24174 }
24175 arg5 = static_cast< int >(val5);
24176 {
24177 PyThreadState* __tstate = wxPyBeginAllowThreads();
24178 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
24179 wxPyEndAllowThreads(__tstate);
24180 if (PyErr_Occurred()) SWIG_fail;
24181 }
24182 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24183 return resultobj;
24184fail:
24185 return NULL;
24186}
24187
24188
24189SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
24190 int argc;
24191 PyObject *argv[6];
24192
24193 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
24194 --argc;
24195 if (argc == 2) {
24196 int _v = 0;
24197 {
24198 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
24199 _v = SWIG_CheckState(res);
24200 }
24201 if (!_v) goto check_1;
24202 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
24203 }
24204check_1:
24205
24206 if (argc == 2) {
24207 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
24208 }
24209 if (argc == 5) {
24210 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
24211 }
24212
24213fail:
24214 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
24215 return NULL;
24216}
24217
24218
24219SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24220 PyObject *resultobj = 0;
24221 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
24222 void *argp1 = 0 ;
24223 int res1 = 0 ;
24224 PyObject *swig_obj[1] ;
24225
24226 if (!args) SWIG_fail;
24227 swig_obj[0] = args;
24228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
24229 if (!SWIG_IsOK(res1)) {
24230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
24231 }
24232 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
24233 {
24234 PyThreadState* __tstate = wxPyBeginAllowThreads();
24235 delete arg1;
24236
24237 wxPyEndAllowThreads(__tstate);
24238 if (PyErr_Occurred()) SWIG_fail;
24239 }
24240 resultobj = SWIG_Py_Void();
24241 return resultobj;
24242fail:
24243 return NULL;
24244}
24245
24246
24247SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24248 PyObject *obj;
24249 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24250 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
24251 return SWIG_Py_Void();
24252}
24253
24254SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24255 return SWIG_Python_InitShadowInstance(args);
24256}
24257
24f6c4e8
RD
24258SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24259 PyObject *resultobj = 0;
24260 wxScreenDC *result = 0 ;
24261
24262 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24263 {
24264 if (!wxPyCheckForApp()) SWIG_fail;
24265 PyThreadState* __tstate = wxPyBeginAllowThreads();
24266 result = (wxScreenDC *)new wxScreenDC();
24267 wxPyEndAllowThreads(__tstate);
24268 if (PyErr_Occurred()) SWIG_fail;
24269 }
24270 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24271 return resultobj;
24272fail:
24273 return NULL;
24274}
24275
24276
24277SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24278 PyObject *resultobj = 0;
24279 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24280 wxWindow *arg2 = (wxWindow *) 0 ;
24281 bool result;
24282 void *argp1 = 0 ;
24283 int res1 = 0 ;
24284 void *argp2 = 0 ;
24285 int res2 = 0 ;
24286 PyObject * obj0 = 0 ;
24287 PyObject * obj1 = 0 ;
24288 char * kwnames[] = {
24289 (char *) "self",(char *) "window", NULL
24290 };
24291
24292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24294 if (!SWIG_IsOK(res1)) {
24295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24296 }
24297 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24298 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24299 if (!SWIG_IsOK(res2)) {
24300 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24301 }
24302 arg2 = reinterpret_cast< wxWindow * >(argp2);
24303 {
24304 PyThreadState* __tstate = wxPyBeginAllowThreads();
24305 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24306 wxPyEndAllowThreads(__tstate);
24307 if (PyErr_Occurred()) SWIG_fail;
24308 }
24309 {
24310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24311 }
24312 return resultobj;
24313fail:
24314 return NULL;
24315}
24316
24317
24318SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24319 PyObject *resultobj = 0;
24320 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24321 wxRect *arg2 = (wxRect *) NULL ;
24322 bool result;
24323 void *argp1 = 0 ;
24324 int res1 = 0 ;
24325 void *argp2 = 0 ;
24326 int res2 = 0 ;
24327 PyObject * obj0 = 0 ;
24328 PyObject * obj1 = 0 ;
24329 char * kwnames[] = {
24330 (char *) "self",(char *) "rect", NULL
24331 };
24332
24333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24335 if (!SWIG_IsOK(res1)) {
24336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24337 }
24338 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24339 if (obj1) {
24340 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24341 if (!SWIG_IsOK(res2)) {
24342 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24343 }
24344 arg2 = reinterpret_cast< wxRect * >(argp2);
24345 }
24346 {
24347 PyThreadState* __tstate = wxPyBeginAllowThreads();
24348 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24349 wxPyEndAllowThreads(__tstate);
24350 if (PyErr_Occurred()) SWIG_fail;
24351 }
24352 {
24353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24354 }
24355 return resultobj;
24356fail:
24357 return NULL;
24358}
24359
24360
24361SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24362 PyObject *resultobj = 0;
24363 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24364 bool result;
24365 void *argp1 = 0 ;
24366 int res1 = 0 ;
24367 PyObject *swig_obj[1] ;
24368
24369 if (!args) SWIG_fail;
24370 swig_obj[0] = args;
24371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24372 if (!SWIG_IsOK(res1)) {
24373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24374 }
24375 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24376 {
24377 PyThreadState* __tstate = wxPyBeginAllowThreads();
24378 result = (bool)(arg1)->EndDrawingOnTop();
24379 wxPyEndAllowThreads(__tstate);
24380 if (PyErr_Occurred()) SWIG_fail;
24381 }
24382 {
24383 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24384 }
24385 return resultobj;
24386fail:
24387 return NULL;
24388}
24389
24390
24391SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24392 PyObject *obj;
24393 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24394 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24395 return SWIG_Py_Void();
24396}
24397
24398SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24399 return SWIG_Python_InitShadowInstance(args);
24400}
24401
24402SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24403 PyObject *resultobj = 0;
24404 wxWindow *arg1 = (wxWindow *) 0 ;
24405 wxWindowDC *result = 0 ;
24406 void *argp1 = 0 ;
24407 int res1 = 0 ;
24408 PyObject * obj0 = 0 ;
24409 char * kwnames[] = {
24410 (char *) "win", NULL
24411 };
24412
24413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24415 if (!SWIG_IsOK(res1)) {
24416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24417 }
24418 arg1 = reinterpret_cast< wxWindow * >(argp1);
24419 {
24420 if (!wxPyCheckForApp()) SWIG_fail;
24421 PyThreadState* __tstate = wxPyBeginAllowThreads();
24422 result = (wxWindowDC *)new wxWindowDC(arg1);
24423 wxPyEndAllowThreads(__tstate);
24424 if (PyErr_Occurred()) SWIG_fail;
24425 }
24426 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24427 return resultobj;
24428fail:
24429 return NULL;
24430}
24431
24432
24433SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24434 PyObject *obj;
24435 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24436 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24437 return SWIG_Py_Void();
24438}
24439
24440SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24441 return SWIG_Python_InitShadowInstance(args);
24442}
24443
24444SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24445 PyObject *resultobj = 0;
24446 wxWindow *arg1 = (wxWindow *) 0 ;
24447 wxClientDC *result = 0 ;
24448 void *argp1 = 0 ;
24449 int res1 = 0 ;
24450 PyObject * obj0 = 0 ;
24451 char * kwnames[] = {
24452 (char *) "win", NULL
24453 };
24454
24455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24457 if (!SWIG_IsOK(res1)) {
24458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24459 }
24460 arg1 = reinterpret_cast< wxWindow * >(argp1);
24461 {
24462 if (!wxPyCheckForApp()) SWIG_fail;
24463 PyThreadState* __tstate = wxPyBeginAllowThreads();
24464 result = (wxClientDC *)new wxClientDC(arg1);
24465 wxPyEndAllowThreads(__tstate);
24466 if (PyErr_Occurred()) SWIG_fail;
24467 }
24468 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24469 return resultobj;
24470fail:
24471 return NULL;
24472}
24473
24474
24475SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24476 PyObject *obj;
24477 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24478 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24479 return SWIG_Py_Void();
24480}
24481
24482SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24483 return SWIG_Python_InitShadowInstance(args);
24484}
24485
24486SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24487 PyObject *resultobj = 0;
24488 wxWindow *arg1 = (wxWindow *) 0 ;
24489 wxPaintDC *result = 0 ;
24490 void *argp1 = 0 ;
24491 int res1 = 0 ;
24492 PyObject * obj0 = 0 ;
24493 char * kwnames[] = {
24494 (char *) "win", NULL
24495 };
24496
24497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24499 if (!SWIG_IsOK(res1)) {
24500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24501 }
24502 arg1 = reinterpret_cast< wxWindow * >(argp1);
24503 {
24504 if (!wxPyCheckForApp()) SWIG_fail;
24505 PyThreadState* __tstate = wxPyBeginAllowThreads();
24506 result = (wxPaintDC *)new wxPaintDC(arg1);
24507 wxPyEndAllowThreads(__tstate);
24508 if (PyErr_Occurred()) SWIG_fail;
24509 }
24510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24511 return resultobj;
24512fail:
24513 return NULL;
24514}
24515
24516
24517SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24518 PyObject *obj;
24519 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24520 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24521 return SWIG_Py_Void();
24522}
24523
24524SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24525 return SWIG_Python_InitShadowInstance(args);
24526}
24527
26c4d26f
RD
24528SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24529 PyObject *resultobj = 0;
24530 wxBitmap &arg1_defvalue = wxNullBitmap ;
24531 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24532 wxMemoryDC *result = 0 ;
24533 void *argp1 = 0 ;
24534 int res1 = 0 ;
24535 PyObject * obj0 = 0 ;
24536 char * kwnames[] = {
24537 (char *) "bitmap", NULL
24538 };
24539
24540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24541 if (obj0) {
24542 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24543 if (!SWIG_IsOK(res1)) {
24544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24545 }
24546 if (!argp1) {
24547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24548 }
24549 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24550 }
24551 {
24552 if (!wxPyCheckForApp()) SWIG_fail;
24553 PyThreadState* __tstate = wxPyBeginAllowThreads();
24554 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24555 wxPyEndAllowThreads(__tstate);
24556 if (PyErr_Occurred()) SWIG_fail;
24557 }
24558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24559 return resultobj;
24560fail:
24561 return NULL;
24562}
24563
24564
24565SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24566 PyObject *resultobj = 0;
24567 wxDC *arg1 = (wxDC *) 0 ;
24568 wxMemoryDC *result = 0 ;
24569 void *argp1 = 0 ;
24570 int res1 = 0 ;
24571 PyObject * obj0 = 0 ;
24572 char * kwnames[] = {
24573 (char *) "oldDC", NULL
24574 };
24575
24576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24578 if (!SWIG_IsOK(res1)) {
24579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24580 }
24581 arg1 = reinterpret_cast< wxDC * >(argp1);
24582 {
24583 if (!wxPyCheckForApp()) SWIG_fail;
24584 PyThreadState* __tstate = wxPyBeginAllowThreads();
24585 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24586 wxPyEndAllowThreads(__tstate);
24587 if (PyErr_Occurred()) SWIG_fail;
24588 }
24589 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24590 return resultobj;
24591fail:
24592 return NULL;
24593}
24594
24595
24596SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24597 PyObject *resultobj = 0;
24598 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24599 wxBitmap *arg2 = 0 ;
24600 void *argp1 = 0 ;
24601 int res1 = 0 ;
24602 void *argp2 = 0 ;
24603 int res2 = 0 ;
24604 PyObject * obj0 = 0 ;
24605 PyObject * obj1 = 0 ;
24606 char * kwnames[] = {
24607 (char *) "self",(char *) "bitmap", NULL
24608 };
24609
24610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24612 if (!SWIG_IsOK(res1)) {
24613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24614 }
24615 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24616 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24617 if (!SWIG_IsOK(res2)) {
24618 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24619 }
24620 if (!argp2) {
24621 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24622 }
24623 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24624 {
24625 PyThreadState* __tstate = wxPyBeginAllowThreads();
24626 (arg1)->SelectObject(*arg2);
24627 wxPyEndAllowThreads(__tstate);
24628 if (PyErr_Occurred()) SWIG_fail;
24629 }
24630 resultobj = SWIG_Py_Void();
24631 return resultobj;
24632fail:
24633 return NULL;
24634}
24635
24636
24637SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24638 PyObject *resultobj = 0;
24639 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24640 wxBitmap *arg2 = 0 ;
24641 void *argp1 = 0 ;
24642 int res1 = 0 ;
24643 void *argp2 = 0 ;
24644 int res2 = 0 ;
24645 PyObject * obj0 = 0 ;
24646 PyObject * obj1 = 0 ;
24647 char * kwnames[] = {
24648 (char *) "self",(char *) "bmp", NULL
24649 };
24650
24651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24653 if (!SWIG_IsOK(res1)) {
24654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24655 }
24656 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24657 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24658 if (!SWIG_IsOK(res2)) {
24659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24660 }
24661 if (!argp2) {
24662 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24663 }
24664 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24665 {
24666 PyThreadState* __tstate = wxPyBeginAllowThreads();
24667 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
24668 wxPyEndAllowThreads(__tstate);
24669 if (PyErr_Occurred()) SWIG_fail;
24670 }
24671 resultobj = SWIG_Py_Void();
24672 return resultobj;
24673fail:
24674 return NULL;
24675}
24676
24677
24678SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24679 PyObject *obj;
24680 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24681 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24682 return SWIG_Py_Void();
24683}
24684
24685SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24686 return SWIG_Python_InitShadowInstance(args);
24687}
24688
1bd55598
RD
24689SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24690 PyObject *resultobj = 0;
24691 wxDC *arg1 = (wxDC *) 0 ;
b6df5cf9 24692 wxBitmap &arg2_defvalue = wxNullBitmap ;
1bd55598
RD
24693 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24694 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24695 wxBufferedDC *result = 0 ;
24696 void *argp1 = 0 ;
24697 int res1 = 0 ;
24698 void *argp2 = 0 ;
24699 int res2 = 0 ;
24700 int val3 ;
24701 int ecode3 = 0 ;
24702
24703 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24705 if (!SWIG_IsOK(res1)) {
24706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24707 }
24708 arg1 = reinterpret_cast< wxDC * >(argp1);
24709 if (swig_obj[1]) {
b6df5cf9 24710 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
1bd55598 24711 if (!SWIG_IsOK(res2)) {
b6df5cf9 24712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24713 }
1bd55598 24714 if (!argp2) {
b6df5cf9 24715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24716 }
1bd55598
RD
24717 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24718 }
24719 if (swig_obj[2]) {
24720 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24721 if (!SWIG_IsOK(ecode3)) {
24722 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24723 }
24724 arg3 = static_cast< int >(val3);
24725 }
24726 {
24727 if (!wxPyCheckForApp()) SWIG_fail;
24728 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 24729 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
1bd55598
RD
24730 wxPyEndAllowThreads(__tstate);
24731 if (PyErr_Occurred()) SWIG_fail;
24732 }
24733 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24734 return resultobj;
24735fail:
24736 return NULL;
24737}
24738
24739
24740SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24741 PyObject *resultobj = 0;
24742 wxDC *arg1 = (wxDC *) 0 ;
24743 wxSize *arg2 = 0 ;
24744 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24745 wxBufferedDC *result = 0 ;
24746 void *argp1 = 0 ;
24747 int res1 = 0 ;
24748 wxSize temp2 ;
24749 int val3 ;
24750 int ecode3 = 0 ;
24751
24752 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24753 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24754 if (!SWIG_IsOK(res1)) {
24755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24756 }
24757 arg1 = reinterpret_cast< wxDC * >(argp1);
24758 {
24759 arg2 = &temp2;
24760 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24761 }
24762 if (swig_obj[2]) {
24763 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24764 if (!SWIG_IsOK(ecode3)) {
24765 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24766 }
24767 arg3 = static_cast< int >(val3);
24768 }
24769 {
24770 if (!wxPyCheckForApp()) SWIG_fail;
24771 PyThreadState* __tstate = wxPyBeginAllowThreads();
24772 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24773 wxPyEndAllowThreads(__tstate);
24774 if (PyErr_Occurred()) SWIG_fail;
24775 }
24776 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24777 return resultobj;
24778fail:
24779 return NULL;
24780}
24781
24782
24783SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24784 int argc;
8e99bda9 24785 PyObject *argv[4];
1bd55598 24786
8e99bda9 24787 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
1bd55598
RD
24788 --argc;
24789 if ((argc >= 1) && (argc <= 3)) {
24790 int _v = 0;
24791 if (argc > 1) {
24792 {
b6df5cf9
RD
24793 void *vptr = 0;
24794 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
1bd55598
RD
24795 _v = SWIG_CheckState(res);
24796 }
24797 if (!_v) goto check_1;
36ed4f51 24798 }
1bd55598
RD
24799 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24800 }
24801check_1:
24802
24803 if ((argc >= 2) && (argc <= 3)) {
24804 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24805 }
24806
24807fail:
24808 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24809 return NULL;
24810}
24811
24812
24813SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24814 PyObject *resultobj = 0;
24815 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24816 void *argp1 = 0 ;
24817 int res1 = 0 ;
24818 PyObject *swig_obj[1] ;
24819
24820 if (!args) SWIG_fail;
24821 swig_obj[0] = args;
24822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24823 if (!SWIG_IsOK(res1)) {
24824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24825 }
24826 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24827 {
24828 PyThreadState* __tstate = wxPyBeginAllowThreads();
24829 delete arg1;
24830
24831 wxPyEndAllowThreads(__tstate);
24832 if (PyErr_Occurred()) SWIG_fail;
24833 }
24834 resultobj = SWIG_Py_Void();
24835 return resultobj;
24836fail:
24837 return NULL;
24838}
24839
24840
24841SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24842 PyObject *resultobj = 0;
24843 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24844 void *argp1 = 0 ;
24845 int res1 = 0 ;
24846 PyObject *swig_obj[1] ;
24847
24848 if (!args) SWIG_fail;
24849 swig_obj[0] = args;
24850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24851 if (!SWIG_IsOK(res1)) {
24852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24853 }
24854 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24855 {
24856 PyThreadState* __tstate = wxPyBeginAllowThreads();
24857 (arg1)->UnMask();
24858 wxPyEndAllowThreads(__tstate);
24859 if (PyErr_Occurred()) SWIG_fail;
24860 }
24861 resultobj = SWIG_Py_Void();
24862 return resultobj;
24863fail:
24864 return NULL;
24865}
24866
24867
b6df5cf9
RD
24868SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24869 PyObject *resultobj = 0;
24870 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24871 int arg2 ;
24872 void *argp1 = 0 ;
24873 int res1 = 0 ;
24874 int val2 ;
24875 int ecode2 = 0 ;
24876 PyObject * obj0 = 0 ;
24877 PyObject * obj1 = 0 ;
24878 char * kwnames[] = {
24879 (char *) "self",(char *) "style", NULL
24880 };
24881
24882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
24883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24884 if (!SWIG_IsOK(res1)) {
24885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24886 }
24887 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24888 ecode2 = SWIG_AsVal_int(obj1, &val2);
24889 if (!SWIG_IsOK(ecode2)) {
24890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
24891 }
24892 arg2 = static_cast< int >(val2);
24893 {
24894 PyThreadState* __tstate = wxPyBeginAllowThreads();
24895 (arg1)->SetStyle(arg2);
24896 wxPyEndAllowThreads(__tstate);
24897 if (PyErr_Occurred()) SWIG_fail;
24898 }
24899 resultobj = SWIG_Py_Void();
24900 return resultobj;
24901fail:
24902 return NULL;
24903}
24904
24905
24906SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24907 PyObject *resultobj = 0;
24908 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24909 int result;
24910 void *argp1 = 0 ;
24911 int res1 = 0 ;
24912 PyObject *swig_obj[1] ;
24913
24914 if (!args) SWIG_fail;
24915 swig_obj[0] = args;
24916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24917 if (!SWIG_IsOK(res1)) {
24918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
24919 }
24920 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24921 {
24922 PyThreadState* __tstate = wxPyBeginAllowThreads();
24923 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
24924 wxPyEndAllowThreads(__tstate);
24925 if (PyErr_Occurred()) SWIG_fail;
24926 }
24927 resultobj = SWIG_From_int(static_cast< int >(result));
24928 return resultobj;
24929fail:
24930 return NULL;
24931}
24932
24933
1bd55598
RD
24934SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24935 PyObject *obj;
24936 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24937 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24938 return SWIG_Py_Void();
24939}
24940
24941SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24942 return SWIG_Python_InitShadowInstance(args);
24943}
24944
24945SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24946 PyObject *resultobj = 0;
24947 wxWindow *arg1 = (wxWindow *) 0 ;
b6df5cf9 24948 wxBitmap &arg2_defvalue = wxNullBitmap ;
1bd55598
RD
24949 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24950 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24951 wxBufferedPaintDC *result = 0 ;
24952 void *argp1 = 0 ;
24953 int res1 = 0 ;
24954 void *argp2 = 0 ;
24955 int res2 = 0 ;
24956 int val3 ;
24957 int ecode3 = 0 ;
24958 PyObject * obj0 = 0 ;
24959 PyObject * obj1 = 0 ;
24960 PyObject * obj2 = 0 ;
24961 char * kwnames[] = {
24962 (char *) "window",(char *) "buffer",(char *) "style", NULL
24963 };
24964
24965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24967 if (!SWIG_IsOK(res1)) {
24968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24969 }
24970 arg1 = reinterpret_cast< wxWindow * >(argp1);
24971 if (obj1) {
b6df5cf9 24972 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
1bd55598 24973 if (!SWIG_IsOK(res2)) {
b6df5cf9 24974 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24975 }
1bd55598 24976 if (!argp2) {
b6df5cf9 24977 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24978 }
1bd55598
RD
24979 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24980 }
24981 if (obj2) {
24982 ecode3 = SWIG_AsVal_int(obj2, &val3);
24983 if (!SWIG_IsOK(ecode3)) {
24984 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24985 }
24986 arg3 = static_cast< int >(val3);
24987 }
24988 {
24989 if (!wxPyCheckForApp()) SWIG_fail;
24990 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 24991 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
1bd55598
RD
24992 wxPyEndAllowThreads(__tstate);
24993 if (PyErr_Occurred()) SWIG_fail;
24994 }
24995 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24996 return resultobj;
24997fail:
24998 return NULL;
24999}
25000
25001
25002SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25003 PyObject *obj;
25004 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25005 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
25006 return SWIG_Py_Void();
25007}
25008
25009SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25010 return SWIG_Python_InitShadowInstance(args);
25011}
25012
24f6c4e8 25013SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
25014 PyObject *resultobj = 0;
25015 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 25016 wxAutoBufferedPaintDC *result = 0 ;
1bd55598
RD
25017 void *argp1 = 0 ;
25018 int res1 = 0 ;
25019 PyObject * obj0 = 0 ;
25020 char * kwnames[] = {
25021 (char *) "win", NULL
25022 };
25023
24f6c4e8 25024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
1bd55598
RD
25025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25026 if (!SWIG_IsOK(res1)) {
24f6c4e8 25027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
1bd55598
RD
25028 }
25029 arg1 = reinterpret_cast< wxWindow * >(argp1);
25030 {
1bd55598 25031 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 25032 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
1bd55598
RD
25033 wxPyEndAllowThreads(__tstate);
25034 if (PyErr_Occurred()) SWIG_fail;
25035 }
24f6c4e8 25036 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
1bd55598
RD
25037 return resultobj;
25038fail:
25039 return NULL;
25040}
25041
25042
24f6c4e8 25043SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
25044 PyObject *obj;
25045 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 25046 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
1bd55598
RD
25047 return SWIG_Py_Void();
25048}
25049
24f6c4e8 25050SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
25051 return SWIG_Python_InitShadowInstance(args);
25052}
25053
8e99bda9
RD
25054SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25055 PyObject *resultobj = 0;
25056 wxWindow *arg1 = (wxWindow *) 0 ;
25057 wxDC *result = 0 ;
25058 void *argp1 = 0 ;
25059 int res1 = 0 ;
25060 PyObject * obj0 = 0 ;
25061 char * kwnames[] = {
25062 (char *) "window", NULL
25063 };
25064
25065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
25066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25067 if (!SWIG_IsOK(res1)) {
25068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
25069 }
25070 arg1 = reinterpret_cast< wxWindow * >(argp1);
25071 {
25072 PyThreadState* __tstate = wxPyBeginAllowThreads();
25073 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
25074 wxPyEndAllowThreads(__tstate);
25075 if (PyErr_Occurred()) SWIG_fail;
25076 }
25077 {
25078 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
25079 }
25080 return resultobj;
25081fail:
25082 return NULL;
25083}
25084
25085
1bd55598
RD
25086SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25087 PyObject *resultobj = 0;
25088 wxDC *arg1 = 0 ;
25089 bool arg2 ;
25090 wxMirrorDC *result = 0 ;
25091 void *argp1 = 0 ;
25092 int res1 = 0 ;
25093 bool val2 ;
25094 int ecode2 = 0 ;
25095 PyObject * obj0 = 0 ;
25096 PyObject * obj1 = 0 ;
25097 char * kwnames[] = {
25098 (char *) "dc",(char *) "mirror", NULL
25099 };
25100
25101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
25102 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
25103 if (!SWIG_IsOK(res1)) {
25104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25105 }
25106 if (!argp1) {
25107 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25108 }
25109 arg1 = reinterpret_cast< wxDC * >(argp1);
25110 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25111 if (!SWIG_IsOK(ecode2)) {
25112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
25113 }
25114 arg2 = static_cast< bool >(val2);
25115 {
25116 if (!wxPyCheckForApp()) SWIG_fail;
25117 PyThreadState* __tstate = wxPyBeginAllowThreads();
25118 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
25119 wxPyEndAllowThreads(__tstate);
25120 if (PyErr_Occurred()) SWIG_fail;
25121 }
25122 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
25123 return resultobj;
25124fail:
25125 return NULL;
25126}
25127
25128
25129SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25130 PyObject *obj;
25131 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25132 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
25133 return SWIG_Py_Void();
25134}
25135
25136SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25137 return SWIG_Python_InitShadowInstance(args);
25138}
25139
25140SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25141 PyObject *resultobj = 0;
25142 wxPrintData *arg1 = 0 ;
25143 wxPostScriptDC *result = 0 ;
25144 void *argp1 = 0 ;
25145 int res1 = 0 ;
25146 PyObject * obj0 = 0 ;
25147 char * kwnames[] = {
25148 (char *) "printData", NULL
25149 };
25150
25151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
25152 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25153 if (!SWIG_IsOK(res1)) {
25154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25155 }
25156 if (!argp1) {
25157 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25158 }
25159 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25160 {
25161 if (!wxPyCheckForApp()) SWIG_fail;
25162 PyThreadState* __tstate = wxPyBeginAllowThreads();
25163 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
25164 wxPyEndAllowThreads(__tstate);
25165 if (PyErr_Occurred()) SWIG_fail;
25166 }
25167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
25168 return resultobj;
25169fail:
25170 return NULL;
25171}
25172
25173
25174SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25175 PyObject *resultobj = 0;
25176 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25177 wxPrintData *result = 0 ;
25178 void *argp1 = 0 ;
25179 int res1 = 0 ;
25180 PyObject *swig_obj[1] ;
25181
25182 if (!args) SWIG_fail;
25183 swig_obj[0] = args;
25184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25185 if (!SWIG_IsOK(res1)) {
25186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25187 }
25188 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25189 {
25190 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 25191 {
1bd55598
RD
25192 wxPrintData &_result_ref = (arg1)->GetPrintData();
25193 result = (wxPrintData *) &_result_ref;
e2950dbb 25194 }
1bd55598
RD
25195 wxPyEndAllowThreads(__tstate);
25196 if (PyErr_Occurred()) SWIG_fail;
25197 }
25198 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
25199 return resultobj;
25200fail:
25201 return NULL;
25202}
25203
25204
25205SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25206 PyObject *resultobj = 0;
25207 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25208 wxPrintData *arg2 = 0 ;
25209 void *argp1 = 0 ;
25210 int res1 = 0 ;
25211 void *argp2 = 0 ;
25212 int res2 = 0 ;
25213 PyObject * obj0 = 0 ;
25214 PyObject * obj1 = 0 ;
25215 char * kwnames[] = {
25216 (char *) "self",(char *) "data", NULL
25217 };
25218
25219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
25220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25221 if (!SWIG_IsOK(res1)) {
25222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25223 }
25224 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25225 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
25226 if (!SWIG_IsOK(res2)) {
25227 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25228 }
25229 if (!argp2) {
25230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25231 }
25232 arg2 = reinterpret_cast< wxPrintData * >(argp2);
25233 {
25234 PyThreadState* __tstate = wxPyBeginAllowThreads();
25235 (arg1)->SetPrintData((wxPrintData const &)*arg2);
25236 wxPyEndAllowThreads(__tstate);
25237 if (PyErr_Occurred()) SWIG_fail;
25238 }
25239 resultobj = SWIG_Py_Void();
25240 return resultobj;
25241fail:
25242 return NULL;
25243}
25244
25245
25246SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25247 PyObject *resultobj = 0;
25248 int arg1 ;
25249 int val1 ;
25250 int ecode1 = 0 ;
25251 PyObject * obj0 = 0 ;
25252 char * kwnames[] = {
25253 (char *) "ppi", NULL
25254 };
25255
25256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
25257 ecode1 = SWIG_AsVal_int(obj0, &val1);
25258 if (!SWIG_IsOK(ecode1)) {
25259 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
25260 }
25261 arg1 = static_cast< int >(val1);
25262 {
25263 PyThreadState* __tstate = wxPyBeginAllowThreads();
25264 wxPostScriptDC::SetResolution(arg1);
25265 wxPyEndAllowThreads(__tstate);
25266 if (PyErr_Occurred()) SWIG_fail;
25267 }
25268 resultobj = SWIG_Py_Void();
25269 return resultobj;
25270fail:
25271 return NULL;
25272}
25273
25274
25275SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25276 PyObject *resultobj = 0;
25277 int result;
25278
25279 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
25280 {
25281 PyThreadState* __tstate = wxPyBeginAllowThreads();
25282 result = (int)wxPostScriptDC::GetResolution();
25283 wxPyEndAllowThreads(__tstate);
25284 if (PyErr_Occurred()) SWIG_fail;
25285 }
25286 resultobj = SWIG_From_int(static_cast< int >(result));
25287 return resultobj;
25288fail:
25289 return NULL;
25290}
25291
25292
25293SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25294 PyObject *obj;
25295 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25296 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
25297 return SWIG_Py_Void();
25298}
25299
25300SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25301 return SWIG_Python_InitShadowInstance(args);
25302}
25303
25304SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25305 PyObject *resultobj = 0;
25306 wxString const &arg1_defvalue = wxPyEmptyString ;
25307 wxString *arg1 = (wxString *) &arg1_defvalue ;
25308 wxMetaFile *result = 0 ;
25309 bool temp1 = false ;
25310 PyObject * obj0 = 0 ;
25311 char * kwnames[] = {
25312 (char *) "filename", NULL
25313 };
25314
25315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
25316 if (obj0) {
36ed4f51 25317 {
1bd55598
RD
25318 arg1 = wxString_in_helper(obj0);
25319 if (arg1 == NULL) SWIG_fail;
25320 temp1 = true;
36ed4f51 25321 }
1bd55598
RD
25322 }
25323 {
25324 if (!wxPyCheckForApp()) SWIG_fail;
25325 PyThreadState* __tstate = wxPyBeginAllowThreads();
25326 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25327 wxPyEndAllowThreads(__tstate);
25328 if (PyErr_Occurred()) SWIG_fail;
25329 }
25330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25331 {
25332 if (temp1)
25333 delete arg1;
25334 }
25335 return resultobj;
25336fail:
25337 {
25338 if (temp1)
25339 delete arg1;
25340 }
25341 return NULL;
25342}
25343
25344
25345SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25346 PyObject *resultobj = 0;
25347 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25348 void *argp1 = 0 ;
25349 int res1 = 0 ;
25350 PyObject *swig_obj[1] ;
25351
25352 if (!args) SWIG_fail;
25353 swig_obj[0] = args;
25354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
25355 if (!SWIG_IsOK(res1)) {
25356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25357 }
25358 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25359 {
25360 PyThreadState* __tstate = wxPyBeginAllowThreads();
25361 delete arg1;
25362
25363 wxPyEndAllowThreads(__tstate);
25364 if (PyErr_Occurred()) SWIG_fail;
25365 }
25366 resultobj = SWIG_Py_Void();
25367 return resultobj;
25368fail:
25369 return NULL;
25370}
25371
25372
b39fe951 25373SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
25374 PyObject *resultobj = 0;
25375 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25376 bool result;
25377 void *argp1 = 0 ;
25378 int res1 = 0 ;
25379 PyObject *swig_obj[1] ;
25380
25381 if (!args) SWIG_fail;
25382 swig_obj[0] = args;
25383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25384 if (!SWIG_IsOK(res1)) {
b39fe951 25385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
1bd55598
RD
25386 }
25387 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25388 {
25389 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 25390 result = (bool)(arg1)->IsOk();
1bd55598
RD
25391 wxPyEndAllowThreads(__tstate);
25392 if (PyErr_Occurred()) SWIG_fail;
25393 }
25394 {
25395 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25396 }
25397 return resultobj;
25398fail:
25399 return NULL;
25400}
25401
25402
25403SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25404 PyObject *resultobj = 0;
25405 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25406 int arg2 = (int) 0 ;
25407 int arg3 = (int) 0 ;
25408 bool result;
25409 void *argp1 = 0 ;
25410 int res1 = 0 ;
25411 int val2 ;
25412 int ecode2 = 0 ;
25413 int val3 ;
25414 int ecode3 = 0 ;
25415 PyObject * obj0 = 0 ;
25416 PyObject * obj1 = 0 ;
25417 PyObject * obj2 = 0 ;
25418 char * kwnames[] = {
25419 (char *) "self",(char *) "width",(char *) "height", NULL
25420 };
25421
25422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25424 if (!SWIG_IsOK(res1)) {
25425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25426 }
25427 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25428 if (obj1) {
25429 ecode2 = SWIG_AsVal_int(obj1, &val2);
25430 if (!SWIG_IsOK(ecode2)) {
25431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25432 }
25433 arg2 = static_cast< int >(val2);
25434 }
25435 if (obj2) {
25436 ecode3 = SWIG_AsVal_int(obj2, &val3);
25437 if (!SWIG_IsOK(ecode3)) {
25438 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25439 }
25440 arg3 = static_cast< int >(val3);
25441 }
25442 {
25443 PyThreadState* __tstate = wxPyBeginAllowThreads();
25444 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25445 wxPyEndAllowThreads(__tstate);
25446 if (PyErr_Occurred()) SWIG_fail;
25447 }
25448 {
25449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25450 }
25451 return resultobj;
25452fail:
25453 return NULL;
25454}
25455
25456
25457SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25458 PyObject *resultobj = 0;
25459 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25460 wxSize result;
25461 void *argp1 = 0 ;
25462 int res1 = 0 ;
25463 PyObject *swig_obj[1] ;
25464
25465 if (!args) SWIG_fail;
25466 swig_obj[0] = args;
25467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25468 if (!SWIG_IsOK(res1)) {
25469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25470 }
25471 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25472 {
25473 PyThreadState* __tstate = wxPyBeginAllowThreads();
25474 result = (arg1)->GetSize();
25475 wxPyEndAllowThreads(__tstate);
25476 if (PyErr_Occurred()) SWIG_fail;
25477 }
25478 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25479 return resultobj;
25480fail:
25481 return NULL;
25482}
25483
25484
25485SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25486 PyObject *resultobj = 0;
25487 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25488 int result;
25489 void *argp1 = 0 ;
25490 int res1 = 0 ;
25491 PyObject *swig_obj[1] ;
25492
25493 if (!args) SWIG_fail;
25494 swig_obj[0] = args;
25495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25496 if (!SWIG_IsOK(res1)) {
25497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25498 }
25499 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25500 {
25501 PyThreadState* __tstate = wxPyBeginAllowThreads();
25502 result = (int)(arg1)->GetWidth();
25503 wxPyEndAllowThreads(__tstate);
25504 if (PyErr_Occurred()) SWIG_fail;
25505 }
25506 resultobj = SWIG_From_int(static_cast< int >(result));
25507 return resultobj;
25508fail:
25509 return NULL;
25510}
25511
25512
25513SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25514 PyObject *resultobj = 0;
25515 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25516 int result;
25517 void *argp1 = 0 ;
25518 int res1 = 0 ;
25519 PyObject *swig_obj[1] ;
25520
25521 if (!args) SWIG_fail;
25522 swig_obj[0] = args;
25523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25524 if (!SWIG_IsOK(res1)) {
25525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25526 }
25527 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25528 {
25529 PyThreadState* __tstate = wxPyBeginAllowThreads();
25530 result = (int)(arg1)->GetHeight();
25531 wxPyEndAllowThreads(__tstate);
25532 if (PyErr_Occurred()) SWIG_fail;
25533 }
25534 resultobj = SWIG_From_int(static_cast< int >(result));
25535 return resultobj;
25536fail:
25537 return NULL;
25538}
25539
25540
25541SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25542 PyObject *obj;
25543 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25544 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25545 return SWIG_Py_Void();
25546}
25547
25548SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25549 return SWIG_Python_InitShadowInstance(args);
25550}
25551
25552SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25553 PyObject *resultobj = 0;
25554 wxString const &arg1_defvalue = wxPyEmptyString ;
25555 wxString *arg1 = (wxString *) &arg1_defvalue ;
25556 int arg2 = (int) 0 ;
25557 int arg3 = (int) 0 ;
25558 wxString const &arg4_defvalue = wxPyEmptyString ;
25559 wxString *arg4 = (wxString *) &arg4_defvalue ;
25560 wxMetaFileDC *result = 0 ;
25561 bool temp1 = false ;
25562 int val2 ;
25563 int ecode2 = 0 ;
25564 int val3 ;
25565 int ecode3 = 0 ;
25566 bool temp4 = false ;
25567 PyObject * obj0 = 0 ;
25568 PyObject * obj1 = 0 ;
25569 PyObject * obj2 = 0 ;
25570 PyObject * obj3 = 0 ;
25571 char * kwnames[] = {
25572 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25573 };
25574
25575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25576 if (obj0) {
36ed4f51 25577 {
1bd55598
RD
25578 arg1 = wxString_in_helper(obj0);
25579 if (arg1 == NULL) SWIG_fail;
25580 temp1 = true;
36ed4f51 25581 }
1bd55598
RD
25582 }
25583 if (obj1) {
25584 ecode2 = SWIG_AsVal_int(obj1, &val2);
25585 if (!SWIG_IsOK(ecode2)) {
25586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25587 }
25588 arg2 = static_cast< int >(val2);
25589 }
25590 if (obj2) {
25591 ecode3 = SWIG_AsVal_int(obj2, &val3);
25592 if (!SWIG_IsOK(ecode3)) {
25593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25594 }
25595 arg3 = static_cast< int >(val3);
25596 }
25597 if (obj3) {
36ed4f51 25598 {
1bd55598
RD
25599 arg4 = wxString_in_helper(obj3);
25600 if (arg4 == NULL) SWIG_fail;
25601 temp4 = true;
36ed4f51 25602 }
1bd55598
RD
25603 }
25604 {
25605 if (!wxPyCheckForApp()) SWIG_fail;
25606 PyThreadState* __tstate = wxPyBeginAllowThreads();
25607 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25608 wxPyEndAllowThreads(__tstate);
25609 if (PyErr_Occurred()) SWIG_fail;
25610 }
25611 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25612 {
25613 if (temp1)
25614 delete arg1;
25615 }
25616 {
25617 if (temp4)
25618 delete arg4;
25619 }
25620 return resultobj;
25621fail:
25622 {
25623 if (temp1)
25624 delete arg1;
25625 }
25626 {
25627 if (temp4)
25628 delete arg4;
25629 }
25630 return NULL;
25631}
25632
25633
25634SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25635 PyObject *resultobj = 0;
25636 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25637 wxMetaFile *result = 0 ;
25638 void *argp1 = 0 ;
25639 int res1 = 0 ;
25640 PyObject *swig_obj[1] ;
25641
25642 if (!args) SWIG_fail;
25643 swig_obj[0] = args;
25644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25645 if (!SWIG_IsOK(res1)) {
25646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25647 }
25648 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25649 {
25650 PyThreadState* __tstate = wxPyBeginAllowThreads();
25651 result = (wxMetaFile *)(arg1)->Close();
25652 wxPyEndAllowThreads(__tstate);
25653 if (PyErr_Occurred()) SWIG_fail;
25654 }
25655 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25656 return resultobj;
25657fail:
25658 return NULL;
25659}
25660
25661
25662SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25663 PyObject *obj;
25664 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25665 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25666 return SWIG_Py_Void();
25667}
25668
25669SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25670 return SWIG_Python_InitShadowInstance(args);
25671}
25672
25673SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25674 PyObject *resultobj = 0;
25675 wxPrintData *arg1 = 0 ;
25676 wxPrinterDC *result = 0 ;
25677 void *argp1 = 0 ;
25678 int res1 = 0 ;
25679 PyObject * obj0 = 0 ;
25680 char * kwnames[] = {
25681 (char *) "printData", NULL
25682 };
25683
25684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25685 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25686 if (!SWIG_IsOK(res1)) {
25687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25688 }
25689 if (!argp1) {
25690 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25691 }
25692 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25693 {
25694 if (!wxPyCheckForApp()) SWIG_fail;
25695 PyThreadState* __tstate = wxPyBeginAllowThreads();
25696 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25697 wxPyEndAllowThreads(__tstate);
25698 if (PyErr_Occurred()) SWIG_fail;
25699 }
25700 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25701 return resultobj;
25702fail:
25703 return NULL;
25704}
25705
25706
25707SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25708 PyObject *obj;
25709 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25710 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25711 return SWIG_Py_Void();
25712}
25713
25714SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25715 return SWIG_Python_InitShadowInstance(args);
25716}
25717
70d7cb34
RD
25718SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25719 PyObject *resultobj = 0;
25720 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25721 wxGraphicsObject *result = 0 ;
25722 void *argp1 = 0 ;
25723 int res1 = 0 ;
25724 PyObject * obj0 = 0 ;
25725 char * kwnames[] = {
25726 (char *) "renderer", NULL
25727 };
25728
25729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25730 if (obj0) {
25731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25732 if (!SWIG_IsOK(res1)) {
25733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25734 }
25735 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25736 }
25737 {
25738 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25739 if (PyErr_Occurred()) SWIG_fail;
25740 }
25741 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25742 return resultobj;
25743fail:
25744 return NULL;
25745}
25746
25747
25748SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25749 PyObject *resultobj = 0;
25750 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25751 void *argp1 = 0 ;
25752 int res1 = 0 ;
25753 PyObject *swig_obj[1] ;
25754
25755 if (!args) SWIG_fail;
25756 swig_obj[0] = args;
25757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25758 if (!SWIG_IsOK(res1)) {
25759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25760 }
25761 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25762 {
25763 delete arg1;
25764
25765 if (PyErr_Occurred()) SWIG_fail;
25766 }
25767 resultobj = SWIG_Py_Void();
25768 return resultobj;
25769fail:
25770 return NULL;
25771}
25772
25773
25774SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25775 PyObject *resultobj = 0;
25776 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25777 bool result;
25778 void *argp1 = 0 ;
25779 int res1 = 0 ;
25780 PyObject *swig_obj[1] ;
25781
25782 if (!args) SWIG_fail;
25783 swig_obj[0] = args;
25784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25785 if (!SWIG_IsOK(res1)) {
25786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25787 }
25788 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25789 {
25790 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25791 if (PyErr_Occurred()) SWIG_fail;
25792 }
25793 {
25794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25795 }
25796 return resultobj;
25797fail:
25798 return NULL;
25799}
25800
25801
25802SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25803 PyObject *resultobj = 0;
25804 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25805 wxGraphicsRenderer *result = 0 ;
25806 void *argp1 = 0 ;
25807 int res1 = 0 ;
25808 PyObject *swig_obj[1] ;
25809
25810 if (!args) SWIG_fail;
25811 swig_obj[0] = args;
25812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25813 if (!SWIG_IsOK(res1)) {
25814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25815 }
25816 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25817 {
25818 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25819 if (PyErr_Occurred()) SWIG_fail;
25820 }
25821 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25822 return resultobj;
25823fail:
25824 return NULL;
25825}
25826
25827
25828SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25829 PyObject *obj;
25830 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25831 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25832 return SWIG_Py_Void();
25833}
25834
25835SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25836 return SWIG_Python_InitShadowInstance(args);
25837}
25838
25839SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25840 PyObject *resultobj = 0;
25841 wxGraphicsPen *result = 0 ;
25842
25843 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25844 {
25845 result = (wxGraphicsPen *)new wxGraphicsPen();
25846 if (PyErr_Occurred()) SWIG_fail;
25847 }
25848 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25849 return resultobj;
25850fail:
25851 return NULL;
25852}
25853
25854
25855SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25856 PyObject *resultobj = 0;
25857 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25858 void *argp1 = 0 ;
25859 int res1 = 0 ;
25860 PyObject *swig_obj[1] ;
25861
25862 if (!args) SWIG_fail;
25863 swig_obj[0] = args;
25864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25865 if (!SWIG_IsOK(res1)) {
25866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25867 }
25868 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25869 {
25870 delete arg1;
25871
25872 if (PyErr_Occurred()) SWIG_fail;
25873 }
25874 resultobj = SWIG_Py_Void();
25875 return resultobj;
25876fail:
25877 return NULL;
25878}
25879
25880
25881SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25882 PyObject *obj;
25883 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25884 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25885 return SWIG_Py_Void();
25886}
25887
25888SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25889 return SWIG_Python_InitShadowInstance(args);
25890}
25891
25892SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25893 PyObject *resultobj = 0;
25894 wxGraphicsBrush *result = 0 ;
25895
25896 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25897 {
25898 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25899 if (PyErr_Occurred()) SWIG_fail;
25900 }
25901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25902 return resultobj;
25903fail:
25904 return NULL;
25905}
25906
25907
25908SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25909 PyObject *resultobj = 0;
25910 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25911 void *argp1 = 0 ;
25912 int res1 = 0 ;
25913 PyObject *swig_obj[1] ;
25914
25915 if (!args) SWIG_fail;
25916 swig_obj[0] = args;
25917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25918 if (!SWIG_IsOK(res1)) {
25919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25920 }
25921 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25922 {
25923 delete arg1;
25924
25925 if (PyErr_Occurred()) SWIG_fail;
25926 }
25927 resultobj = SWIG_Py_Void();
25928 return resultobj;
25929fail:
25930 return NULL;
25931}
25932
25933
25934SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25935 PyObject *obj;
25936 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25937 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25938 return SWIG_Py_Void();
25939}
25940
25941SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25942 return SWIG_Python_InitShadowInstance(args);
25943}
25944
25945SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25946 PyObject *resultobj = 0;
25947 wxGraphicsFont *result = 0 ;
25948
25949 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25950 {
25951 result = (wxGraphicsFont *)new wxGraphicsFont();
25952 if (PyErr_Occurred()) SWIG_fail;
25953 }
25954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25955 return resultobj;
25956fail:
25957 return NULL;
25958}
25959
25960
25961SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25962 PyObject *resultobj = 0;
25963 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25964 void *argp1 = 0 ;
25965 int res1 = 0 ;
25966 PyObject *swig_obj[1] ;
25967
25968 if (!args) SWIG_fail;
25969 swig_obj[0] = args;
25970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25971 if (!SWIG_IsOK(res1)) {
25972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25973 }
25974 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25975 {
25976 delete arg1;
25977
25978 if (PyErr_Occurred()) SWIG_fail;
25979 }
25980 resultobj = SWIG_Py_Void();
25981 return resultobj;
25982fail:
25983 return NULL;
25984}
25985
25986
25987SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25988 PyObject *obj;
25989 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25990 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25991 return SWIG_Py_Void();
25992}
25993
25994SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25995 return SWIG_Python_InitShadowInstance(args);
25996}
25997
5c8c7dd3 25998SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 25999 PyObject *resultobj = 0;
5c8c7dd3 26000 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
1bd55598
RD
26001 void *argp1 = 0 ;
26002 int res1 = 0 ;
26003 PyObject *swig_obj[1] ;
26004
26005 if (!args) SWIG_fail;
26006 swig_obj[0] = args;
5c8c7dd3 26007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
1bd55598 26008 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 26010 }
5c8c7dd3 26011 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
1bd55598 26012 {
1bd55598
RD
26013 delete arg1;
26014
1bd55598
RD
26015 if (PyErr_Occurred()) SWIG_fail;
26016 }
26017 resultobj = SWIG_Py_Void();
26018 return resultobj;
26019fail:
26020 return NULL;
26021}
26022
26023
5c8c7dd3 26024SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26025 PyObject *resultobj = 0;
5c8c7dd3
RD
26026 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26027 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
26028 void *argp1 = 0 ;
26029 int res1 = 0 ;
5c8c7dd3
RD
26030 void *argp2 = 0 ;
26031 int res2 = 0 ;
26032 PyObject * obj0 = 0 ;
26033 PyObject * obj1 = 0 ;
26034 char * kwnames[] = {
26035 (char *) "self",(char *) "t", NULL
26036 };
70d7cb34 26037
5c8c7dd3
RD
26038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
26039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26040 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26042 }
5c8c7dd3
RD
26043 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26044 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26045 if (!SWIG_IsOK(res2)) {
26046 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26047 }
26048 if (!argp2) {
26049 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26050 }
26051 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 26052 {
5c8c7dd3 26053 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
26054 if (PyErr_Occurred()) SWIG_fail;
26055 }
5c8c7dd3 26056 resultobj = SWIG_Py_Void();
70d7cb34
RD
26057 return resultobj;
26058fail:
26059 return NULL;
26060}
26061
26062
5c8c7dd3 26063SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26064 PyObject *resultobj = 0;
5c8c7dd3
RD
26065 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26066 wxDouble arg2 = (wxDouble) 1.0 ;
26067 wxDouble arg3 = (wxDouble) 0.0 ;
26068 wxDouble arg4 = (wxDouble) 0.0 ;
26069 wxDouble arg5 = (wxDouble) 1.0 ;
26070 wxDouble arg6 = (wxDouble) 0.0 ;
26071 wxDouble arg7 = (wxDouble) 0.0 ;
70d7cb34
RD
26072 void *argp1 = 0 ;
26073 int res1 = 0 ;
5c8c7dd3
RD
26074 double val2 ;
26075 int ecode2 = 0 ;
26076 double val3 ;
26077 int ecode3 = 0 ;
26078 double val4 ;
26079 int ecode4 = 0 ;
26080 double val5 ;
26081 int ecode5 = 0 ;
26082 double val6 ;
26083 int ecode6 = 0 ;
26084 double val7 ;
26085 int ecode7 = 0 ;
26086 PyObject * obj0 = 0 ;
26087 PyObject * obj1 = 0 ;
26088 PyObject * obj2 = 0 ;
26089 PyObject * obj3 = 0 ;
26090 PyObject * obj4 = 0 ;
26091 PyObject * obj5 = 0 ;
26092 PyObject * obj6 = 0 ;
26093 char * kwnames[] = {
26094 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
26095 };
70d7cb34 26096
5c8c7dd3
RD
26097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26099 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26101 }
5c8c7dd3
RD
26102 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26103 if (obj1) {
26104 ecode2 = SWIG_AsVal_double(obj1, &val2);
26105 if (!SWIG_IsOK(ecode2)) {
26106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
26107 }
26108 arg2 = static_cast< wxDouble >(val2);
26109 }
26110 if (obj2) {
26111 ecode3 = SWIG_AsVal_double(obj2, &val3);
26112 if (!SWIG_IsOK(ecode3)) {
26113 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
26114 }
26115 arg3 = static_cast< wxDouble >(val3);
26116 }
26117 if (obj3) {
26118 ecode4 = SWIG_AsVal_double(obj3, &val4);
26119 if (!SWIG_IsOK(ecode4)) {
26120 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
26121 }
26122 arg4 = static_cast< wxDouble >(val4);
26123 }
26124 if (obj4) {
26125 ecode5 = SWIG_AsVal_double(obj4, &val5);
26126 if (!SWIG_IsOK(ecode5)) {
26127 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
26128 }
26129 arg5 = static_cast< wxDouble >(val5);
26130 }
26131 if (obj5) {
26132 ecode6 = SWIG_AsVal_double(obj5, &val6);
26133 if (!SWIG_IsOK(ecode6)) {
26134 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
26135 }
26136 arg6 = static_cast< wxDouble >(val6);
26137 }
26138 if (obj6) {
26139 ecode7 = SWIG_AsVal_double(obj6, &val7);
26140 if (!SWIG_IsOK(ecode7)) {
26141 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
26142 }
26143 arg7 = static_cast< wxDouble >(val7);
70d7cb34
RD
26144 }
26145 {
5c8c7dd3 26146 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26147 if (PyErr_Occurred()) SWIG_fail;
26148 }
26149 resultobj = SWIG_Py_Void();
26150 return resultobj;
26151fail:
26152 return NULL;
26153}
26154
26155
248802d0
RD
26156SWIGINTERN PyObject *_wrap_GraphicsMatrix_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26157 PyObject *resultobj = 0;
26158 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26159 wxDouble *arg2 = (wxDouble *) 0 ;
26160 wxDouble *arg3 = (wxDouble *) 0 ;
26161 wxDouble *arg4 = (wxDouble *) 0 ;
26162 wxDouble *arg5 = (wxDouble *) 0 ;
26163 wxDouble *arg6 = (wxDouble *) 0 ;
26164 wxDouble *arg7 = (wxDouble *) 0 ;
26165 void *argp1 = 0 ;
26166 int res1 = 0 ;
26167 wxDouble temp2 ;
26168 int res2 = SWIG_TMPOBJ ;
26169 wxDouble temp3 ;
26170 int res3 = SWIG_TMPOBJ ;
26171 wxDouble temp4 ;
26172 int res4 = SWIG_TMPOBJ ;
26173 wxDouble temp5 ;
26174 int res5 = SWIG_TMPOBJ ;
26175 wxDouble temp6 ;
26176 int res6 = SWIG_TMPOBJ ;
26177 wxDouble temp7 ;
26178 int res7 = SWIG_TMPOBJ ;
26179 PyObject *swig_obj[1] ;
26180
26181 arg2 = &temp2;
26182 arg3 = &temp3;
26183 arg4 = &temp4;
26184 arg5 = &temp5;
26185 arg6 = &temp6;
26186 arg7 = &temp7;
26187 if (!args) SWIG_fail;
26188 swig_obj[0] = args;
26189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26190 if (!SWIG_IsOK(res1)) {
26191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Get" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26192 }
26193 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26194 {
26195 (arg1)->Get(arg2,arg3,arg4,arg5,arg6,arg7);
26196 if (PyErr_Occurred()) SWIG_fail;
26197 }
26198 resultobj = SWIG_Py_Void();
26199 if (SWIG_IsTmpObj(res2)) {
26200 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26201 } else {
26202 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26203 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26204 }
26205 if (SWIG_IsTmpObj(res3)) {
26206 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26207 } else {
26208 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26209 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26210 }
26211 if (SWIG_IsTmpObj(res4)) {
26212 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
26213 } else {
26214 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26215 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
26216 }
26217 if (SWIG_IsTmpObj(res5)) {
26218 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
26219 } else {
26220 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26221 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
26222 }
26223 if (SWIG_IsTmpObj(res6)) {
26224 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
26225 } else {
26226 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26227 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
26228 }
26229 if (SWIG_IsTmpObj(res7)) {
26230 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg7)));
26231 } else {
26232 int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26233 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
26234 }
26235 return resultobj;
26236fail:
26237 return NULL;
26238}
26239
26240
5c8c7dd3 26241SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 26242 PyObject *resultobj = 0;
5c8c7dd3 26243 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
1bd55598
RD
26244 void *argp1 = 0 ;
26245 int res1 = 0 ;
5c8c7dd3 26246 PyObject *swig_obj[1] ;
1bd55598 26247
5c8c7dd3
RD
26248 if (!args) SWIG_fail;
26249 swig_obj[0] = args;
26250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
1bd55598 26251 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 26253 }
5c8c7dd3 26254 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
1bd55598 26255 {
5c8c7dd3 26256 (arg1)->Invert();
1bd55598
RD
26257 if (PyErr_Occurred()) SWIG_fail;
26258 }
72ef6efb 26259 resultobj = SWIG_Py_Void();
1bd55598
RD
26260 return resultobj;
26261fail:
26262 return NULL;
26263}
26264
26265
5c8c7dd3 26266SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26267 PyObject *resultobj = 0;
5c8c7dd3
RD
26268 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26269 wxGraphicsMatrix *arg2 = 0 ;
26270 bool result;
70d7cb34
RD
26271 void *argp1 = 0 ;
26272 int res1 = 0 ;
5c8c7dd3
RD
26273 void *argp2 = 0 ;
26274 int res2 = 0 ;
26275 PyObject * obj0 = 0 ;
26276 PyObject * obj1 = 0 ;
26277 char * kwnames[] = {
26278 (char *) "self",(char *) "t", NULL
26279 };
70d7cb34 26280
5c8c7dd3
RD
26281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
26282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26283 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 26285 }
5c8c7dd3
RD
26286 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26287 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26288 if (!SWIG_IsOK(res2)) {
26289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26290 }
26291 if (!argp2) {
26292 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
70d7cb34 26293 }
5c8c7dd3 26294 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 26295 {
5c8c7dd3 26296 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
26297 if (PyErr_Occurred()) SWIG_fail;
26298 }
5c8c7dd3
RD
26299 {
26300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26301 }
70d7cb34
RD
26302 return resultobj;
26303fail:
26304 return NULL;
26305}
26306
26307
5c8c7dd3
RD
26308SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26309 PyObject *resultobj = 0;
26310 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26311 bool result;
26312 void *argp1 = 0 ;
26313 int res1 = 0 ;
26314 PyObject *swig_obj[1] ;
70d7cb34 26315
5c8c7dd3
RD
26316 if (!args) SWIG_fail;
26317 swig_obj[0] = args;
26318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26319 if (!SWIG_IsOK(res1)) {
8f514ab4 26320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 26321 }
5c8c7dd3
RD
26322 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26323 {
8f514ab4 26324 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
5c8c7dd3 26325 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 26326 }
5c8c7dd3
RD
26327 {
26328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26329 }
26330 return resultobj;
70d7cb34 26331fail:
70d7cb34
RD
26332 return NULL;
26333}
26334
26335
5c8c7dd3 26336SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 26337 PyObject *resultobj = 0;
5c8c7dd3 26338 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
72ef6efb
RD
26339 wxDouble arg2 ;
26340 wxDouble arg3 ;
1bd55598
RD
26341 void *argp1 = 0 ;
26342 int res1 = 0 ;
72ef6efb
RD
26343 double val2 ;
26344 int ecode2 = 0 ;
26345 double val3 ;
26346 int ecode3 = 0 ;
5c8c7dd3
RD
26347 PyObject * obj0 = 0 ;
26348 PyObject * obj1 = 0 ;
26349 PyObject * obj2 = 0 ;
26350 char * kwnames[] = {
26351 (char *) "self",(char *) "dx",(char *) "dy", NULL
26352 };
72ef6efb 26353
5c8c7dd3
RD
26354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 26356 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
72ef6efb 26358 }
5c8c7dd3
RD
26359 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26360 ecode2 = SWIG_AsVal_double(obj1, &val2);
72ef6efb 26361 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
26363 }
26364 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26365 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 26366 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26367 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
26368 }
26369 arg3 = static_cast< wxDouble >(val3);
72ef6efb 26370 {
5c8c7dd3 26371 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
26372 if (PyErr_Occurred()) SWIG_fail;
26373 }
26374 resultobj = SWIG_Py_Void();
26375 return resultobj;
26376fail:
26377 return NULL;
26378}
26379
26380
5c8c7dd3 26381SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26382 PyObject *resultobj = 0;
5c8c7dd3
RD
26383 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26384 wxDouble arg2 ;
26385 wxDouble arg3 ;
70d7cb34
RD
26386 void *argp1 = 0 ;
26387 int res1 = 0 ;
5c8c7dd3
RD
26388 double val2 ;
26389 int ecode2 = 0 ;
26390 double val3 ;
26391 int ecode3 = 0 ;
26392 PyObject * obj0 = 0 ;
26393 PyObject * obj1 = 0 ;
26394 PyObject * obj2 = 0 ;
26395 char * kwnames[] = {
26396 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26397 };
70d7cb34 26398
5c8c7dd3
RD
26399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26401 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26403 }
5c8c7dd3
RD
26404 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26405 ecode2 = SWIG_AsVal_double(obj1, &val2);
26406 if (!SWIG_IsOK(ecode2)) {
26407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26408 }
26409 arg2 = static_cast< wxDouble >(val2);
26410 ecode3 = SWIG_AsVal_double(obj2, &val3);
26411 if (!SWIG_IsOK(ecode3)) {
26412 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26413 }
26414 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26415 {
5c8c7dd3 26416 (arg1)->Scale(arg2,arg3);
70d7cb34
RD
26417 if (PyErr_Occurred()) SWIG_fail;
26418 }
26419 resultobj = SWIG_Py_Void();
26420 return resultobj;
26421fail:
26422 return NULL;
26423}
26424
26425
5c8c7dd3 26426SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26427 PyObject *resultobj = 0;
5c8c7dd3
RD
26428 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26429 wxDouble arg2 ;
70d7cb34
RD
26430 void *argp1 = 0 ;
26431 int res1 = 0 ;
5c8c7dd3
RD
26432 double val2 ;
26433 int ecode2 = 0 ;
70d7cb34
RD
26434 PyObject * obj0 = 0 ;
26435 PyObject * obj1 = 0 ;
26436 char * kwnames[] = {
5c8c7dd3 26437 (char *) "self",(char *) "angle", NULL
70d7cb34
RD
26438 };
26439
5c8c7dd3
RD
26440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26442 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26444 }
5c8c7dd3
RD
26445 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26446 ecode2 = SWIG_AsVal_double(obj1, &val2);
26447 if (!SWIG_IsOK(ecode2)) {
26448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26449 }
26450 arg2 = static_cast< wxDouble >(val2);
70d7cb34 26451 {
5c8c7dd3 26452 (arg1)->Rotate(arg2);
70d7cb34
RD
26453 if (PyErr_Occurred()) SWIG_fail;
26454 }
26455 resultobj = SWIG_Py_Void();
26456 return resultobj;
26457fail:
26458 return NULL;
26459}
26460
26461
5c8c7dd3 26462SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 26463 PyObject *resultobj = 0;
5c8c7dd3
RD
26464 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26465 wxDouble *arg2 = (wxDouble *) 0 ;
26466 wxDouble *arg3 = (wxDouble *) 0 ;
72ef6efb
RD
26467 void *argp1 = 0 ;
26468 int res1 = 0 ;
5c8c7dd3
RD
26469 wxDouble temp2 ;
26470 int res2 = 0 ;
26471 wxDouble temp3 ;
26472 int res3 = 0 ;
26473 PyObject * obj0 = 0 ;
26474 PyObject * obj1 = 0 ;
26475 PyObject * obj2 = 0 ;
26476 char * kwnames[] = {
26477 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26478 };
72ef6efb 26479
5c8c7dd3
RD
26480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 26482 if (!SWIG_IsOK(res1)) {
8f514ab4 26483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
72ef6efb 26484 }
5c8c7dd3
RD
26485 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26486 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26487 double val;
26488 int ecode = SWIG_AsVal_double(obj1, &val);
26489 if (!SWIG_IsOK(ecode)) {
26490 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26491 }
26492 temp2 = static_cast< wxDouble >(val);
26493 arg2 = &temp2;
26494 res2 = SWIG_AddTmpMask(ecode);
26495 }
26496 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26497 double val;
26498 int ecode = SWIG_AsVal_double(obj2, &val);
26499 if (!SWIG_IsOK(ecode)) {
26500 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26501 }
26502 temp3 = static_cast< wxDouble >(val);
26503 arg3 = &temp3;
26504 res3 = SWIG_AddTmpMask(ecode);
26505 }
26506 {
8f514ab4 26507 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
72ef6efb
RD
26508 if (PyErr_Occurred()) SWIG_fail;
26509 }
26510 resultobj = SWIG_Py_Void();
5c8c7dd3
RD
26511 if (SWIG_IsTmpObj(res2)) {
26512 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26513 } else {
26514 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26515 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26516 }
26517 if (SWIG_IsTmpObj(res3)) {
26518 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26519 } else {
26520 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26521 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26522 }
72ef6efb
RD
26523 return resultobj;
26524fail:
26525 return NULL;
26526}
26527
26528
5c8c7dd3
RD
26529SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26530 PyObject *resultobj = 0;
26531 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26532 wxDouble *arg2 = (wxDouble *) 0 ;
26533 wxDouble *arg3 = (wxDouble *) 0 ;
26534 void *argp1 = 0 ;
26535 int res1 = 0 ;
26536 wxDouble temp2 ;
26537 int res2 = 0 ;
26538 wxDouble temp3 ;
26539 int res3 = 0 ;
26540 PyObject * obj0 = 0 ;
26541 PyObject * obj1 = 0 ;
26542 PyObject * obj2 = 0 ;
26543 char * kwnames[] = {
26544 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26545 };
26546
26547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26549 if (!SWIG_IsOK(res1)) {
8f514ab4 26550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
5c8c7dd3
RD
26551 }
26552 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26553 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26554 double val;
26555 int ecode = SWIG_AsVal_double(obj1, &val);
26556 if (!SWIG_IsOK(ecode)) {
26557 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26558 }
26559 temp2 = static_cast< wxDouble >(val);
26560 arg2 = &temp2;
26561 res2 = SWIG_AddTmpMask(ecode);
26562 }
26563 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26564 double val;
26565 int ecode = SWIG_AsVal_double(obj2, &val);
26566 if (!SWIG_IsOK(ecode)) {
26567 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26568 }
26569 temp3 = static_cast< wxDouble >(val);
26570 arg3 = &temp3;
26571 res3 = SWIG_AddTmpMask(ecode);
26572 }
26573 {
8f514ab4 26574 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
5c8c7dd3
RD
26575 if (PyErr_Occurred()) SWIG_fail;
26576 }
26577 resultobj = SWIG_Py_Void();
26578 if (SWIG_IsTmpObj(res2)) {
26579 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26580 } else {
26581 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26582 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26583 }
26584 if (SWIG_IsTmpObj(res3)) {
26585 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26586 } else {
26587 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26588 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26589 }
26590 return resultobj;
26591fail:
26592 return NULL;
26593}
26594
26595
26596SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26597 PyObject *resultobj = 0;
26598 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26599 void *result = 0 ;
26600 void *argp1 = 0 ;
26601 int res1 = 0 ;
26602 PyObject *swig_obj[1] ;
26603
26604 if (!args) SWIG_fail;
26605 swig_obj[0] = args;
26606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26607 if (!SWIG_IsOK(res1)) {
26608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26609 }
26610 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26611 {
26612 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26613 if (PyErr_Occurred()) SWIG_fail;
26614 }
26615 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26616 return resultobj;
26617fail:
26618 return NULL;
26619}
26620
26621
26622SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26623 PyObject *obj;
26624 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26625 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26626 return SWIG_Py_Void();
26627}
26628
26629SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
26630 PyObject *resultobj = 0;
26631 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
72ef6efb
RD
26632 void *argp1 = 0 ;
26633 int res1 = 0 ;
26634 PyObject *swig_obj[1] ;
26635
26636 if (!args) SWIG_fail;
26637 swig_obj[0] = args;
5c8c7dd3 26638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
72ef6efb 26639 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
72ef6efb
RD
26641 }
26642 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26643 {
5c8c7dd3
RD
26644 delete arg1;
26645
72ef6efb
RD
26646 if (PyErr_Occurred()) SWIG_fail;
26647 }
5c8c7dd3 26648 resultobj = SWIG_Py_Void();
70d7cb34
RD
26649 return resultobj;
26650fail:
26651 return NULL;
26652}
26653
26654
5c8c7dd3 26655SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26656 PyObject *resultobj = 0;
26657 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26658 wxDouble arg2 ;
26659 wxDouble arg3 ;
70d7cb34
RD
26660 void *argp1 = 0 ;
26661 int res1 = 0 ;
26662 double val2 ;
26663 int ecode2 = 0 ;
26664 double val3 ;
26665 int ecode3 = 0 ;
70d7cb34 26666
5c8c7dd3 26667 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
70d7cb34
RD
26668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26669 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26671 }
26672 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26673 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26674 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26675 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26676 }
26677 arg2 = static_cast< wxDouble >(val2);
26678 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26679 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26680 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26681 }
26682 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26683 {
5c8c7dd3 26684 (arg1)->MoveToPoint(arg2,arg3);
70d7cb34
RD
26685 if (PyErr_Occurred()) SWIG_fail;
26686 }
26687 resultobj = SWIG_Py_Void();
26688 return resultobj;
26689fail:
26690 return NULL;
26691}
26692
26693
5c8c7dd3 26694SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26695 PyObject *resultobj = 0;
26696 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26697 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26698 void *argp1 = 0 ;
26699 int res1 = 0 ;
26700 wxPoint2D temp2 ;
70d7cb34 26701
5c8c7dd3 26702 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
70d7cb34
RD
26703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26704 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26706 }
26707 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26708 {
26709 arg2 = &temp2;
26710 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26711 }
70d7cb34 26712 {
5c8c7dd3 26713 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26714 if (PyErr_Occurred()) SWIG_fail;
26715 }
26716 resultobj = SWIG_Py_Void();
26717 return resultobj;
26718fail:
26719 return NULL;
26720}
26721
26722
5c8c7dd3 26723SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
70d7cb34 26724 int argc;
5c8c7dd3 26725 PyObject *argv[4];
70d7cb34 26726
5c8c7dd3 26727 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
70d7cb34 26728 --argc;
5c8c7dd3
RD
26729 if (argc == 2) {
26730 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26731 }
5c8c7dd3
RD
26732 if (argc == 3) {
26733 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
70d7cb34
RD
26734 }
26735
26736fail:
5c8c7dd3 26737 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
70d7cb34
RD
26738 return NULL;
26739}
26740
26741
5c8c7dd3 26742SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26743 PyObject *resultobj = 0;
26744 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26745 wxDouble arg2 ;
26746 wxDouble arg3 ;
70d7cb34
RD
26747 void *argp1 = 0 ;
26748 int res1 = 0 ;
26749 double val2 ;
26750 int ecode2 = 0 ;
26751 double val3 ;
26752 int ecode3 = 0 ;
70d7cb34 26753
5c8c7dd3
RD
26754 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26756 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26758 }
26759 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26760 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26761 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26763 }
26764 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26765 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26766 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26768 }
26769 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26770 {
5c8c7dd3 26771 (arg1)->AddLineToPoint(arg2,arg3);
70d7cb34
RD
26772 if (PyErr_Occurred()) SWIG_fail;
26773 }
26774 resultobj = SWIG_Py_Void();
26775 return resultobj;
26776fail:
26777 return NULL;
26778}
26779
26780
5c8c7dd3 26781SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26782 PyObject *resultobj = 0;
26783 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26784 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26785 void *argp1 = 0 ;
26786 int res1 = 0 ;
5c8c7dd3 26787 wxPoint2D temp2 ;
70d7cb34 26788
5c8c7dd3
RD
26789 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26791 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26793 }
26794 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26795 {
5c8c7dd3
RD
26796 arg2 = &temp2;
26797 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26798 }
26799 {
26800 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26801 if (PyErr_Occurred()) SWIG_fail;
26802 }
26803 resultobj = SWIG_Py_Void();
26804 return resultobj;
26805fail:
26806 return NULL;
26807}
26808
26809
5c8c7dd3
RD
26810SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26811 int argc;
26812 PyObject *argv[4];
70d7cb34 26813
5c8c7dd3
RD
26814 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26815 --argc;
26816 if (argc == 2) {
26817 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
70d7cb34 26818 }
5c8c7dd3
RD
26819 if (argc == 3) {
26820 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
70d7cb34 26821 }
5c8c7dd3 26822
70d7cb34 26823fail:
5c8c7dd3 26824 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
70d7cb34
RD
26825 return NULL;
26826}
26827
26828
5c8c7dd3 26829SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26830 PyObject *resultobj = 0;
26831 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26832 wxDouble arg2 ;
26833 wxDouble arg3 ;
26834 wxDouble arg4 ;
26835 wxDouble arg5 ;
26836 wxDouble arg6 ;
5c8c7dd3 26837 wxDouble arg7 ;
70d7cb34
RD
26838 void *argp1 = 0 ;
26839 int res1 = 0 ;
26840 double val2 ;
26841 int ecode2 = 0 ;
26842 double val3 ;
26843 int ecode3 = 0 ;
26844 double val4 ;
26845 int ecode4 = 0 ;
26846 double val5 ;
26847 int ecode5 = 0 ;
26848 double val6 ;
26849 int ecode6 = 0 ;
5c8c7dd3
RD
26850 double val7 ;
26851 int ecode7 = 0 ;
70d7cb34 26852
5c8c7dd3
RD
26853 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26855 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26857 }
26858 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26859 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26860 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26861 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26862 }
26863 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26864 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26865 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26866 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26867 }
26868 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3 26869 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
70d7cb34 26870 if (!SWIG_IsOK(ecode4)) {
5c8c7dd3 26871 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
70d7cb34
RD
26872 }
26873 arg4 = static_cast< wxDouble >(val4);
5c8c7dd3 26874 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
70d7cb34 26875 if (!SWIG_IsOK(ecode5)) {
5c8c7dd3 26876 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
70d7cb34
RD
26877 }
26878 arg5 = static_cast< wxDouble >(val5);
5c8c7dd3 26879 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
70d7cb34 26880 if (!SWIG_IsOK(ecode6)) {
5c8c7dd3 26881 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
70d7cb34
RD
26882 }
26883 arg6 = static_cast< wxDouble >(val6);
5c8c7dd3
RD
26884 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26885 if (!SWIG_IsOK(ecode7)) {
26886 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26887 }
26888 arg7 = static_cast< wxDouble >(val7);
70d7cb34 26889 {
5c8c7dd3 26890 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26891 if (PyErr_Occurred()) SWIG_fail;
26892 }
26893 resultobj = SWIG_Py_Void();
26894 return resultobj;
26895fail:
26896 return NULL;
26897}
26898
26899
5c8c7dd3 26900SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26901 PyObject *resultobj = 0;
26902 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26903 wxPoint2D *arg2 = 0 ;
26904 wxPoint2D *arg3 = 0 ;
26905 wxPoint2D *arg4 = 0 ;
70d7cb34
RD
26906 void *argp1 = 0 ;
26907 int res1 = 0 ;
5c8c7dd3
RD
26908 wxPoint2D temp2 ;
26909 wxPoint2D temp3 ;
26910 wxPoint2D temp4 ;
70d7cb34 26911
5c8c7dd3
RD
26912 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26914 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26916 }
26917 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26918 {
5c8c7dd3
RD
26919 arg2 = &temp2;
26920 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26921 }
5c8c7dd3
RD
26922 {
26923 arg3 = &temp3;
26924 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
70d7cb34 26925 }
70d7cb34 26926 {
5c8c7dd3
RD
26927 arg4 = &temp4;
26928 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26929 }
26930 {
26931 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
70d7cb34
RD
26932 if (PyErr_Occurred()) SWIG_fail;
26933 }
26934 resultobj = SWIG_Py_Void();
26935 return resultobj;
26936fail:
26937 return NULL;
26938}
26939
26940
5c8c7dd3
RD
26941SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26942 int argc;
26943 PyObject *argv[8];
70d7cb34 26944
5c8c7dd3
RD
26945 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26946 --argc;
26947 if (argc == 4) {
26948 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26949 }
5c8c7dd3
RD
26950 if (argc == 7) {
26951 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
70d7cb34 26952 }
5c8c7dd3 26953
70d7cb34 26954fail:
5c8c7dd3 26955 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
70d7cb34
RD
26956 return NULL;
26957}
26958
26959
5c8c7dd3 26960SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34
RD
26961 PyObject *resultobj = 0;
26962 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26963 wxGraphicsPath *arg2 = 0 ;
70d7cb34
RD
26964 void *argp1 = 0 ;
26965 int res1 = 0 ;
5c8c7dd3
RD
26966 void *argp2 = 0 ;
26967 int res2 = 0 ;
70d7cb34
RD
26968 PyObject * obj0 = 0 ;
26969 PyObject * obj1 = 0 ;
26970 char * kwnames[] = {
5c8c7dd3 26971 (char *) "self",(char *) "path", NULL
70d7cb34
RD
26972 };
26973
5c8c7dd3 26974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
70d7cb34
RD
26975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26976 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26978 }
26979 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26980 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
70d7cb34 26981 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
26982 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26983 }
26984 if (!argp2) {
26985 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
70d7cb34 26986 }
5c8c7dd3 26987 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
70d7cb34 26988 {
5c8c7dd3 26989 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
70d7cb34
RD
26990 if (PyErr_Occurred()) SWIG_fail;
26991 }
26992 resultobj = SWIG_Py_Void();
26993 return resultobj;
26994fail:
26995 return NULL;
26996}
26997
26998
5c8c7dd3 26999SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27000 PyObject *resultobj = 0;
27001 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
70d7cb34
RD
27002 void *argp1 = 0 ;
27003 int res1 = 0 ;
5c8c7dd3 27004 PyObject *swig_obj[1] ;
70d7cb34 27005
5c8c7dd3
RD
27006 if (!args) SWIG_fail;
27007 swig_obj[0] = args;
27008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27009 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27011 }
27012 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27013 {
5c8c7dd3 27014 (arg1)->CloseSubpath();
70d7cb34
RD
27015 if (PyErr_Occurred()) SWIG_fail;
27016 }
27017 resultobj = SWIG_Py_Void();
27018 return resultobj;
27019fail:
27020 return NULL;
27021}
27022
27023
5c8c7dd3 27024SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27025 PyObject *resultobj = 0;
27026 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 27027 wxPoint2D result;
70d7cb34
RD
27028 void *argp1 = 0 ;
27029 int res1 = 0 ;
27030 PyObject *swig_obj[1] ;
27031
27032 if (!args) SWIG_fail;
27033 swig_obj[0] = args;
27034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27035 if (!SWIG_IsOK(res1)) {
8f514ab4 27036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34
RD
27037 }
27038 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27039 {
8f514ab4 27040 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
70d7cb34
RD
27041 if (PyErr_Occurred()) SWIG_fail;
27042 }
5c8c7dd3 27043 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
27044 return resultobj;
27045fail:
27046 return NULL;
27047}
27048
27049
5c8c7dd3 27050SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27051 PyObject *resultobj = 0;
27052 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27053 wxDouble arg2 ;
27054 wxDouble arg3 ;
5c8c7dd3
RD
27055 wxDouble arg4 ;
27056 wxDouble arg5 ;
27057 wxDouble arg6 ;
89d1e2ee 27058 bool arg7 = (bool) true ;
70d7cb34
RD
27059 void *argp1 = 0 ;
27060 int res1 = 0 ;
27061 double val2 ;
27062 int ecode2 = 0 ;
27063 double val3 ;
27064 int ecode3 = 0 ;
5c8c7dd3 27065 double val4 ;
70d7cb34 27066 int ecode4 = 0 ;
5c8c7dd3
RD
27067 double val5 ;
27068 int ecode5 = 0 ;
27069 double val6 ;
27070 int ecode6 = 0 ;
27071 bool val7 ;
27072 int ecode7 = 0 ;
70d7cb34 27073
89d1e2ee 27074 if ((nobjs < 6) || (nobjs > 7)) SWIG_fail;
70d7cb34
RD
27075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27076 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27078 }
27079 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27080 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27081 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 27082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
27083 }
27084 arg2 = static_cast< wxDouble >(val2);
27085 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27086 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 27087 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
27088 }
27089 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3
RD
27090 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27091 if (!SWIG_IsOK(ecode4)) {
27092 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27093 }
27094 arg4 = static_cast< wxDouble >(val4);
27095 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27096 if (!SWIG_IsOK(ecode5)) {
27097 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27098 }
27099 arg5 = static_cast< wxDouble >(val5);
27100 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27101 if (!SWIG_IsOK(ecode6)) {
27102 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
27103 }
27104 arg6 = static_cast< wxDouble >(val6);
89d1e2ee
RD
27105 if (swig_obj[6]) {
27106 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
27107 if (!SWIG_IsOK(ecode7)) {
27108 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
27109 }
27110 arg7 = static_cast< bool >(val7);
27111 }
70d7cb34 27112 {
5c8c7dd3 27113 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
27114 if (PyErr_Occurred()) SWIG_fail;
27115 }
5c8c7dd3 27116 resultobj = SWIG_Py_Void();
70d7cb34
RD
27117 return resultobj;
27118fail:
27119 return NULL;
27120}
27121
27122
5c8c7dd3 27123SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
27124 PyObject *resultobj = 0;
27125 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
27126 wxPoint2D *arg2 = 0 ;
27127 wxDouble arg3 ;
27128 wxDouble arg4 ;
27129 wxDouble arg5 ;
89d1e2ee 27130 bool arg6 = (bool) true ;
70d7cb34
RD
27131 void *argp1 = 0 ;
27132 int res1 = 0 ;
5c8c7dd3
RD
27133 wxPoint2D temp2 ;
27134 double val3 ;
70d7cb34 27135 int ecode3 = 0 ;
5c8c7dd3
RD
27136 double val4 ;
27137 int ecode4 = 0 ;
27138 double val5 ;
27139 int ecode5 = 0 ;
27140 bool val6 ;
27141 int ecode6 = 0 ;
70d7cb34 27142
89d1e2ee 27143 if ((nobjs < 5) || (nobjs > 6)) SWIG_fail;
70d7cb34
RD
27144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27145 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
27147 }
27148 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27149 {
5c8c7dd3
RD
27150 arg2 = &temp2;
27151 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 27152 }
5c8c7dd3
RD
27153 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27154 if (!SWIG_IsOK(ecode3)) {
27155 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
27156 }
27157 arg3 = static_cast< wxDouble >(val3);
27158 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27159 if (!SWIG_IsOK(ecode4)) {
27160 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27161 }
27162 arg4 = static_cast< wxDouble >(val4);
27163 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27164 if (!SWIG_IsOK(ecode5)) {
27165 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27166 }
27167 arg5 = static_cast< wxDouble >(val5);
89d1e2ee
RD
27168 if (swig_obj[5]) {
27169 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
27170 if (!SWIG_IsOK(ecode6)) {
27171 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
27172 }
27173 arg6 = static_cast< bool >(val6);
27174 }
70d7cb34 27175 {
5c8c7dd3
RD
27176 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
27177 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 27178 }
5c8c7dd3 27179 resultobj = SWIG_Py_Void();
70d7cb34
RD
27180 return resultobj;
27181fail:
27182 return NULL;
27183}
27184
27185
5c8c7dd3 27186SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
70d7cb34 27187 int argc;
5c8c7dd3 27188 PyObject *argv[8];
70d7cb34 27189
5c8c7dd3 27190 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
70d7cb34 27191 --argc;
89d1e2ee
RD
27192 if ((argc >= 5) && (argc <= 6)) {
27193 int _v = 0;
27194 {
27195 {
27196 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
27197 }
27198 }
27199 if (!_v) goto check_1;
27200 if (argc > 5) {
27201 {
27202 {
27203 int res = SWIG_AsVal_bool(argv[5], NULL);
27204 _v = SWIG_CheckState(res);
27205 }
27206 }
27207 if (!_v) goto check_1;
27208 }
5c8c7dd3 27209 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
70d7cb34 27210 }
89d1e2ee
RD
27211check_1:
27212
27213 if ((argc >= 6) && (argc <= 7)) {
5c8c7dd3 27214 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
70d7cb34
RD
27215 }
27216
27217fail:
5c8c7dd3 27218 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
70d7cb34
RD
27219 return NULL;
27220}
27221
27222
5c8c7dd3 27223SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27224 PyObject *resultobj = 0;
5c8c7dd3
RD
27225 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27226 wxDouble arg2 ;
27227 wxDouble arg3 ;
27228 wxDouble arg4 ;
27229 wxDouble arg5 ;
70d7cb34
RD
27230 void *argp1 = 0 ;
27231 int res1 = 0 ;
5c8c7dd3
RD
27232 double val2 ;
27233 int ecode2 = 0 ;
27234 double val3 ;
27235 int ecode3 = 0 ;
27236 double val4 ;
27237 int ecode4 = 0 ;
27238 double val5 ;
27239 int ecode5 = 0 ;
27240 PyObject * obj0 = 0 ;
27241 PyObject * obj1 = 0 ;
27242 PyObject * obj2 = 0 ;
27243 PyObject * obj3 = 0 ;
27244 PyObject * obj4 = 0 ;
27245 char * kwnames[] = {
27246 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
27247 };
70d7cb34 27248
5c8c7dd3
RD
27249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27251 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27253 }
5c8c7dd3
RD
27254 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27255 ecode2 = SWIG_AsVal_double(obj1, &val2);
27256 if (!SWIG_IsOK(ecode2)) {
27257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27258 }
27259 arg2 = static_cast< wxDouble >(val2);
27260 ecode3 = SWIG_AsVal_double(obj2, &val3);
27261 if (!SWIG_IsOK(ecode3)) {
27262 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27263 }
27264 arg3 = static_cast< wxDouble >(val3);
27265 ecode4 = SWIG_AsVal_double(obj3, &val4);
27266 if (!SWIG_IsOK(ecode4)) {
27267 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27268 }
27269 arg4 = static_cast< wxDouble >(val4);
27270 ecode5 = SWIG_AsVal_double(obj4, &val5);
27271 if (!SWIG_IsOK(ecode5)) {
27272 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27273 }
27274 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27275 {
5c8c7dd3 27276 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
70d7cb34
RD
27277 if (PyErr_Occurred()) SWIG_fail;
27278 }
27279 resultobj = SWIG_Py_Void();
27280 return resultobj;
27281fail:
27282 return NULL;
27283}
27284
27285
5c8c7dd3 27286SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27287 PyObject *resultobj = 0;
5c8c7dd3
RD
27288 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27289 wxDouble arg2 ;
27290 wxDouble arg3 ;
27291 wxDouble arg4 ;
27292 wxDouble arg5 ;
70d7cb34
RD
27293 void *argp1 = 0 ;
27294 int res1 = 0 ;
5c8c7dd3
RD
27295 double val2 ;
27296 int ecode2 = 0 ;
27297 double val3 ;
27298 int ecode3 = 0 ;
27299 double val4 ;
27300 int ecode4 = 0 ;
27301 double val5 ;
27302 int ecode5 = 0 ;
70d7cb34
RD
27303 PyObject * obj0 = 0 ;
27304 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27305 PyObject * obj2 = 0 ;
27306 PyObject * obj3 = 0 ;
27307 PyObject * obj4 = 0 ;
70d7cb34 27308 char * kwnames[] = {
5c8c7dd3 27309 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
70d7cb34
RD
27310 };
27311
5c8c7dd3
RD
27312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27314 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27316 }
5c8c7dd3
RD
27317 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27318 ecode2 = SWIG_AsVal_double(obj1, &val2);
27319 if (!SWIG_IsOK(ecode2)) {
27320 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27321 }
27322 arg2 = static_cast< wxDouble >(val2);
27323 ecode3 = SWIG_AsVal_double(obj2, &val3);
27324 if (!SWIG_IsOK(ecode3)) {
27325 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27326 }
27327 arg3 = static_cast< wxDouble >(val3);
27328 ecode4 = SWIG_AsVal_double(obj3, &val4);
27329 if (!SWIG_IsOK(ecode4)) {
27330 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27331 }
27332 arg4 = static_cast< wxDouble >(val4);
27333 ecode5 = SWIG_AsVal_double(obj4, &val5);
27334 if (!SWIG_IsOK(ecode5)) {
27335 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27336 }
27337 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27338 {
5c8c7dd3 27339 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
70d7cb34
RD
27340 if (PyErr_Occurred()) SWIG_fail;
27341 }
27342 resultobj = SWIG_Py_Void();
27343 return resultobj;
27344fail:
27345 return NULL;
27346}
27347
27348
5c8c7dd3 27349SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27350 PyObject *resultobj = 0;
5c8c7dd3
RD
27351 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27352 wxDouble arg2 ;
27353 wxDouble arg3 ;
27354 wxDouble arg4 ;
70d7cb34
RD
27355 void *argp1 = 0 ;
27356 int res1 = 0 ;
5c8c7dd3
RD
27357 double val2 ;
27358 int ecode2 = 0 ;
27359 double val3 ;
27360 int ecode3 = 0 ;
27361 double val4 ;
27362 int ecode4 = 0 ;
70d7cb34
RD
27363 PyObject * obj0 = 0 ;
27364 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27365 PyObject * obj2 = 0 ;
27366 PyObject * obj3 = 0 ;
70d7cb34 27367 char * kwnames[] = {
5c8c7dd3 27368 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
70d7cb34
RD
27369 };
27370
5c8c7dd3
RD
27371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27373 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27375 }
5c8c7dd3
RD
27376 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27377 ecode2 = SWIG_AsVal_double(obj1, &val2);
27378 if (!SWIG_IsOK(ecode2)) {
27379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
27380 }
27381 arg2 = static_cast< wxDouble >(val2);
27382 ecode3 = SWIG_AsVal_double(obj2, &val3);
27383 if (!SWIG_IsOK(ecode3)) {
27384 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
27385 }
27386 arg3 = static_cast< wxDouble >(val3);
27387 ecode4 = SWIG_AsVal_double(obj3, &val4);
27388 if (!SWIG_IsOK(ecode4)) {
27389 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
27390 }
27391 arg4 = static_cast< wxDouble >(val4);
70d7cb34 27392 {
5c8c7dd3 27393 (arg1)->AddCircle(arg2,arg3,arg4);
70d7cb34
RD
27394 if (PyErr_Occurred()) SWIG_fail;
27395 }
27396 resultobj = SWIG_Py_Void();
27397 return resultobj;
27398fail:
27399 return NULL;
27400}
27401
27402
5c8c7dd3 27403SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27404 PyObject *resultobj = 0;
5c8c7dd3
RD
27405 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27406 wxDouble arg2 ;
27407 wxDouble arg3 ;
27408 wxDouble arg4 ;
27409 wxDouble arg5 ;
27410 wxDouble arg6 ;
70d7cb34
RD
27411 void *argp1 = 0 ;
27412 int res1 = 0 ;
27413 double val2 ;
27414 int ecode2 = 0 ;
27415 double val3 ;
27416 int ecode3 = 0 ;
27417 double val4 ;
27418 int ecode4 = 0 ;
27419 double val5 ;
27420 int ecode5 = 0 ;
27421 double val6 ;
27422 int ecode6 = 0 ;
70d7cb34
RD
27423 PyObject * obj0 = 0 ;
27424 PyObject * obj1 = 0 ;
27425 PyObject * obj2 = 0 ;
27426 PyObject * obj3 = 0 ;
27427 PyObject * obj4 = 0 ;
27428 PyObject * obj5 = 0 ;
70d7cb34 27429 char * kwnames[] = {
5c8c7dd3 27430 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
70d7cb34
RD
27431 };
27432
5c8c7dd3
RD
27433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27435 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27437 }
5c8c7dd3
RD
27438 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27439 ecode2 = SWIG_AsVal_double(obj1, &val2);
27440 if (!SWIG_IsOK(ecode2)) {
27441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27442 }
27443 arg2 = static_cast< wxDouble >(val2);
27444 ecode3 = SWIG_AsVal_double(obj2, &val3);
27445 if (!SWIG_IsOK(ecode3)) {
27446 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27447 }
27448 arg3 = static_cast< wxDouble >(val3);
27449 ecode4 = SWIG_AsVal_double(obj3, &val4);
27450 if (!SWIG_IsOK(ecode4)) {
27451 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27452 }
27453 arg4 = static_cast< wxDouble >(val4);
27454 ecode5 = SWIG_AsVal_double(obj4, &val5);
27455 if (!SWIG_IsOK(ecode5)) {
27456 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27457 }
27458 arg5 = static_cast< wxDouble >(val5);
27459 ecode6 = SWIG_AsVal_double(obj5, &val6);
27460 if (!SWIG_IsOK(ecode6)) {
27461 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27462 }
27463 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27464 {
5c8c7dd3 27465 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27466 if (PyErr_Occurred()) SWIG_fail;
27467 }
27468 resultobj = SWIG_Py_Void();
27469 return resultobj;
27470fail:
27471 return NULL;
27472}
27473
27474
5c8c7dd3 27475SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27476 PyObject *resultobj = 0;
5c8c7dd3
RD
27477 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27478 wxDouble arg2 ;
27479 wxDouble arg3 ;
27480 wxDouble arg4 ;
27481 wxDouble arg5 ;
70d7cb34
RD
27482 void *argp1 = 0 ;
27483 int res1 = 0 ;
5c8c7dd3
RD
27484 double val2 ;
27485 int ecode2 = 0 ;
27486 double val3 ;
27487 int ecode3 = 0 ;
27488 double val4 ;
27489 int ecode4 = 0 ;
27490 double val5 ;
27491 int ecode5 = 0 ;
27492 PyObject * obj0 = 0 ;
27493 PyObject * obj1 = 0 ;
27494 PyObject * obj2 = 0 ;
27495 PyObject * obj3 = 0 ;
27496 PyObject * obj4 = 0 ;
27497 char * kwnames[] = {
27498 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27499 };
70d7cb34 27500
5c8c7dd3
RD
27501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27503 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27505 }
5c8c7dd3
RD
27506 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27507 ecode2 = SWIG_AsVal_double(obj1, &val2);
27508 if (!SWIG_IsOK(ecode2)) {
27509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27510 }
27511 arg2 = static_cast< wxDouble >(val2);
27512 ecode3 = SWIG_AsVal_double(obj2, &val3);
27513 if (!SWIG_IsOK(ecode3)) {
27514 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27515 }
27516 arg3 = static_cast< wxDouble >(val3);
27517 ecode4 = SWIG_AsVal_double(obj3, &val4);
27518 if (!SWIG_IsOK(ecode4)) {
27519 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27520 }
27521 arg4 = static_cast< wxDouble >(val4);
27522 ecode5 = SWIG_AsVal_double(obj4, &val5);
27523 if (!SWIG_IsOK(ecode5)) {
27524 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27525 }
27526 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27527 {
5c8c7dd3 27528 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
70d7cb34
RD
27529 if (PyErr_Occurred()) SWIG_fail;
27530 }
27531 resultobj = SWIG_Py_Void();
27532 return resultobj;
27533fail:
27534 return NULL;
27535}
27536
27537
5c8c7dd3 27538SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27539 PyObject *resultobj = 0;
5c8c7dd3
RD
27540 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27541 wxDouble arg2 ;
27542 wxDouble arg3 ;
27543 wxDouble arg4 ;
27544 wxDouble arg5 ;
27545 wxDouble arg6 ;
70d7cb34
RD
27546 void *argp1 = 0 ;
27547 int res1 = 0 ;
5c8c7dd3
RD
27548 double val2 ;
27549 int ecode2 = 0 ;
27550 double val3 ;
27551 int ecode3 = 0 ;
27552 double val4 ;
27553 int ecode4 = 0 ;
27554 double val5 ;
27555 int ecode5 = 0 ;
27556 double val6 ;
27557 int ecode6 = 0 ;
70d7cb34
RD
27558 PyObject * obj0 = 0 ;
27559 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27560 PyObject * obj2 = 0 ;
27561 PyObject * obj3 = 0 ;
27562 PyObject * obj4 = 0 ;
27563 PyObject * obj5 = 0 ;
70d7cb34 27564 char * kwnames[] = {
5c8c7dd3 27565 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
70d7cb34
RD
27566 };
27567
5c8c7dd3
RD
27568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27570 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27572 }
5c8c7dd3
RD
27573 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27574 ecode2 = SWIG_AsVal_double(obj1, &val2);
27575 if (!SWIG_IsOK(ecode2)) {
27576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27577 }
27578 arg2 = static_cast< wxDouble >(val2);
27579 ecode3 = SWIG_AsVal_double(obj2, &val3);
27580 if (!SWIG_IsOK(ecode3)) {
27581 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27582 }
27583 arg3 = static_cast< wxDouble >(val3);
27584 ecode4 = SWIG_AsVal_double(obj3, &val4);
27585 if (!SWIG_IsOK(ecode4)) {
27586 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27587 }
27588 arg4 = static_cast< wxDouble >(val4);
27589 ecode5 = SWIG_AsVal_double(obj4, &val5);
27590 if (!SWIG_IsOK(ecode5)) {
27591 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27592 }
27593 arg5 = static_cast< wxDouble >(val5);
27594 ecode6 = SWIG_AsVal_double(obj5, &val6);
27595 if (!SWIG_IsOK(ecode6)) {
27596 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27597 }
27598 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27599 {
5c8c7dd3 27600 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27601 if (PyErr_Occurred()) SWIG_fail;
27602 }
5c8c7dd3 27603 resultobj = SWIG_Py_Void();
70d7cb34
RD
27604 return resultobj;
27605fail:
27606 return NULL;
27607}
27608
27609
5c8c7dd3 27610SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27611 PyObject *resultobj = 0;
5c8c7dd3
RD
27612 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27613 void *result = 0 ;
70d7cb34
RD
27614 void *argp1 = 0 ;
27615 int res1 = 0 ;
27616 PyObject *swig_obj[1] ;
27617
27618 if (!args) SWIG_fail;
27619 swig_obj[0] = args;
5c8c7dd3 27620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27621 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27623 }
5c8c7dd3 27624 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27625 {
5c8c7dd3 27626 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
70d7cb34
RD
27627 if (PyErr_Occurred()) SWIG_fail;
27628 }
5c8c7dd3 27629 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
70d7cb34
RD
27630 return resultobj;
27631fail:
27632 return NULL;
27633}
27634
27635
5c8c7dd3 27636SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27637 PyObject *resultobj = 0;
5c8c7dd3
RD
27638 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27639 void *arg2 = (void *) 0 ;
70d7cb34
RD
27640 void *argp1 = 0 ;
27641 int res1 = 0 ;
5c8c7dd3 27642 int res2 ;
70d7cb34
RD
27643 PyObject * obj0 = 0 ;
27644 PyObject * obj1 = 0 ;
70d7cb34 27645 char * kwnames[] = {
5c8c7dd3 27646 (char *) "self",(char *) "p", NULL
70d7cb34
RD
27647 };
27648
5c8c7dd3
RD
27649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27651 if (!SWIG_IsOK(res1)) {
8f514ab4 27652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
5c8c7dd3
RD
27653 }
27654 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27655 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27656 if (!SWIG_IsOK(res2)) {
27657 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
70d7cb34 27658 }
70d7cb34 27659 {
8f514ab4 27660 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
70d7cb34
RD
27661 if (PyErr_Occurred()) SWIG_fail;
27662 }
27663 resultobj = SWIG_Py_Void();
27664 return resultobj;
27665fail:
27666 return NULL;
27667}
27668
27669
5c8c7dd3 27670SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27671 PyObject *resultobj = 0;
5c8c7dd3
RD
27672 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27673 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
27674 void *argp1 = 0 ;
27675 int res1 = 0 ;
5c8c7dd3
RD
27676 void *argp2 = 0 ;
27677 int res2 = 0 ;
70d7cb34
RD
27678 PyObject * obj0 = 0 ;
27679 PyObject * obj1 = 0 ;
70d7cb34 27680 char * kwnames[] = {
5c8c7dd3 27681 (char *) "self",(char *) "matrix", NULL
70d7cb34
RD
27682 };
27683
5c8c7dd3
RD
27684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27686 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27688 }
5c8c7dd3
RD
27689 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27690 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27691 if (!SWIG_IsOK(res2)) {
27692 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27693 }
27694 if (!argp2) {
27695 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27696 }
27697 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 27698 {
5c8c7dd3 27699 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
27700 if (PyErr_Occurred()) SWIG_fail;
27701 }
27702 resultobj = SWIG_Py_Void();
27703 return resultobj;
27704fail:
27705 return NULL;
27706}
27707
27708
5c8c7dd3 27709SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27710 PyObject *resultobj = 0;
5c8c7dd3 27711 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
4fe9ce47 27712 wxRect2D result;
70d7cb34
RD
27713 void *argp1 = 0 ;
27714 int res1 = 0 ;
5c8c7dd3 27715 PyObject *swig_obj[1] ;
70d7cb34 27716
5c8c7dd3
RD
27717 if (!args) SWIG_fail;
27718 swig_obj[0] = args;
27719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27720 if (!SWIG_IsOK(res1)) {
8f514ab4 27721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27722 }
5c8c7dd3 27723 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27724 {
8f514ab4 27725 result = ((wxGraphicsPath const *)arg1)->GetBox();
70d7cb34
RD
27726 if (PyErr_Occurred()) SWIG_fail;
27727 }
4fe9ce47 27728 resultobj = SWIG_NewPointerObj((new wxRect2D(static_cast< const wxRect2D& >(result))), SWIGTYPE_p_wxRect2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
27729 return resultobj;
27730fail:
27731 return NULL;
27732}
27733
27734
5c8c7dd3 27735SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27736 PyObject *resultobj = 0;
5c8c7dd3
RD
27737 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27738 wxDouble arg2 ;
27739 wxDouble arg3 ;
8f514ab4 27740 int arg4 = (int) wxODDEVEN_RULE ;
5c8c7dd3 27741 bool result;
70d7cb34
RD
27742 void *argp1 = 0 ;
27743 int res1 = 0 ;
5c8c7dd3
RD
27744 double val2 ;
27745 int ecode2 = 0 ;
27746 double val3 ;
27747 int ecode3 = 0 ;
27748 int val4 ;
27749 int ecode4 = 0 ;
70d7cb34 27750
5c8c7dd3
RD
27751 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27753 if (!SWIG_IsOK(res1)) {
8f514ab4 27754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27755 }
5c8c7dd3
RD
27756 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27757 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27758 if (!SWIG_IsOK(ecode2)) {
27759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27760 }
27761 arg2 = static_cast< wxDouble >(val2);
27762 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27763 if (!SWIG_IsOK(ecode3)) {
27764 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27765 }
27766 arg3 = static_cast< wxDouble >(val3);
27767 if (swig_obj[3]) {
27768 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27769 if (!SWIG_IsOK(ecode4)) {
27770 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27771 }
27772 arg4 = static_cast< int >(val4);
70d7cb34
RD
27773 }
27774 {
8f514ab4 27775 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
70d7cb34
RD
27776 if (PyErr_Occurred()) SWIG_fail;
27777 }
5c8c7dd3
RD
27778 {
27779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27780 }
27781 return resultobj;
27782fail:
27783 return NULL;
27784}
27785
27786
5c8c7dd3 27787SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27788 PyObject *resultobj = 0;
5c8c7dd3 27789 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
4fe9ce47 27790 wxPoint2D *arg2 = 0 ;
8f514ab4 27791 int arg3 = (int) wxODDEVEN_RULE ;
5c8c7dd3 27792 bool result;
70d7cb34
RD
27793 void *argp1 = 0 ;
27794 int res1 = 0 ;
4fe9ce47 27795 wxPoint2D temp2 ;
5c8c7dd3
RD
27796 int val3 ;
27797 int ecode3 = 0 ;
70d7cb34 27798
5c8c7dd3
RD
27799 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27801 if (!SWIG_IsOK(res1)) {
8f514ab4 27802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27803 }
5c8c7dd3 27804 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
4fe9ce47
RD
27805 {
27806 arg2 = &temp2;
27807 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
5c8c7dd3 27808 }
5c8c7dd3
RD
27809 if (swig_obj[2]) {
27810 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27811 if (!SWIG_IsOK(ecode3)) {
27812 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27813 }
27814 arg3 = static_cast< int >(val3);
70d7cb34
RD
27815 }
27816 {
4fe9ce47 27817 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2D const &)*arg2,arg3);
70d7cb34
RD
27818 if (PyErr_Occurred()) SWIG_fail;
27819 }
5c8c7dd3
RD
27820 {
27821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27822 }
27823 return resultobj;
27824fail:
27825 return NULL;
27826}
27827
27828
5c8c7dd3
RD
27829SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27830 int argc;
27831 PyObject *argv[5];
70d7cb34 27832
5c8c7dd3
RD
27833 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27834 --argc;
27835 if ((argc >= 2) && (argc <= 3)) {
27836 int _v = 0;
27837 {
4fe9ce47
RD
27838 {
27839 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
27840 }
5c8c7dd3
RD
27841 }
27842 if (!_v) goto check_1;
27843 if (argc > 2) {
27844 {
27845 {
27846 int res = SWIG_AsVal_int(argv[2], NULL);
27847 _v = SWIG_CheckState(res);
27848 }
27849 }
27850 if (!_v) goto check_1;
27851 }
27852 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
70d7cb34 27853 }
5c8c7dd3
RD
27854check_1:
27855
27856 if ((argc >= 3) && (argc <= 4)) {
27857 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
70d7cb34 27858 }
5c8c7dd3 27859
70d7cb34 27860fail:
5c8c7dd3 27861 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
70d7cb34
RD
27862 return NULL;
27863}
27864
27865
5c8c7dd3 27866SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27867 PyObject *obj;
27868 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5c8c7dd3 27869 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
70d7cb34
RD
27870 return SWIG_Py_Void();
27871}
27872
5c8c7dd3
RD
27873SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27874 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27875 return 1;
27876}
27877
27878
27879SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27880 PyObject *pyobj = 0;
27881
27882 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27883 return pyobj;
27884}
27885
27886
27887SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27888 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27889 return 1;
27890}
27891
27892
27893SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27894 PyObject *pyobj = 0;
27895
27896 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27897 return pyobj;
27898}
27899
27900
27901SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27902 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27903 return 1;
27904}
27905
27906
27907SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27908 PyObject *pyobj = 0;
27909
27910 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27911 return pyobj;
27912}
27913
27914
27915SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27916 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27917 return 1;
27918}
27919
27920
27921SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27922 PyObject *pyobj = 0;
27923
27924 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27925 return pyobj;
27926}
27927
27928
27929SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27930 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27931 return 1;
27932}
27933
27934
27935SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27936 PyObject *pyobj = 0;
27937
27938 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27939 return pyobj;
27940}
27941
27942
70d7cb34
RD
27943SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27944 PyObject *resultobj = 0;
27945 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27946 void *argp1 = 0 ;
27947 int res1 = 0 ;
27948 PyObject *swig_obj[1] ;
27949
27950 if (!args) SWIG_fail;
27951 swig_obj[0] = args;
27952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27953 if (!SWIG_IsOK(res1)) {
27954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27955 }
27956 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27957 {
27958 delete arg1;
27959
27960 if (PyErr_Occurred()) SWIG_fail;
27961 }
27962 resultobj = SWIG_Py_Void();
27963 return resultobj;
27964fail:
27965 return NULL;
27966}
27967
27968
27969SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27970 PyObject *resultobj = 0;
27971 wxWindowDC *arg1 = 0 ;
27972 wxGraphicsContext *result = 0 ;
27973 void *argp1 = 0 ;
27974 int res1 = 0 ;
27975
27976 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27978 if (!SWIG_IsOK(res1)) {
27979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27980 }
27981 if (!argp1) {
27982 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27983 }
27984 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27985 {
27986 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27987 if (PyErr_Occurred()) SWIG_fail;
27988 }
27989 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27990 return resultobj;
27991fail:
27992 return NULL;
27993}
27994
27995
27996SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27997 PyObject *resultobj = 0;
27998 wxWindow *arg1 = (wxWindow *) 0 ;
27999 wxGraphicsContext *result = 0 ;
28000 void *argp1 = 0 ;
28001 int res1 = 0 ;
28002
28003 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28005 if (!SWIG_IsOK(res1)) {
28006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
28007 }
28008 arg1 = reinterpret_cast< wxWindow * >(argp1);
28009 {
28010 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
28011 if (PyErr_Occurred()) SWIG_fail;
28012 }
28013 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28014 return resultobj;
28015fail:
28016 return NULL;
28017}
28018
28019
28020SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
28021 int argc;
28022 PyObject *argv[2];
28023
28024 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
28025 --argc;
28026 if (argc == 1) {
28027 int _v = 0;
28028 {
28029 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
28030 _v = SWIG_CheckState(res);
28031 }
28032 if (!_v) goto check_1;
28033 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
28034 }
28035check_1:
28036
28037 if (argc == 1) {
28038 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
28039 }
28040
28041fail:
28042 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
28043 return NULL;
28044}
28045
28046
f89238b9
RD
28047SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28048 PyObject *resultobj = 0;
28049 wxGraphicsContext *result = 0 ;
28050
28051 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
28052 {
28053 result = (wxGraphicsContext *)wxGraphicsContext::Create();
28054 if (PyErr_Occurred()) SWIG_fail;
28055 }
28056 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28057 return resultobj;
28058fail:
28059 return NULL;
28060}
28061
28062
70d7cb34
RD
28063SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28064 PyObject *resultobj = 0;
28065 void *arg1 = (void *) 0 ;
28066 wxGraphicsContext *result = 0 ;
28067 int res1 ;
28068 PyObject * obj0 = 0 ;
28069 char * kwnames[] = {
28070 (char *) "context", NULL
28071 };
28072
28073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
28074 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28075 if (!SWIG_IsOK(res1)) {
28076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
28077 }
28078 {
28079 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
28080 if (PyErr_Occurred()) SWIG_fail;
28081 }
28082 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28083 return resultobj;
28084fail:
28085 return NULL;
28086}
28087
28088
28089SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28090 PyObject *resultobj = 0;
28091 void *arg1 = (void *) 0 ;
28092 wxGraphicsContext *result = 0 ;
28093 int res1 ;
28094 PyObject * obj0 = 0 ;
28095 char * kwnames[] = {
28096 (char *) "window", NULL
28097 };
28098
28099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
28100 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28101 if (!SWIG_IsOK(res1)) {
28102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
28103 }
28104 {
28105 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
28106 if (PyErr_Occurred()) SWIG_fail;
28107 }
28108 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28109 return resultobj;
28110fail:
28111 return NULL;
28112}
28113
28114
28115SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28116 PyObject *resultobj = 0;
28117 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28118 wxGraphicsPath result;
70d7cb34
RD
28119 void *argp1 = 0 ;
28120 int res1 = 0 ;
28121 PyObject *swig_obj[1] ;
28122
28123 if (!args) SWIG_fail;
28124 swig_obj[0] = args;
28125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28126 if (!SWIG_IsOK(res1)) {
28127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28128 }
28129 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28130 {
5c8c7dd3 28131 result = (arg1)->CreatePath();
70d7cb34
RD
28132 if (PyErr_Occurred()) SWIG_fail;
28133 }
5c8c7dd3 28134 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28135 return resultobj;
28136fail:
28137 return NULL;
28138}
28139
28140
70d7cb34 28141SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28142 PyObject *resultobj = 0;
70d7cb34
RD
28143 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28144 wxPen *arg2 = 0 ;
28145 wxGraphicsPen result;
72ef6efb
RD
28146 void *argp1 = 0 ;
28147 int res1 = 0 ;
70d7cb34
RD
28148 void *argp2 = 0 ;
28149 int res2 = 0 ;
72ef6efb
RD
28150 PyObject * obj0 = 0 ;
28151 PyObject * obj1 = 0 ;
72ef6efb 28152 char * kwnames[] = {
70d7cb34 28153 (char *) "self",(char *) "pen", NULL
72ef6efb
RD
28154 };
28155
70d7cb34
RD
28156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
28157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28158 if (!SWIG_IsOK(res1)) {
70d7cb34 28159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28160 }
70d7cb34
RD
28161 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28162 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28163 if (!SWIG_IsOK(res2)) {
28164 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28165 }
28166 if (!argp2) {
28167 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28168 }
28169 arg2 = reinterpret_cast< wxPen * >(argp2);
72ef6efb 28170 {
70d7cb34 28171 result = (arg1)->CreatePen((wxPen const &)*arg2);
72ef6efb
RD
28172 if (PyErr_Occurred()) SWIG_fail;
28173 }
70d7cb34 28174 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28175 return resultobj;
28176fail:
28177 return NULL;
28178}
28179
28180
70d7cb34 28181SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28182 PyObject *resultobj = 0;
70d7cb34
RD
28183 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28184 wxBrush *arg2 = 0 ;
28185 wxGraphicsBrush result;
72ef6efb
RD
28186 void *argp1 = 0 ;
28187 int res1 = 0 ;
70d7cb34
RD
28188 void *argp2 = 0 ;
28189 int res2 = 0 ;
72ef6efb
RD
28190 PyObject * obj0 = 0 ;
28191 PyObject * obj1 = 0 ;
72ef6efb 28192 char * kwnames[] = {
70d7cb34 28193 (char *) "self",(char *) "brush", NULL
72ef6efb
RD
28194 };
28195
70d7cb34
RD
28196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28198 if (!SWIG_IsOK(res1)) {
70d7cb34 28199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28200 }
70d7cb34
RD
28201 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28202 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28203 if (!SWIG_IsOK(res2)) {
28204 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28205 }
28206 if (!argp2) {
28207 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28208 }
28209 arg2 = reinterpret_cast< wxBrush * >(argp2);
72ef6efb 28210 {
70d7cb34 28211 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
72ef6efb
RD
28212 if (PyErr_Occurred()) SWIG_fail;
28213 }
70d7cb34 28214 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28215 return resultobj;
28216fail:
28217 return NULL;
28218}
28219
28220
70d7cb34 28221SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28222 PyObject *resultobj = 0;
70d7cb34 28223 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
28224 wxDouble arg2 ;
28225 wxDouble arg3 ;
28226 wxDouble arg4 ;
28227 wxDouble arg5 ;
70d7cb34
RD
28228 wxColour *arg6 = 0 ;
28229 wxColour *arg7 = 0 ;
28230 wxGraphicsBrush result;
72ef6efb
RD
28231 void *argp1 = 0 ;
28232 int res1 = 0 ;
28233 double val2 ;
28234 int ecode2 = 0 ;
28235 double val3 ;
28236 int ecode3 = 0 ;
28237 double val4 ;
28238 int ecode4 = 0 ;
28239 double val5 ;
28240 int ecode5 = 0 ;
70d7cb34
RD
28241 wxColour temp6 ;
28242 wxColour temp7 ;
72ef6efb
RD
28243 PyObject * obj0 = 0 ;
28244 PyObject * obj1 = 0 ;
28245 PyObject * obj2 = 0 ;
28246 PyObject * obj3 = 0 ;
28247 PyObject * obj4 = 0 ;
70d7cb34
RD
28248 PyObject * obj5 = 0 ;
28249 PyObject * obj6 = 0 ;
72ef6efb 28250 char * kwnames[] = {
70d7cb34 28251 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
28252 };
28253
70d7cb34
RD
28254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28256 if (!SWIG_IsOK(res1)) {
70d7cb34 28257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28258 }
70d7cb34 28259 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
28260 ecode2 = SWIG_AsVal_double(obj1, &val2);
28261 if (!SWIG_IsOK(ecode2)) {
70d7cb34 28262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
28263 }
28264 arg2 = static_cast< wxDouble >(val2);
28265 ecode3 = SWIG_AsVal_double(obj2, &val3);
28266 if (!SWIG_IsOK(ecode3)) {
70d7cb34 28267 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
28268 }
28269 arg3 = static_cast< wxDouble >(val3);
28270 ecode4 = SWIG_AsVal_double(obj3, &val4);
28271 if (!SWIG_IsOK(ecode4)) {
70d7cb34 28272 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28273 }
28274 arg4 = static_cast< wxDouble >(val4);
28275 ecode5 = SWIG_AsVal_double(obj4, &val5);
28276 if (!SWIG_IsOK(ecode5)) {
70d7cb34 28277 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28278 }
28279 arg5 = static_cast< wxDouble >(val5);
28280 {
70d7cb34
RD
28281 arg6 = &temp6;
28282 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
72ef6efb 28283 }
70d7cb34
RD
28284 {
28285 arg7 = &temp7;
28286 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
72ef6efb 28287 }
72ef6efb 28288 {
70d7cb34 28289 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
28290 if (PyErr_Occurred()) SWIG_fail;
28291 }
70d7cb34 28292 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28293 return resultobj;
28294fail:
28295 return NULL;
28296}
28297
28298
70d7cb34 28299SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28300 PyObject *resultobj = 0;
70d7cb34 28301 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
28302 wxDouble arg2 ;
28303 wxDouble arg3 ;
28304 wxDouble arg4 ;
28305 wxDouble arg5 ;
28306 wxDouble arg6 ;
70d7cb34
RD
28307 wxColour *arg7 = 0 ;
28308 wxColour *arg8 = 0 ;
28309 wxGraphicsBrush result;
72ef6efb
RD
28310 void *argp1 = 0 ;
28311 int res1 = 0 ;
28312 double val2 ;
28313 int ecode2 = 0 ;
28314 double val3 ;
28315 int ecode3 = 0 ;
28316 double val4 ;
28317 int ecode4 = 0 ;
28318 double val5 ;
28319 int ecode5 = 0 ;
28320 double val6 ;
28321 int ecode6 = 0 ;
70d7cb34
RD
28322 wxColour temp7 ;
28323 wxColour temp8 ;
72ef6efb
RD
28324 PyObject * obj0 = 0 ;
28325 PyObject * obj1 = 0 ;
28326 PyObject * obj2 = 0 ;
28327 PyObject * obj3 = 0 ;
28328 PyObject * obj4 = 0 ;
28329 PyObject * obj5 = 0 ;
70d7cb34
RD
28330 PyObject * obj6 = 0 ;
28331 PyObject * obj7 = 0 ;
72ef6efb 28332 char * kwnames[] = {
70d7cb34 28333 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
28334 };
28335
70d7cb34
RD
28336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28338 if (!SWIG_IsOK(res1)) {
70d7cb34 28339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28340 }
70d7cb34 28341 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
28342 ecode2 = SWIG_AsVal_double(obj1, &val2);
28343 if (!SWIG_IsOK(ecode2)) {
70d7cb34 28344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
28345 }
28346 arg2 = static_cast< wxDouble >(val2);
28347 ecode3 = SWIG_AsVal_double(obj2, &val3);
28348 if (!SWIG_IsOK(ecode3)) {
70d7cb34 28349 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
28350 }
28351 arg3 = static_cast< wxDouble >(val3);
28352 ecode4 = SWIG_AsVal_double(obj3, &val4);
28353 if (!SWIG_IsOK(ecode4)) {
70d7cb34 28354 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28355 }
28356 arg4 = static_cast< wxDouble >(val4);
28357 ecode5 = SWIG_AsVal_double(obj4, &val5);
28358 if (!SWIG_IsOK(ecode5)) {
70d7cb34 28359 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28360 }
28361 arg5 = static_cast< wxDouble >(val5);
28362 ecode6 = SWIG_AsVal_double(obj5, &val6);
28363 if (!SWIG_IsOK(ecode6)) {
70d7cb34 28364 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
28365 }
28366 arg6 = static_cast< wxDouble >(val6);
28367 {
70d7cb34
RD
28368 arg7 = &temp7;
28369 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28370 }
28371 {
28372 arg8 = &temp8;
28373 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
28374 }
28375 {
28376 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
28377 if (PyErr_Occurred()) SWIG_fail;
28378 }
70d7cb34 28379 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28380 return resultobj;
28381fail:
28382 return NULL;
28383}
28384
28385
70d7cb34 28386SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28387 PyObject *resultobj = 0;
28388 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34
RD
28389 wxFont *arg2 = 0 ;
28390 wxColour const &arg3_defvalue = *wxBLACK ;
28391 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28392 wxGraphicsFont result;
72ef6efb
RD
28393 void *argp1 = 0 ;
28394 int res1 = 0 ;
70d7cb34
RD
28395 void *argp2 = 0 ;
28396 int res2 = 0 ;
28397 wxColour temp3 ;
28398 PyObject * obj0 = 0 ;
28399 PyObject * obj1 = 0 ;
28400 PyObject * obj2 = 0 ;
28401 char * kwnames[] = {
28402 (char *) "self",(char *) "font",(char *) "col", NULL
28403 };
72ef6efb 28404
70d7cb34
RD
28405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28407 if (!SWIG_IsOK(res1)) {
70d7cb34 28408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28409 }
28410 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28411 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28412 if (!SWIG_IsOK(res2)) {
28413 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 28414 }
70d7cb34
RD
28415 if (!argp2) {
28416 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 28417 }
70d7cb34
RD
28418 arg2 = reinterpret_cast< wxFont * >(argp2);
28419 if (obj2) {
28420 {
28421 arg3 = &temp3;
28422 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28423 }
72ef6efb 28424 }
72ef6efb 28425 {
70d7cb34 28426 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28427 if (PyErr_Occurred()) SWIG_fail;
28428 }
70d7cb34 28429 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28430 return resultobj;
28431fail:
28432 return NULL;
28433}
28434
28435
70d7cb34 28436SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0a27f394 28437 PyObject *resultobj = 0;
70d7cb34
RD
28438 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28439 wxDouble arg2 = (wxDouble) 1.0 ;
28440 wxDouble arg3 = (wxDouble) 0.0 ;
28441 wxDouble arg4 = (wxDouble) 0.0 ;
28442 wxDouble arg5 = (wxDouble) 1.0 ;
28443 wxDouble arg6 = (wxDouble) 0.0 ;
28444 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 28445 wxGraphicsMatrix result;
0a27f394
RD
28446 void *argp1 = 0 ;
28447 int res1 = 0 ;
70d7cb34
RD
28448 double val2 ;
28449 int ecode2 = 0 ;
28450 double val3 ;
28451 int ecode3 = 0 ;
28452 double val4 ;
28453 int ecode4 = 0 ;
28454 double val5 ;
28455 int ecode5 = 0 ;
28456 double val6 ;
28457 int ecode6 = 0 ;
28458 double val7 ;
28459 int ecode7 = 0 ;
28460 PyObject * obj0 = 0 ;
28461 PyObject * obj1 = 0 ;
28462 PyObject * obj2 = 0 ;
28463 PyObject * obj3 = 0 ;
28464 PyObject * obj4 = 0 ;
28465 PyObject * obj5 = 0 ;
28466 PyObject * obj6 = 0 ;
28467 char * kwnames[] = {
28468 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28469 };
0a27f394 28470
70d7cb34
RD
28471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
0a27f394 28473 if (!SWIG_IsOK(res1)) {
70d7cb34 28474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
0a27f394 28475 }
70d7cb34
RD
28476 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28477 if (obj1) {
28478 ecode2 = SWIG_AsVal_double(obj1, &val2);
28479 if (!SWIG_IsOK(ecode2)) {
28480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28481 }
28482 arg2 = static_cast< wxDouble >(val2);
0a27f394 28483 }
70d7cb34
RD
28484 if (obj2) {
28485 ecode3 = SWIG_AsVal_double(obj2, &val3);
28486 if (!SWIG_IsOK(ecode3)) {
28487 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28488 }
28489 arg3 = static_cast< wxDouble >(val3);
0a27f394 28490 }
70d7cb34
RD
28491 if (obj3) {
28492 ecode4 = SWIG_AsVal_double(obj3, &val4);
28493 if (!SWIG_IsOK(ecode4)) {
28494 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28495 }
28496 arg4 = static_cast< wxDouble >(val4);
0a27f394 28497 }
70d7cb34
RD
28498 if (obj4) {
28499 ecode5 = SWIG_AsVal_double(obj4, &val5);
28500 if (!SWIG_IsOK(ecode5)) {
28501 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28502 }
28503 arg5 = static_cast< wxDouble >(val5);
0a27f394 28504 }
70d7cb34
RD
28505 if (obj5) {
28506 ecode6 = SWIG_AsVal_double(obj5, &val6);
28507 if (!SWIG_IsOK(ecode6)) {
28508 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28509 }
28510 arg6 = static_cast< wxDouble >(val6);
0a27f394 28511 }
70d7cb34
RD
28512 if (obj6) {
28513 ecode7 = SWIG_AsVal_double(obj6, &val7);
28514 if (!SWIG_IsOK(ecode7)) {
28515 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28516 }
28517 arg7 = static_cast< wxDouble >(val7);
72ef6efb 28518 }
72ef6efb 28519 {
5c8c7dd3 28520 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
28521 if (PyErr_Occurred()) SWIG_fail;
28522 }
5c8c7dd3 28523 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28524 return resultobj;
28525fail:
28526 return NULL;
28527}
28528
28529
28530SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28531 PyObject *resultobj = 0;
28532 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28533 void *argp1 = 0 ;
28534 int res1 = 0 ;
28535 PyObject *swig_obj[1] ;
28536
28537 if (!args) SWIG_fail;
28538 swig_obj[0] = args;
28539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28540 if (!SWIG_IsOK(res1)) {
28541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28542 }
28543 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28544 {
72ef6efb 28545 (arg1)->PushState();
72ef6efb
RD
28546 if (PyErr_Occurred()) SWIG_fail;
28547 }
28548 resultobj = SWIG_Py_Void();
28549 return resultobj;
28550fail:
28551 return NULL;
28552}
28553
28554
28555SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28556 PyObject *resultobj = 0;
28557 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28558 void *argp1 = 0 ;
28559 int res1 = 0 ;
28560 PyObject *swig_obj[1] ;
28561
28562 if (!args) SWIG_fail;
28563 swig_obj[0] = args;
28564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28565 if (!SWIG_IsOK(res1)) {
28566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28567 }
28568 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28569 {
72ef6efb 28570 (arg1)->PopState();
72ef6efb
RD
28571 if (PyErr_Occurred()) SWIG_fail;
28572 }
28573 resultobj = SWIG_Py_Void();
28574 return resultobj;
28575fail:
28576 return NULL;
28577}
28578
28579
0a27f394 28580SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28581 PyObject *resultobj = 0;
28582 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28583 wxRegion *arg2 = 0 ;
28584 void *argp1 = 0 ;
28585 int res1 = 0 ;
28586 void *argp2 = 0 ;
28587 int res2 = 0 ;
28588 PyObject * obj0 = 0 ;
28589 PyObject * obj1 = 0 ;
28590 char * kwnames[] = {
28591 (char *) "self",(char *) "region", NULL
28592 };
28593
0a27f394 28594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
28595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28596 if (!SWIG_IsOK(res1)) {
0a27f394 28597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28598 }
28599 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28600 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28601 if (!SWIG_IsOK(res2)) {
0a27f394 28602 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28603 }
28604 if (!argp2) {
0a27f394 28605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28606 }
28607 arg2 = reinterpret_cast< wxRegion * >(argp2);
28608 {
72ef6efb 28609 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
28610 if (PyErr_Occurred()) SWIG_fail;
28611 }
28612 resultobj = SWIG_Py_Void();
28613 return resultobj;
28614fail:
28615 return NULL;
28616}
28617
28618
0a27f394
RD
28619SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28620 PyObject *resultobj = 0;
28621 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28622 wxDouble arg2 ;
28623 wxDouble arg3 ;
28624 wxDouble arg4 ;
28625 wxDouble arg5 ;
28626 void *argp1 = 0 ;
28627 int res1 = 0 ;
28628 double val2 ;
28629 int ecode2 = 0 ;
28630 double val3 ;
28631 int ecode3 = 0 ;
28632 double val4 ;
28633 int ecode4 = 0 ;
28634 double val5 ;
28635 int ecode5 = 0 ;
28636 PyObject * obj0 = 0 ;
28637 PyObject * obj1 = 0 ;
28638 PyObject * obj2 = 0 ;
28639 PyObject * obj3 = 0 ;
28640 PyObject * obj4 = 0 ;
28641 char * kwnames[] = {
28642 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28643 };
28644
28645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28647 if (!SWIG_IsOK(res1)) {
28648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28649 }
28650 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28651 ecode2 = SWIG_AsVal_double(obj1, &val2);
28652 if (!SWIG_IsOK(ecode2)) {
28653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28654 }
28655 arg2 = static_cast< wxDouble >(val2);
28656 ecode3 = SWIG_AsVal_double(obj2, &val3);
28657 if (!SWIG_IsOK(ecode3)) {
28658 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28659 }
28660 arg3 = static_cast< wxDouble >(val3);
28661 ecode4 = SWIG_AsVal_double(obj3, &val4);
28662 if (!SWIG_IsOK(ecode4)) {
28663 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28664 }
28665 arg4 = static_cast< wxDouble >(val4);
28666 ecode5 = SWIG_AsVal_double(obj4, &val5);
28667 if (!SWIG_IsOK(ecode5)) {
28668 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28669 }
28670 arg5 = static_cast< wxDouble >(val5);
28671 {
28672 (arg1)->Clip(arg2,arg3,arg4,arg5);
28673 if (PyErr_Occurred()) SWIG_fail;
28674 }
28675 resultobj = SWIG_Py_Void();
28676 return resultobj;
28677fail:
28678 return NULL;
28679}
28680
28681
28682SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28683 PyObject *resultobj = 0;
28684 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28685 void *argp1 = 0 ;
28686 int res1 = 0 ;
28687 PyObject *swig_obj[1] ;
28688
28689 if (!args) SWIG_fail;
28690 swig_obj[0] = args;
28691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28692 if (!SWIG_IsOK(res1)) {
28693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28694 }
28695 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28696 {
28697 (arg1)->ResetClip();
28698 if (PyErr_Occurred()) SWIG_fail;
28699 }
28700 resultobj = SWIG_Py_Void();
28701 return resultobj;
28702fail:
28703 return NULL;
28704}
28705
28706
28707SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28708 PyObject *resultobj = 0;
28709 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28710 void *result = 0 ;
28711 void *argp1 = 0 ;
28712 int res1 = 0 ;
28713 PyObject *swig_obj[1] ;
28714
28715 if (!args) SWIG_fail;
28716 swig_obj[0] = args;
28717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28718 if (!SWIG_IsOK(res1)) {
28719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28720 }
28721 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28722 {
28723 result = (void *)(arg1)->GetNativeContext();
28724 if (PyErr_Occurred()) SWIG_fail;
28725 }
28726 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28727 return resultobj;
28728fail:
28729 return NULL;
28730}
28731
28732
c8aaaf9e
RD
28733SWIGINTERN PyObject *_wrap_GraphicsContext_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28734 PyObject *resultobj = 0;
28735 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28736 int result;
28737 void *argp1 = 0 ;
28738 int res1 = 0 ;
28739 PyObject *swig_obj[1] ;
28740
28741 if (!args) SWIG_fail;
28742 swig_obj[0] = args;
28743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28744 if (!SWIG_IsOK(res1)) {
28745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28746 }
28747 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28748 {
28749 result = (int)((wxGraphicsContext const *)arg1)->GetLogicalFunction();
28750 if (PyErr_Occurred()) SWIG_fail;
28751 }
28752 resultobj = SWIG_From_int(static_cast< int >(result));
28753 return resultobj;
28754fail:
28755 return NULL;
28756}
28757
28758
28759SWIGINTERN PyObject *_wrap_GraphicsContext_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28760 PyObject *resultobj = 0;
28761 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28762 int arg2 ;
28763 bool result;
28764 void *argp1 = 0 ;
28765 int res1 = 0 ;
28766 int val2 ;
28767 int ecode2 = 0 ;
28768 PyObject * obj0 = 0 ;
28769 PyObject * obj1 = 0 ;
28770 char * kwnames[] = {
28771 (char *) "self",(char *) "function", NULL
28772 };
28773
28774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
28775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28776 if (!SWIG_IsOK(res1)) {
28777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28778 }
28779 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28780 ecode2 = SWIG_AsVal_int(obj1, &val2);
28781 if (!SWIG_IsOK(ecode2)) {
28782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
28783 }
28784 arg2 = static_cast< int >(val2);
28785 {
28786 result = (bool)(arg1)->SetLogicalFunction(arg2);
28787 if (PyErr_Occurred()) SWIG_fail;
28788 }
28789 {
28790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28791 }
28792 return resultobj;
28793fail:
28794 return NULL;
28795}
28796
28797
72ef6efb
RD
28798SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28799 PyObject *resultobj = 0;
28800 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28801 wxDouble arg2 ;
28802 wxDouble arg3 ;
28803 void *argp1 = 0 ;
28804 int res1 = 0 ;
28805 double val2 ;
28806 int ecode2 = 0 ;
28807 double val3 ;
28808 int ecode3 = 0 ;
28809 PyObject * obj0 = 0 ;
28810 PyObject * obj1 = 0 ;
28811 PyObject * obj2 = 0 ;
28812 char * kwnames[] = {
28813 (char *) "self",(char *) "dx",(char *) "dy", NULL
28814 };
28815
28816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28818 if (!SWIG_IsOK(res1)) {
28819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28820 }
28821 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28822 ecode2 = SWIG_AsVal_double(obj1, &val2);
28823 if (!SWIG_IsOK(ecode2)) {
28824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28825 }
28826 arg2 = static_cast< wxDouble >(val2);
28827 ecode3 = SWIG_AsVal_double(obj2, &val3);
28828 if (!SWIG_IsOK(ecode3)) {
28829 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28830 }
28831 arg3 = static_cast< wxDouble >(val3);
28832 {
72ef6efb 28833 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
28834 if (PyErr_Occurred()) SWIG_fail;
28835 }
28836 resultobj = SWIG_Py_Void();
28837 return resultobj;
28838fail:
28839 return NULL;
28840}
28841
28842
28843SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28844 PyObject *resultobj = 0;
28845 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28846 wxDouble arg2 ;
28847 wxDouble arg3 ;
28848 void *argp1 = 0 ;
28849 int res1 = 0 ;
28850 double val2 ;
28851 int ecode2 = 0 ;
28852 double val3 ;
28853 int ecode3 = 0 ;
28854 PyObject * obj0 = 0 ;
28855 PyObject * obj1 = 0 ;
28856 PyObject * obj2 = 0 ;
28857 char * kwnames[] = {
28858 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28859 };
28860
28861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28863 if (!SWIG_IsOK(res1)) {
28864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28865 }
28866 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28867 ecode2 = SWIG_AsVal_double(obj1, &val2);
28868 if (!SWIG_IsOK(ecode2)) {
28869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28870 }
28871 arg2 = static_cast< wxDouble >(val2);
28872 ecode3 = SWIG_AsVal_double(obj2, &val3);
28873 if (!SWIG_IsOK(ecode3)) {
28874 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28875 }
28876 arg3 = static_cast< wxDouble >(val3);
28877 {
72ef6efb 28878 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
28879 if (PyErr_Occurred()) SWIG_fail;
28880 }
28881 resultobj = SWIG_Py_Void();
28882 return resultobj;
28883fail:
28884 return NULL;
28885}
28886
28887
28888SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28889 PyObject *resultobj = 0;
28890 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28891 wxDouble arg2 ;
28892 void *argp1 = 0 ;
28893 int res1 = 0 ;
28894 double val2 ;
28895 int ecode2 = 0 ;
28896 PyObject * obj0 = 0 ;
28897 PyObject * obj1 = 0 ;
28898 char * kwnames[] = {
28899 (char *) "self",(char *) "angle", NULL
28900 };
28901
28902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28904 if (!SWIG_IsOK(res1)) {
28905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28906 }
28907 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28908 ecode2 = SWIG_AsVal_double(obj1, &val2);
28909 if (!SWIG_IsOK(ecode2)) {
28910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28911 }
28912 arg2 = static_cast< wxDouble >(val2);
28913 {
72ef6efb 28914 (arg1)->Rotate(arg2);
72ef6efb
RD
28915 if (PyErr_Occurred()) SWIG_fail;
28916 }
28917 resultobj = SWIG_Py_Void();
28918 return resultobj;
28919fail:
28920 return NULL;
28921}
28922
28923
5c8c7dd3
RD
28924SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28925 PyObject *resultobj = 0;
28926 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28927 wxGraphicsMatrix *arg2 = 0 ;
28928 void *argp1 = 0 ;
28929 int res1 = 0 ;
28930 void *argp2 = 0 ;
28931 int res2 = 0 ;
28932 PyObject * obj0 = 0 ;
28933 PyObject * obj1 = 0 ;
28934 char * kwnames[] = {
28935 (char *) "self",(char *) "matrix", NULL
28936 };
28937
28938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28940 if (!SWIG_IsOK(res1)) {
28941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28942 }
28943 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28944 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28945 if (!SWIG_IsOK(res2)) {
28946 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28947 }
28948 if (!argp2) {
28949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28950 }
28951 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28952 {
28953 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28954 if (PyErr_Occurred()) SWIG_fail;
28955 }
28956 resultobj = SWIG_Py_Void();
28957 return resultobj;
28958fail:
28959 return NULL;
28960}
28961
28962
28963SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28964 PyObject *resultobj = 0;
28965 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28966 wxGraphicsMatrix *arg2 = 0 ;
28967 void *argp1 = 0 ;
28968 int res1 = 0 ;
28969 void *argp2 = 0 ;
28970 int res2 = 0 ;
28971 PyObject * obj0 = 0 ;
28972 PyObject * obj1 = 0 ;
28973 char * kwnames[] = {
28974 (char *) "self",(char *) "matrix", NULL
28975 };
28976
28977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28979 if (!SWIG_IsOK(res1)) {
28980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28981 }
28982 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28983 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28984 if (!SWIG_IsOK(res2)) {
28985 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28986 }
28987 if (!argp2) {
28988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28989 }
28990 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28991 {
28992 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28993 if (PyErr_Occurred()) SWIG_fail;
28994 }
28995 resultobj = SWIG_Py_Void();
28996 return resultobj;
28997fail:
28998 return NULL;
28999}
29000
29001
29002SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29003 PyObject *resultobj = 0;
29004 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29005 wxGraphicsMatrix result;
29006 void *argp1 = 0 ;
29007 int res1 = 0 ;
29008 PyObject *swig_obj[1] ;
29009
29010 if (!args) SWIG_fail;
29011 swig_obj[0] = args;
29012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29013 if (!SWIG_IsOK(res1)) {
29014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29015 }
29016 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29017 {
29018 result = ((wxGraphicsContext const *)arg1)->GetTransform();
29019 if (PyErr_Occurred()) SWIG_fail;
29020 }
29021 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
29022 return resultobj;
29023fail:
29024 return NULL;
29025}
29026
29027
70d7cb34
RD
29028SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29029 PyObject *resultobj = 0;
29030 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29031 wxGraphicsPen *arg2 = 0 ;
29032 void *argp1 = 0 ;
29033 int res1 = 0 ;
29034 void *argp2 = 0 ;
29035 int res2 = 0 ;
29036
29037 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29039 if (!SWIG_IsOK(res1)) {
29040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29041 }
29042 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29043 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
29044 if (!SWIG_IsOK(res2)) {
29045 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29046 }
29047 if (!argp2) {
29048 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29049 }
29050 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
29051 {
29052 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
29053 if (PyErr_Occurred()) SWIG_fail;
29054 }
29055 resultobj = SWIG_Py_Void();
29056 return resultobj;
29057fail:
29058 return NULL;
29059}
29060
29061
29062SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29063 PyObject *resultobj = 0;
29064 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29065 wxPen *arg2 = 0 ;
29066 void *argp1 = 0 ;
29067 int res1 = 0 ;
29068 void *argp2 = 0 ;
29069 int res2 = 0 ;
72ef6efb 29070
70d7cb34
RD
29071 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29073 if (!SWIG_IsOK(res1)) {
29074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29075 }
29076 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 29077 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
72ef6efb
RD
29078 if (!SWIG_IsOK(res2)) {
29079 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29080 }
29081 if (!argp2) {
29082 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29083 }
29084 arg2 = reinterpret_cast< wxPen * >(argp2);
29085 {
72ef6efb 29086 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
29087 if (PyErr_Occurred()) SWIG_fail;
29088 }
29089 resultobj = SWIG_Py_Void();
29090 return resultobj;
29091fail:
29092 return NULL;
29093}
29094
29095
70d7cb34
RD
29096SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
29097 int argc;
29098 PyObject *argv[3];
29099
29100 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
29101 --argc;
29102 if (argc == 2) {
29103 int _v = 0;
29104 {
29105 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
29106 _v = SWIG_CheckState(res);
29107 }
29108 if (!_v) goto check_1;
29109 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
29110 }
29111check_1:
29112
29113 if (argc == 2) {
29114 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
29115 }
29116
29117fail:
29118 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
29119 return NULL;
29120}
29121
29122
29123SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29124 PyObject *resultobj = 0;
29125 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29126 wxGraphicsBrush *arg2 = 0 ;
29127 void *argp1 = 0 ;
29128 int res1 = 0 ;
29129 void *argp2 = 0 ;
29130 int res2 = 0 ;
29131
29132 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29134 if (!SWIG_IsOK(res1)) {
29135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29136 }
29137 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29138 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29139 if (!SWIG_IsOK(res2)) {
29140 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29141 }
29142 if (!argp2) {
29143 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29144 }
29145 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
29146 {
29147 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
29148 if (PyErr_Occurred()) SWIG_fail;
29149 }
29150 resultobj = SWIG_Py_Void();
29151 return resultobj;
29152fail:
29153 return NULL;
29154}
29155
29156
29157SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29158 PyObject *resultobj = 0;
29159 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29160 wxBrush *arg2 = 0 ;
29161 void *argp1 = 0 ;
29162 int res1 = 0 ;
29163 void *argp2 = 0 ;
29164 int res2 = 0 ;
72ef6efb 29165
70d7cb34
RD
29166 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29168 if (!SWIG_IsOK(res1)) {
29169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29170 }
29171 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 29172 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
72ef6efb
RD
29173 if (!SWIG_IsOK(res2)) {
29174 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29175 }
29176 if (!argp2) {
29177 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29178 }
29179 arg2 = reinterpret_cast< wxBrush * >(argp2);
29180 {
72ef6efb 29181 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
29182 if (PyErr_Occurred()) SWIG_fail;
29183 }
29184 resultobj = SWIG_Py_Void();
29185 return resultobj;
29186fail:
29187 return NULL;
29188}
29189
29190
70d7cb34
RD
29191SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
29192 int argc;
29193 PyObject *argv[3];
72ef6efb 29194
70d7cb34
RD
29195 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
29196 --argc;
29197 if (argc == 2) {
29198 int _v = 0;
29199 {
29200 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
29201 _v = SWIG_CheckState(res);
29202 }
29203 if (!_v) goto check_1;
29204 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
72ef6efb 29205 }
70d7cb34
RD
29206check_1:
29207
29208 if (argc == 2) {
29209 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
72ef6efb 29210 }
70d7cb34 29211
72ef6efb 29212fail:
70d7cb34 29213 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
72ef6efb
RD
29214 return NULL;
29215}
29216
29217
70d7cb34 29218SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29219 PyObject *resultobj = 0;
29220 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 29221 wxGraphicsFont *arg2 = 0 ;
72ef6efb
RD
29222 void *argp1 = 0 ;
29223 int res1 = 0 ;
70d7cb34
RD
29224 void *argp2 = 0 ;
29225 int res2 = 0 ;
72ef6efb 29226
70d7cb34
RD
29227 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29229 if (!SWIG_IsOK(res1)) {
70d7cb34 29230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29231 }
29232 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
29233 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
29234 if (!SWIG_IsOK(res2)) {
29235 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 29236 }
70d7cb34
RD
29237 if (!argp2) {
29238 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 29239 }
70d7cb34 29240 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
72ef6efb 29241 {
70d7cb34 29242 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
72ef6efb
RD
29243 if (PyErr_Occurred()) SWIG_fail;
29244 }
29245 resultobj = SWIG_Py_Void();
29246 return resultobj;
29247fail:
29248 return NULL;
29249}
29250
29251
70d7cb34 29252SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
29253 PyObject *resultobj = 0;
29254 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29255 wxFont *arg2 = 0 ;
70d7cb34
RD
29256 wxColour const &arg3_defvalue = *wxBLACK ;
29257 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
72ef6efb
RD
29258 void *argp1 = 0 ;
29259 int res1 = 0 ;
29260 void *argp2 = 0 ;
29261 int res2 = 0 ;
70d7cb34 29262 wxColour temp3 ;
72ef6efb 29263
70d7cb34
RD
29264 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
29265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29266 if (!SWIG_IsOK(res1)) {
29267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29268 }
29269 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 29270 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
72ef6efb
RD
29271 if (!SWIG_IsOK(res2)) {
29272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29273 }
29274 if (!argp2) {
29275 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29276 }
29277 arg2 = reinterpret_cast< wxFont * >(argp2);
70d7cb34
RD
29278 if (swig_obj[2]) {
29279 {
29280 arg3 = &temp3;
29281 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
29282 }
29283 }
72ef6efb 29284 {
70d7cb34 29285 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
29286 if (PyErr_Occurred()) SWIG_fail;
29287 }
29288 resultobj = SWIG_Py_Void();
29289 return resultobj;
29290fail:
29291 return NULL;
29292}
29293
29294
70d7cb34
RD
29295SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
29296 int argc;
29297 PyObject *argv[4];
72ef6efb 29298
70d7cb34
RD
29299 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
29300 --argc;
29301 if (argc == 2) {
29302 int _v = 0;
29303 {
29304 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
29305 _v = SWIG_CheckState(res);
29306 }
29307 if (!_v) goto check_1;
29308 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
72ef6efb 29309 }
70d7cb34
RD
29310check_1:
29311
29312 if ((argc >= 2) && (argc <= 3)) {
29313 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
72ef6efb 29314 }
70d7cb34 29315
72ef6efb 29316fail:
70d7cb34 29317 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
72ef6efb
RD
29318 return NULL;
29319}
29320
29321
29322SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29323 PyObject *resultobj = 0;
29324 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29325 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
29326 void *argp1 = 0 ;
29327 int res1 = 0 ;
29328 void *argp2 = 0 ;
29329 int res2 = 0 ;
29330 PyObject * obj0 = 0 ;
29331 PyObject * obj1 = 0 ;
29332 char * kwnames[] = {
29333 (char *) "self",(char *) "path", NULL
29334 };
29335
29336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
29337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29338 if (!SWIG_IsOK(res1)) {
29339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29340 }
29341 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29342 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29343 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29344 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29345 }
29346 if (!argp2) {
29347 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29348 }
29349 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29350 {
5c8c7dd3 29351 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
72ef6efb
RD
29352 if (PyErr_Occurred()) SWIG_fail;
29353 }
29354 resultobj = SWIG_Py_Void();
29355 return resultobj;
29356fail:
29357 return NULL;
29358}
29359
29360
29361SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29362 PyObject *resultobj = 0;
29363 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29364 wxGraphicsPath *arg2 = 0 ;
8f514ab4 29365 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
29366 void *argp1 = 0 ;
29367 int res1 = 0 ;
29368 void *argp2 = 0 ;
29369 int res2 = 0 ;
29370 int val3 ;
29371 int ecode3 = 0 ;
29372 PyObject * obj0 = 0 ;
29373 PyObject * obj1 = 0 ;
29374 PyObject * obj2 = 0 ;
29375 char * kwnames[] = {
29376 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29377 };
29378
29379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29381 if (!SWIG_IsOK(res1)) {
29382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29383 }
29384 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29385 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29386 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29387 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29388 }
29389 if (!argp2) {
29390 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29391 }
29392 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29393 if (obj2) {
29394 ecode3 = SWIG_AsVal_int(obj2, &val3);
29395 if (!SWIG_IsOK(ecode3)) {
29396 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
29397 }
29398 arg3 = static_cast< int >(val3);
29399 }
29400 {
5c8c7dd3 29401 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
29402 if (PyErr_Occurred()) SWIG_fail;
29403 }
29404 resultobj = SWIG_Py_Void();
29405 return resultobj;
29406fail:
29407 return NULL;
29408}
29409
29410
29411SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29412 PyObject *resultobj = 0;
29413 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29414 wxGraphicsPath *arg2 = 0 ;
8f514ab4 29415 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
29416 void *argp1 = 0 ;
29417 int res1 = 0 ;
29418 void *argp2 = 0 ;
29419 int res2 = 0 ;
29420 int val3 ;
29421 int ecode3 = 0 ;
29422 PyObject * obj0 = 0 ;
29423 PyObject * obj1 = 0 ;
29424 PyObject * obj2 = 0 ;
29425 char * kwnames[] = {
29426 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29427 };
29428
29429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29431 if (!SWIG_IsOK(res1)) {
29432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29433 }
29434 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29435 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29436 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29437 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29438 }
29439 if (!argp2) {
29440 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29441 }
29442 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29443 if (obj2) {
29444 ecode3 = SWIG_AsVal_int(obj2, &val3);
29445 if (!SWIG_IsOK(ecode3)) {
29446 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
29447 }
29448 arg3 = static_cast< int >(val3);
29449 }
29450 {
5c8c7dd3 29451 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
29452 if (PyErr_Occurred()) SWIG_fail;
29453 }
29454 resultobj = SWIG_Py_Void();
29455 return resultobj;
29456fail:
29457 return NULL;
29458}
29459
29460
b39fe951 29461SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29462 PyObject *resultobj = 0;
29463 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29464 wxString *arg2 = 0 ;
29465 wxDouble arg3 ;
29466 wxDouble arg4 ;
f89238b9
RD
29467 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
29468 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
72ef6efb
RD
29469 void *argp1 = 0 ;
29470 int res1 = 0 ;
29471 bool temp2 = false ;
29472 double val3 ;
29473 int ecode3 = 0 ;
29474 double val4 ;
29475 int ecode4 = 0 ;
f89238b9
RD
29476 void *argp5 = 0 ;
29477 int res5 = 0 ;
b39fe951
RD
29478 PyObject * obj0 = 0 ;
29479 PyObject * obj1 = 0 ;
29480 PyObject * obj2 = 0 ;
29481 PyObject * obj3 = 0 ;
f89238b9 29482 PyObject * obj4 = 0 ;
b39fe951 29483 char * kwnames[] = {
f89238b9 29484 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
b39fe951 29485 };
72ef6efb 29486
f89238b9 29487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
b39fe951 29488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29489 if (!SWIG_IsOK(res1)) {
29490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29491 }
29492 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29493 {
b39fe951 29494 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29495 if (arg2 == NULL) SWIG_fail;
29496 temp2 = true;
29497 }
b39fe951 29498 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
29499 if (!SWIG_IsOK(ecode3)) {
29500 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29501 }
29502 arg3 = static_cast< wxDouble >(val3);
b39fe951 29503 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
29504 if (!SWIG_IsOK(ecode4)) {
29505 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29506 }
29507 arg4 = static_cast< wxDouble >(val4);
f89238b9
RD
29508 if (obj4) {
29509 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29510 if (!SWIG_IsOK(res5)) {
29511 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29512 }
29513 if (!argp5) {
29514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29515 }
29516 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
29517 }
72ef6efb 29518 {
f89238b9 29519 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
72ef6efb
RD
29520 if (PyErr_Occurred()) SWIG_fail;
29521 }
29522 resultobj = SWIG_Py_Void();
29523 {
29524 if (temp2)
29525 delete arg2;
29526 }
29527 return resultobj;
29528fail:
29529 {
29530 if (temp2)
29531 delete arg2;
29532 }
29533 return NULL;
29534}
29535
29536
b39fe951 29537SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29538 PyObject *resultobj = 0;
29539 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29540 wxString *arg2 = 0 ;
29541 wxDouble arg3 ;
29542 wxDouble arg4 ;
29543 wxDouble arg5 ;
f89238b9
RD
29544 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
29545 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
72ef6efb
RD
29546 void *argp1 = 0 ;
29547 int res1 = 0 ;
29548 bool temp2 = false ;
29549 double val3 ;
29550 int ecode3 = 0 ;
29551 double val4 ;
29552 int ecode4 = 0 ;
29553 double val5 ;
29554 int ecode5 = 0 ;
f89238b9
RD
29555 void *argp6 = 0 ;
29556 int res6 = 0 ;
b39fe951
RD
29557 PyObject * obj0 = 0 ;
29558 PyObject * obj1 = 0 ;
29559 PyObject * obj2 = 0 ;
29560 PyObject * obj3 = 0 ;
29561 PyObject * obj4 = 0 ;
f89238b9 29562 PyObject * obj5 = 0 ;
b39fe951 29563 char * kwnames[] = {
f89238b9 29564 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
b39fe951 29565 };
72ef6efb 29566
f89238b9 29567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
b39fe951 29568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29569 if (!SWIG_IsOK(res1)) {
b39fe951 29570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29571 }
29572 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29573 {
b39fe951 29574 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29575 if (arg2 == NULL) SWIG_fail;
29576 temp2 = true;
29577 }
b39fe951 29578 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 29579 if (!SWIG_IsOK(ecode3)) {
b39fe951 29580 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29581 }
29582 arg3 = static_cast< wxDouble >(val3);
b39fe951 29583 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 29584 if (!SWIG_IsOK(ecode4)) {
b39fe951 29585 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29586 }
29587 arg4 = static_cast< wxDouble >(val4);
b39fe951 29588 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 29589 if (!SWIG_IsOK(ecode5)) {
b39fe951 29590 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29591 }
29592 arg5 = static_cast< wxDouble >(val5);
f89238b9
RD
29593 if (obj5) {
29594 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29595 if (!SWIG_IsOK(res6)) {
29596 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29597 }
29598 if (!argp6) {
29599 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29600 }
29601 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
29602 }
72ef6efb 29603 {
f89238b9 29604 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
72ef6efb
RD
29605 if (PyErr_Occurred()) SWIG_fail;
29606 }
29607 resultobj = SWIG_Py_Void();
29608 {
29609 if (temp2)
29610 delete arg2;
29611 }
29612 return resultobj;
29613fail:
29614 {
29615 if (temp2)
29616 delete arg2;
29617 }
29618 return NULL;
29619}
29620
29621
be68621e 29622SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29623 PyObject *resultobj = 0;
29624 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29625 wxString *arg2 = 0 ;
29626 wxDouble *arg3 = (wxDouble *) 0 ;
29627 wxDouble *arg4 = (wxDouble *) 0 ;
29628 wxDouble *arg5 = (wxDouble *) 0 ;
29629 wxDouble *arg6 = (wxDouble *) 0 ;
29630 void *argp1 = 0 ;
29631 int res1 = 0 ;
29632 bool temp2 = false ;
29633 wxDouble temp3 ;
29634 int res3 = SWIG_TMPOBJ ;
29635 wxDouble temp4 ;
29636 int res4 = SWIG_TMPOBJ ;
29637 wxDouble temp5 ;
29638 int res5 = SWIG_TMPOBJ ;
29639 wxDouble temp6 ;
29640 int res6 = SWIG_TMPOBJ ;
29641 PyObject * obj0 = 0 ;
29642 PyObject * obj1 = 0 ;
29643 char * kwnames[] = {
29644 (char *) "self",(char *) "text", NULL
29645 };
29646
29647 arg3 = &temp3;
29648 arg4 = &temp4;
29649 arg5 = &temp5;
29650 arg6 = &temp6;
be68621e 29651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29653 if (!SWIG_IsOK(res1)) {
be68621e 29654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29655 }
29656 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29657 {
29658 arg2 = wxString_in_helper(obj1);
29659 if (arg2 == NULL) SWIG_fail;
29660 temp2 = true;
29661 }
29662 {
72ef6efb 29663 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29664 if (PyErr_Occurred()) SWIG_fail;
29665 }
29666 resultobj = SWIG_Py_Void();
29667 if (SWIG_IsTmpObj(res3)) {
29668 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29669 } else {
29670 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29671 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29672 }
29673 if (SWIG_IsTmpObj(res4)) {
29674 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29675 } else {
29676 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29677 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29678 }
29679 if (SWIG_IsTmpObj(res5)) {
29680 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29681 } else {
29682 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29683 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29684 }
29685 if (SWIG_IsTmpObj(res6)) {
29686 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29687 } else {
29688 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29689 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29690 }
29691 {
29692 if (temp2)
29693 delete arg2;
29694 }
29695 return resultobj;
29696fail:
29697 {
29698 if (temp2)
29699 delete arg2;
29700 }
29701 return NULL;
29702}
29703
29704
be68621e
RD
29705SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29706 PyObject *resultobj = 0;
29707 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29708 wxString *arg2 = 0 ;
29709 PyObject *result = 0 ;
29710 void *argp1 = 0 ;
29711 int res1 = 0 ;
29712 bool temp2 = false ;
29713 PyObject * obj0 = 0 ;
29714 PyObject * obj1 = 0 ;
29715 char * kwnames[] = {
29716 (char *) "self",(char *) "text", NULL
29717 };
29718
29719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29721 if (!SWIG_IsOK(res1)) {
29722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29723 }
29724 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29725 {
29726 arg2 = wxString_in_helper(obj1);
29727 if (arg2 == NULL) SWIG_fail;
29728 temp2 = true;
29729 }
29730 {
29731 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29732 if (PyErr_Occurred()) SWIG_fail;
29733 }
29734 resultobj = result;
29735 {
29736 if (temp2)
29737 delete arg2;
29738 }
29739 return resultobj;
29740fail:
29741 {
29742 if (temp2)
29743 delete arg2;
29744 }
29745 return NULL;
29746}
29747
29748
72ef6efb
RD
29749SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29750 PyObject *resultobj = 0;
29751 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29752 wxString *arg2 = 0 ;
b39fe951 29753 wxArrayDouble result;
72ef6efb
RD
29754 void *argp1 = 0 ;
29755 int res1 = 0 ;
29756 bool temp2 = false ;
72ef6efb
RD
29757 PyObject * obj0 = 0 ;
29758 PyObject * obj1 = 0 ;
72ef6efb 29759 char * kwnames[] = {
b39fe951 29760 (char *) "self",(char *) "text", NULL
72ef6efb
RD
29761 };
29762
b39fe951 29763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29765 if (!SWIG_IsOK(res1)) {
b39fe951 29766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29767 }
29768 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29769 {
29770 arg2 = wxString_in_helper(obj1);
29771 if (arg2 == NULL) SWIG_fail;
29772 temp2 = true;
29773 }
72ef6efb 29774 {
b39fe951 29775 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
29776 if (PyErr_Occurred()) SWIG_fail;
29777 }
b39fe951
RD
29778 {
29779 resultobj = wxArrayDouble2PyList_helper(result);
29780 }
72ef6efb
RD
29781 {
29782 if (temp2)
29783 delete arg2;
29784 }
29785 return resultobj;
29786fail:
29787 {
29788 if (temp2)
29789 delete arg2;
29790 }
29791 return NULL;
29792}
29793
29794
29795SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29796 PyObject *resultobj = 0;
29797 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29798 wxBitmap *arg2 = 0 ;
29799 wxDouble arg3 ;
29800 wxDouble arg4 ;
29801 wxDouble arg5 ;
29802 wxDouble arg6 ;
29803 void *argp1 = 0 ;
29804 int res1 = 0 ;
29805 void *argp2 = 0 ;
29806 int res2 = 0 ;
29807 double val3 ;
29808 int ecode3 = 0 ;
29809 double val4 ;
29810 int ecode4 = 0 ;
29811 double val5 ;
29812 int ecode5 = 0 ;
29813 double val6 ;
29814 int ecode6 = 0 ;
29815 PyObject * obj0 = 0 ;
29816 PyObject * obj1 = 0 ;
29817 PyObject * obj2 = 0 ;
29818 PyObject * obj3 = 0 ;
29819 PyObject * obj4 = 0 ;
29820 PyObject * obj5 = 0 ;
29821 char * kwnames[] = {
29822 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29823 };
29824
29825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29827 if (!SWIG_IsOK(res1)) {
29828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29829 }
29830 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29831 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29832 if (!SWIG_IsOK(res2)) {
29833 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29834 }
29835 if (!argp2) {
29836 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29837 }
29838 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29839 ecode3 = SWIG_AsVal_double(obj2, &val3);
29840 if (!SWIG_IsOK(ecode3)) {
29841 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29842 }
29843 arg3 = static_cast< wxDouble >(val3);
29844 ecode4 = SWIG_AsVal_double(obj3, &val4);
29845 if (!SWIG_IsOK(ecode4)) {
29846 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29847 }
29848 arg4 = static_cast< wxDouble >(val4);
29849 ecode5 = SWIG_AsVal_double(obj4, &val5);
29850 if (!SWIG_IsOK(ecode5)) {
29851 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29852 }
29853 arg5 = static_cast< wxDouble >(val5);
29854 ecode6 = SWIG_AsVal_double(obj5, &val6);
29855 if (!SWIG_IsOK(ecode6)) {
29856 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29857 }
29858 arg6 = static_cast< wxDouble >(val6);
29859 {
72ef6efb 29860 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29861 if (PyErr_Occurred()) SWIG_fail;
29862 }
29863 resultobj = SWIG_Py_Void();
29864 return resultobj;
29865fail:
29866 return NULL;
29867}
29868
29869
29870SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29871 PyObject *resultobj = 0;
29872 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29873 wxIcon *arg2 = 0 ;
29874 wxDouble arg3 ;
29875 wxDouble arg4 ;
29876 wxDouble arg5 ;
29877 wxDouble arg6 ;
29878 void *argp1 = 0 ;
29879 int res1 = 0 ;
29880 void *argp2 = 0 ;
29881 int res2 = 0 ;
29882 double val3 ;
29883 int ecode3 = 0 ;
29884 double val4 ;
29885 int ecode4 = 0 ;
29886 double val5 ;
29887 int ecode5 = 0 ;
70d7cb34
RD
29888 double val6 ;
29889 int ecode6 = 0 ;
29890 PyObject * obj0 = 0 ;
29891 PyObject * obj1 = 0 ;
29892 PyObject * obj2 = 0 ;
29893 PyObject * obj3 = 0 ;
29894 PyObject * obj4 = 0 ;
29895 PyObject * obj5 = 0 ;
29896 char * kwnames[] = {
29897 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29898 };
29899
29900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29902 if (!SWIG_IsOK(res1)) {
29903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29904 }
29905 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29906 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29907 if (!SWIG_IsOK(res2)) {
29908 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29909 }
29910 if (!argp2) {
29911 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29912 }
29913 arg2 = reinterpret_cast< wxIcon * >(argp2);
29914 ecode3 = SWIG_AsVal_double(obj2, &val3);
29915 if (!SWIG_IsOK(ecode3)) {
29916 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29917 }
29918 arg3 = static_cast< wxDouble >(val3);
29919 ecode4 = SWIG_AsVal_double(obj3, &val4);
29920 if (!SWIG_IsOK(ecode4)) {
29921 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29922 }
29923 arg4 = static_cast< wxDouble >(val4);
29924 ecode5 = SWIG_AsVal_double(obj4, &val5);
29925 if (!SWIG_IsOK(ecode5)) {
29926 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29927 }
29928 arg5 = static_cast< wxDouble >(val5);
29929 ecode6 = SWIG_AsVal_double(obj5, &val6);
29930 if (!SWIG_IsOK(ecode6)) {
29931 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29932 }
29933 arg6 = static_cast< wxDouble >(val6);
29934 {
29935 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29936 if (PyErr_Occurred()) SWIG_fail;
29937 }
29938 resultobj = SWIG_Py_Void();
29939 return resultobj;
29940fail:
29941 return NULL;
29942}
29943
29944
29945SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29946 PyObject *resultobj = 0;
29947 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29948 wxDouble arg2 ;
29949 wxDouble arg3 ;
29950 wxDouble arg4 ;
29951 wxDouble arg5 ;
29952 void *argp1 = 0 ;
29953 int res1 = 0 ;
29954 double val2 ;
29955 int ecode2 = 0 ;
29956 double val3 ;
29957 int ecode3 = 0 ;
29958 double val4 ;
29959 int ecode4 = 0 ;
29960 double val5 ;
29961 int ecode5 = 0 ;
29962 PyObject * obj0 = 0 ;
29963 PyObject * obj1 = 0 ;
29964 PyObject * obj2 = 0 ;
29965 PyObject * obj3 = 0 ;
29966 PyObject * obj4 = 0 ;
29967 char * kwnames[] = {
29968 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29969 };
29970
29971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29973 if (!SWIG_IsOK(res1)) {
29974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29975 }
29976 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29977 ecode2 = SWIG_AsVal_double(obj1, &val2);
29978 if (!SWIG_IsOK(ecode2)) {
29979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29980 }
29981 arg2 = static_cast< wxDouble >(val2);
29982 ecode3 = SWIG_AsVal_double(obj2, &val3);
29983 if (!SWIG_IsOK(ecode3)) {
29984 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29985 }
29986 arg3 = static_cast< wxDouble >(val3);
29987 ecode4 = SWIG_AsVal_double(obj3, &val4);
29988 if (!SWIG_IsOK(ecode4)) {
29989 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29990 }
29991 arg4 = static_cast< wxDouble >(val4);
29992 ecode5 = SWIG_AsVal_double(obj4, &val5);
29993 if (!SWIG_IsOK(ecode5)) {
29994 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29995 }
29996 arg5 = static_cast< wxDouble >(val5);
29997 {
29998 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29999 if (PyErr_Occurred()) SWIG_fail;
30000 }
30001 resultobj = SWIG_Py_Void();
30002 return resultobj;
30003fail:
30004 return NULL;
30005}
30006
30007
30008SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30009 PyObject *resultobj = 0;
30010 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30011 size_t arg2 ;
30012 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30013 void *argp1 = 0 ;
30014 int res1 = 0 ;
30015 PyObject * obj0 = 0 ;
30016 PyObject * obj1 = 0 ;
30017 char * kwnames[] = {
30018 (char *) "self",(char *) "points", NULL
30019 };
30020
30021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
30022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30023 if (!SWIG_IsOK(res1)) {
30024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30025 }
30026 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30027 {
30028 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30029 if (arg3 == NULL) SWIG_fail;
30030 }
30031 {
30032 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
30033 if (PyErr_Occurred()) SWIG_fail;
30034 }
30035 resultobj = SWIG_Py_Void();
30036 {
30037 if (arg3) delete [] arg3;
30038 }
30039 return resultobj;
30040fail:
30041 {
30042 if (arg3) delete [] arg3;
30043 }
30044 return NULL;
30045}
30046
30047
30048SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30049 PyObject *resultobj = 0;
30050 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30051 PyObject *arg2 = (PyObject *) 0 ;
30052 PyObject *arg3 = (PyObject *) 0 ;
30053 void *argp1 = 0 ;
30054 int res1 = 0 ;
30055 PyObject * obj0 = 0 ;
30056 PyObject * obj1 = 0 ;
30057 PyObject * obj2 = 0 ;
30058 char * kwnames[] = {
30059 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
30060 };
30061
30062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30064 if (!SWIG_IsOK(res1)) {
30065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30066 }
30067 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30068 arg2 = obj1;
30069 arg3 = obj2;
30070 {
30071 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
30072 if (PyErr_Occurred()) SWIG_fail;
30073 }
30074 resultobj = SWIG_Py_Void();
30075 return resultobj;
30076fail:
30077 return NULL;
30078}
30079
30080
30081SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30082 PyObject *resultobj = 0;
30083 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30084 size_t arg2 ;
30085 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
8f514ab4 30086 int arg4 = (int) wxODDEVEN_RULE ;
70d7cb34
RD
30087 void *argp1 = 0 ;
30088 int res1 = 0 ;
30089 int val4 ;
30090 int ecode4 = 0 ;
30091 PyObject * obj0 = 0 ;
30092 PyObject * obj1 = 0 ;
30093 PyObject * obj2 = 0 ;
30094 char * kwnames[] = {
30095 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
30096 };
30097
30098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30100 if (!SWIG_IsOK(res1)) {
30101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30102 }
30103 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30104 {
30105 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30106 if (arg3 == NULL) SWIG_fail;
30107 }
30108 if (obj2) {
30109 ecode4 = SWIG_AsVal_int(obj2, &val4);
30110 if (!SWIG_IsOK(ecode4)) {
30111 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
30112 }
30113 arg4 = static_cast< int >(val4);
30114 }
30115 {
30116 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
30117 if (PyErr_Occurred()) SWIG_fail;
30118 }
30119 resultobj = SWIG_Py_Void();
30120 {
30121 if (arg3) delete [] arg3;
30122 }
30123 return resultobj;
30124fail:
30125 {
30126 if (arg3) delete [] arg3;
30127 }
30128 return NULL;
30129}
30130
30131
30132SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30133 PyObject *resultobj = 0;
30134 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30135 wxDouble arg2 ;
30136 wxDouble arg3 ;
30137 wxDouble arg4 ;
30138 wxDouble arg5 ;
30139 void *argp1 = 0 ;
30140 int res1 = 0 ;
30141 double val2 ;
30142 int ecode2 = 0 ;
30143 double val3 ;
30144 int ecode3 = 0 ;
30145 double val4 ;
30146 int ecode4 = 0 ;
30147 double val5 ;
30148 int ecode5 = 0 ;
30149 PyObject * obj0 = 0 ;
30150 PyObject * obj1 = 0 ;
30151 PyObject * obj2 = 0 ;
30152 PyObject * obj3 = 0 ;
30153 PyObject * obj4 = 0 ;
30154 char * kwnames[] = {
30155 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30156 };
30157
30158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30160 if (!SWIG_IsOK(res1)) {
30161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30162 }
30163 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30164 ecode2 = SWIG_AsVal_double(obj1, &val2);
30165 if (!SWIG_IsOK(ecode2)) {
30166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30167 }
30168 arg2 = static_cast< wxDouble >(val2);
30169 ecode3 = SWIG_AsVal_double(obj2, &val3);
30170 if (!SWIG_IsOK(ecode3)) {
30171 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
30172 }
30173 arg3 = static_cast< wxDouble >(val3);
30174 ecode4 = SWIG_AsVal_double(obj3, &val4);
30175 if (!SWIG_IsOK(ecode4)) {
30176 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30177 }
30178 arg4 = static_cast< wxDouble >(val4);
30179 ecode5 = SWIG_AsVal_double(obj4, &val5);
30180 if (!SWIG_IsOK(ecode5)) {
30181 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30182 }
30183 arg5 = static_cast< wxDouble >(val5);
30184 {
30185 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
30186 if (PyErr_Occurred()) SWIG_fail;
30187 }
30188 resultobj = SWIG_Py_Void();
30189 return resultobj;
30190fail:
30191 return NULL;
30192}
30193
30194
30195SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30196 PyObject *resultobj = 0;
30197 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30198 wxDouble arg2 ;
30199 wxDouble arg3 ;
30200 wxDouble arg4 ;
30201 wxDouble arg5 ;
30202 void *argp1 = 0 ;
30203 int res1 = 0 ;
30204 double val2 ;
30205 int ecode2 = 0 ;
30206 double val3 ;
30207 int ecode3 = 0 ;
30208 double val4 ;
30209 int ecode4 = 0 ;
30210 double val5 ;
30211 int ecode5 = 0 ;
72ef6efb
RD
30212 PyObject * obj0 = 0 ;
30213 PyObject * obj1 = 0 ;
30214 PyObject * obj2 = 0 ;
30215 PyObject * obj3 = 0 ;
30216 PyObject * obj4 = 0 ;
72ef6efb 30217 char * kwnames[] = {
70d7cb34 30218 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
72ef6efb
RD
30219 };
30220
70d7cb34 30221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
72ef6efb
RD
30222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30223 if (!SWIG_IsOK(res1)) {
70d7cb34 30224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
30225 }
30226 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
30227 ecode2 = SWIG_AsVal_double(obj1, &val2);
30228 if (!SWIG_IsOK(ecode2)) {
30229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
30230 }
30231 arg2 = static_cast< wxDouble >(val2);
72ef6efb
RD
30232 ecode3 = SWIG_AsVal_double(obj2, &val3);
30233 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30234 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30235 }
30236 arg3 = static_cast< wxDouble >(val3);
30237 ecode4 = SWIG_AsVal_double(obj3, &val4);
30238 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30239 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30240 }
30241 arg4 = static_cast< wxDouble >(val4);
30242 ecode5 = SWIG_AsVal_double(obj4, &val5);
30243 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30244 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30245 }
30246 arg5 = static_cast< wxDouble >(val5);
72ef6efb 30247 {
70d7cb34 30248 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
30249 if (PyErr_Occurred()) SWIG_fail;
30250 }
30251 resultobj = SWIG_Py_Void();
30252 return resultobj;
30253fail:
30254 return NULL;
30255}
30256
30257
70d7cb34 30258SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
30259 PyObject *resultobj = 0;
30260 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30261 wxDouble arg2 ;
30262 wxDouble arg3 ;
30263 wxDouble arg4 ;
30264 wxDouble arg5 ;
70d7cb34 30265 wxDouble arg6 ;
72ef6efb
RD
30266 void *argp1 = 0 ;
30267 int res1 = 0 ;
30268 double val2 ;
30269 int ecode2 = 0 ;
30270 double val3 ;
30271 int ecode3 = 0 ;
30272 double val4 ;
30273 int ecode4 = 0 ;
30274 double val5 ;
30275 int ecode5 = 0 ;
70d7cb34
RD
30276 double val6 ;
30277 int ecode6 = 0 ;
72ef6efb
RD
30278 PyObject * obj0 = 0 ;
30279 PyObject * obj1 = 0 ;
30280 PyObject * obj2 = 0 ;
30281 PyObject * obj3 = 0 ;
30282 PyObject * obj4 = 0 ;
70d7cb34 30283 PyObject * obj5 = 0 ;
72ef6efb 30284 char * kwnames[] = {
70d7cb34 30285 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
72ef6efb
RD
30286 };
30287
70d7cb34 30288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72ef6efb
RD
30289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30290 if (!SWIG_IsOK(res1)) {
70d7cb34 30291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
30292 }
30293 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30294 ecode2 = SWIG_AsVal_double(obj1, &val2);
30295 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30297 }
30298 arg2 = static_cast< wxDouble >(val2);
30299 ecode3 = SWIG_AsVal_double(obj2, &val3);
30300 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30301 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30302 }
30303 arg3 = static_cast< wxDouble >(val3);
30304 ecode4 = SWIG_AsVal_double(obj3, &val4);
30305 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30306 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30307 }
30308 arg4 = static_cast< wxDouble >(val4);
30309 ecode5 = SWIG_AsVal_double(obj4, &val5);
30310 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30311 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30312 }
30313 arg5 = static_cast< wxDouble >(val5);
70d7cb34
RD
30314 ecode6 = SWIG_AsVal_double(obj5, &val6);
30315 if (!SWIG_IsOK(ecode6)) {
30316 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
30317 }
30318 arg6 = static_cast< wxDouble >(val6);
72ef6efb 30319 {
70d7cb34 30320 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
30321 if (PyErr_Occurred()) SWIG_fail;
30322 }
30323 resultobj = SWIG_Py_Void();
30324 return resultobj;
30325fail:
30326 return NULL;
30327}
30328
30329
70d7cb34 30330SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30331 PyObject *resultobj = 0;
30332 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 30333 bool result;
72ef6efb
RD
30334 void *argp1 = 0 ;
30335 int res1 = 0 ;
70d7cb34 30336 PyObject *swig_obj[1] ;
72ef6efb 30337
70d7cb34
RD
30338 if (!args) SWIG_fail;
30339 swig_obj[0] = args;
30340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 30341 if (!SWIG_IsOK(res1)) {
70d7cb34 30342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
30343 }
30344 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951 30345 {
70d7cb34
RD
30346 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
30347 if (PyErr_Occurred()) SWIG_fail;
72ef6efb 30348 }
72ef6efb 30349 {
70d7cb34
RD
30350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30351 }
30352 return resultobj;
30353fail:
30354 return NULL;
30355}
30356
30357
30358SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30359 PyObject *obj;
30360 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30361 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
30362 return SWIG_Py_Void();
30363}
30364
30365SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30366 PyObject *resultobj = 0;
30367 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30368 void *argp1 = 0 ;
30369 int res1 = 0 ;
30370 PyObject *swig_obj[1] ;
30371
30372 if (!args) SWIG_fail;
30373 swig_obj[0] = args;
30374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
30375 if (!SWIG_IsOK(res1)) {
30376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30377 }
30378 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30379 {
30380 delete arg1;
30381
72ef6efb
RD
30382 if (PyErr_Occurred()) SWIG_fail;
30383 }
30384 resultobj = SWIG_Py_Void();
70d7cb34
RD
30385 return resultobj;
30386fail:
30387 return NULL;
30388}
30389
30390
30391SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30392 PyObject *resultobj = 0;
30393 wxGraphicsRenderer *result = 0 ;
30394
30395 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
b39fe951 30396 {
70d7cb34
RD
30397 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
30398 if (PyErr_Occurred()) SWIG_fail;
30399 }
30400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30401 return resultobj;
30402fail:
30403 return NULL;
30404}
30405
30406
30407SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30408 PyObject *resultobj = 0;
30409 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30410 wxWindowDC *arg2 = 0 ;
30411 wxGraphicsContext *result = 0 ;
30412 void *argp1 = 0 ;
30413 int res1 = 0 ;
30414 void *argp2 = 0 ;
30415 int res2 = 0 ;
30416
30417 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30419 if (!SWIG_IsOK(res1)) {
30420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30421 }
30422 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30423 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
30424 if (!SWIG_IsOK(res2)) {
30425 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30426 }
30427 if (!argp2) {
30428 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30429 }
30430 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30431 {
30432 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
30433 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30434 }
70d7cb34 30435 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30436 return resultobj;
30437fail:
70d7cb34
RD
30438 return NULL;
30439}
30440
30441
30442SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30443 PyObject *resultobj = 0;
30444 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30445 wxWindow *arg2 = (wxWindow *) 0 ;
30446 wxGraphicsContext *result = 0 ;
30447 void *argp1 = 0 ;
30448 int res1 = 0 ;
30449 void *argp2 = 0 ;
30450 int res2 = 0 ;
30451
30452 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30454 if (!SWIG_IsOK(res1)) {
30455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30456 }
30457 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30458 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30459 if (!SWIG_IsOK(res2)) {
30460 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
30461 }
30462 arg2 = reinterpret_cast< wxWindow * >(argp2);
b39fe951 30463 {
70d7cb34
RD
30464 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
30465 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30466 }
70d7cb34
RD
30467 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30468 return resultobj;
30469fail:
72ef6efb
RD
30470 return NULL;
30471}
30472
30473
70d7cb34
RD
30474SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
30475 int argc;
30476 PyObject *argv[3];
30477
30478 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
30479 --argc;
30480 if (argc == 2) {
30481 int _v = 0;
30482 {
30483 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
30484 _v = SWIG_CheckState(res);
30485 }
30486 if (!_v) goto check_1;
30487 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30488 }
30489check_1:
30490
30491 if (argc == 2) {
30492 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30493 }
30494
30495fail:
30496 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30497 return NULL;
30498}
30499
30500
f89238b9
RD
30501SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30502 PyObject *resultobj = 0;
30503 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30504 wxGraphicsContext *result = 0 ;
30505 void *argp1 = 0 ;
30506 int res1 = 0 ;
30507 PyObject *swig_obj[1] ;
30508
30509 if (!args) SWIG_fail;
30510 swig_obj[0] = args;
30511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30512 if (!SWIG_IsOK(res1)) {
30513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30514 }
30515 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30516 {
30517 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
30518 if (PyErr_Occurred()) SWIG_fail;
30519 }
30520 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30521 return resultobj;
30522fail:
30523 return NULL;
30524}
30525
30526
70d7cb34 30527SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30528 PyObject *resultobj = 0;
70d7cb34
RD
30529 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30530 void *arg2 = (void *) 0 ;
30531 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30532 void *argp1 = 0 ;
30533 int res1 = 0 ;
70d7cb34 30534 int res2 ;
b39fe951
RD
30535 PyObject * obj0 = 0 ;
30536 PyObject * obj1 = 0 ;
b39fe951 30537 char * kwnames[] = {
70d7cb34 30538 (char *) "self",(char *) "context", NULL
b39fe951 30539 };
72ef6efb 30540
70d7cb34
RD
30541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30543 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30545 }
30546 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30547 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30548 if (!SWIG_IsOK(res2)) {
30549 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
72ef6efb 30550 }
72ef6efb 30551 {
70d7cb34 30552 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
72ef6efb
RD
30553 if (PyErr_Occurred()) SWIG_fail;
30554 }
70d7cb34 30555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30556 return resultobj;
30557fail:
30558 return NULL;
30559}
30560
30561
70d7cb34 30562SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30563 PyObject *resultobj = 0;
70d7cb34
RD
30564 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30565 void *arg2 = (void *) 0 ;
30566 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30567 void *argp1 = 0 ;
30568 int res1 = 0 ;
70d7cb34 30569 int res2 ;
72ef6efb
RD
30570 PyObject * obj0 = 0 ;
30571 PyObject * obj1 = 0 ;
72ef6efb 30572 char * kwnames[] = {
70d7cb34 30573 (char *) "self",(char *) "window", NULL
72ef6efb
RD
30574 };
30575
70d7cb34
RD
30576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30578 if (!SWIG_IsOK(res1)) {
70d7cb34 30579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30580 }
70d7cb34
RD
30581 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30582 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30583 if (!SWIG_IsOK(res2)) {
30584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
72ef6efb
RD
30585 }
30586 {
70d7cb34 30587 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
72ef6efb
RD
30588 if (PyErr_Occurred()) SWIG_fail;
30589 }
70d7cb34 30590 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30591 return resultobj;
30592fail:
70d7cb34
RD
30593 return NULL;
30594}
30595
30596
30597SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30598 PyObject *resultobj = 0;
30599 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
5c8c7dd3 30600 wxGraphicsPath result;
70d7cb34
RD
30601 void *argp1 = 0 ;
30602 int res1 = 0 ;
30603 PyObject *swig_obj[1] ;
30604
30605 if (!args) SWIG_fail;
30606 swig_obj[0] = args;
30607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30608 if (!SWIG_IsOK(res1)) {
30609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30610 }
30611 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
b39fe951 30612 {
5c8c7dd3 30613 result = (arg1)->CreatePath();
70d7cb34 30614 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30615 }
5c8c7dd3 30616 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
30617 return resultobj;
30618fail:
72ef6efb
RD
30619 return NULL;
30620}
30621
30622
70d7cb34 30623SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30624 PyObject *resultobj = 0;
70d7cb34
RD
30625 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30626 wxDouble arg2 = (wxDouble) 1.0 ;
30627 wxDouble arg3 = (wxDouble) 0.0 ;
30628 wxDouble arg4 = (wxDouble) 0.0 ;
30629 wxDouble arg5 = (wxDouble) 1.0 ;
30630 wxDouble arg6 = (wxDouble) 0.0 ;
30631 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 30632 wxGraphicsMatrix result;
72ef6efb
RD
30633 void *argp1 = 0 ;
30634 int res1 = 0 ;
30635 double val2 ;
30636 int ecode2 = 0 ;
30637 double val3 ;
30638 int ecode3 = 0 ;
30639 double val4 ;
30640 int ecode4 = 0 ;
30641 double val5 ;
30642 int ecode5 = 0 ;
70d7cb34
RD
30643 double val6 ;
30644 int ecode6 = 0 ;
30645 double val7 ;
30646 int ecode7 = 0 ;
72ef6efb
RD
30647 PyObject * obj0 = 0 ;
30648 PyObject * obj1 = 0 ;
30649 PyObject * obj2 = 0 ;
30650 PyObject * obj3 = 0 ;
30651 PyObject * obj4 = 0 ;
70d7cb34
RD
30652 PyObject * obj5 = 0 ;
30653 PyObject * obj6 = 0 ;
72ef6efb 30654 char * kwnames[] = {
70d7cb34 30655 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
72ef6efb
RD
30656 };
30657
70d7cb34
RD
30658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30660 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30662 }
30663 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30664 if (obj1) {
30665 ecode2 = SWIG_AsVal_double(obj1, &val2);
30666 if (!SWIG_IsOK(ecode2)) {
30667 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30668 }
30669 arg2 = static_cast< wxDouble >(val2);
30670 }
30671 if (obj2) {
30672 ecode3 = SWIG_AsVal_double(obj2, &val3);
30673 if (!SWIG_IsOK(ecode3)) {
30674 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30675 }
30676 arg3 = static_cast< wxDouble >(val3);
30677 }
30678 if (obj3) {
30679 ecode4 = SWIG_AsVal_double(obj3, &val4);
30680 if (!SWIG_IsOK(ecode4)) {
30681 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30682 }
30683 arg4 = static_cast< wxDouble >(val4);
30684 }
30685 if (obj4) {
30686 ecode5 = SWIG_AsVal_double(obj4, &val5);
30687 if (!SWIG_IsOK(ecode5)) {
30688 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30689 }
30690 arg5 = static_cast< wxDouble >(val5);
30691 }
30692 if (obj5) {
30693 ecode6 = SWIG_AsVal_double(obj5, &val6);
30694 if (!SWIG_IsOK(ecode6)) {
30695 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30696 }
30697 arg6 = static_cast< wxDouble >(val6);
30698 }
30699 if (obj6) {
30700 ecode7 = SWIG_AsVal_double(obj6, &val7);
30701 if (!SWIG_IsOK(ecode7)) {
30702 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30703 }
30704 arg7 = static_cast< wxDouble >(val7);
72ef6efb 30705 }
72ef6efb 30706 {
5c8c7dd3 30707 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
30708 if (PyErr_Occurred()) SWIG_fail;
30709 }
5c8c7dd3 30710 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30711 return resultobj;
30712fail:
30713 return NULL;
30714}
30715
30716
70d7cb34 30717SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30718 PyObject *resultobj = 0;
70d7cb34
RD
30719 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30720 wxPen *arg2 = 0 ;
30721 wxGraphicsPen result;
30722 void *argp1 = 0 ;
30723 int res1 = 0 ;
30724 void *argp2 = 0 ;
30725 int res2 = 0 ;
30726 PyObject * obj0 = 0 ;
30727 PyObject * obj1 = 0 ;
30728 char * kwnames[] = {
30729 (char *) "self",(char *) "pen", NULL
30730 };
30731
30732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30734 if (!SWIG_IsOK(res1)) {
30735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30736 }
30737 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30738 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30739 if (!SWIG_IsOK(res2)) {
30740 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30741 }
30742 if (!argp2) {
30743 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30744 }
30745 arg2 = reinterpret_cast< wxPen * >(argp2);
30746 {
30747 result = (arg1)->CreatePen((wxPen const &)*arg2);
30748 if (PyErr_Occurred()) SWIG_fail;
30749 }
30750 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30751 return resultobj;
30752fail:
30753 return NULL;
30754}
30755
30756
30757SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30758 PyObject *resultobj = 0;
30759 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30760 wxBrush *arg2 = 0 ;
30761 wxGraphicsBrush result;
30762 void *argp1 = 0 ;
30763 int res1 = 0 ;
30764 void *argp2 = 0 ;
30765 int res2 = 0 ;
30766 PyObject * obj0 = 0 ;
30767 PyObject * obj1 = 0 ;
30768 char * kwnames[] = {
30769 (char *) "self",(char *) "brush", NULL
30770 };
30771
30772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30774 if (!SWIG_IsOK(res1)) {
30775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30776 }
30777 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30778 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30779 if (!SWIG_IsOK(res2)) {
30780 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30781 }
30782 if (!argp2) {
30783 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30784 }
30785 arg2 = reinterpret_cast< wxBrush * >(argp2);
30786 {
30787 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30788 if (PyErr_Occurred()) SWIG_fail;
30789 }
30790 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30791 return resultobj;
30792fail:
30793 return NULL;
30794}
30795
30796
30797SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30798 PyObject *resultobj = 0;
30799 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30800 wxDouble arg2 ;
30801 wxDouble arg3 ;
30802 wxDouble arg4 ;
30803 wxDouble arg5 ;
70d7cb34
RD
30804 wxColour *arg6 = 0 ;
30805 wxColour *arg7 = 0 ;
30806 wxGraphicsBrush result;
72ef6efb
RD
30807 void *argp1 = 0 ;
30808 int res1 = 0 ;
30809 double val2 ;
30810 int ecode2 = 0 ;
30811 double val3 ;
30812 int ecode3 = 0 ;
30813 double val4 ;
30814 int ecode4 = 0 ;
30815 double val5 ;
30816 int ecode5 = 0 ;
70d7cb34
RD
30817 wxColour temp6 ;
30818 wxColour temp7 ;
72ef6efb
RD
30819 PyObject * obj0 = 0 ;
30820 PyObject * obj1 = 0 ;
30821 PyObject * obj2 = 0 ;
30822 PyObject * obj3 = 0 ;
30823 PyObject * obj4 = 0 ;
70d7cb34
RD
30824 PyObject * obj5 = 0 ;
30825 PyObject * obj6 = 0 ;
72ef6efb 30826 char * kwnames[] = {
70d7cb34 30827 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
30828 };
30829
70d7cb34
RD
30830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30832 if (!SWIG_IsOK(res1)) {
70d7cb34 30833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30834 }
70d7cb34 30835 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30836 ecode2 = SWIG_AsVal_double(obj1, &val2);
30837 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30839 }
30840 arg2 = static_cast< wxDouble >(val2);
30841 ecode3 = SWIG_AsVal_double(obj2, &val3);
30842 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30843 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30844 }
30845 arg3 = static_cast< wxDouble >(val3);
30846 ecode4 = SWIG_AsVal_double(obj3, &val4);
30847 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30848 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30849 }
30850 arg4 = static_cast< wxDouble >(val4);
30851 ecode5 = SWIG_AsVal_double(obj4, &val5);
30852 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30853 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30854 }
30855 arg5 = static_cast< wxDouble >(val5);
30856 {
70d7cb34
RD
30857 arg6 = &temp6;
30858 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30859 }
30860 {
30861 arg7 = &temp7;
30862 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30863 }
30864 {
30865 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
30866 if (PyErr_Occurred()) SWIG_fail;
30867 }
70d7cb34 30868 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30869 return resultobj;
30870fail:
30871 return NULL;
30872}
30873
30874
70d7cb34 30875SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30876 PyObject *resultobj = 0;
70d7cb34 30877 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30878 wxDouble arg2 ;
30879 wxDouble arg3 ;
30880 wxDouble arg4 ;
30881 wxDouble arg5 ;
30882 wxDouble arg6 ;
70d7cb34
RD
30883 wxColour *arg7 = 0 ;
30884 wxColour *arg8 = 0 ;
30885 wxGraphicsBrush result;
72ef6efb
RD
30886 void *argp1 = 0 ;
30887 int res1 = 0 ;
30888 double val2 ;
30889 int ecode2 = 0 ;
30890 double val3 ;
30891 int ecode3 = 0 ;
30892 double val4 ;
30893 int ecode4 = 0 ;
30894 double val5 ;
30895 int ecode5 = 0 ;
30896 double val6 ;
30897 int ecode6 = 0 ;
70d7cb34
RD
30898 wxColour temp7 ;
30899 wxColour temp8 ;
72ef6efb
RD
30900 PyObject * obj0 = 0 ;
30901 PyObject * obj1 = 0 ;
30902 PyObject * obj2 = 0 ;
30903 PyObject * obj3 = 0 ;
30904 PyObject * obj4 = 0 ;
30905 PyObject * obj5 = 0 ;
70d7cb34
RD
30906 PyObject * obj6 = 0 ;
30907 PyObject * obj7 = 0 ;
72ef6efb 30908 char * kwnames[] = {
70d7cb34 30909 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
30910 };
30911
70d7cb34
RD
30912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30914 if (!SWIG_IsOK(res1)) {
70d7cb34 30915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30916 }
70d7cb34 30917 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30918 ecode2 = SWIG_AsVal_double(obj1, &val2);
30919 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30921 }
30922 arg2 = static_cast< wxDouble >(val2);
30923 ecode3 = SWIG_AsVal_double(obj2, &val3);
30924 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30925 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30926 }
30927 arg3 = static_cast< wxDouble >(val3);
30928 ecode4 = SWIG_AsVal_double(obj3, &val4);
30929 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30930 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30931 }
30932 arg4 = static_cast< wxDouble >(val4);
30933 ecode5 = SWIG_AsVal_double(obj4, &val5);
30934 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30935 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30936 }
30937 arg5 = static_cast< wxDouble >(val5);
30938 ecode6 = SWIG_AsVal_double(obj5, &val6);
30939 if (!SWIG_IsOK(ecode6)) {
70d7cb34 30940 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
30941 }
30942 arg6 = static_cast< wxDouble >(val6);
30943 {
70d7cb34
RD
30944 arg7 = &temp7;
30945 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30946 }
30947 {
30948 arg8 = &temp8;
30949 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30950 }
30951 {
30952 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
30953 if (PyErr_Occurred()) SWIG_fail;
30954 }
70d7cb34 30955 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30956 return resultobj;
30957fail:
30958 return NULL;
30959}
30960
30961
70d7cb34
RD
30962SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30963 PyObject *resultobj = 0;
30964 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30965 wxFont *arg2 = 0 ;
30966 wxColour const &arg3_defvalue = *wxBLACK ;
30967 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30968 wxGraphicsFont result;
30969 void *argp1 = 0 ;
30970 int res1 = 0 ;
30971 void *argp2 = 0 ;
30972 int res2 = 0 ;
30973 wxColour temp3 ;
30974 PyObject * obj0 = 0 ;
30975 PyObject * obj1 = 0 ;
30976 PyObject * obj2 = 0 ;
30977 char * kwnames[] = {
30978 (char *) "self",(char *) "font",(char *) "col", NULL
30979 };
30980
30981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30983 if (!SWIG_IsOK(res1)) {
30984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30985 }
30986 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30987 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30988 if (!SWIG_IsOK(res2)) {
30989 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30990 }
30991 if (!argp2) {
30992 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30993 }
30994 arg2 = reinterpret_cast< wxFont * >(argp2);
30995 if (obj2) {
30996 {
30997 arg3 = &temp3;
30998 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30999 }
31000 }
31001 {
31002 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
31003 if (PyErr_Occurred()) SWIG_fail;
31004 }
31005 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
31006 return resultobj;
31007fail:
31008 return NULL;
31009}
31010
31011
31012SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
31013 PyObject *obj;
31014 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
70d7cb34 31015 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
72ef6efb
RD
31016 return SWIG_Py_Void();
31017}
31018
48a0c021 31019SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
31020 PyObject *resultobj = 0;
31021 wxWindowDC *arg1 = 0 ;
31022 wxGCDC *result = 0 ;
31023 void *argp1 = 0 ;
31024 int res1 = 0 ;
72ef6efb 31025
48a0c021
RD
31026 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
72ef6efb
RD
31028 if (!SWIG_IsOK(res1)) {
31029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31030 }
31031 if (!argp1) {
31032 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31033 }
31034 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
31035 {
31036 if (!wxPyCheckForApp()) SWIG_fail;
31037 PyThreadState* __tstate = wxPyBeginAllowThreads();
31038 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
31039 wxPyEndAllowThreads(__tstate);
31040 if (PyErr_Occurred()) SWIG_fail;
31041 }
31042 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31043 return resultobj;
31044fail:
31045 return NULL;
31046}
31047
31048
48a0c021
RD
31049SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31050 PyObject *resultobj = 0;
31051 wxWindow *arg1 = (wxWindow *) 0 ;
31052 wxGCDC *result = 0 ;
31053 void *argp1 = 0 ;
31054 int res1 = 0 ;
31055
31056 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31058 if (!SWIG_IsOK(res1)) {
31059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'");
31060 }
31061 arg1 = reinterpret_cast< wxWindow * >(argp1);
31062 {
31063 if (!wxPyCheckForApp()) SWIG_fail;
31064 PyThreadState* __tstate = wxPyBeginAllowThreads();
31065 result = (wxGCDC *)new wxGCDC(arg1);
31066 wxPyEndAllowThreads(__tstate);
31067 if (PyErr_Occurred()) SWIG_fail;
31068 }
31069 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31070 return resultobj;
31071fail:
31072 return NULL;
31073}
31074
31075
31076SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) {
31077 int argc;
31078 PyObject *argv[2];
31079
31080 if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail;
31081 --argc;
31082 if (argc == 1) {
31083 int _v = 0;
31084 {
31085 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
31086 _v = SWIG_CheckState(res);
31087 }
31088 if (!_v) goto check_1;
31089 return _wrap_new_GCDC__SWIG_0(self, argc, argv);
31090 }
31091check_1:
31092
31093 if (argc == 1) {
31094 return _wrap_new_GCDC__SWIG_1(self, argc, argv);
31095 }
31096
31097fail:
31098 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'");
31099 return NULL;
31100}
31101
31102
72ef6efb
RD
31103SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31104 PyObject *resultobj = 0;
31105 wxGCDC *arg1 = (wxGCDC *) 0 ;
31106 void *argp1 = 0 ;
31107 int res1 = 0 ;
31108 PyObject *swig_obj[1] ;
31109
31110 if (!args) SWIG_fail;
31111 swig_obj[0] = args;
31112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
31113 if (!SWIG_IsOK(res1)) {
31114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
31115 }
31116 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31117 {
72ef6efb
RD
31118 delete arg1;
31119
72ef6efb
RD
31120 if (PyErr_Occurred()) SWIG_fail;
31121 }
31122 resultobj = SWIG_Py_Void();
31123 return resultobj;
31124fail:
31125 return NULL;
31126}
31127
31128
0a27f394 31129SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
31130 PyObject *resultobj = 0;
31131 wxGCDC *arg1 = (wxGCDC *) 0 ;
31132 wxGraphicsContext *result = 0 ;
31133 void *argp1 = 0 ;
31134 int res1 = 0 ;
31135 PyObject *swig_obj[1] ;
31136
31137 if (!args) SWIG_fail;
31138 swig_obj[0] = args;
31139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31140 if (!SWIG_IsOK(res1)) {
0a27f394 31141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
31142 }
31143 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31144 {
0a27f394 31145 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
31146 if (PyErr_Occurred()) SWIG_fail;
31147 }
31148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31149 return resultobj;
31150fail:
31151 return NULL;
31152}
31153
31154
0a27f394
RD
31155SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31156 PyObject *resultobj = 0;
31157 wxGCDC *arg1 = (wxGCDC *) 0 ;
31158 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
31159 void *argp1 = 0 ;
31160 int res1 = 0 ;
31161 void *argp2 = 0 ;
31162 int res2 = 0 ;
31163 PyObject * obj0 = 0 ;
31164 PyObject * obj1 = 0 ;
31165 char * kwnames[] = {
31166 (char *) "self",(char *) "ctx", NULL
31167 };
31168
31169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
31170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31171 if (!SWIG_IsOK(res1)) {
31172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
31173 }
31174 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31175 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31176 if (!SWIG_IsOK(res2)) {
31177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
31178 }
31179 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
31180 {
31181 (arg1)->SetGraphicsContext(arg2);
31182 if (PyErr_Occurred()) SWIG_fail;
31183 }
31184 resultobj = SWIG_Py_Void();
31185 return resultobj;
31186fail:
31187 return NULL;
31188}
31189
31190
72ef6efb
RD
31191SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31192 PyObject *obj;
31193 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31194 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
31195 return SWIG_Py_Void();
31196}
31197
31198SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31199 return SWIG_Python_InitShadowInstance(args);
31200}
31201
b39fe951
RD
31202SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31203 PyObject *resultobj = 0;
31204 wxOverlay *result = 0 ;
31205
31206 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
31207 {
31208 PyThreadState* __tstate = wxPyBeginAllowThreads();
31209 result = (wxOverlay *)new wxOverlay();
31210 wxPyEndAllowThreads(__tstate);
31211 if (PyErr_Occurred()) SWIG_fail;
31212 }
31213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
31214 return resultobj;
31215fail:
31216 return NULL;
31217}
31218
31219
31220SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31221 PyObject *resultobj = 0;
31222 wxOverlay *arg1 = (wxOverlay *) 0 ;
31223 void *argp1 = 0 ;
31224 int res1 = 0 ;
31225 PyObject *swig_obj[1] ;
31226
31227 if (!args) SWIG_fail;
31228 swig_obj[0] = args;
31229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
31230 if (!SWIG_IsOK(res1)) {
31231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
31232 }
31233 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31234 {
31235 PyThreadState* __tstate = wxPyBeginAllowThreads();
31236 delete arg1;
31237
31238 wxPyEndAllowThreads(__tstate);
31239 if (PyErr_Occurred()) SWIG_fail;
31240 }
31241 resultobj = SWIG_Py_Void();
31242 return resultobj;
31243fail:
31244 return NULL;
31245}
31246
31247
31248SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31249 PyObject *resultobj = 0;
31250 wxOverlay *arg1 = (wxOverlay *) 0 ;
31251 void *argp1 = 0 ;
31252 int res1 = 0 ;
31253 PyObject *swig_obj[1] ;
31254
31255 if (!args) SWIG_fail;
31256 swig_obj[0] = args;
31257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
31258 if (!SWIG_IsOK(res1)) {
31259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
31260 }
31261 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31262 {
31263 PyThreadState* __tstate = wxPyBeginAllowThreads();
31264 (arg1)->Reset();
31265 wxPyEndAllowThreads(__tstate);
31266 if (PyErr_Occurred()) SWIG_fail;
31267 }
31268 resultobj = SWIG_Py_Void();
31269 return resultobj;
31270fail:
31271 return NULL;
31272}
31273
31274
31275SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31276 PyObject *obj;
31277 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31278 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
31279 return SWIG_Py_Void();
31280}
31281
31282SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31283 return SWIG_Python_InitShadowInstance(args);
31284}
31285
31286SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31287 PyObject *resultobj = 0;
31288 wxOverlay *arg1 = 0 ;
31289 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31290 int arg3 ;
31291 int arg4 ;
31292 int arg5 ;
31293 int arg6 ;
31294 wxDCOverlay *result = 0 ;
31295 void *argp1 = 0 ;
31296 int res1 = 0 ;
31297 void *argp2 = 0 ;
31298 int res2 = 0 ;
31299 int val3 ;
31300 int ecode3 = 0 ;
31301 int val4 ;
31302 int ecode4 = 0 ;
31303 int val5 ;
31304 int ecode5 = 0 ;
31305 int val6 ;
31306 int ecode6 = 0 ;
31307
31308 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
31309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31310 if (!SWIG_IsOK(res1)) {
31311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31312 }
31313 if (!argp1) {
31314 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31315 }
31316 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31317 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31318 if (!SWIG_IsOK(res2)) {
31319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31320 }
31321 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31322 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31323 if (!SWIG_IsOK(ecode3)) {
31324 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
31325 }
31326 arg3 = static_cast< int >(val3);
31327 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
31328 if (!SWIG_IsOK(ecode4)) {
31329 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
31330 }
31331 arg4 = static_cast< int >(val4);
31332 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
31333 if (!SWIG_IsOK(ecode5)) {
31334 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
31335 }
31336 arg5 = static_cast< int >(val5);
31337 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
31338 if (!SWIG_IsOK(ecode6)) {
31339 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
31340 }
31341 arg6 = static_cast< int >(val6);
31342 {
31343 PyThreadState* __tstate = wxPyBeginAllowThreads();
31344 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
31345 wxPyEndAllowThreads(__tstate);
31346 if (PyErr_Occurred()) SWIG_fail;
31347 }
31348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31349 return resultobj;
31350fail:
31351 return NULL;
31352}
31353
31354
31355SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31356 PyObject *resultobj = 0;
31357 wxOverlay *arg1 = 0 ;
31358 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31359 wxDCOverlay *result = 0 ;
31360 void *argp1 = 0 ;
31361 int res1 = 0 ;
31362 void *argp2 = 0 ;
31363 int res2 = 0 ;
31364
31365 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31367 if (!SWIG_IsOK(res1)) {
31368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31369 }
31370 if (!argp1) {
31371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31372 }
31373 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31374 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31375 if (!SWIG_IsOK(res2)) {
31376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31377 }
31378 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31379 {
31380 PyThreadState* __tstate = wxPyBeginAllowThreads();
31381 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
31382 wxPyEndAllowThreads(__tstate);
31383 if (PyErr_Occurred()) SWIG_fail;
31384 }
31385 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31386 return resultobj;
31387fail:
31388 return NULL;
31389}
31390
31391
31392SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
31393 int argc;
31394 PyObject *argv[7];
31395
31396 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
31397 --argc;
31398 if (argc == 2) {
31399 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
31400 }
31401 if (argc == 6) {
31402 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
31403 }
31404
31405fail:
31406 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
31407 return NULL;
31408}
31409
31410
31411SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31412 PyObject *resultobj = 0;
31413 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31414 void *argp1 = 0 ;
31415 int res1 = 0 ;
31416 PyObject *swig_obj[1] ;
31417
31418 if (!args) SWIG_fail;
31419 swig_obj[0] = args;
31420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
31421 if (!SWIG_IsOK(res1)) {
31422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31423 }
31424 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31425 {
31426 PyThreadState* __tstate = wxPyBeginAllowThreads();
31427 delete arg1;
31428
31429 wxPyEndAllowThreads(__tstate);
31430 if (PyErr_Occurred()) SWIG_fail;
31431 }
31432 resultobj = SWIG_Py_Void();
31433 return resultobj;
31434fail:
31435 return NULL;
31436}
31437
31438
31439SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31440 PyObject *resultobj = 0;
31441 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31442 void *argp1 = 0 ;
31443 int res1 = 0 ;
31444 PyObject *swig_obj[1] ;
31445
31446 if (!args) SWIG_fail;
31447 swig_obj[0] = args;
31448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
31449 if (!SWIG_IsOK(res1)) {
31450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31451 }
31452 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31453 {
31454 PyThreadState* __tstate = wxPyBeginAllowThreads();
31455 (arg1)->Clear();
31456 wxPyEndAllowThreads(__tstate);
31457 if (PyErr_Occurred()) SWIG_fail;
31458 }
31459 resultobj = SWIG_Py_Void();
31460 return resultobj;
31461fail:
31462 return NULL;
31463}
31464
31465
31466SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31467 PyObject *obj;
31468 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31469 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
31470 return SWIG_Py_Void();
31471}
31472
31473SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31474 return SWIG_Python_InitShadowInstance(args);
31475}
31476
72ef6efb
RD
31477SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31478 PyObject *resultobj = 0;
31479 int arg1 ;
31480 int arg2 ;
31481 int arg3 = (int) true ;
31482 int arg4 = (int) 1 ;
31483 wxImageList *result = 0 ;
31484 int val1 ;
31485 int ecode1 = 0 ;
31486 int val2 ;
31487 int ecode2 = 0 ;
31488 int val3 ;
31489 int ecode3 = 0 ;
31490 int val4 ;
31491 int ecode4 = 0 ;
31492 PyObject * obj0 = 0 ;
31493 PyObject * obj1 = 0 ;
31494 PyObject * obj2 = 0 ;
31495 PyObject * obj3 = 0 ;
31496 char * kwnames[] = {
31497 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
31498 };
31499
31500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31501 ecode1 = SWIG_AsVal_int(obj0, &val1);
31502 if (!SWIG_IsOK(ecode1)) {
31503 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
31504 }
31505 arg1 = static_cast< int >(val1);
31506 ecode2 = SWIG_AsVal_int(obj1, &val2);
31507 if (!SWIG_IsOK(ecode2)) {
31508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
31509 }
31510 arg2 = static_cast< int >(val2);
31511 if (obj2) {
31512 ecode3 = SWIG_AsVal_int(obj2, &val3);
31513 if (!SWIG_IsOK(ecode3)) {
31514 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
31515 }
31516 arg3 = static_cast< int >(val3);
31517 }
31518 if (obj3) {
31519 ecode4 = SWIG_AsVal_int(obj3, &val4);
31520 if (!SWIG_IsOK(ecode4)) {
31521 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31522 }
31523 arg4 = static_cast< int >(val4);
31524 }
31525 {
31526 if (!wxPyCheckForApp()) SWIG_fail;
31527 PyThreadState* __tstate = wxPyBeginAllowThreads();
31528 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31529 wxPyEndAllowThreads(__tstate);
31530 if (PyErr_Occurred()) SWIG_fail;
31531 }
e02c0a13 31532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
31533 return resultobj;
31534fail:
31535 return NULL;
31536}
31537
31538
31539SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31540 PyObject *resultobj = 0;
31541 wxImageList *arg1 = (wxImageList *) 0 ;
31542 void *argp1 = 0 ;
31543 int res1 = 0 ;
31544 PyObject *swig_obj[1] ;
31545
31546 if (!args) SWIG_fail;
31547 swig_obj[0] = args;
31548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
31549 if (!SWIG_IsOK(res1)) {
31550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
31551 }
31552 arg1 = reinterpret_cast< wxImageList * >(argp1);
31553 {
31554 PyThreadState* __tstate = wxPyBeginAllowThreads();
31555 delete arg1;
31556
31557 wxPyEndAllowThreads(__tstate);
31558 if (PyErr_Occurred()) SWIG_fail;
31559 }
31560 resultobj = SWIG_Py_Void();
31561 return resultobj;
31562fail:
31563 return NULL;
31564}
31565
31566
31567SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31568 PyObject *resultobj = 0;
31569 wxImageList *arg1 = (wxImageList *) 0 ;
31570 wxBitmap *arg2 = 0 ;
31571 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31572 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31573 int result;
31574 void *argp1 = 0 ;
31575 int res1 = 0 ;
31576 void *argp2 = 0 ;
31577 int res2 = 0 ;
31578 void *argp3 = 0 ;
31579 int res3 = 0 ;
31580 PyObject * obj0 = 0 ;
31581 PyObject * obj1 = 0 ;
31582 PyObject * obj2 = 0 ;
31583 char * kwnames[] = {
31584 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
31585 };
31586
31587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31589 if (!SWIG_IsOK(res1)) {
31590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
31591 }
31592 arg1 = reinterpret_cast< wxImageList * >(argp1);
31593 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31594 if (!SWIG_IsOK(res2)) {
31595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31596 }
31597 if (!argp2) {
31598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31599 }
31600 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31601 if (obj2) {
31602 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31603 if (!SWIG_IsOK(res3)) {
31604 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31605 }
31606 if (!argp3) {
31607 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31608 }
31609 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31610 }
31611 {
31612 PyThreadState* __tstate = wxPyBeginAllowThreads();
31613 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31614 wxPyEndAllowThreads(__tstate);
31615 if (PyErr_Occurred()) SWIG_fail;
31616 }
31617 resultobj = SWIG_From_int(static_cast< int >(result));
31618 return resultobj;
31619fail:
31620 return NULL;
31621}
31622
31623
31624SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31625 PyObject *resultobj = 0;
31626 wxImageList *arg1 = (wxImageList *) 0 ;
31627 wxBitmap *arg2 = 0 ;
31628 wxColour *arg3 = 0 ;
31629 int result;
31630 void *argp1 = 0 ;
31631 int res1 = 0 ;
31632 void *argp2 = 0 ;
31633 int res2 = 0 ;
31634 wxColour temp3 ;
31635 PyObject * obj0 = 0 ;
31636 PyObject * obj1 = 0 ;
31637 PyObject * obj2 = 0 ;
31638 char * kwnames[] = {
31639 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31640 };
31641
31642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31644 if (!SWIG_IsOK(res1)) {
31645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31646 }
31647 arg1 = reinterpret_cast< wxImageList * >(argp1);
31648 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31649 if (!SWIG_IsOK(res2)) {
31650 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31651 }
31652 if (!argp2) {
31653 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31654 }
31655 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31656 {
31657 arg3 = &temp3;
31658 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31659 }
31660 {
31661 PyThreadState* __tstate = wxPyBeginAllowThreads();
31662 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31663 wxPyEndAllowThreads(__tstate);
31664 if (PyErr_Occurred()) SWIG_fail;
31665 }
31666 resultobj = SWIG_From_int(static_cast< int >(result));
31667 return resultobj;
31668fail:
31669 return NULL;
31670}
31671
31672
31673SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31674 PyObject *resultobj = 0;
31675 wxImageList *arg1 = (wxImageList *) 0 ;
31676 wxIcon *arg2 = 0 ;
31677 int result;
31678 void *argp1 = 0 ;
31679 int res1 = 0 ;
31680 void *argp2 = 0 ;
31681 int res2 = 0 ;
31682 PyObject * obj0 = 0 ;
31683 PyObject * obj1 = 0 ;
31684 char * kwnames[] = {
31685 (char *) "self",(char *) "icon", NULL
31686 };
31687
31688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31690 if (!SWIG_IsOK(res1)) {
31691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31692 }
1bd55598
RD
31693 arg1 = reinterpret_cast< wxImageList * >(argp1);
31694 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31695 if (!SWIG_IsOK(res2)) {
31696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31697 }
31698 if (!argp2) {
31699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31700 }
31701 arg2 = reinterpret_cast< wxIcon * >(argp2);
31702 {
31703 PyThreadState* __tstate = wxPyBeginAllowThreads();
31704 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31705 wxPyEndAllowThreads(__tstate);
31706 if (PyErr_Occurred()) SWIG_fail;
31707 }
31708 resultobj = SWIG_From_int(static_cast< int >(result));
31709 return resultobj;
31710fail:
31711 return NULL;
31712}
31713
31714
31715SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31716 PyObject *resultobj = 0;
31717 wxImageList *arg1 = (wxImageList *) 0 ;
31718 int arg2 ;
31719 SwigValueWrapper<wxBitmap > result;
31720 void *argp1 = 0 ;
31721 int res1 = 0 ;
31722 int val2 ;
31723 int ecode2 = 0 ;
31724 PyObject * obj0 = 0 ;
31725 PyObject * obj1 = 0 ;
31726 char * kwnames[] = {
31727 (char *) "self",(char *) "index", NULL
31728 };
31729
31730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31732 if (!SWIG_IsOK(res1)) {
31733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31734 }
31735 arg1 = reinterpret_cast< wxImageList * >(argp1);
31736 ecode2 = SWIG_AsVal_int(obj1, &val2);
31737 if (!SWIG_IsOK(ecode2)) {
31738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31739 }
31740 arg2 = static_cast< int >(val2);
31741 {
31742 PyThreadState* __tstate = wxPyBeginAllowThreads();
31743 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31744 wxPyEndAllowThreads(__tstate);
31745 if (PyErr_Occurred()) SWIG_fail;
31746 }
31747 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31748 return resultobj;
31749fail:
31750 return NULL;
31751}
31752
31753
31754SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31755 PyObject *resultobj = 0;
31756 wxImageList *arg1 = (wxImageList *) 0 ;
31757 int arg2 ;
31758 wxIcon result;
31759 void *argp1 = 0 ;
31760 int res1 = 0 ;
31761 int val2 ;
31762 int ecode2 = 0 ;
31763 PyObject * obj0 = 0 ;
31764 PyObject * obj1 = 0 ;
31765 char * kwnames[] = {
31766 (char *) "self",(char *) "index", NULL
31767 };
31768
31769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31771 if (!SWIG_IsOK(res1)) {
31772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31773 }
31774 arg1 = reinterpret_cast< wxImageList * >(argp1);
31775 ecode2 = SWIG_AsVal_int(obj1, &val2);
31776 if (!SWIG_IsOK(ecode2)) {
31777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31778 }
31779 arg2 = static_cast< int >(val2);
31780 {
31781 PyThreadState* __tstate = wxPyBeginAllowThreads();
31782 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31783 wxPyEndAllowThreads(__tstate);
31784 if (PyErr_Occurred()) SWIG_fail;
31785 }
31786 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31787 return resultobj;
31788fail:
31789 return NULL;
31790}
31791
31792
31793SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31794 PyObject *resultobj = 0;
31795 wxImageList *arg1 = (wxImageList *) 0 ;
31796 int arg2 ;
31797 wxBitmap *arg3 = 0 ;
2131d850
RD
31798 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31799 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1bd55598
RD
31800 bool result;
31801 void *argp1 = 0 ;
31802 int res1 = 0 ;
31803 int val2 ;
31804 int ecode2 = 0 ;
31805 void *argp3 = 0 ;
31806 int res3 = 0 ;
2131d850
RD
31807 void *argp4 = 0 ;
31808 int res4 = 0 ;
1bd55598
RD
31809 PyObject * obj0 = 0 ;
31810 PyObject * obj1 = 0 ;
31811 PyObject * obj2 = 0 ;
2131d850 31812 PyObject * obj3 = 0 ;
1bd55598 31813 char * kwnames[] = {
2131d850 31814 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
1bd55598
RD
31815 };
31816
2131d850 31817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
31818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31819 if (!SWIG_IsOK(res1)) {
31820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31821 }
31822 arg1 = reinterpret_cast< wxImageList * >(argp1);
31823 ecode2 = SWIG_AsVal_int(obj1, &val2);
31824 if (!SWIG_IsOK(ecode2)) {
31825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31826 }
31827 arg2 = static_cast< int >(val2);
31828 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31829 if (!SWIG_IsOK(res3)) {
31830 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31831 }
31832 if (!argp3) {
31833 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31834 }
31835 arg3 = reinterpret_cast< wxBitmap * >(argp3);
2131d850
RD
31836 if (obj3) {
31837 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31838 if (!SWIG_IsOK(res4)) {
31839 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31840 }
31841 if (!argp4) {
31842 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31843 }
31844 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31845 }
1bd55598
RD
31846 {
31847 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850 31848 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
1bd55598
RD
31849 wxPyEndAllowThreads(__tstate);
31850 if (PyErr_Occurred()) SWIG_fail;
31851 }
31852 {
31853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31854 }
31855 return resultobj;
31856fail:
31857 return NULL;
31858}
31859
31860
31861SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31862 PyObject *resultobj = 0;
31863 wxImageList *arg1 = (wxImageList *) 0 ;
31864 int arg2 ;
31865 wxDC *arg3 = 0 ;
31866 int arg4 ;
31867 int arg5 ;
31868 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31869 bool arg7 = (bool) (bool)false ;
31870 bool result;
31871 void *argp1 = 0 ;
31872 int res1 = 0 ;
31873 int val2 ;
31874 int ecode2 = 0 ;
31875 void *argp3 = 0 ;
31876 int res3 = 0 ;
31877 int val4 ;
31878 int ecode4 = 0 ;
31879 int val5 ;
31880 int ecode5 = 0 ;
31881 int val6 ;
31882 int ecode6 = 0 ;
31883 bool val7 ;
31884 int ecode7 = 0 ;
31885 PyObject * obj0 = 0 ;
31886 PyObject * obj1 = 0 ;
31887 PyObject * obj2 = 0 ;
31888 PyObject * obj3 = 0 ;
31889 PyObject * obj4 = 0 ;
31890 PyObject * obj5 = 0 ;
31891 PyObject * obj6 = 0 ;
31892 char * kwnames[] = {
31893 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31894 };
31895
31896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31898 if (!SWIG_IsOK(res1)) {
31899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31900 }
31901 arg1 = reinterpret_cast< wxImageList * >(argp1);
31902 ecode2 = SWIG_AsVal_int(obj1, &val2);
31903 if (!SWIG_IsOK(ecode2)) {
31904 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31905 }
31906 arg2 = static_cast< int >(val2);
31907 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31908 if (!SWIG_IsOK(res3)) {
31909 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31910 }
31911 if (!argp3) {
31912 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31913 }
31914 arg3 = reinterpret_cast< wxDC * >(argp3);
31915 ecode4 = SWIG_AsVal_int(obj3, &val4);
31916 if (!SWIG_IsOK(ecode4)) {
31917 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31918 }
31919 arg4 = static_cast< int >(val4);
31920 ecode5 = SWIG_AsVal_int(obj4, &val5);
31921 if (!SWIG_IsOK(ecode5)) {
31922 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31923 }
31924 arg5 = static_cast< int >(val5);
31925 if (obj5) {
31926 ecode6 = SWIG_AsVal_int(obj5, &val6);
31927 if (!SWIG_IsOK(ecode6)) {
31928 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31929 }
31930 arg6 = static_cast< int >(val6);
31931 }
31932 if (obj6) {
31933 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31934 if (!SWIG_IsOK(ecode7)) {
31935 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31936 }
31937 arg7 = static_cast< bool >(val7);
31938 }
31939 {
31940 PyThreadState* __tstate = wxPyBeginAllowThreads();
31941 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31942 wxPyEndAllowThreads(__tstate);
31943 if (PyErr_Occurred()) SWIG_fail;
31944 }
31945 {
31946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31947 }
31948 return resultobj;
31949fail:
31950 return NULL;
31951}
31952
31953
31954SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31955 PyObject *resultobj = 0;
31956 wxImageList *arg1 = (wxImageList *) 0 ;
31957 int result;
31958 void *argp1 = 0 ;
31959 int res1 = 0 ;
31960 PyObject *swig_obj[1] ;
31961
31962 if (!args) SWIG_fail;
31963 swig_obj[0] = args;
31964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31965 if (!SWIG_IsOK(res1)) {
31966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31967 }
31968 arg1 = reinterpret_cast< wxImageList * >(argp1);
31969 {
31970 PyThreadState* __tstate = wxPyBeginAllowThreads();
31971 result = (int)(arg1)->GetImageCount();
31972 wxPyEndAllowThreads(__tstate);
31973 if (PyErr_Occurred()) SWIG_fail;
31974 }
31975 resultobj = SWIG_From_int(static_cast< int >(result));
31976 return resultobj;
31977fail:
31978 return NULL;
31979}
31980
31981
31982SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31983 PyObject *resultobj = 0;
31984 wxImageList *arg1 = (wxImageList *) 0 ;
31985 int arg2 ;
31986 bool result;
31987 void *argp1 = 0 ;
31988 int res1 = 0 ;
31989 int val2 ;
31990 int ecode2 = 0 ;
31991 PyObject * obj0 = 0 ;
31992 PyObject * obj1 = 0 ;
31993 char * kwnames[] = {
31994 (char *) "self",(char *) "index", NULL
31995 };
31996
31997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31999 if (!SWIG_IsOK(res1)) {
32000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
32001 }
32002 arg1 = reinterpret_cast< wxImageList * >(argp1);
32003 ecode2 = SWIG_AsVal_int(obj1, &val2);
32004 if (!SWIG_IsOK(ecode2)) {
32005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
32006 }
32007 arg2 = static_cast< int >(val2);
32008 {
32009 PyThreadState* __tstate = wxPyBeginAllowThreads();
32010 result = (bool)(arg1)->Remove(arg2);
32011 wxPyEndAllowThreads(__tstate);
32012 if (PyErr_Occurred()) SWIG_fail;
32013 }
32014 {
32015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32016 }
32017 return resultobj;
32018fail:
32019 return NULL;
32020}
32021
32022
32023SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32024 PyObject *resultobj = 0;
32025 wxImageList *arg1 = (wxImageList *) 0 ;
32026 bool result;
32027 void *argp1 = 0 ;
32028 int res1 = 0 ;
32029 PyObject *swig_obj[1] ;
32030
32031 if (!args) SWIG_fail;
32032 swig_obj[0] = args;
32033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32034 if (!SWIG_IsOK(res1)) {
32035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
32036 }
32037 arg1 = reinterpret_cast< wxImageList * >(argp1);
32038 {
32039 PyThreadState* __tstate = wxPyBeginAllowThreads();
32040 result = (bool)(arg1)->RemoveAll();
32041 wxPyEndAllowThreads(__tstate);
32042 if (PyErr_Occurred()) SWIG_fail;
32043 }
32044 {
32045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32046 }
32047 return resultobj;
32048fail:
32049 return NULL;
32050}
32051
32052
32053SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32054 PyObject *resultobj = 0;
32055 wxImageList *arg1 = (wxImageList *) 0 ;
32056 int arg2 ;
32057 int *arg3 = 0 ;
32058 int *arg4 = 0 ;
32059 void *argp1 = 0 ;
32060 int res1 = 0 ;
32061 int val2 ;
32062 int ecode2 = 0 ;
32063 int temp3 ;
32064 int res3 = SWIG_TMPOBJ ;
32065 int temp4 ;
32066 int res4 = SWIG_TMPOBJ ;
32067 PyObject * obj0 = 0 ;
32068 PyObject * obj1 = 0 ;
32069 char * kwnames[] = {
32070 (char *) "self",(char *) "index", NULL
32071 };
32072
32073 arg3 = &temp3;
32074 arg4 = &temp4;
32075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
32076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32077 if (!SWIG_IsOK(res1)) {
32078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
32079 }
32080 arg1 = reinterpret_cast< wxImageList * >(argp1);
32081 ecode2 = SWIG_AsVal_int(obj1, &val2);
32082 if (!SWIG_IsOK(ecode2)) {
32083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
32084 }
32085 arg2 = static_cast< int >(val2);
32086 {
32087 PyThreadState* __tstate = wxPyBeginAllowThreads();
32088 (arg1)->GetSize(arg2,*arg3,*arg4);
32089 wxPyEndAllowThreads(__tstate);
32090 if (PyErr_Occurred()) SWIG_fail;
32091 }
32092 resultobj = SWIG_Py_Void();
32093 if (SWIG_IsTmpObj(res3)) {
32094 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
32095 } else {
32096 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32097 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
32098 }
32099 if (SWIG_IsTmpObj(res4)) {
32100 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
32101 } else {
32102 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32103 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
32104 }
32105 return resultobj;
32106fail:
32107 return NULL;
32108}
32109
32110
32111SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32112 PyObject *obj;
32113 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32114 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
32115 return SWIG_Py_Void();
32116}
32117
32118SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32119 return SWIG_Python_InitShadowInstance(args);
32120}
32121
da91cb0f
RD
32122SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32123 PyObject *resultobj = 0;
32124 wxStockGDI *result = 0 ;
1bd55598 32125
da91cb0f
RD
32126 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
32127 {
32128 PyThreadState* __tstate = wxPyBeginAllowThreads();
32129 result = (wxStockGDI *)new wxStockGDI();
32130 wxPyEndAllowThreads(__tstate);
32131 if (PyErr_Occurred()) SWIG_fail;
32132 }
32133 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
32134 return resultobj;
32135fail:
32136 return NULL;
1bd55598
RD
32137}
32138
32139
da91cb0f
RD
32140SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32141 PyObject *resultobj = 0;
32142 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32143 void *argp1 = 0 ;
32144 int res1 = 0 ;
32145 PyObject *swig_obj[1] ;
1bd55598 32146
da91cb0f
RD
32147 if (!args) SWIG_fail;
32148 swig_obj[0] = args;
32149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
32150 if (!SWIG_IsOK(res1)) {
32151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32152 }
32153 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32154 {
32155 PyThreadState* __tstate = wxPyBeginAllowThreads();
32156 delete arg1;
32157
32158 wxPyEndAllowThreads(__tstate);
32159 if (PyErr_Occurred()) SWIG_fail;
32160 }
32161 resultobj = SWIG_Py_Void();
32162 return resultobj;
32163fail:
32164 return NULL;
1bd55598
RD
32165}
32166
32167
da91cb0f
RD
32168SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32169 PyObject *resultobj = 0;
1bd55598 32170
da91cb0f
RD
32171 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
32172 {
32173 PyThreadState* __tstate = wxPyBeginAllowThreads();
32174 wxStockGDI::DeleteAll();
32175 wxPyEndAllowThreads(__tstate);
32176 if (PyErr_Occurred()) SWIG_fail;
32177 }
32178 resultobj = SWIG_Py_Void();
32179 return resultobj;
32180fail:
32181 return NULL;
1bd55598
RD
32182}
32183
32184
da91cb0f
RD
32185SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32186 PyObject *resultobj = 0;
32187 wxStockGDI *result = 0 ;
1bd55598 32188
da91cb0f
RD
32189 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
32190 {
32191 PyThreadState* __tstate = wxPyBeginAllowThreads();
32192 {
32193 wxStockGDI &_result_ref = wxStockGDI::instance();
32194 result = (wxStockGDI *) &_result_ref;
32195 }
32196 wxPyEndAllowThreads(__tstate);
32197 if (PyErr_Occurred()) SWIG_fail;
32198 }
32199 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
32200 return resultobj;
32201fail:
32202 return NULL;
1bd55598
RD
32203}
32204
32205
da91cb0f
RD
32206SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32207 PyObject *resultobj = 0;
32208 wxStockGDI::Item arg1 ;
32209 wxBrush *result = 0 ;
32210 int val1 ;
32211 int ecode1 = 0 ;
32212 PyObject * obj0 = 0 ;
32213 char * kwnames[] = {
32214 (char *) "item", NULL
32215 };
32216
32217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
32218 ecode1 = SWIG_AsVal_int(obj0, &val1);
32219 if (!SWIG_IsOK(ecode1)) {
32220 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32221 }
32222 arg1 = static_cast< wxStockGDI::Item >(val1);
32223 {
32224 PyThreadState* __tstate = wxPyBeginAllowThreads();
32225 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
32226 wxPyEndAllowThreads(__tstate);
32227 if (PyErr_Occurred()) SWIG_fail;
32228 }
32229 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32230 return resultobj;
32231fail:
32232 return NULL;
1bd55598
RD
32233}
32234
32235
da91cb0f
RD
32236SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32237 PyObject *resultobj = 0;
32238 wxStockGDI::Item arg1 ;
32239 wxColour *result = 0 ;
32240 int val1 ;
32241 int ecode1 = 0 ;
32242 PyObject * obj0 = 0 ;
32243 char * kwnames[] = {
32244 (char *) "item", NULL
32245 };
1bd55598 32246
da91cb0f
RD
32247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
32248 ecode1 = SWIG_AsVal_int(obj0, &val1);
32249 if (!SWIG_IsOK(ecode1)) {
32250 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32251 }
32252 arg1 = static_cast< wxStockGDI::Item >(val1);
32253 {
32254 PyThreadState* __tstate = wxPyBeginAllowThreads();
32255 result = (wxColour *)wxStockGDI::GetColour(arg1);
32256 wxPyEndAllowThreads(__tstate);
32257 if (PyErr_Occurred()) SWIG_fail;
32258 }
32259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
32260 return resultobj;
32261fail:
32262 return NULL;
1bd55598
RD
32263}
32264
32265
da91cb0f
RD
32266SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32267 PyObject *resultobj = 0;
32268 wxStockGDI::Item arg1 ;
32269 wxCursor *result = 0 ;
32270 int val1 ;
32271 int ecode1 = 0 ;
32272 PyObject * obj0 = 0 ;
32273 char * kwnames[] = {
32274 (char *) "item", NULL
32275 };
32276
32277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
32278 ecode1 = SWIG_AsVal_int(obj0, &val1);
32279 if (!SWIG_IsOK(ecode1)) {
32280 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32281 }
32282 arg1 = static_cast< wxStockGDI::Item >(val1);
32283 {
32284 PyThreadState* __tstate = wxPyBeginAllowThreads();
32285 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
32286 wxPyEndAllowThreads(__tstate);
32287 if (PyErr_Occurred()) SWIG_fail;
32288 }
32289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
32290 return resultobj;
32291fail:
32292 return NULL;
1bd55598
RD
32293}
32294
32295
da91cb0f
RD
32296SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32297 PyObject *resultobj = 0;
32298 wxStockGDI::Item arg1 ;
32299 wxPen *result = 0 ;
32300 int val1 ;
32301 int ecode1 = 0 ;
32302 PyObject * obj0 = 0 ;
32303 char * kwnames[] = {
32304 (char *) "item", NULL
32305 };
32306
32307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
32308 ecode1 = SWIG_AsVal_int(obj0, &val1);
32309 if (!SWIG_IsOK(ecode1)) {
32310 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32311 }
32312 arg1 = static_cast< wxStockGDI::Item >(val1);
32313 {
32314 PyThreadState* __tstate = wxPyBeginAllowThreads();
32315 result = (wxPen *)wxStockGDI::GetPen(arg1);
32316 wxPyEndAllowThreads(__tstate);
32317 if (PyErr_Occurred()) SWIG_fail;
32318 }
32319 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32320 return resultobj;
32321fail:
32322 return NULL;
1bd55598
RD
32323}
32324
32325
da91cb0f
RD
32326SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32327 PyObject *resultobj = 0;
32328 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32329 wxStockGDI::Item arg2 ;
32330 wxFont *result = 0 ;
32331 void *argp1 = 0 ;
32332 int res1 = 0 ;
32333 int val2 ;
32334 int ecode2 = 0 ;
32335 PyObject * obj0 = 0 ;
32336 PyObject * obj1 = 0 ;
32337 char * kwnames[] = {
32338 (char *) "self",(char *) "item", NULL
32339 };
1bd55598 32340
da91cb0f
RD
32341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
32342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
32343 if (!SWIG_IsOK(res1)) {
32344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32345 }
32346 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32347 ecode2 = SWIG_AsVal_int(obj1, &val2);
32348 if (!SWIG_IsOK(ecode2)) {
32349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
32350 }
32351 arg2 = static_cast< wxStockGDI::Item >(val2);
32352 {
32353 PyThreadState* __tstate = wxPyBeginAllowThreads();
32354 result = (wxFont *)(arg1)->GetFont(arg2);
32355 wxPyEndAllowThreads(__tstate);
32356 if (PyErr_Occurred()) SWIG_fail;
32357 }
32358 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32359 return resultobj;
32360fail:
32361 return NULL;
1bd55598
RD
32362}
32363
32364
da91cb0f
RD
32365SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32366 PyObject *obj;
32367 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32368 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
32369 return SWIG_Py_Void();
1bd55598
RD
32370}
32371
da91cb0f
RD
32372SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32373 return SWIG_Python_InitShadowInstance(args);
1bd55598
RD
32374}
32375
1bd55598
RD
32376SWIGINTERN int NullBitmap_set(PyObject *) {
32377 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
32378 return 1;
32379}
32380
32381
32382SWIGINTERN PyObject *NullBitmap_get(void) {
32383 PyObject *pyobj = 0;
32384
32385 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
32386 return pyobj;
32387}
32388
32389
32390SWIGINTERN int NullIcon_set(PyObject *) {
32391 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
32392 return 1;
32393}
32394
32395
32396SWIGINTERN PyObject *NullIcon_get(void) {
32397 PyObject *pyobj = 0;
32398
32399 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
32400 return pyobj;
32401}
32402
32403
32404SWIGINTERN int NullCursor_set(PyObject *) {
32405 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
32406 return 1;
32407}
32408
32409
32410SWIGINTERN PyObject *NullCursor_get(void) {
32411 PyObject *pyobj = 0;
32412
32413 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
32414 return pyobj;
32415}
32416
32417
32418SWIGINTERN int NullPen_set(PyObject *) {
32419 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
32420 return 1;
32421}
32422
32423
32424SWIGINTERN PyObject *NullPen_get(void) {
32425 PyObject *pyobj = 0;
32426
32427 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
32428 return pyobj;
32429}
32430
32431
32432SWIGINTERN int NullBrush_set(PyObject *) {
32433 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
32434 return 1;
32435}
32436
32437
32438SWIGINTERN PyObject *NullBrush_get(void) {
32439 PyObject *pyobj = 0;
32440
32441 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
32442 return pyobj;
32443}
32444
32445
32446SWIGINTERN int NullPalette_set(PyObject *) {
32447 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
32448 return 1;
32449}
32450
32451
32452SWIGINTERN PyObject *NullPalette_get(void) {
32453 PyObject *pyobj = 0;
32454
32455 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
32456 return pyobj;
32457}
32458
32459
32460SWIGINTERN int NullFont_set(PyObject *) {
32461 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
32462 return 1;
32463}
32464
32465
32466SWIGINTERN PyObject *NullFont_get(void) {
32467 PyObject *pyobj = 0;
32468
32469 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
32470 return pyobj;
32471}
32472
32473
32474SWIGINTERN int NullColour_set(PyObject *) {
32475 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
32476 return 1;
32477}
32478
32479
32480SWIGINTERN PyObject *NullColour_get(void) {
32481 PyObject *pyobj = 0;
32482
32483 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
32484 return pyobj;
32485}
32486
32487
da91cb0f 32488SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 32489 PyObject *resultobj = 0;
da91cb0f
RD
32490 wxGDIObjListBase *result = 0 ;
32491
32492 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
32493 {
32494 PyThreadState* __tstate = wxPyBeginAllowThreads();
32495 result = (wxGDIObjListBase *)new wxGDIObjListBase();
32496 wxPyEndAllowThreads(__tstate);
32497 if (PyErr_Occurred()) SWIG_fail;
32498 }
32499 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
32500 return resultobj;
32501fail:
32502 return NULL;
32503}
32504
32505
32506SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32507 PyObject *resultobj = 0;
32508 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
1bd55598
RD
32509 void *argp1 = 0 ;
32510 int res1 = 0 ;
da91cb0f 32511 PyObject *swig_obj[1] ;
1bd55598 32512
da91cb0f
RD
32513 if (!args) SWIG_fail;
32514 swig_obj[0] = args;
32515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
1bd55598 32516 if (!SWIG_IsOK(res1)) {
da91cb0f 32517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
1bd55598 32518 }
da91cb0f 32519 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
1bd55598
RD
32520 {
32521 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f
RD
32522 delete arg1;
32523
1bd55598
RD
32524 wxPyEndAllowThreads(__tstate);
32525 if (PyErr_Occurred()) SWIG_fail;
32526 }
32527 resultobj = SWIG_Py_Void();
32528 return resultobj;
32529fail:
32530 return NULL;
32531}
32532
32533
da91cb0f
RD
32534SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32535 PyObject *obj;
32536 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32537 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
32538 return SWIG_Py_Void();
32539}
32540
32541SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32542 return SWIG_Python_InitShadowInstance(args);
32543}
32544
1bd55598
RD
32545SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32546 PyObject *resultobj = 0;
32547 wxPenList *arg1 = (wxPenList *) 0 ;
32548 wxColour *arg2 = 0 ;
32549 int arg3 ;
32550 int arg4 ;
32551 wxPen *result = 0 ;
32552 void *argp1 = 0 ;
32553 int res1 = 0 ;
32554 wxColour temp2 ;
32555 int val3 ;
32556 int ecode3 = 0 ;
32557 int val4 ;
32558 int ecode4 = 0 ;
32559 PyObject * obj0 = 0 ;
32560 PyObject * obj1 = 0 ;
32561 PyObject * obj2 = 0 ;
32562 PyObject * obj3 = 0 ;
32563 char * kwnames[] = {
32564 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
32565 };
32566
32567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32569 if (!SWIG_IsOK(res1)) {
32570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32571 }
32572 arg1 = reinterpret_cast< wxPenList * >(argp1);
32573 {
32574 arg2 = &temp2;
32575 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32576 }
32577 ecode3 = SWIG_AsVal_int(obj2, &val3);
32578 if (!SWIG_IsOK(ecode3)) {
32579 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
32580 }
32581 arg3 = static_cast< int >(val3);
32582 ecode4 = SWIG_AsVal_int(obj3, &val4);
32583 if (!SWIG_IsOK(ecode4)) {
32584 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
32585 }
32586 arg4 = static_cast< int >(val4);
32587 {
32588 PyThreadState* __tstate = wxPyBeginAllowThreads();
32589 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
32590 wxPyEndAllowThreads(__tstate);
32591 if (PyErr_Occurred()) SWIG_fail;
32592 }
32593 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32594 return resultobj;
32595fail:
32596 return NULL;
32597}
32598
32599
1bd55598
RD
32600SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32601 PyObject *obj;
32602 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32603 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32604 return SWIG_Py_Void();
32605}
32606
da91cb0f
RD
32607SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32608 PyObject *resultobj = 0;
32609 wxBrushList *arg1 = (wxBrushList *) 0 ;
32610 wxColour *arg2 = 0 ;
32611 int arg3 = (int) wxSOLID ;
32612 wxBrush *result = 0 ;
32613 void *argp1 = 0 ;
32614 int res1 = 0 ;
32615 wxColour temp2 ;
32616 int val3 ;
32617 int ecode3 = 0 ;
32618 PyObject * obj0 = 0 ;
32619 PyObject * obj1 = 0 ;
32620 PyObject * obj2 = 0 ;
32621 char * kwnames[] = {
32622 (char *) "self",(char *) "colour",(char *) "style", NULL
32623 };
32624
32625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32627 if (!SWIG_IsOK(res1)) {
32628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32629 }
32630 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32631 {
32632 arg2 = &temp2;
32633 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32634 }
32635 if (obj2) {
32636 ecode3 = SWIG_AsVal_int(obj2, &val3);
32637 if (!SWIG_IsOK(ecode3)) {
32638 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32639 }
32640 arg3 = static_cast< int >(val3);
32641 }
32642 {
32643 PyThreadState* __tstate = wxPyBeginAllowThreads();
32644 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32645 wxPyEndAllowThreads(__tstate);
32646 if (PyErr_Occurred()) SWIG_fail;
32647 }
32648 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32649 return resultobj;
32650fail:
32651 return NULL;
32652}
32653
32654
da91cb0f
RD
32655SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32656 PyObject *obj;
32657 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32658 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32659 return SWIG_Py_Void();
32660}
32661
32662SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32663 PyObject *resultobj = 0;
32664 wxFontList *arg1 = (wxFontList *) 0 ;
32665 int arg2 ;
32666 int arg3 ;
32667 int arg4 ;
32668 int arg5 ;
32669 bool arg6 = (bool) false ;
32670 wxString const &arg7_defvalue = wxPyEmptyString ;
32671 wxString *arg7 = (wxString *) &arg7_defvalue ;
32672 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32673 wxFont *result = 0 ;
32674 void *argp1 = 0 ;
32675 int res1 = 0 ;
32676 int val2 ;
32677 int ecode2 = 0 ;
1bd55598
RD
32678 int val3 ;
32679 int ecode3 = 0 ;
da91cb0f
RD
32680 int val4 ;
32681 int ecode4 = 0 ;
32682 int val5 ;
32683 int ecode5 = 0 ;
32684 bool val6 ;
32685 int ecode6 = 0 ;
32686 bool temp7 = false ;
32687 int val8 ;
32688 int ecode8 = 0 ;
1bd55598
RD
32689 PyObject * obj0 = 0 ;
32690 PyObject * obj1 = 0 ;
32691 PyObject * obj2 = 0 ;
da91cb0f
RD
32692 PyObject * obj3 = 0 ;
32693 PyObject * obj4 = 0 ;
32694 PyObject * obj5 = 0 ;
32695 PyObject * obj6 = 0 ;
32696 PyObject * obj7 = 0 ;
1bd55598 32697 char * kwnames[] = {
da91cb0f 32698 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
1bd55598
RD
32699 };
32700
da91cb0f
RD
32701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32703 if (!SWIG_IsOK(res1)) {
da91cb0f 32704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32705 }
da91cb0f
RD
32706 arg1 = reinterpret_cast< wxFontList * >(argp1);
32707 ecode2 = SWIG_AsVal_int(obj1, &val2);
32708 if (!SWIG_IsOK(ecode2)) {
32709 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32710 }
32711 arg2 = static_cast< int >(val2);
32712 ecode3 = SWIG_AsVal_int(obj2, &val3);
32713 if (!SWIG_IsOK(ecode3)) {
32714 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32715 }
32716 arg3 = static_cast< int >(val3);
32717 ecode4 = SWIG_AsVal_int(obj3, &val4);
32718 if (!SWIG_IsOK(ecode4)) {
32719 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32720 }
32721 arg4 = static_cast< int >(val4);
32722 ecode5 = SWIG_AsVal_int(obj4, &val5);
32723 if (!SWIG_IsOK(ecode5)) {
32724 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32725 }
32726 arg5 = static_cast< int >(val5);
32727 if (obj5) {
32728 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32729 if (!SWIG_IsOK(ecode6)) {
32730 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32731 }
32732 arg6 = static_cast< bool >(val6);
1bd55598 32733 }
da91cb0f
RD
32734 if (obj6) {
32735 {
32736 arg7 = wxString_in_helper(obj6);
32737 if (arg7 == NULL) SWIG_fail;
32738 temp7 = true;
32739 }
32740 }
32741 if (obj7) {
32742 ecode8 = SWIG_AsVal_int(obj7, &val8);
32743 if (!SWIG_IsOK(ecode8)) {
32744 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
1bd55598 32745 }
da91cb0f 32746 arg8 = static_cast< wxFontEncoding >(val8);
1bd55598
RD
32747 }
32748 {
32749 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32750 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
1bd55598
RD
32751 wxPyEndAllowThreads(__tstate);
32752 if (PyErr_Occurred()) SWIG_fail;
32753 }
da91cb0f
RD
32754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32755 {
32756 if (temp7)
32757 delete arg7;
32758 }
1bd55598
RD
32759 return resultobj;
32760fail:
da91cb0f
RD
32761 {
32762 if (temp7)
32763 delete arg7;
32764 }
1bd55598
RD
32765 return NULL;
32766}
32767
32768
da91cb0f 32769SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
32770 PyObject *obj;
32771 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
da91cb0f 32772 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
1bd55598
RD
32773 return SWIG_Py_Void();
32774}
32775
32776SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32777 PyObject *resultobj = 0;
32778 wxColourDatabase *result = 0 ;
32779
32780 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32781 {
32782 if (!wxPyCheckForApp()) SWIG_fail;
32783 PyThreadState* __tstate = wxPyBeginAllowThreads();
32784 result = (wxColourDatabase *)new wxColourDatabase();
32785 wxPyEndAllowThreads(__tstate);
32786 if (PyErr_Occurred()) SWIG_fail;
32787 }
32788 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32789 return resultobj;
32790fail:
32791 return NULL;
32792}
32793
32794
32795SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32796 PyObject *resultobj = 0;
32797 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32798 void *argp1 = 0 ;
32799 int res1 = 0 ;
32800 PyObject *swig_obj[1] ;
32801
32802 if (!args) SWIG_fail;
32803 swig_obj[0] = args;
32804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32805 if (!SWIG_IsOK(res1)) {
32806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32807 }
32808 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32809 {
32810 PyThreadState* __tstate = wxPyBeginAllowThreads();
32811 delete arg1;
32812
32813 wxPyEndAllowThreads(__tstate);
32814 if (PyErr_Occurred()) SWIG_fail;
32815 }
32816 resultobj = SWIG_Py_Void();
32817 return resultobj;
32818fail:
32819 return NULL;
32820}
32821
32822
32823SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32824 PyObject *resultobj = 0;
32825 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32826 wxString *arg2 = 0 ;
32827 wxColour result;
32828 void *argp1 = 0 ;
32829 int res1 = 0 ;
32830 bool temp2 = false ;
32831 PyObject * obj0 = 0 ;
32832 PyObject * obj1 = 0 ;
32833 char * kwnames[] = {
32834 (char *) "self",(char *) "name", NULL
32835 };
32836
32837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32839 if (!SWIG_IsOK(res1)) {
32840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32841 }
32842 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32843 {
32844 arg2 = wxString_in_helper(obj1);
32845 if (arg2 == NULL) SWIG_fail;
32846 temp2 = true;
32847 }
32848 {
32849 PyThreadState* __tstate = wxPyBeginAllowThreads();
32850 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32851 wxPyEndAllowThreads(__tstate);
32852 if (PyErr_Occurred()) SWIG_fail;
32853 }
32854 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32855 {
32856 if (temp2)
32857 delete arg2;
32858 }
32859 return resultobj;
32860fail:
32861 {
32862 if (temp2)
32863 delete arg2;
32864 }
32865 return NULL;
32866}
32867
32868
32869SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32870 PyObject *resultobj = 0;
32871 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32872 wxColour *arg2 = 0 ;
32873 wxString result;
32874 void *argp1 = 0 ;
32875 int res1 = 0 ;
32876 wxColour temp2 ;
32877 PyObject * obj0 = 0 ;
32878 PyObject * obj1 = 0 ;
32879 char * kwnames[] = {
32880 (char *) "self",(char *) "colour", NULL
32881 };
32882
32883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32885 if (!SWIG_IsOK(res1)) {
32886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32887 }
32888 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32889 {
32890 arg2 = &temp2;
32891 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32892 }
32893 {
32894 PyThreadState* __tstate = wxPyBeginAllowThreads();
32895 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32896 wxPyEndAllowThreads(__tstate);
32897 if (PyErr_Occurred()) SWIG_fail;
32898 }
32899 {
32900#if wxUSE_UNICODE
32901 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32902#else
32903 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32904#endif
32905 }
32906 return resultobj;
32907fail:
32908 return NULL;
32909}
32910
32911
32912SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32913 PyObject *resultobj = 0;
32914 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32915 wxString *arg2 = 0 ;
32916 wxColour *arg3 = 0 ;
32917 void *argp1 = 0 ;
32918 int res1 = 0 ;
32919 bool temp2 = false ;
32920 wxColour temp3 ;
32921 PyObject * obj0 = 0 ;
32922 PyObject * obj1 = 0 ;
32923 PyObject * obj2 = 0 ;
32924 char * kwnames[] = {
32925 (char *) "self",(char *) "name",(char *) "colour", NULL
32926 };
32927
32928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32930 if (!SWIG_IsOK(res1)) {
32931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32932 }
32933 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32934 {
32935 arg2 = wxString_in_helper(obj1);
32936 if (arg2 == NULL) SWIG_fail;
32937 temp2 = true;
32938 }
32939 {
32940 arg3 = &temp3;
32941 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32942 }
32943 {
32944 PyThreadState* __tstate = wxPyBeginAllowThreads();
32945 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32946 wxPyEndAllowThreads(__tstate);
32947 if (PyErr_Occurred()) SWIG_fail;
32948 }
32949 resultobj = SWIG_Py_Void();
32950 {
32951 if (temp2)
32952 delete arg2;
32953 }
32954 return resultobj;
32955fail:
32956 {
32957 if (temp2)
32958 delete arg2;
32959 }
32960 return NULL;
32961}
32962
32963
32964SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32965 PyObject *resultobj = 0;
32966 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32967 wxString *arg2 = 0 ;
32968 int arg3 ;
32969 int arg4 ;
32970 int arg5 ;
32971 void *argp1 = 0 ;
32972 int res1 = 0 ;
32973 bool temp2 = false ;
32974 int val3 ;
32975 int ecode3 = 0 ;
32976 int val4 ;
32977 int ecode4 = 0 ;
da91cb0f
RD
32978 int val5 ;
32979 int ecode5 = 0 ;
1bd55598
RD
32980 PyObject * obj0 = 0 ;
32981 PyObject * obj1 = 0 ;
32982 PyObject * obj2 = 0 ;
32983 PyObject * obj3 = 0 ;
32984 PyObject * obj4 = 0 ;
1bd55598 32985 char * kwnames[] = {
da91cb0f 32986 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
1bd55598
RD
32987 };
32988
da91cb0f
RD
32989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
1bd55598 32991 if (!SWIG_IsOK(res1)) {
da91cb0f
RD
32992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32993 }
32994 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32995 {
32996 arg2 = wxString_in_helper(obj1);
32997 if (arg2 == NULL) SWIG_fail;
32998 temp2 = true;
1bd55598 32999 }
1bd55598
RD
33000 ecode3 = SWIG_AsVal_int(obj2, &val3);
33001 if (!SWIG_IsOK(ecode3)) {
da91cb0f 33002 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
1bd55598
RD
33003 }
33004 arg3 = static_cast< int >(val3);
33005 ecode4 = SWIG_AsVal_int(obj3, &val4);
33006 if (!SWIG_IsOK(ecode4)) {
da91cb0f 33007 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
1bd55598
RD
33008 }
33009 arg4 = static_cast< int >(val4);
33010 ecode5 = SWIG_AsVal_int(obj4, &val5);
33011 if (!SWIG_IsOK(ecode5)) {
da91cb0f 33012 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
1bd55598
RD
33013 }
33014 arg5 = static_cast< int >(val5);
1bd55598
RD
33015 {
33016 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 33017 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
1bd55598
RD
33018 wxPyEndAllowThreads(__tstate);
33019 if (PyErr_Occurred()) SWIG_fail;
33020 }
da91cb0f 33021 resultobj = SWIG_Py_Void();
1bd55598 33022 {
da91cb0f
RD
33023 if (temp2)
33024 delete arg2;
1bd55598
RD
33025 }
33026 return resultobj;
33027fail:
33028 {
da91cb0f
RD
33029 if (temp2)
33030 delete arg2;
1bd55598
RD
33031 }
33032 return NULL;
33033}
33034
33035
da91cb0f
RD
33036SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33037 PyObject *obj;
33038 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33039 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
33040 return SWIG_Py_Void();
33041}
33042
33043SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33044 return SWIG_Python_InitShadowInstance(args);
33045}
33046
33047SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 33048 PyObject *resultobj = 0;
da91cb0f 33049 wxFontList *result = 0 ;
1bd55598 33050
da91cb0f 33051 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
1bd55598
RD
33052 {
33053 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 33054 result = (wxFontList *)_wxPyInitTheFontList();
1bd55598
RD
33055 wxPyEndAllowThreads(__tstate);
33056 if (PyErr_Occurred()) SWIG_fail;
33057 }
da91cb0f 33058 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598
RD
33059 return resultobj;
33060fail:
33061 return NULL;
33062}
33063
33064
da91cb0f 33065SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 33066 PyObject *resultobj = 0;
da91cb0f 33067 wxPenList *result = 0 ;
1bd55598 33068
da91cb0f 33069 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
1bd55598
RD
33070 {
33071 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 33072 result = (wxPenList *)_wxPyInitThePenList();
1bd55598
RD
33073 wxPyEndAllowThreads(__tstate);
33074 if (PyErr_Occurred()) SWIG_fail;
33075 }
da91cb0f 33076 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598
RD
33077 return resultobj;
33078fail:
33079 return NULL;
33080}
33081
33082
da91cb0f
RD
33083SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33084 PyObject *resultobj = 0;
33085 wxBrushList *result = 0 ;
1bd55598 33086
da91cb0f
RD
33087 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
33088 {
33089 PyThreadState* __tstate = wxPyBeginAllowThreads();
33090 result = (wxBrushList *)_wxPyInitTheBrushList();
33091 wxPyEndAllowThreads(__tstate);
33092 if (PyErr_Occurred()) SWIG_fail;
33093 }
33094 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
33095 return resultobj;
33096fail:
33097 return NULL;
1bd55598
RD
33098}
33099
33100
da91cb0f
RD
33101SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33102 PyObject *resultobj = 0;
33103 wxColourDatabase *result = 0 ;
1bd55598 33104
da91cb0f
RD
33105 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
33106 {
33107 PyThreadState* __tstate = wxPyBeginAllowThreads();
33108 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
33109 wxPyEndAllowThreads(__tstate);
33110 if (PyErr_Occurred()) SWIG_fail;
33111 }
33112 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33113 return resultobj;
33114fail:
33115 return NULL;
1bd55598
RD
33116}
33117
33118
33119SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33120 PyObject *resultobj = 0;
33121 wxEffects *result = 0 ;
33122
33123 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
33124 {
33125 PyThreadState* __tstate = wxPyBeginAllowThreads();
33126 result = (wxEffects *)new wxEffects();
33127 wxPyEndAllowThreads(__tstate);
33128 if (PyErr_Occurred()) SWIG_fail;
33129 }
33130 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
33131 return resultobj;
33132fail:
33133 return NULL;
33134}
33135
33136
33137SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33138 PyObject *resultobj = 0;
33139 wxEffects *arg1 = (wxEffects *) 0 ;
33140 wxColour result;
33141 void *argp1 = 0 ;
33142 int res1 = 0 ;
33143 PyObject *swig_obj[1] ;
33144
33145 if (!args) SWIG_fail;
33146 swig_obj[0] = args;
33147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33148 if (!SWIG_IsOK(res1)) {
33149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33150 }
33151 arg1 = reinterpret_cast< wxEffects * >(argp1);
33152 {
33153 PyThreadState* __tstate = wxPyBeginAllowThreads();
33154 result = ((wxEffects const *)arg1)->GetHighlightColour();
33155 wxPyEndAllowThreads(__tstate);
33156 if (PyErr_Occurred()) SWIG_fail;
33157 }
33158 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33159 return resultobj;
33160fail:
33161 return NULL;
33162}
33163
33164
33165SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33166 PyObject *resultobj = 0;
33167 wxEffects *arg1 = (wxEffects *) 0 ;
33168 wxColour result;
33169 void *argp1 = 0 ;
33170 int res1 = 0 ;
33171 PyObject *swig_obj[1] ;
33172
33173 if (!args) SWIG_fail;
33174 swig_obj[0] = args;
33175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33176 if (!SWIG_IsOK(res1)) {
33177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33178 }
33179 arg1 = reinterpret_cast< wxEffects * >(argp1);
33180 {
33181 PyThreadState* __tstate = wxPyBeginAllowThreads();
33182 result = ((wxEffects const *)arg1)->GetLightShadow();
33183 wxPyEndAllowThreads(__tstate);
33184 if (PyErr_Occurred()) SWIG_fail;
33185 }
33186 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33187 return resultobj;
33188fail:
33189 return NULL;
33190}
33191
33192
33193SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33194 PyObject *resultobj = 0;
33195 wxEffects *arg1 = (wxEffects *) 0 ;
33196 wxColour result;
33197 void *argp1 = 0 ;
33198 int res1 = 0 ;
33199 PyObject *swig_obj[1] ;
33200
33201 if (!args) SWIG_fail;
33202 swig_obj[0] = args;
33203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33204 if (!SWIG_IsOK(res1)) {
33205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33206 }
33207 arg1 = reinterpret_cast< wxEffects * >(argp1);
33208 {
33209 PyThreadState* __tstate = wxPyBeginAllowThreads();
33210 result = ((wxEffects const *)arg1)->GetFaceColour();
33211 wxPyEndAllowThreads(__tstate);
33212 if (PyErr_Occurred()) SWIG_fail;
33213 }
33214 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33215 return resultobj;
33216fail:
33217 return NULL;
33218}
33219
33220
33221SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33222 PyObject *resultobj = 0;
33223 wxEffects *arg1 = (wxEffects *) 0 ;
33224 wxColour result;
33225 void *argp1 = 0 ;
33226 int res1 = 0 ;
33227 PyObject *swig_obj[1] ;
33228
33229 if (!args) SWIG_fail;
33230 swig_obj[0] = args;
33231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33232 if (!SWIG_IsOK(res1)) {
33233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33234 }
33235 arg1 = reinterpret_cast< wxEffects * >(argp1);
33236 {
33237 PyThreadState* __tstate = wxPyBeginAllowThreads();
33238 result = ((wxEffects const *)arg1)->GetMediumShadow();
33239 wxPyEndAllowThreads(__tstate);
33240 if (PyErr_Occurred()) SWIG_fail;
33241 }
33242 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33243 return resultobj;
33244fail:
33245 return NULL;
33246}
33247
33248
33249SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33250 PyObject *resultobj = 0;
33251 wxEffects *arg1 = (wxEffects *) 0 ;
33252 wxColour result;
33253 void *argp1 = 0 ;
33254 int res1 = 0 ;
33255 PyObject *swig_obj[1] ;
33256
33257 if (!args) SWIG_fail;
33258 swig_obj[0] = args;
33259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33260 if (!SWIG_IsOK(res1)) {
33261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33262 }
33263 arg1 = reinterpret_cast< wxEffects * >(argp1);
33264 {
33265 PyThreadState* __tstate = wxPyBeginAllowThreads();
33266 result = ((wxEffects const *)arg1)->GetDarkShadow();
33267 wxPyEndAllowThreads(__tstate);
33268 if (PyErr_Occurred()) SWIG_fail;
33269 }
33270 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33271 return resultobj;
33272fail:
33273 return NULL;
33274}
33275
33276
33277SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33278 PyObject *resultobj = 0;
33279 wxEffects *arg1 = (wxEffects *) 0 ;
33280 wxColour *arg2 = 0 ;
33281 void *argp1 = 0 ;
33282 int res1 = 0 ;
33283 wxColour temp2 ;
33284 PyObject * obj0 = 0 ;
33285 PyObject * obj1 = 0 ;
33286 char * kwnames[] = {
33287 (char *) "self",(char *) "c", NULL
33288 };
33289
33290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
33291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33292 if (!SWIG_IsOK(res1)) {
33293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33294 }
33295 arg1 = reinterpret_cast< wxEffects * >(argp1);
33296 {
33297 arg2 = &temp2;
33298 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33299 }
33300 {
33301 PyThreadState* __tstate = wxPyBeginAllowThreads();
33302 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33303 wxPyEndAllowThreads(__tstate);
33304 if (PyErr_Occurred()) SWIG_fail;
33305 }
33306 resultobj = SWIG_Py_Void();
33307 return resultobj;
33308fail:
33309 return NULL;
33310}
33311
33312
33313SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33314 PyObject *resultobj = 0;
33315 wxEffects *arg1 = (wxEffects *) 0 ;
33316 wxColour *arg2 = 0 ;
33317 void *argp1 = 0 ;
33318 int res1 = 0 ;
33319 wxColour temp2 ;
33320 PyObject * obj0 = 0 ;
33321 PyObject * obj1 = 0 ;
33322 char * kwnames[] = {
33323 (char *) "self",(char *) "c", NULL
33324 };
33325
33326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33328 if (!SWIG_IsOK(res1)) {
33329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33330 }
33331 arg1 = reinterpret_cast< wxEffects * >(argp1);
33332 {
33333 arg2 = &temp2;
33334 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33335 }
33336 {
33337 PyThreadState* __tstate = wxPyBeginAllowThreads();
33338 (arg1)->SetLightShadow((wxColour const &)*arg2);
33339 wxPyEndAllowThreads(__tstate);
33340 if (PyErr_Occurred()) SWIG_fail;
33341 }
33342 resultobj = SWIG_Py_Void();
33343 return resultobj;
33344fail:
33345 return NULL;
33346}
33347
33348
33349SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33350 PyObject *resultobj = 0;
33351 wxEffects *arg1 = (wxEffects *) 0 ;
33352 wxColour *arg2 = 0 ;
33353 void *argp1 = 0 ;
33354 int res1 = 0 ;
33355 wxColour temp2 ;
33356 PyObject * obj0 = 0 ;
33357 PyObject * obj1 = 0 ;
33358 char * kwnames[] = {
33359 (char *) "self",(char *) "c", NULL
33360 };
33361
33362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
33363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33364 if (!SWIG_IsOK(res1)) {
33365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33366 }
33367 arg1 = reinterpret_cast< wxEffects * >(argp1);
33368 {
33369 arg2 = &temp2;
33370 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33371 }
33372 {
33373 PyThreadState* __tstate = wxPyBeginAllowThreads();
33374 (arg1)->SetFaceColour((wxColour const &)*arg2);
33375 wxPyEndAllowThreads(__tstate);
33376 if (PyErr_Occurred()) SWIG_fail;
33377 }
33378 resultobj = SWIG_Py_Void();
33379 return resultobj;
33380fail:
33381 return NULL;
33382}
33383
33384
33385SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33386 PyObject *resultobj = 0;
33387 wxEffects *arg1 = (wxEffects *) 0 ;
33388 wxColour *arg2 = 0 ;
33389 void *argp1 = 0 ;
33390 int res1 = 0 ;
33391 wxColour temp2 ;
33392 PyObject * obj0 = 0 ;
33393 PyObject * obj1 = 0 ;
33394 char * kwnames[] = {
33395 (char *) "self",(char *) "c", NULL
33396 };
33397
33398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33400 if (!SWIG_IsOK(res1)) {
33401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33402 }
33403 arg1 = reinterpret_cast< wxEffects * >(argp1);
33404 {
33405 arg2 = &temp2;
33406 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33407 }
33408 {
33409 PyThreadState* __tstate = wxPyBeginAllowThreads();
33410 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33411 wxPyEndAllowThreads(__tstate);
33412 if (PyErr_Occurred()) SWIG_fail;
33413 }
33414 resultobj = SWIG_Py_Void();
33415 return resultobj;
33416fail:
33417 return NULL;
33418}
33419
33420
33421SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33422 PyObject *resultobj = 0;
33423 wxEffects *arg1 = (wxEffects *) 0 ;
33424 wxColour *arg2 = 0 ;
33425 void *argp1 = 0 ;
33426 int res1 = 0 ;
33427 wxColour temp2 ;
33428 PyObject * obj0 = 0 ;
33429 PyObject * obj1 = 0 ;
33430 char * kwnames[] = {
33431 (char *) "self",(char *) "c", NULL
33432 };
33433
33434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33436 if (!SWIG_IsOK(res1)) {
33437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33438 }
33439 arg1 = reinterpret_cast< wxEffects * >(argp1);
33440 {
33441 arg2 = &temp2;
33442 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33443 }
33444 {
33445 PyThreadState* __tstate = wxPyBeginAllowThreads();
33446 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33447 wxPyEndAllowThreads(__tstate);
33448 if (PyErr_Occurred()) SWIG_fail;
33449 }
33450 resultobj = SWIG_Py_Void();
33451 return resultobj;
33452fail:
33453 return NULL;
33454}
33455
33456
33457SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33458 PyObject *resultobj = 0;
33459 wxEffects *arg1 = (wxEffects *) 0 ;
33460 wxColour *arg2 = 0 ;
33461 wxColour *arg3 = 0 ;
33462 wxColour *arg4 = 0 ;
33463 wxColour *arg5 = 0 ;
33464 wxColour *arg6 = 0 ;
33465 void *argp1 = 0 ;
33466 int res1 = 0 ;
33467 wxColour temp2 ;
33468 wxColour temp3 ;
33469 wxColour temp4 ;
33470 wxColour temp5 ;
33471 wxColour temp6 ;
33472 PyObject * obj0 = 0 ;
33473 PyObject * obj1 = 0 ;
33474 PyObject * obj2 = 0 ;
33475 PyObject * obj3 = 0 ;
33476 PyObject * obj4 = 0 ;
33477 PyObject * obj5 = 0 ;
33478 char * kwnames[] = {
33479 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33480 };
33481
33482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33484 if (!SWIG_IsOK(res1)) {
33485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33486 }
33487 arg1 = reinterpret_cast< wxEffects * >(argp1);
33488 {
33489 arg2 = &temp2;
33490 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33491 }
33492 {
33493 arg3 = &temp3;
33494 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33495 }
33496 {
33497 arg4 = &temp4;
33498 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33499 }
33500 {
33501 arg5 = &temp5;
33502 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33503 }
33504 {
33505 arg6 = &temp6;
33506 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33507 }
33508 {
33509 PyThreadState* __tstate = wxPyBeginAllowThreads();
33510 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33511 wxPyEndAllowThreads(__tstate);
33512 if (PyErr_Occurred()) SWIG_fail;
33513 }
33514 resultobj = SWIG_Py_Void();
33515 return resultobj;
33516fail:
33517 return NULL;
33518}
33519
33520
33521SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33522 PyObject *resultobj = 0;
33523 wxEffects *arg1 = (wxEffects *) 0 ;
33524 wxDC *arg2 = 0 ;
33525 wxRect *arg3 = 0 ;
33526 int arg4 = (int) 1 ;
33527 void *argp1 = 0 ;
33528 int res1 = 0 ;
33529 void *argp2 = 0 ;
33530 int res2 = 0 ;
33531 wxRect temp3 ;
33532 int val4 ;
33533 int ecode4 = 0 ;
33534 PyObject * obj0 = 0 ;
33535 PyObject * obj1 = 0 ;
33536 PyObject * obj2 = 0 ;
33537 PyObject * obj3 = 0 ;
33538 char * kwnames[] = {
33539 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33540 };
33541
33542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33544 if (!SWIG_IsOK(res1)) {
33545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33546 }
33547 arg1 = reinterpret_cast< wxEffects * >(argp1);
33548 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33549 if (!SWIG_IsOK(res2)) {
33550 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33551 }
33552 if (!argp2) {
33553 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33554 }
33555 arg2 = reinterpret_cast< wxDC * >(argp2);
33556 {
33557 arg3 = &temp3;
33558 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33559 }
33560 if (obj3) {
33561 ecode4 = SWIG_AsVal_int(obj3, &val4);
33562 if (!SWIG_IsOK(ecode4)) {
33563 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33564 }
33565 arg4 = static_cast< int >(val4);
33566 }
33567 {
33568 PyThreadState* __tstate = wxPyBeginAllowThreads();
33569 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33570 wxPyEndAllowThreads(__tstate);
33571 if (PyErr_Occurred()) SWIG_fail;
33572 }
33573 resultobj = SWIG_Py_Void();
33574 return resultobj;
33575fail:
33576 return NULL;
33577}
33578
33579
33580SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33581 PyObject *resultobj = 0;
33582 wxEffects *arg1 = (wxEffects *) 0 ;
33583 wxRect *arg2 = 0 ;
33584 wxDC *arg3 = 0 ;
33585 wxBitmap *arg4 = 0 ;
33586 bool result;
33587 void *argp1 = 0 ;
33588 int res1 = 0 ;
33589 wxRect temp2 ;
33590 void *argp3 = 0 ;
33591 int res3 = 0 ;
33592 void *argp4 = 0 ;
33593 int res4 = 0 ;
33594 PyObject * obj0 = 0 ;
33595 PyObject * obj1 = 0 ;
33596 PyObject * obj2 = 0 ;
33597 PyObject * obj3 = 0 ;
33598 char * kwnames[] = {
33599 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33600 };
33601
33602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33604 if (!SWIG_IsOK(res1)) {
33605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33606 }
33607 arg1 = reinterpret_cast< wxEffects * >(argp1);
33608 {
33609 arg2 = &temp2;
33610 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33611 }
33612 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33613 if (!SWIG_IsOK(res3)) {
33614 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33615 }
33616 if (!argp3) {
33617 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33618 }
33619 arg3 = reinterpret_cast< wxDC * >(argp3);
33620 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33621 if (!SWIG_IsOK(res4)) {
33622 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33623 }
33624 if (!argp4) {
33625 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33626 }
33627 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33628 {
33629 PyThreadState* __tstate = wxPyBeginAllowThreads();
33630 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33631 wxPyEndAllowThreads(__tstate);
33632 if (PyErr_Occurred()) SWIG_fail;
33633 }
33634 {
33635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33636 }
33637 return resultobj;
33638fail:
33639 return NULL;
33640}
33641
33642
33643SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33644 PyObject *obj;
33645 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33646 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33647 return SWIG_Py_Void();
33648}
33649
33650SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33651 return SWIG_Python_InitShadowInstance(args);
33652}
33653
33654SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33655 PyObject *resultobj = 0;
33656 int arg1 ;
33657 int arg2 ;
33658 bool arg3 ;
33659 wxSplitterRenderParams *result = 0 ;
33660 int val1 ;
33661 int ecode1 = 0 ;
33662 int val2 ;
33663 int ecode2 = 0 ;
33664 bool val3 ;
33665 int ecode3 = 0 ;
33666 PyObject * obj0 = 0 ;
33667 PyObject * obj1 = 0 ;
33668 PyObject * obj2 = 0 ;
33669 char * kwnames[] = {
33670 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33671 };
33672
33673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33674 ecode1 = SWIG_AsVal_int(obj0, &val1);
33675 if (!SWIG_IsOK(ecode1)) {
33676 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33677 }
33678 arg1 = static_cast< int >(val1);
33679 ecode2 = SWIG_AsVal_int(obj1, &val2);
33680 if (!SWIG_IsOK(ecode2)) {
33681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33682 }
33683 arg2 = static_cast< int >(val2);
33684 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33685 if (!SWIG_IsOK(ecode3)) {
33686 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33687 }
33688 arg3 = static_cast< bool >(val3);
33689 {
33690 PyThreadState* __tstate = wxPyBeginAllowThreads();
33691 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33692 wxPyEndAllowThreads(__tstate);
33693 if (PyErr_Occurred()) SWIG_fail;
33694 }
33695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33696 return resultobj;
33697fail:
33698 return NULL;
33699}
33700
33701
33702SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33703 PyObject *resultobj = 0;
33704 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33705 void *argp1 = 0 ;
33706 int res1 = 0 ;
33707 PyObject *swig_obj[1] ;
33708
33709 if (!args) SWIG_fail;
33710 swig_obj[0] = args;
33711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33712 if (!SWIG_IsOK(res1)) {
33713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33714 }
33715 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33716 {
33717 PyThreadState* __tstate = wxPyBeginAllowThreads();
33718 delete arg1;
33719
33720 wxPyEndAllowThreads(__tstate);
33721 if (PyErr_Occurred()) SWIG_fail;
33722 }
33723 resultobj = SWIG_Py_Void();
33724 return resultobj;
33725fail:
33726 return NULL;
33727}
33728
33729
33730SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_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_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33743 }
33744 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33745 result = (int)(int) ((arg1)->widthSash);
33746 resultobj = SWIG_From_int(static_cast< int >(result));
33747 return resultobj;
33748fail:
33749 return NULL;
33750}
33751
33752
33753SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33754 PyObject *resultobj = 0;
33755 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33756 int 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_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33766 }
33767 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33768 result = (int)(int) ((arg1)->border);
33769 resultobj = SWIG_From_int(static_cast< int >(result));
33770 return resultobj;
33771fail:
33772 return NULL;
33773}
33774
33775
33776SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33777 PyObject *resultobj = 0;
33778 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33779 bool result;
33780 void *argp1 = 0 ;
33781 int res1 = 0 ;
33782 PyObject *swig_obj[1] ;
33783
33784 if (!args) SWIG_fail;
33785 swig_obj[0] = args;
33786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33787 if (!SWIG_IsOK(res1)) {
33788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33789 }
33790 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33791 result = (bool)(bool) ((arg1)->isHotSensitive);
33792 resultobj = SWIG_From_bool(static_cast< bool >(result));
33793 return resultobj;
33794fail:
33795 return NULL;
33796}
33797
33798
33799SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33800 PyObject *obj;
33801 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33802 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33803 return SWIG_Py_Void();
33804}
33805
33806SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33807 return SWIG_Python_InitShadowInstance(args);
33808}
33809
33d6fd3b
RD
33810SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33811 PyObject *resultobj = 0;
33812 wxHeaderButtonParams *result = 0 ;
33813
33814 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33815 {
33816 PyThreadState* __tstate = wxPyBeginAllowThreads();
33817 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33818 wxPyEndAllowThreads(__tstate);
33819 if (PyErr_Occurred()) SWIG_fail;
33820 }
33821 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33822 return resultobj;
33823fail:
33824 return NULL;
33825}
33826
33827
33828SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33829 PyObject *resultobj = 0;
33830 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33831 void *argp1 = 0 ;
33832 int res1 = 0 ;
33833 PyObject *swig_obj[1] ;
33834
33835 if (!args) SWIG_fail;
33836 swig_obj[0] = args;
33837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33838 if (!SWIG_IsOK(res1)) {
33839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33840 }
33841 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33842 {
33843 PyThreadState* __tstate = wxPyBeginAllowThreads();
33844 delete arg1;
33845
33846 wxPyEndAllowThreads(__tstate);
33847 if (PyErr_Occurred()) SWIG_fail;
33848 }
33849 resultobj = SWIG_Py_Void();
33850 return resultobj;
33851fail:
33852 return NULL;
33853}
33854
33855
33856SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33857 PyObject *resultobj = 0;
33858 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33859 wxColour *arg2 = (wxColour *) 0 ;
33860 void *argp1 = 0 ;
33861 int res1 = 0 ;
33862 wxColour temp2 ;
33863 PyObject *swig_obj[2] ;
33864
33865 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33867 if (!SWIG_IsOK(res1)) {
33868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33869 }
33870 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33871 {
33872 arg2 = &temp2;
33873 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33874 }
33875 if (arg1) (arg1)->m_arrowColour = *arg2;
33876
33877 resultobj = SWIG_Py_Void();
33878 return resultobj;
33879fail:
33880 return NULL;
33881}
33882
33883
33884SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33885 PyObject *resultobj = 0;
33886 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33887 wxColour *result = 0 ;
33888 void *argp1 = 0 ;
33889 int res1 = 0 ;
33890 PyObject *swig_obj[1] ;
33891
33892 if (!args) SWIG_fail;
33893 swig_obj[0] = args;
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_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33897 }
33898 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33899 result = (wxColour *)& ((arg1)->m_arrowColour);
33900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33901 return resultobj;
33902fail:
33903 return NULL;
33904}
33905
33906
33907SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33908 PyObject *resultobj = 0;
33909 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33910 wxColour *arg2 = (wxColour *) 0 ;
33911 void *argp1 = 0 ;
33912 int res1 = 0 ;
33913 wxColour temp2 ;
33914 PyObject *swig_obj[2] ;
33915
33916 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33918 if (!SWIG_IsOK(res1)) {
33919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33920 }
33921 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33922 {
33923 arg2 = &temp2;
33924 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33925 }
33926 if (arg1) (arg1)->m_selectionColour = *arg2;
33927
33928 resultobj = SWIG_Py_Void();
33929 return resultobj;
33930fail:
33931 return NULL;
33932}
33933
33934
33935SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33936 PyObject *resultobj = 0;
33937 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33938 wxColour *result = 0 ;
33939 void *argp1 = 0 ;
33940 int res1 = 0 ;
33941 PyObject *swig_obj[1] ;
33942
33943 if (!args) SWIG_fail;
33944 swig_obj[0] = args;
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_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33948 }
33949 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33950 result = (wxColour *)& ((arg1)->m_selectionColour);
33951 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33952 return resultobj;
33953fail:
33954 return NULL;
33955}
33956
33957
33958SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33959 PyObject *resultobj = 0;
33960 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33961 wxString *arg2 = (wxString *) 0 ;
33962 void *argp1 = 0 ;
33963 int res1 = 0 ;
33964 bool temp2 = false ;
33965 PyObject *swig_obj[2] ;
33966
33967 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33969 if (!SWIG_IsOK(res1)) {
33970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33971 }
33972 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33973 {
33974 arg2 = wxString_in_helper(swig_obj[1]);
33975 if (arg2 == NULL) SWIG_fail;
33976 temp2 = true;
33977 }
33978 if (arg1) (arg1)->m_labelText = *arg2;
33979
33980 resultobj = SWIG_Py_Void();
33981 {
33982 if (temp2)
33983 delete arg2;
33984 }
33985 return resultobj;
33986fail:
33987 {
33988 if (temp2)
33989 delete arg2;
33990 }
33991 return NULL;
33992}
33993
33994
33995SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33996 PyObject *resultobj = 0;
33997 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33998 wxString *result = 0 ;
33999 void *argp1 = 0 ;
34000 int res1 = 0 ;
34001 PyObject *swig_obj[1] ;
34002
34003 if (!args) SWIG_fail;
34004 swig_obj[0] = args;
34005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34006 if (!SWIG_IsOK(res1)) {
34007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34008 }
34009 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34010 result = (wxString *)& ((arg1)->m_labelText);
34011 {
34012#if wxUSE_UNICODE
34013 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
34014#else
34015 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
34016#endif
34017 }
34018 return resultobj;
34019fail:
34020 return NULL;
34021}
34022
34023
34024SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34025 PyObject *resultobj = 0;
34026 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34027 wxFont *arg2 = (wxFont *) 0 ;
34028 void *argp1 = 0 ;
34029 int res1 = 0 ;
34030 void *argp2 = 0 ;
34031 int res2 = 0 ;
34032 PyObject *swig_obj[2] ;
34033
34034 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
34035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34036 if (!SWIG_IsOK(res1)) {
34037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34038 }
34039 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34040 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
34041 if (!SWIG_IsOK(res2)) {
34042 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
34043 }
34044 arg2 = reinterpret_cast< wxFont * >(argp2);
34045 if (arg1) (arg1)->m_labelFont = *arg2;
34046
34047 resultobj = SWIG_Py_Void();
34048 return resultobj;
34049fail:
34050 return NULL;
34051}
34052
34053
34054SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34055 PyObject *resultobj = 0;
34056 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34057 wxFont *result = 0 ;
34058 void *argp1 = 0 ;
34059 int res1 = 0 ;
34060 PyObject *swig_obj[1] ;
34061
34062 if (!args) SWIG_fail;
34063 swig_obj[0] = args;
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_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34067 }
34068 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34069 result = (wxFont *)& ((arg1)->m_labelFont);
34070 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
34071 return resultobj;
34072fail:
34073 return NULL;
34074}
34075
34076
34077SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34078 PyObject *resultobj = 0;
34079 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34080 wxColour *arg2 = (wxColour *) 0 ;
34081 void *argp1 = 0 ;
34082 int res1 = 0 ;
34083 wxColour temp2 ;
34084 PyObject *swig_obj[2] ;
34085
34086 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
34087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34088 if (!SWIG_IsOK(res1)) {
34089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34090 }
34091 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34092 {
34093 arg2 = &temp2;
34094 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34095 }
34096 if (arg1) (arg1)->m_labelColour = *arg2;
34097
34098 resultobj = SWIG_Py_Void();
34099 return resultobj;
34100fail:
34101 return NULL;
34102}
34103
34104
34105SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34106 PyObject *resultobj = 0;
34107 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34108 wxColour *result = 0 ;
34109 void *argp1 = 0 ;
34110 int res1 = 0 ;
34111 PyObject *swig_obj[1] ;
34112
34113 if (!args) SWIG_fail;
34114 swig_obj[0] = args;
34115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34116 if (!SWIG_IsOK(res1)) {
34117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34118 }
34119 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34120 result = (wxColour *)& ((arg1)->m_labelColour);
34121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34122 return resultobj;
34123fail:
34124 return NULL;
34125}
34126
34127
34128SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34129 PyObject *resultobj = 0;
34130 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34131 wxBitmap *arg2 = (wxBitmap *) 0 ;
34132 void *argp1 = 0 ;
34133 int res1 = 0 ;
34134 void *argp2 = 0 ;
34135 int res2 = 0 ;
34136 PyObject *swig_obj[2] ;
34137
34138 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
34139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34140 if (!SWIG_IsOK(res1)) {
34141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34142 }
34143 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34144 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
34145 if (!SWIG_IsOK(res2)) {
34146 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
34147 }
34148 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34149 if (arg1) (arg1)->m_labelBitmap = *arg2;
34150
34151 resultobj = SWIG_Py_Void();
34152 return resultobj;
34153fail:
34154 return NULL;
34155}
34156
34157
34158SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34159 PyObject *resultobj = 0;
34160 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34161 wxBitmap *result = 0 ;
34162 void *argp1 = 0 ;
34163 int res1 = 0 ;
34164 PyObject *swig_obj[1] ;
34165
34166 if (!args) SWIG_fail;
34167 swig_obj[0] = args;
34168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34169 if (!SWIG_IsOK(res1)) {
34170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34171 }
34172 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34173 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
34174 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
34175 return resultobj;
34176fail:
34177 return NULL;
34178}
34179
34180
34181SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34182 PyObject *resultobj = 0;
34183 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34184 int arg2 ;
34185 void *argp1 = 0 ;
34186 int res1 = 0 ;
34187 int val2 ;
34188 int ecode2 = 0 ;
34189 PyObject *swig_obj[2] ;
34190
34191 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
34192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34193 if (!SWIG_IsOK(res1)) {
34194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34195 }
34196 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34197 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34198 if (!SWIG_IsOK(ecode2)) {
34199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
34200 }
34201 arg2 = static_cast< int >(val2);
34202 if (arg1) (arg1)->m_labelAlignment = arg2;
34203
34204 resultobj = SWIG_Py_Void();
34205 return resultobj;
34206fail:
34207 return NULL;
34208}
34209
34210
34211SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34212 PyObject *resultobj = 0;
34213 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34214 int result;
34215 void *argp1 = 0 ;
34216 int res1 = 0 ;
34217 PyObject *swig_obj[1] ;
34218
34219 if (!args) SWIG_fail;
34220 swig_obj[0] = args;
34221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34222 if (!SWIG_IsOK(res1)) {
34223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34224 }
34225 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34226 result = (int) ((arg1)->m_labelAlignment);
34227 resultobj = SWIG_From_int(static_cast< int >(result));
34228 return resultobj;
34229fail:
34230 return NULL;
34231}
34232
34233
34234SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34235 PyObject *obj;
34236 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34237 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
34238 return SWIG_Py_Void();
34239}
34240
34241SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34242 return SWIG_Python_InitShadowInstance(args);
34243}
34244
1bd55598
RD
34245SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34246 PyObject *resultobj = 0;
34247 int arg1 ;
34248 int arg2 ;
34249 wxRendererVersion *result = 0 ;
34250 int val1 ;
34251 int ecode1 = 0 ;
34252 int val2 ;
34253 int ecode2 = 0 ;
34254 PyObject * obj0 = 0 ;
34255 PyObject * obj1 = 0 ;
34256 char * kwnames[] = {
34257 (char *) "version_",(char *) "age_", NULL
34258 };
34259
34260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
34261 ecode1 = SWIG_AsVal_int(obj0, &val1);
34262 if (!SWIG_IsOK(ecode1)) {
34263 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
34264 }
34265 arg1 = static_cast< int >(val1);
34266 ecode2 = SWIG_AsVal_int(obj1, &val2);
34267 if (!SWIG_IsOK(ecode2)) {
34268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
34269 }
34270 arg2 = static_cast< int >(val2);
34271 {
34272 PyThreadState* __tstate = wxPyBeginAllowThreads();
34273 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
34274 wxPyEndAllowThreads(__tstate);
34275 if (PyErr_Occurred()) SWIG_fail;
34276 }
34277 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
34278 return resultobj;
34279fail:
34280 return NULL;
34281}
34282
34283
34284SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34285 PyObject *resultobj = 0;
34286 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34287 void *argp1 = 0 ;
34288 int res1 = 0 ;
34289 PyObject *swig_obj[1] ;
34290
34291 if (!args) SWIG_fail;
34292 swig_obj[0] = args;
34293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34294 if (!SWIG_IsOK(res1)) {
34295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34296 }
34297 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34298 {
34299 PyThreadState* __tstate = wxPyBeginAllowThreads();
34300 delete arg1;
34301
34302 wxPyEndAllowThreads(__tstate);
34303 if (PyErr_Occurred()) SWIG_fail;
34304 }
34305 resultobj = SWIG_Py_Void();
34306 return resultobj;
34307fail:
34308 return NULL;
34309}
34310
34311
34312SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34313 PyObject *resultobj = 0;
34314 wxRendererVersion *arg1 = 0 ;
34315 bool result;
34316 void *argp1 = 0 ;
34317 int res1 = 0 ;
34318 PyObject * obj0 = 0 ;
34319 char * kwnames[] = {
34320 (char *) "ver", NULL
34321 };
34322
34323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
34324 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
34325 if (!SWIG_IsOK(res1)) {
34326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34327 }
34328 if (!argp1) {
34329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34330 }
34331 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34332 {
34333 PyThreadState* __tstate = wxPyBeginAllowThreads();
34334 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
34335 wxPyEndAllowThreads(__tstate);
34336 if (PyErr_Occurred()) SWIG_fail;
34337 }
34338 {
34339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34340 }
34341 return resultobj;
34342fail:
34343 return NULL;
34344}
34345
34346
34347SWIGINTERN PyObject *_wrap_RendererVersion_version_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_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34360 }
34361 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34362 result = (int)(int) ((arg1)->version);
34363 resultobj = SWIG_From_int(static_cast< int >(result));
34364 return resultobj;
34365fail:
34366 return NULL;
34367}
34368
34369
34370SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34371 PyObject *resultobj = 0;
34372 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34373 int result;
34374 void *argp1 = 0 ;
34375 int res1 = 0 ;
34376 PyObject *swig_obj[1] ;
34377
34378 if (!args) SWIG_fail;
34379 swig_obj[0] = args;
34380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34381 if (!SWIG_IsOK(res1)) {
34382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34383 }
34384 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34385 result = (int)(int) ((arg1)->age);
34386 resultobj = SWIG_From_int(static_cast< int >(result));
34387 return resultobj;
34388fail:
34389 return NULL;
34390}
34391
34392
34393SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34394 PyObject *obj;
34395 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34396 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
34397 return SWIG_Py_Void();
34398}
34399
34400SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34401 return SWIG_Python_InitShadowInstance(args);
34402}
34403
34404SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34405 PyObject *resultobj = 0;
34406 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34407 wxWindow *arg2 = (wxWindow *) 0 ;
34408 wxDC *arg3 = 0 ;
34409 wxRect *arg4 = 0 ;
34410 int arg5 = (int) 0 ;
33d6fd3b
RD
34411 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34412 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
723282b6 34413 int result;
1bd55598
RD
34414 void *argp1 = 0 ;
34415 int res1 = 0 ;
34416 void *argp2 = 0 ;
34417 int res2 = 0 ;
34418 void *argp3 = 0 ;
34419 int res3 = 0 ;
34420 wxRect temp4 ;
34421 int val5 ;
34422 int ecode5 = 0 ;
33d6fd3b
RD
34423 int val6 ;
34424 int ecode6 = 0 ;
34425 void *argp7 = 0 ;
34426 int res7 = 0 ;
1bd55598
RD
34427 PyObject * obj0 = 0 ;
34428 PyObject * obj1 = 0 ;
34429 PyObject * obj2 = 0 ;
34430 PyObject * obj3 = 0 ;
34431 PyObject * obj4 = 0 ;
33d6fd3b
RD
34432 PyObject * obj5 = 0 ;
34433 PyObject * obj6 = 0 ;
1bd55598 34434 char * kwnames[] = {
33d6fd3b 34435 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
1bd55598
RD
34436 };
34437
33d6fd3b 34438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
1bd55598
RD
34439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34440 if (!SWIG_IsOK(res1)) {
34441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34442 }
34443 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34444 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34445 if (!SWIG_IsOK(res2)) {
34446 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34447 }
34448 arg2 = reinterpret_cast< wxWindow * >(argp2);
34449 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34450 if (!SWIG_IsOK(res3)) {
34451 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34452 }
34453 if (!argp3) {
34454 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34455 }
34456 arg3 = reinterpret_cast< wxDC * >(argp3);
34457 {
34458 arg4 = &temp4;
34459 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34460 }
34461 if (obj4) {
34462 ecode5 = SWIG_AsVal_int(obj4, &val5);
34463 if (!SWIG_IsOK(ecode5)) {
34464 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34465 }
34466 arg5 = static_cast< int >(val5);
34467 }
33d6fd3b
RD
34468 if (obj5) {
34469 ecode6 = SWIG_AsVal_int(obj5, &val6);
34470 if (!SWIG_IsOK(ecode6)) {
34471 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34472 }
34473 arg6 = static_cast< wxHeaderSortIconType >(val6);
34474 }
34475 if (obj6) {
34476 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34477 if (!SWIG_IsOK(res7)) {
34478 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34479 }
34480 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34481 }
34482 {
34483 PyThreadState* __tstate = wxPyBeginAllowThreads();
723282b6 34484 result = (int)(arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
33d6fd3b
RD
34485 wxPyEndAllowThreads(__tstate);
34486 if (PyErr_Occurred()) SWIG_fail;
34487 }
723282b6 34488 resultobj = SWIG_From_int(static_cast< int >(result));
33d6fd3b
RD
34489 return resultobj;
34490fail:
34491 return NULL;
34492}
34493
34494
34495SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34496 PyObject *resultobj = 0;
34497 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34498 wxWindow *arg2 = (wxWindow *) 0 ;
34499 wxDC *arg3 = 0 ;
34500 wxRect *arg4 = 0 ;
34501 int arg5 = (int) 0 ;
34502 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34503 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
723282b6 34504 int result;
33d6fd3b
RD
34505 void *argp1 = 0 ;
34506 int res1 = 0 ;
34507 void *argp2 = 0 ;
34508 int res2 = 0 ;
34509 void *argp3 = 0 ;
34510 int res3 = 0 ;
34511 wxRect temp4 ;
34512 int val5 ;
34513 int ecode5 = 0 ;
34514 int val6 ;
34515 int ecode6 = 0 ;
34516 void *argp7 = 0 ;
34517 int res7 = 0 ;
34518 PyObject * obj0 = 0 ;
34519 PyObject * obj1 = 0 ;
34520 PyObject * obj2 = 0 ;
34521 PyObject * obj3 = 0 ;
34522 PyObject * obj4 = 0 ;
34523 PyObject * obj5 = 0 ;
34524 PyObject * obj6 = 0 ;
34525 char * kwnames[] = {
34526 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34527 };
34528
34529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34531 if (!SWIG_IsOK(res1)) {
34532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34533 }
34534 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34535 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34536 if (!SWIG_IsOK(res2)) {
34537 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34538 }
34539 arg2 = reinterpret_cast< wxWindow * >(argp2);
34540 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34541 if (!SWIG_IsOK(res3)) {
34542 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34543 }
34544 if (!argp3) {
34545 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34546 }
34547 arg3 = reinterpret_cast< wxDC * >(argp3);
34548 {
34549 arg4 = &temp4;
34550 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34551 }
34552 if (obj4) {
34553 ecode5 = SWIG_AsVal_int(obj4, &val5);
34554 if (!SWIG_IsOK(ecode5)) {
34555 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34556 }
34557 arg5 = static_cast< int >(val5);
34558 }
34559 if (obj5) {
34560 ecode6 = SWIG_AsVal_int(obj5, &val6);
34561 if (!SWIG_IsOK(ecode6)) {
34562 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34563 }
34564 arg6 = static_cast< wxHeaderSortIconType >(val6);
34565 }
34566 if (obj6) {
34567 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34568 if (!SWIG_IsOK(res7)) {
34569 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34570 }
34571 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34572 }
1bd55598
RD
34573 {
34574 PyThreadState* __tstate = wxPyBeginAllowThreads();
723282b6 34575 result = (int)(arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
1bd55598
RD
34576 wxPyEndAllowThreads(__tstate);
34577 if (PyErr_Occurred()) SWIG_fail;
34578 }
723282b6 34579 resultobj = SWIG_From_int(static_cast< int >(result));
1bd55598
RD
34580 return resultobj;
34581fail:
34582 return NULL;
34583}
34584
34585
33d6fd3b
RD
34586SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34587 PyObject *resultobj = 0;
34588 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34589 wxWindow *arg2 = (wxWindow *) 0 ;
34590 int result;
34591 void *argp1 = 0 ;
34592 int res1 = 0 ;
34593 void *argp2 = 0 ;
34594 int res2 = 0 ;
34595 PyObject * obj0 = 0 ;
34596 PyObject * obj1 = 0 ;
34597 char * kwnames[] = {
34598 (char *) "self",(char *) "win", NULL
34599 };
34600
34601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34603 if (!SWIG_IsOK(res1)) {
34604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34605 }
34606 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34607 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34608 if (!SWIG_IsOK(res2)) {
34609 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34610 }
34611 arg2 = reinterpret_cast< wxWindow * >(argp2);
34612 {
34613 PyThreadState* __tstate = wxPyBeginAllowThreads();
34614 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34615 wxPyEndAllowThreads(__tstate);
34616 if (PyErr_Occurred()) SWIG_fail;
34617 }
34618 resultobj = SWIG_From_int(static_cast< int >(result));
34619 return resultobj;
34620fail:
34621 return NULL;
34622}
34623
34624
1bd55598
RD
34625SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34626 PyObject *resultobj = 0;
34627 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34628 wxWindow *arg2 = (wxWindow *) 0 ;
34629 wxDC *arg3 = 0 ;
34630 wxRect *arg4 = 0 ;
34631 int arg5 = (int) 0 ;
34632 void *argp1 = 0 ;
34633 int res1 = 0 ;
34634 void *argp2 = 0 ;
34635 int res2 = 0 ;
34636 void *argp3 = 0 ;
34637 int res3 = 0 ;
34638 wxRect temp4 ;
34639 int val5 ;
34640 int ecode5 = 0 ;
34641 PyObject * obj0 = 0 ;
34642 PyObject * obj1 = 0 ;
34643 PyObject * obj2 = 0 ;
34644 PyObject * obj3 = 0 ;
34645 PyObject * obj4 = 0 ;
34646 char * kwnames[] = {
34647 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34648 };
34649
34650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34652 if (!SWIG_IsOK(res1)) {
34653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34654 }
34655 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34656 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34657 if (!SWIG_IsOK(res2)) {
34658 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34659 }
34660 arg2 = reinterpret_cast< wxWindow * >(argp2);
34661 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34662 if (!SWIG_IsOK(res3)) {
34663 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34664 }
34665 if (!argp3) {
34666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34667 }
34668 arg3 = reinterpret_cast< wxDC * >(argp3);
34669 {
34670 arg4 = &temp4;
34671 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34672 }
34673 if (obj4) {
34674 ecode5 = SWIG_AsVal_int(obj4, &val5);
34675 if (!SWIG_IsOK(ecode5)) {
34676 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34677 }
34678 arg5 = static_cast< int >(val5);
34679 }
34680 {
34681 PyThreadState* __tstate = wxPyBeginAllowThreads();
34682 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34683 wxPyEndAllowThreads(__tstate);
34684 if (PyErr_Occurred()) SWIG_fail;
34685 }
34686 resultobj = SWIG_Py_Void();
34687 return resultobj;
34688fail:
34689 return NULL;
34690}
34691
34692
34693SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34694 PyObject *resultobj = 0;
34695 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34696 wxWindow *arg2 = (wxWindow *) 0 ;
34697 wxDC *arg3 = 0 ;
34698 wxRect *arg4 = 0 ;
34699 int arg5 = (int) 0 ;
34700 void *argp1 = 0 ;
34701 int res1 = 0 ;
34702 void *argp2 = 0 ;
34703 int res2 = 0 ;
34704 void *argp3 = 0 ;
34705 int res3 = 0 ;
34706 wxRect temp4 ;
34707 int val5 ;
34708 int ecode5 = 0 ;
34709 PyObject * obj0 = 0 ;
34710 PyObject * obj1 = 0 ;
34711 PyObject * obj2 = 0 ;
34712 PyObject * obj3 = 0 ;
34713 PyObject * obj4 = 0 ;
34714 char * kwnames[] = {
34715 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34716 };
34717
34718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34720 if (!SWIG_IsOK(res1)) {
34721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34722 }
34723 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34724 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34725 if (!SWIG_IsOK(res2)) {
34726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34727 }
34728 arg2 = reinterpret_cast< wxWindow * >(argp2);
34729 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34730 if (!SWIG_IsOK(res3)) {
34731 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34732 }
34733 if (!argp3) {
34734 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34735 }
34736 arg3 = reinterpret_cast< wxDC * >(argp3);
34737 {
34738 arg4 = &temp4;
34739 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34740 }
34741 if (obj4) {
34742 ecode5 = SWIG_AsVal_int(obj4, &val5);
34743 if (!SWIG_IsOK(ecode5)) {
34744 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34745 }
34746 arg5 = static_cast< int >(val5);
34747 }
34748 {
34749 PyThreadState* __tstate = wxPyBeginAllowThreads();
34750 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34751 wxPyEndAllowThreads(__tstate);
34752 if (PyErr_Occurred()) SWIG_fail;
34753 }
34754 resultobj = SWIG_Py_Void();
34755 return resultobj;
34756fail:
34757 return NULL;
34758}
34759
34760
34761SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34762 PyObject *resultobj = 0;
34763 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34764 wxWindow *arg2 = (wxWindow *) 0 ;
34765 wxDC *arg3 = 0 ;
34766 wxSize *arg4 = 0 ;
34767 int arg5 ;
34768 wxOrientation arg6 ;
34769 int arg7 = (int) 0 ;
34770 void *argp1 = 0 ;
34771 int res1 = 0 ;
34772 void *argp2 = 0 ;
34773 int res2 = 0 ;
34774 void *argp3 = 0 ;
34775 int res3 = 0 ;
34776 wxSize temp4 ;
34777 int val5 ;
34778 int ecode5 = 0 ;
34779 int val6 ;
34780 int ecode6 = 0 ;
34781 int val7 ;
34782 int ecode7 = 0 ;
34783 PyObject * obj0 = 0 ;
34784 PyObject * obj1 = 0 ;
34785 PyObject * obj2 = 0 ;
34786 PyObject * obj3 = 0 ;
34787 PyObject * obj4 = 0 ;
34788 PyObject * obj5 = 0 ;
34789 PyObject * obj6 = 0 ;
34790 char * kwnames[] = {
34791 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34792 };
34793
34794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34796 if (!SWIG_IsOK(res1)) {
34797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34798 }
34799 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34800 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34801 if (!SWIG_IsOK(res2)) {
34802 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34803 }
34804 arg2 = reinterpret_cast< wxWindow * >(argp2);
34805 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34806 if (!SWIG_IsOK(res3)) {
34807 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34808 }
34809 if (!argp3) {
34810 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34811 }
34812 arg3 = reinterpret_cast< wxDC * >(argp3);
34813 {
34814 arg4 = &temp4;
34815 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34816 }
34817 ecode5 = SWIG_AsVal_int(obj4, &val5);
34818 if (!SWIG_IsOK(ecode5)) {
34819 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34820 }
34821 arg5 = static_cast< int >(val5);
34822 ecode6 = SWIG_AsVal_int(obj5, &val6);
34823 if (!SWIG_IsOK(ecode6)) {
34824 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34825 }
34826 arg6 = static_cast< wxOrientation >(val6);
34827 if (obj6) {
34828 ecode7 = SWIG_AsVal_int(obj6, &val7);
34829 if (!SWIG_IsOK(ecode7)) {
34830 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34831 }
34832 arg7 = static_cast< int >(val7);
34833 }
34834 {
34835 PyThreadState* __tstate = wxPyBeginAllowThreads();
34836 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34837 wxPyEndAllowThreads(__tstate);
34838 if (PyErr_Occurred()) SWIG_fail;
34839 }
34840 resultobj = SWIG_Py_Void();
34841 return resultobj;
34842fail:
34843 return NULL;
34844}
34845
34846
34847SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34848 PyObject *resultobj = 0;
34849 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34850 wxWindow *arg2 = (wxWindow *) 0 ;
34851 wxDC *arg3 = 0 ;
34852 wxRect *arg4 = 0 ;
34853 int arg5 = (int) 0 ;
34854 void *argp1 = 0 ;
34855 int res1 = 0 ;
34856 void *argp2 = 0 ;
34857 int res2 = 0 ;
34858 void *argp3 = 0 ;
34859 int res3 = 0 ;
34860 wxRect temp4 ;
34861 int val5 ;
34862 int ecode5 = 0 ;
34863 PyObject * obj0 = 0 ;
34864 PyObject * obj1 = 0 ;
34865 PyObject * obj2 = 0 ;
34866 PyObject * obj3 = 0 ;
34867 PyObject * obj4 = 0 ;
34868 char * kwnames[] = {
34869 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34870 };
34871
34872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34874 if (!SWIG_IsOK(res1)) {
34875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34876 }
34877 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34878 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34879 if (!SWIG_IsOK(res2)) {
34880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34881 }
34882 arg2 = reinterpret_cast< wxWindow * >(argp2);
34883 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34884 if (!SWIG_IsOK(res3)) {
34885 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34886 }
34887 if (!argp3) {
34888 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34889 }
34890 arg3 = reinterpret_cast< wxDC * >(argp3);
34891 {
34892 arg4 = &temp4;
34893 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34894 }
34895 if (obj4) {
34896 ecode5 = SWIG_AsVal_int(obj4, &val5);
34897 if (!SWIG_IsOK(ecode5)) {
34898 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34899 }
34900 arg5 = static_cast< int >(val5);
34901 }
34902 {
34903 PyThreadState* __tstate = wxPyBeginAllowThreads();
34904 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34905 wxPyEndAllowThreads(__tstate);
34906 if (PyErr_Occurred()) SWIG_fail;
34907 }
34908 resultobj = SWIG_Py_Void();
34909 return resultobj;
34910fail:
34911 return NULL;
34912}
34913
34914
34915SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34916 PyObject *resultobj = 0;
34917 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34918 wxWindow *arg2 = (wxWindow *) 0 ;
34919 wxDC *arg3 = 0 ;
34920 wxRect *arg4 = 0 ;
34921 int arg5 = (int) 0 ;
34922 void *argp1 = 0 ;
34923 int res1 = 0 ;
34924 void *argp2 = 0 ;
34925 int res2 = 0 ;
34926 void *argp3 = 0 ;
34927 int res3 = 0 ;
34928 wxRect temp4 ;
34929 int val5 ;
34930 int ecode5 = 0 ;
34931 PyObject * obj0 = 0 ;
34932 PyObject * obj1 = 0 ;
34933 PyObject * obj2 = 0 ;
34934 PyObject * obj3 = 0 ;
34935 PyObject * obj4 = 0 ;
34936 char * kwnames[] = {
34937 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34938 };
34939
34940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34942 if (!SWIG_IsOK(res1)) {
34943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34944 }
34945 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34946 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34947 if (!SWIG_IsOK(res2)) {
34948 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34949 }
34950 arg2 = reinterpret_cast< wxWindow * >(argp2);
34951 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34952 if (!SWIG_IsOK(res3)) {
34953 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34954 }
34955 if (!argp3) {
34956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34957 }
34958 arg3 = reinterpret_cast< wxDC * >(argp3);
34959 {
34960 arg4 = &temp4;
34961 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34962 }
34963 if (obj4) {
34964 ecode5 = SWIG_AsVal_int(obj4, &val5);
34965 if (!SWIG_IsOK(ecode5)) {
34966 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34967 }
34968 arg5 = static_cast< int >(val5);
34969 }
34970 {
34971 PyThreadState* __tstate = wxPyBeginAllowThreads();
34972 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34973 wxPyEndAllowThreads(__tstate);
34974 if (PyErr_Occurred()) SWIG_fail;
34975 }
34976 resultobj = SWIG_Py_Void();
34977 return resultobj;
34978fail:
34979 return NULL;
34980}
34981
34982
2131d850 34983SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
da91cb0f
RD
34984 PyObject *resultobj = 0;
34985 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34986 wxWindow *arg2 = (wxWindow *) 0 ;
34987 wxDC *arg3 = 0 ;
34988 wxRect *arg4 = 0 ;
34989 int arg5 = (int) 0 ;
34990 void *argp1 = 0 ;
34991 int res1 = 0 ;
34992 void *argp2 = 0 ;
34993 int res2 = 0 ;
34994 void *argp3 = 0 ;
34995 int res3 = 0 ;
34996 wxRect temp4 ;
34997 int val5 ;
34998 int ecode5 = 0 ;
34999 PyObject * obj0 = 0 ;
35000 PyObject * obj1 = 0 ;
35001 PyObject * obj2 = 0 ;
35002 PyObject * obj3 = 0 ;
35003 PyObject * obj4 = 0 ;
35004 char * kwnames[] = {
35005 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35006 };
35007
2131d850 35008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
da91cb0f
RD
35009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35010 if (!SWIG_IsOK(res1)) {
2131d850 35011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
da91cb0f
RD
35012 }
35013 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35014 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35015 if (!SWIG_IsOK(res2)) {
2131d850 35016 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
da91cb0f
RD
35017 }
35018 arg2 = reinterpret_cast< wxWindow * >(argp2);
35019 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35020 if (!SWIG_IsOK(res3)) {
2131d850 35021 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
35022 }
35023 if (!argp3) {
2131d850 35024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
35025 }
35026 arg3 = reinterpret_cast< wxDC * >(argp3);
35027 {
35028 arg4 = &temp4;
35029 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35030 }
35031 if (obj4) {
35032 ecode5 = SWIG_AsVal_int(obj4, &val5);
35033 if (!SWIG_IsOK(ecode5)) {
2131d850 35034 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
da91cb0f
RD
35035 }
35036 arg5 = static_cast< int >(val5);
35037 }
35038 {
35039 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850
RD
35040 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
35041 wxPyEndAllowThreads(__tstate);
35042 if (PyErr_Occurred()) SWIG_fail;
35043 }
35044 resultobj = SWIG_Py_Void();
35045 return resultobj;
35046fail:
35047 return NULL;
35048}
35049
35050
35051SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35052 PyObject *resultobj = 0;
35053 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35054 wxWindow *arg2 = (wxWindow *) 0 ;
35055 wxDC *arg3 = 0 ;
35056 wxRect *arg4 = 0 ;
35057 int arg5 = (int) 0 ;
35058 void *argp1 = 0 ;
35059 int res1 = 0 ;
35060 void *argp2 = 0 ;
35061 int res2 = 0 ;
35062 void *argp3 = 0 ;
35063 int res3 = 0 ;
35064 wxRect temp4 ;
35065 int val5 ;
35066 int ecode5 = 0 ;
35067 PyObject * obj0 = 0 ;
35068 PyObject * obj1 = 0 ;
35069 PyObject * obj2 = 0 ;
35070 PyObject * obj3 = 0 ;
35071 PyObject * obj4 = 0 ;
35072 char * kwnames[] = {
35073 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35074 };
35075
35076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35078 if (!SWIG_IsOK(res1)) {
35079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35080 }
35081 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35082 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35083 if (!SWIG_IsOK(res2)) {
35084 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35085 }
35086 arg2 = reinterpret_cast< wxWindow * >(argp2);
35087 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35088 if (!SWIG_IsOK(res3)) {
35089 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35090 }
35091 if (!argp3) {
35092 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35093 }
35094 arg3 = reinterpret_cast< wxDC * >(argp3);
35095 {
35096 arg4 = &temp4;
35097 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35098 }
35099 if (obj4) {
35100 ecode5 = SWIG_AsVal_int(obj4, &val5);
35101 if (!SWIG_IsOK(ecode5)) {
35102 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
35103 }
35104 arg5 = static_cast< int >(val5);
35105 }
35106 {
35107 PyThreadState* __tstate = wxPyBeginAllowThreads();
35108 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35109 wxPyEndAllowThreads(__tstate);
35110 if (PyErr_Occurred()) SWIG_fail;
35111 }
35112 resultobj = SWIG_Py_Void();
35113 return resultobj;
35114fail:
35115 return NULL;
35116}
35117
35118
35119SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35120 PyObject *resultobj = 0;
35121 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35122 wxWindow *arg2 = (wxWindow *) 0 ;
35123 wxDC *arg3 = 0 ;
35124 wxRect *arg4 = 0 ;
35125 int arg5 = (int) 0 ;
35126 void *argp1 = 0 ;
35127 int res1 = 0 ;
35128 void *argp2 = 0 ;
35129 int res2 = 0 ;
35130 void *argp3 = 0 ;
35131 int res3 = 0 ;
35132 wxRect temp4 ;
35133 int val5 ;
35134 int ecode5 = 0 ;
35135 PyObject * obj0 = 0 ;
35136 PyObject * obj1 = 0 ;
35137 PyObject * obj2 = 0 ;
35138 PyObject * obj3 = 0 ;
35139 PyObject * obj4 = 0 ;
35140 char * kwnames[] = {
35141 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35142 };
35143
35144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35146 if (!SWIG_IsOK(res1)) {
35147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35148 }
35149 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35150 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35151 if (!SWIG_IsOK(res2)) {
35152 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
35153 }
35154 arg2 = reinterpret_cast< wxWindow * >(argp2);
35155 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35156 if (!SWIG_IsOK(res3)) {
35157 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35158 }
35159 if (!argp3) {
35160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35161 }
35162 arg3 = reinterpret_cast< wxDC * >(argp3);
35163 {
35164 arg4 = &temp4;
35165 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35166 }
35167 if (obj4) {
35168 ecode5 = SWIG_AsVal_int(obj4, &val5);
35169 if (!SWIG_IsOK(ecode5)) {
35170 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
35171 }
35172 arg5 = static_cast< int >(val5);
35173 }
35174 {
35175 PyThreadState* __tstate = wxPyBeginAllowThreads();
35176 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
da91cb0f
RD
35177 wxPyEndAllowThreads(__tstate);
35178 if (PyErr_Occurred()) SWIG_fail;
35179 }
35180 resultobj = SWIG_Py_Void();
35181 return resultobj;
35182fail:
35183 return NULL;
35184}
35185
35186
1bd55598
RD
35187SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35188 PyObject *resultobj = 0;
35189 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35190 wxWindow *arg2 = (wxWindow *) 0 ;
35191 SwigValueWrapper<wxSplitterRenderParams > result;
35192 void *argp1 = 0 ;
35193 int res1 = 0 ;
35194 void *argp2 = 0 ;
35195 int res2 = 0 ;
35196 PyObject * obj0 = 0 ;
35197 PyObject * obj1 = 0 ;
35198 char * kwnames[] = {
35199 (char *) "self",(char *) "win", NULL
35200 };
35201
35202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
35203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35204 if (!SWIG_IsOK(res1)) {
35205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35206 }
35207 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35208 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35209 if (!SWIG_IsOK(res2)) {
35210 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
35211 }
35212 arg2 = reinterpret_cast< wxWindow * >(argp2);
35213 {
35214 PyThreadState* __tstate = wxPyBeginAllowThreads();
35215 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
35216 wxPyEndAllowThreads(__tstate);
35217 if (PyErr_Occurred()) SWIG_fail;
35218 }
35219 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
35220 return resultobj;
35221fail:
35222 return NULL;
35223}
35224
35225
35226SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35227 PyObject *resultobj = 0;
35228 wxRendererNative *result = 0 ;
35229
35230 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
35231 {
704eda0c 35232 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 35233 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 35234 {
1bd55598
RD
35235 wxRendererNative &_result_ref = wxRendererNative::Get();
35236 result = (wxRendererNative *) &_result_ref;
36ed4f51 35237 }
1bd55598
RD
35238 wxPyEndAllowThreads(__tstate);
35239 if (PyErr_Occurred()) SWIG_fail;
35240 }
35241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35242 return resultobj;
35243fail:
35244 return NULL;
35245}
35246
35247
35248SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35249 PyObject *resultobj = 0;
35250 wxRendererNative *result = 0 ;
35251
35252 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
35253 {
704eda0c 35254 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 35255 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35256 {
1bd55598
RD
35257 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
35258 result = (wxRendererNative *) &_result_ref;
be9b1dca 35259 }
1bd55598
RD
35260 wxPyEndAllowThreads(__tstate);
35261 if (PyErr_Occurred()) SWIG_fail;
35262 }
35263 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35264 return resultobj;
35265fail:
35266 return NULL;
35267}
35268
35269
35270SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35271 PyObject *resultobj = 0;
35272 wxRendererNative *result = 0 ;
35273
35274 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
35275 {
704eda0c 35276 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 35277 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35278 {
1bd55598
RD
35279 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
35280 result = (wxRendererNative *) &_result_ref;
be9b1dca 35281 }
1bd55598
RD
35282 wxPyEndAllowThreads(__tstate);
35283 if (PyErr_Occurred()) SWIG_fail;
35284 }
35285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35286 return resultobj;
35287fail:
35288 return NULL;
35289}
35290
35291
35292SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35293 PyObject *resultobj = 0;
35294 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35295 wxRendererNative *result = 0 ;
35296 void *argp1 = 0 ;
35297 int res1 = 0 ;
35298 PyObject * obj0 = 0 ;
35299 char * kwnames[] = {
35300 (char *) "renderer", NULL
35301 };
35302
35303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35305 if (!SWIG_IsOK(res1)) {
35306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35307 }
35308 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35309 {
704eda0c 35310 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598
RD
35311 PyThreadState* __tstate = wxPyBeginAllowThreads();
35312 result = (wxRendererNative *)wxRendererNative::Set(arg1);
35313 wxPyEndAllowThreads(__tstate);
35314 if (PyErr_Occurred()) SWIG_fail;
35315 }
35316 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35317 return resultobj;
35318fail:
35319 return NULL;
35320}
35321
35322
35323SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35324 PyObject *resultobj = 0;
35325 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35326 SwigValueWrapper<wxRendererVersion > result;
35327 void *argp1 = 0 ;
35328 int res1 = 0 ;
35329 PyObject *swig_obj[1] ;
35330
35331 if (!args) SWIG_fail;
35332 swig_obj[0] = args;
35333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35334 if (!SWIG_IsOK(res1)) {
35335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
35336 }
35337 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35338 {
35339 PyThreadState* __tstate = wxPyBeginAllowThreads();
35340 result = ((wxRendererNative const *)arg1)->GetVersion();
35341 wxPyEndAllowThreads(__tstate);
35342 if (PyErr_Occurred()) SWIG_fail;
35343 }
35344 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
35345 return resultobj;
35346fail:
35347 return NULL;
35348}
35349
35350
35351SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35352 PyObject *obj;
35353 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35354 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
35355 return SWIG_Py_Void();
35356}
35357
27e45892
RD
35358SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35359 PyObject *resultobj = 0;
35360 wxPseudoDC *result = 0 ;
35361
35362 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
35363 {
35364 PyThreadState* __tstate = wxPyBeginAllowThreads();
35365 result = (wxPseudoDC *)new wxPseudoDC();
35366 wxPyEndAllowThreads(__tstate);
35367 if (PyErr_Occurred()) SWIG_fail;
35368 }
35369 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
35370 return resultobj;
35371fail:
35372 return NULL;
35373}
35374
35375
35376SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35377 PyObject *resultobj = 0;
35378 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35379 void *argp1 = 0 ;
35380 int res1 = 0 ;
35381 PyObject *swig_obj[1] ;
35382
35383 if (!args) SWIG_fail;
35384 swig_obj[0] = args;
35385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35386 if (!SWIG_IsOK(res1)) {
35387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35388 }
35389 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35390 {
35391 PyThreadState* __tstate = wxPyBeginAllowThreads();
35392 (arg1)->BeginDrawing();
35393 wxPyEndAllowThreads(__tstate);
35394 if (PyErr_Occurred()) SWIG_fail;
35395 }
35396 resultobj = SWIG_Py_Void();
35397 return resultobj;
35398fail:
35399 return NULL;
35400}
35401
35402
35403SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35404 PyObject *resultobj = 0;
35405 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35406 void *argp1 = 0 ;
35407 int res1 = 0 ;
35408 PyObject *swig_obj[1] ;
35409
35410 if (!args) SWIG_fail;
35411 swig_obj[0] = args;
35412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35413 if (!SWIG_IsOK(res1)) {
35414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35415 }
35416 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35417 {
35418 PyThreadState* __tstate = wxPyBeginAllowThreads();
35419 (arg1)->EndDrawing();
35420 wxPyEndAllowThreads(__tstate);
35421 if (PyErr_Occurred()) SWIG_fail;
35422 }
35423 resultobj = SWIG_Py_Void();
35424 return resultobj;
35425fail:
35426 return NULL;
35427}
35428
35429
35430SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35431 PyObject *resultobj = 0;
35432 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35433 void *argp1 = 0 ;
35434 int res1 = 0 ;
35435 PyObject *swig_obj[1] ;
35436
35437 if (!args) SWIG_fail;
35438 swig_obj[0] = args;
35439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35440 if (!SWIG_IsOK(res1)) {
35441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35442 }
35443 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35444 {
35445 PyThreadState* __tstate = wxPyBeginAllowThreads();
35446 delete arg1;
35447
35448 wxPyEndAllowThreads(__tstate);
35449 if (PyErr_Occurred()) SWIG_fail;
35450 }
35451 resultobj = SWIG_Py_Void();
35452 return resultobj;
35453fail:
35454 return NULL;
35455}
35456
35457
35458SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35459 PyObject *resultobj = 0;
35460 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35461 void *argp1 = 0 ;
35462 int res1 = 0 ;
35463 PyObject *swig_obj[1] ;
35464
35465 if (!args) SWIG_fail;
35466 swig_obj[0] = args;
35467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35468 if (!SWIG_IsOK(res1)) {
35469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35470 }
35471 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35472 {
35473 PyThreadState* __tstate = wxPyBeginAllowThreads();
35474 (arg1)->RemoveAll();
35475 wxPyEndAllowThreads(__tstate);
35476 if (PyErr_Occurred()) SWIG_fail;
35477 }
35478 resultobj = SWIG_Py_Void();
35479 return resultobj;
35480fail:
35481 return NULL;
35482}
35483
35484
35485SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35486 PyObject *resultobj = 0;
35487 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35488 int result;
35489 void *argp1 = 0 ;
35490 int res1 = 0 ;
35491 PyObject *swig_obj[1] ;
35492
35493 if (!args) SWIG_fail;
35494 swig_obj[0] = args;
35495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35496 if (!SWIG_IsOK(res1)) {
35497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35498 }
35499 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35500 {
35501 PyThreadState* __tstate = wxPyBeginAllowThreads();
35502 result = (int)(arg1)->GetLen();
35503 wxPyEndAllowThreads(__tstate);
35504 if (PyErr_Occurred()) SWIG_fail;
35505 }
35506 resultobj = SWIG_From_int(static_cast< int >(result));
35507 return resultobj;
35508fail:
35509 return NULL;
35510}
35511
35512
35513SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35514 PyObject *resultobj = 0;
35515 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35516 int arg2 ;
35517 void *argp1 = 0 ;
35518 int res1 = 0 ;
35519 int val2 ;
35520 int ecode2 = 0 ;
35521 PyObject * obj0 = 0 ;
35522 PyObject * obj1 = 0 ;
35523 char * kwnames[] = {
35524 (char *) "self",(char *) "id", NULL
35525 };
35526
35527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35529 if (!SWIG_IsOK(res1)) {
35530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35531 }
35532 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35533 ecode2 = SWIG_AsVal_int(obj1, &val2);
35534 if (!SWIG_IsOK(ecode2)) {
35535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35536 }
35537 arg2 = static_cast< int >(val2);
35538 {
35539 PyThreadState* __tstate = wxPyBeginAllowThreads();
35540 (arg1)->SetId(arg2);
35541 wxPyEndAllowThreads(__tstate);
35542 if (PyErr_Occurred()) SWIG_fail;
35543 }
35544 resultobj = SWIG_Py_Void();
35545 return resultobj;
35546fail:
35547 return NULL;
35548}
35549
35550
35551SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35552 PyObject *resultobj = 0;
35553 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35554 int arg2 ;
35555 void *argp1 = 0 ;
35556 int res1 = 0 ;
35557 int val2 ;
35558 int ecode2 = 0 ;
35559 PyObject * obj0 = 0 ;
35560 PyObject * obj1 = 0 ;
35561 char * kwnames[] = {
35562 (char *) "self",(char *) "id", NULL
35563 };
35564
35565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35567 if (!SWIG_IsOK(res1)) {
35568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35569 }
35570 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35571 ecode2 = SWIG_AsVal_int(obj1, &val2);
35572 if (!SWIG_IsOK(ecode2)) {
35573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35574 }
35575 arg2 = static_cast< int >(val2);
35576 {
35577 PyThreadState* __tstate = wxPyBeginAllowThreads();
35578 (arg1)->ClearId(arg2);
35579 wxPyEndAllowThreads(__tstate);
35580 if (PyErr_Occurred()) SWIG_fail;
35581 }
35582 resultobj = SWIG_Py_Void();
35583 return resultobj;
35584fail:
35585 return NULL;
35586}
35587
35588
35589SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35590 PyObject *resultobj = 0;
35591 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35592 int arg2 ;
35593 void *argp1 = 0 ;
35594 int res1 = 0 ;
35595 int val2 ;
35596 int ecode2 = 0 ;
35597 PyObject * obj0 = 0 ;
35598 PyObject * obj1 = 0 ;
35599 char * kwnames[] = {
35600 (char *) "self",(char *) "id", NULL
35601 };
35602
35603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35605 if (!SWIG_IsOK(res1)) {
35606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35607 }
35608 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35609 ecode2 = SWIG_AsVal_int(obj1, &val2);
35610 if (!SWIG_IsOK(ecode2)) {
35611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35612 }
35613 arg2 = static_cast< int >(val2);
35614 {
35615 PyThreadState* __tstate = wxPyBeginAllowThreads();
35616 (arg1)->RemoveId(arg2);
35617 wxPyEndAllowThreads(__tstate);
35618 if (PyErr_Occurred()) SWIG_fail;
35619 }
35620 resultobj = SWIG_Py_Void();
35621 return resultobj;
35622fail:
35623 return NULL;
35624}
35625
35626
35627SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35628 PyObject *resultobj = 0;
35629 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35630 int arg2 ;
35631 int arg3 ;
35632 int arg4 ;
35633 void *argp1 = 0 ;
35634 int res1 = 0 ;
35635 int val2 ;
35636 int ecode2 = 0 ;
35637 int val3 ;
35638 int ecode3 = 0 ;
35639 int val4 ;
35640 int ecode4 = 0 ;
35641 PyObject * obj0 = 0 ;
35642 PyObject * obj1 = 0 ;
35643 PyObject * obj2 = 0 ;
35644 PyObject * obj3 = 0 ;
35645 char * kwnames[] = {
35646 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35647 };
35648
35649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35651 if (!SWIG_IsOK(res1)) {
35652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35653 }
35654 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35655 ecode2 = SWIG_AsVal_int(obj1, &val2);
35656 if (!SWIG_IsOK(ecode2)) {
35657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35658 }
35659 arg2 = static_cast< int >(val2);
35660 ecode3 = SWIG_AsVal_int(obj2, &val3);
35661 if (!SWIG_IsOK(ecode3)) {
35662 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35663 }
35664 arg3 = static_cast< int >(val3);
35665 ecode4 = SWIG_AsVal_int(obj3, &val4);
35666 if (!SWIG_IsOK(ecode4)) {
35667 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35668 }
35669 arg4 = static_cast< int >(val4);
35670 {
35671 PyThreadState* __tstate = wxPyBeginAllowThreads();
35672 (arg1)->TranslateId(arg2,arg3,arg4);
35673 wxPyEndAllowThreads(__tstate);
35674 if (PyErr_Occurred()) SWIG_fail;
35675 }
35676 resultobj = SWIG_Py_Void();
35677 return resultobj;
35678fail:
35679 return NULL;
35680}
35681
35682
72ef6efb
RD
35683SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35684 PyObject *resultobj = 0;
35685 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35686 int arg2 ;
35687 bool arg3 = (bool) true ;
35688 void *argp1 = 0 ;
35689 int res1 = 0 ;
35690 int val2 ;
35691 int ecode2 = 0 ;
35692 bool val3 ;
35693 int ecode3 = 0 ;
35694 PyObject * obj0 = 0 ;
35695 PyObject * obj1 = 0 ;
35696 PyObject * obj2 = 0 ;
35697 char * kwnames[] = {
35698 (char *) "self",(char *) "id",(char *) "greyout", NULL
35699 };
35700
35701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35703 if (!SWIG_IsOK(res1)) {
35704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35705 }
35706 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35707 ecode2 = SWIG_AsVal_int(obj1, &val2);
35708 if (!SWIG_IsOK(ecode2)) {
35709 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35710 }
35711 arg2 = static_cast< int >(val2);
35712 if (obj2) {
35713 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35714 if (!SWIG_IsOK(ecode3)) {
35715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35716 }
35717 arg3 = static_cast< bool >(val3);
35718 }
35719 {
35720 PyThreadState* __tstate = wxPyBeginAllowThreads();
35721 (arg1)->SetIdGreyedOut(arg2,arg3);
35722 wxPyEndAllowThreads(__tstate);
35723 if (PyErr_Occurred()) SWIG_fail;
35724 }
35725 resultobj = SWIG_Py_Void();
35726 return resultobj;
35727fail:
35728 return NULL;
35729}
35730
35731
35732SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35733 PyObject *resultobj = 0;
35734 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35735 int arg2 ;
35736 bool result;
35737 void *argp1 = 0 ;
35738 int res1 = 0 ;
35739 int val2 ;
35740 int ecode2 = 0 ;
35741 PyObject * obj0 = 0 ;
35742 PyObject * obj1 = 0 ;
35743 char * kwnames[] = {
35744 (char *) "self",(char *) "id", NULL
35745 };
35746
35747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35749 if (!SWIG_IsOK(res1)) {
35750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35751 }
35752 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35753 ecode2 = SWIG_AsVal_int(obj1, &val2);
35754 if (!SWIG_IsOK(ecode2)) {
35755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35756 }
35757 arg2 = static_cast< int >(val2);
35758 {
35759 PyThreadState* __tstate = wxPyBeginAllowThreads();
35760 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35761 wxPyEndAllowThreads(__tstate);
35762 if (PyErr_Occurred()) SWIG_fail;
35763 }
35764 {
35765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35766 }
35767 return resultobj;
35768fail:
35769 return NULL;
35770}
35771
35772
35773SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35774 PyObject *resultobj = 0;
35775 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35776 int arg2 ;
35777 int arg3 ;
35778 int arg4 = (int) 1 ;
59ccbf7f
RD
35779 wxColour const &arg5_defvalue = *wxWHITE ;
35780 wxColour *arg5 = (wxColour *) &arg5_defvalue ;
72ef6efb
RD
35781 PyObject *result = 0 ;
35782 void *argp1 = 0 ;
35783 int res1 = 0 ;
35784 int val2 ;
35785 int ecode2 = 0 ;
35786 int val3 ;
35787 int ecode3 = 0 ;
35788 int val4 ;
35789 int ecode4 = 0 ;
59ccbf7f 35790 wxColour temp5 ;
72ef6efb
RD
35791 PyObject * obj0 = 0 ;
35792 PyObject * obj1 = 0 ;
35793 PyObject * obj2 = 0 ;
35794 PyObject * obj3 = 0 ;
35795 PyObject * obj4 = 0 ;
35796 char * kwnames[] = {
35797 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35798 };
35799
35800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35802 if (!SWIG_IsOK(res1)) {
35803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35804 }
35805 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35806 ecode2 = SWIG_AsVal_int(obj1, &val2);
35807 if (!SWIG_IsOK(ecode2)) {
35808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35809 }
35810 arg2 = static_cast< int >(val2);
35811 ecode3 = SWIG_AsVal_int(obj2, &val3);
35812 if (!SWIG_IsOK(ecode3)) {
35813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35814 }
35815 arg3 = static_cast< int >(val3);
35816 if (obj3) {
35817 ecode4 = SWIG_AsVal_int(obj3, &val4);
35818 if (!SWIG_IsOK(ecode4)) {
35819 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35820 }
35821 arg4 = static_cast< int >(val4);
35822 }
35823 if (obj4) {
59ccbf7f
RD
35824 {
35825 arg5 = &temp5;
35826 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
72ef6efb 35827 }
72ef6efb
RD
35828 }
35829 {
59ccbf7f 35830 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColour const &)*arg5);
72ef6efb
RD
35831 if (PyErr_Occurred()) SWIG_fail;
35832 }
35833 resultobj = result;
35834 return resultobj;
35835fail:
35836 return NULL;
35837}
35838
35839
35840SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35841 PyObject *resultobj = 0;
35842 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35843 int arg2 ;
35844 int arg3 ;
35845 PyObject *result = 0 ;
35846 void *argp1 = 0 ;
35847 int res1 = 0 ;
35848 int val2 ;
35849 int ecode2 = 0 ;
35850 int val3 ;
35851 int ecode3 = 0 ;
35852 PyObject * obj0 = 0 ;
35853 PyObject * obj1 = 0 ;
35854 PyObject * obj2 = 0 ;
35855 char * kwnames[] = {
35856 (char *) "self",(char *) "x",(char *) "y", NULL
35857 };
35858
35859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35861 if (!SWIG_IsOK(res1)) {
35862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35863 }
35864 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35865 ecode2 = SWIG_AsVal_int(obj1, &val2);
35866 if (!SWIG_IsOK(ecode2)) {
35867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35868 }
35869 arg2 = static_cast< int >(val2);
35870 ecode3 = SWIG_AsVal_int(obj2, &val3);
35871 if (!SWIG_IsOK(ecode3)) {
35872 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35873 }
35874 arg3 = static_cast< int >(val3);
35875 {
35876 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35877 if (PyErr_Occurred()) SWIG_fail;
35878 }
35879 resultobj = result;
35880 return resultobj;
35881fail:
35882 return NULL;
35883}
35884
35885
27e45892
RD
35886SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35887 PyObject *resultobj = 0;
35888 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35889 int arg2 ;
35890 wxDC *arg3 = (wxDC *) 0 ;
35891 void *argp1 = 0 ;
35892 int res1 = 0 ;
35893 int val2 ;
35894 int ecode2 = 0 ;
35895 void *argp3 = 0 ;
35896 int res3 = 0 ;
35897 PyObject * obj0 = 0 ;
35898 PyObject * obj1 = 0 ;
35899 PyObject * obj2 = 0 ;
35900 char * kwnames[] = {
35901 (char *) "self",(char *) "id",(char *) "dc", NULL
35902 };
35903
35904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35906 if (!SWIG_IsOK(res1)) {
35907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35908 }
35909 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35910 ecode2 = SWIG_AsVal_int(obj1, &val2);
35911 if (!SWIG_IsOK(ecode2)) {
35912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35913 }
35914 arg2 = static_cast< int >(val2);
35915 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35916 if (!SWIG_IsOK(res3)) {
35917 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35918 }
35919 arg3 = reinterpret_cast< wxDC * >(argp3);
35920 {
35921 PyThreadState* __tstate = wxPyBeginAllowThreads();
35922 (arg1)->DrawIdToDC(arg2,arg3);
35923 wxPyEndAllowThreads(__tstate);
35924 if (PyErr_Occurred()) SWIG_fail;
35925 }
35926 resultobj = SWIG_Py_Void();
35927 return resultobj;
35928fail:
35929 return NULL;
35930}
35931
35932
35933SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35934 PyObject *resultobj = 0;
35935 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35936 int arg2 ;
35937 wxRect *arg3 = 0 ;
35938 void *argp1 = 0 ;
35939 int res1 = 0 ;
35940 int val2 ;
35941 int ecode2 = 0 ;
35942 wxRect temp3 ;
35943 PyObject * obj0 = 0 ;
35944 PyObject * obj1 = 0 ;
35945 PyObject * obj2 = 0 ;
35946 char * kwnames[] = {
35947 (char *) "self",(char *) "id",(char *) "rect", NULL
35948 };
35949
35950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35952 if (!SWIG_IsOK(res1)) {
35953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35954 }
35955 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35956 ecode2 = SWIG_AsVal_int(obj1, &val2);
35957 if (!SWIG_IsOK(ecode2)) {
35958 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35959 }
35960 arg2 = static_cast< int >(val2);
35961 {
35962 arg3 = &temp3;
35963 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35964 }
35965 {
35966 PyThreadState* __tstate = wxPyBeginAllowThreads();
35967 (arg1)->SetIdBounds(arg2,*arg3);
35968 wxPyEndAllowThreads(__tstate);
35969 if (PyErr_Occurred()) SWIG_fail;
35970 }
35971 resultobj = SWIG_Py_Void();
35972 return resultobj;
35973fail:
35974 return NULL;
35975}
35976
35977
35978SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35979 PyObject *resultobj = 0;
35980 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35981 int arg2 ;
35982 wxRect result;
35983 void *argp1 = 0 ;
35984 int res1 = 0 ;
35985 int val2 ;
35986 int ecode2 = 0 ;
35987 PyObject * obj0 = 0 ;
35988 PyObject * obj1 = 0 ;
35989 char * kwnames[] = {
35990 (char *) "self",(char *) "id", NULL
35991 };
35992
35993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35995 if (!SWIG_IsOK(res1)) {
35996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35997 }
35998 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35999 ecode2 = SWIG_AsVal_int(obj1, &val2);
36000 if (!SWIG_IsOK(ecode2)) {
36001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
36002 }
36003 arg2 = static_cast< int >(val2);
36004 {
36005 PyThreadState* __tstate = wxPyBeginAllowThreads();
36006 result = wxPseudoDC_GetIdBounds(arg1,arg2);
36007 wxPyEndAllowThreads(__tstate);
36008 if (PyErr_Occurred()) SWIG_fail;
36009 }
36010 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
36011 return resultobj;
36012fail:
36013 return NULL;
36014}
36015
36016
36017SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36018 PyObject *resultobj = 0;
36019 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36020 wxDC *arg2 = (wxDC *) 0 ;
36021 wxRect *arg3 = 0 ;
36022 void *argp1 = 0 ;
36023 int res1 = 0 ;
36024 void *argp2 = 0 ;
36025 int res2 = 0 ;
36026 wxRect temp3 ;
36027 PyObject * obj0 = 0 ;
36028 PyObject * obj1 = 0 ;
36029 PyObject * obj2 = 0 ;
36030 char * kwnames[] = {
36031 (char *) "self",(char *) "dc",(char *) "rect", NULL
36032 };
36033
36034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36036 if (!SWIG_IsOK(res1)) {
36037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36038 }
36039 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36040 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36041 if (!SWIG_IsOK(res2)) {
36042 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
36043 }
36044 arg2 = reinterpret_cast< wxDC * >(argp2);
36045 {
36046 arg3 = &temp3;
36047 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36048 }
36049 {
36050 PyThreadState* __tstate = wxPyBeginAllowThreads();
36051 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
36052 wxPyEndAllowThreads(__tstate);
36053 if (PyErr_Occurred()) SWIG_fail;
36054 }
36055 resultobj = SWIG_Py_Void();
36056 return resultobj;
36057fail:
36058 return NULL;
36059}
36060
36061
36062SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36063 PyObject *resultobj = 0;
36064 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36065 wxDC *arg2 = (wxDC *) 0 ;
36066 wxRegion *arg3 = 0 ;
36067 void *argp1 = 0 ;
36068 int res1 = 0 ;
36069 void *argp2 = 0 ;
36070 int res2 = 0 ;
36071 void *argp3 = 0 ;
36072 int res3 = 0 ;
36073 PyObject * obj0 = 0 ;
36074 PyObject * obj1 = 0 ;
36075 PyObject * obj2 = 0 ;
36076 char * kwnames[] = {
36077 (char *) "self",(char *) "dc",(char *) "region", NULL
36078 };
36079
36080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36082 if (!SWIG_IsOK(res1)) {
36083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36084 }
36085 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36086 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36087 if (!SWIG_IsOK(res2)) {
36088 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
36089 }
36090 arg2 = reinterpret_cast< wxDC * >(argp2);
36091 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
36092 if (!SWIG_IsOK(res3)) {
36093 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36094 }
36095 if (!argp3) {
36096 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36097 }
36098 arg3 = reinterpret_cast< wxRegion * >(argp3);
36099 {
36100 PyThreadState* __tstate = wxPyBeginAllowThreads();
36101 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
36102 wxPyEndAllowThreads(__tstate);
36103 if (PyErr_Occurred()) SWIG_fail;
36104 }
36105 resultobj = SWIG_Py_Void();
36106 return resultobj;
36107fail:
36108 return NULL;
36109}
36110
36111
36112SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36113 PyObject *resultobj = 0;
36114 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36115 wxDC *arg2 = (wxDC *) 0 ;
36116 void *argp1 = 0 ;
36117 int res1 = 0 ;
36118 void *argp2 = 0 ;
36119 int res2 = 0 ;
36120 PyObject * obj0 = 0 ;
36121 PyObject * obj1 = 0 ;
36122 char * kwnames[] = {
36123 (char *) "self",(char *) "dc", NULL
36124 };
36125
36126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
36127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36128 if (!SWIG_IsOK(res1)) {
36129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36130 }
36131 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36132 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36133 if (!SWIG_IsOK(res2)) {
36134 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
36135 }
36136 arg2 = reinterpret_cast< wxDC * >(argp2);
36137 {
36138 PyThreadState* __tstate = wxPyBeginAllowThreads();
36139 (arg1)->DrawToDC(arg2);
36140 wxPyEndAllowThreads(__tstate);
36141 if (PyErr_Occurred()) SWIG_fail;
36142 }
36143 resultobj = SWIG_Py_Void();
36144 return resultobj;
36145fail:
36146 return NULL;
36147}
36148
36149
36150SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36151 PyObject *resultobj = 0;
36152 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36153 int arg2 ;
36154 int arg3 ;
36155 wxColour *arg4 = 0 ;
36156 int arg5 = (int) wxFLOOD_SURFACE ;
36157 void *argp1 = 0 ;
36158 int res1 = 0 ;
36159 int val2 ;
36160 int ecode2 = 0 ;
36161 int val3 ;
36162 int ecode3 = 0 ;
36163 wxColour temp4 ;
36164 int val5 ;
36165 int ecode5 = 0 ;
36166 PyObject * obj0 = 0 ;
36167 PyObject * obj1 = 0 ;
36168 PyObject * obj2 = 0 ;
36169 PyObject * obj3 = 0 ;
36170 PyObject * obj4 = 0 ;
36171 char * kwnames[] = {
36172 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
36173 };
36174
36175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36177 if (!SWIG_IsOK(res1)) {
36178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36179 }
36180 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36181 ecode2 = SWIG_AsVal_int(obj1, &val2);
36182 if (!SWIG_IsOK(ecode2)) {
36183 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
36184 }
36185 arg2 = static_cast< int >(val2);
36186 ecode3 = SWIG_AsVal_int(obj2, &val3);
36187 if (!SWIG_IsOK(ecode3)) {
36188 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
36189 }
36190 arg3 = static_cast< int >(val3);
36191 {
36192 arg4 = &temp4;
36193 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
36194 }
36195 if (obj4) {
36196 ecode5 = SWIG_AsVal_int(obj4, &val5);
36197 if (!SWIG_IsOK(ecode5)) {
36198 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
36199 }
36200 arg5 = static_cast< int >(val5);
36201 }
36202 {
36203 PyThreadState* __tstate = wxPyBeginAllowThreads();
36204 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
36205 wxPyEndAllowThreads(__tstate);
36206 if (PyErr_Occurred()) SWIG_fail;
36207 }
36208 resultobj = SWIG_Py_Void();
36209 return resultobj;
36210fail:
36211 return NULL;
36212}
36213
36214
36215SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36216 PyObject *resultobj = 0;
36217 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36218 wxPoint *arg2 = 0 ;
36219 wxColour *arg3 = 0 ;
36220 int arg4 = (int) wxFLOOD_SURFACE ;
36221 void *argp1 = 0 ;
36222 int res1 = 0 ;
36223 wxPoint temp2 ;
36224 wxColour temp3 ;
36225 int val4 ;
36226 int ecode4 = 0 ;
36227 PyObject * obj0 = 0 ;
36228 PyObject * obj1 = 0 ;
36229 PyObject * obj2 = 0 ;
36230 PyObject * obj3 = 0 ;
36231 char * kwnames[] = {
36232 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
36233 };
36234
36235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36237 if (!SWIG_IsOK(res1)) {
36238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36239 }
36240 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36241 {
36242 arg2 = &temp2;
36243 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36244 }
36245 {
36246 arg3 = &temp3;
36247 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
36248 }
36249 if (obj3) {
36250 ecode4 = SWIG_AsVal_int(obj3, &val4);
36251 if (!SWIG_IsOK(ecode4)) {
36252 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
36253 }
36254 arg4 = static_cast< int >(val4);
36255 }
36256 {
36257 PyThreadState* __tstate = wxPyBeginAllowThreads();
36258 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
36259 wxPyEndAllowThreads(__tstate);
36260 if (PyErr_Occurred()) SWIG_fail;
36261 }
36262 resultobj = SWIG_Py_Void();
36263 return resultobj;
36264fail:
36265 return NULL;
36266}
36267
36268
36269SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36270 PyObject *resultobj = 0;
36271 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36272 int arg2 ;
36273 int arg3 ;
36274 int arg4 ;
36275 int arg5 ;
36276 void *argp1 = 0 ;
36277 int res1 = 0 ;
36278 int val2 ;
36279 int ecode2 = 0 ;
36280 int val3 ;
36281 int ecode3 = 0 ;
36282 int val4 ;
36283 int ecode4 = 0 ;
36284 int val5 ;
36285 int ecode5 = 0 ;
36286 PyObject * obj0 = 0 ;
36287 PyObject * obj1 = 0 ;
36288 PyObject * obj2 = 0 ;
36289 PyObject * obj3 = 0 ;
36290 PyObject * obj4 = 0 ;
36291 char * kwnames[] = {
36292 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36293 };
36294
36295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36297 if (!SWIG_IsOK(res1)) {
36298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36299 }
36300 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36301 ecode2 = SWIG_AsVal_int(obj1, &val2);
36302 if (!SWIG_IsOK(ecode2)) {
36303 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36304 }
36305 arg2 = static_cast< int >(val2);
36306 ecode3 = SWIG_AsVal_int(obj2, &val3);
36307 if (!SWIG_IsOK(ecode3)) {
36308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
36309 }
36310 arg3 = static_cast< int >(val3);
36311 ecode4 = SWIG_AsVal_int(obj3, &val4);
36312 if (!SWIG_IsOK(ecode4)) {
36313 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
36314 }
36315 arg4 = static_cast< int >(val4);
36316 ecode5 = SWIG_AsVal_int(obj4, &val5);
36317 if (!SWIG_IsOK(ecode5)) {
36318 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
36319 }
36320 arg5 = static_cast< int >(val5);
36321 {
36322 PyThreadState* __tstate = wxPyBeginAllowThreads();
36323 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
36324 wxPyEndAllowThreads(__tstate);
36325 if (PyErr_Occurred()) SWIG_fail;
36326 }
36327 resultobj = SWIG_Py_Void();
36328 return resultobj;
36329fail:
36330 return NULL;
36331}
36332
36333
36334SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36335 PyObject *resultobj = 0;
36336 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36337 wxPoint *arg2 = 0 ;
36338 wxPoint *arg3 = 0 ;
36339 void *argp1 = 0 ;
36340 int res1 = 0 ;
36341 wxPoint temp2 ;
36342 wxPoint temp3 ;
36343 PyObject * obj0 = 0 ;
36344 PyObject * obj1 = 0 ;
36345 PyObject * obj2 = 0 ;
36346 char * kwnames[] = {
36347 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
36348 };
36349
36350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36352 if (!SWIG_IsOK(res1)) {
36353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36354 }
36355 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36356 {
36357 arg2 = &temp2;
36358 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36359 }
36360 {
36361 arg3 = &temp3;
36362 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36363 }
36364 {
36365 PyThreadState* __tstate = wxPyBeginAllowThreads();
36366 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
36367 wxPyEndAllowThreads(__tstate);
36368 if (PyErr_Occurred()) SWIG_fail;
36369 }
36370 resultobj = SWIG_Py_Void();
36371 return resultobj;
36372fail:
36373 return NULL;
36374}
36375
36376
36377SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36378 PyObject *resultobj = 0;
36379 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36380 int arg2 ;
36381 int arg3 ;
36382 void *argp1 = 0 ;
36383 int res1 = 0 ;
36384 int val2 ;
36385 int ecode2 = 0 ;
36386 int val3 ;
36387 int ecode3 = 0 ;
36388 PyObject * obj0 = 0 ;
36389 PyObject * obj1 = 0 ;
36390 PyObject * obj2 = 0 ;
36391 char * kwnames[] = {
36392 (char *) "self",(char *) "x",(char *) "y", NULL
36393 };
36394
36395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36397 if (!SWIG_IsOK(res1)) {
36398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36399 }
36400 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36401 ecode2 = SWIG_AsVal_int(obj1, &val2);
36402 if (!SWIG_IsOK(ecode2)) {
36403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36404 }
36405 arg2 = static_cast< int >(val2);
36406 ecode3 = SWIG_AsVal_int(obj2, &val3);
36407 if (!SWIG_IsOK(ecode3)) {
36408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36409 }
36410 arg3 = static_cast< int >(val3);
36411 {
36412 PyThreadState* __tstate = wxPyBeginAllowThreads();
36413 (arg1)->CrossHair(arg2,arg3);
36414 wxPyEndAllowThreads(__tstate);
36415 if (PyErr_Occurred()) SWIG_fail;
36416 }
36417 resultobj = SWIG_Py_Void();
36418 return resultobj;
36419fail:
36420 return NULL;
36421}
36422
36423
36424SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36425 PyObject *resultobj = 0;
36426 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36427 wxPoint *arg2 = 0 ;
36428 void *argp1 = 0 ;
36429 int res1 = 0 ;
36430 wxPoint temp2 ;
36431 PyObject * obj0 = 0 ;
36432 PyObject * obj1 = 0 ;
36433 char * kwnames[] = {
36434 (char *) "self",(char *) "pt", NULL
36435 };
36436
36437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36439 if (!SWIG_IsOK(res1)) {
36440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36441 }
36442 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36443 {
36444 arg2 = &temp2;
36445 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36446 }
36447 {
36448 PyThreadState* __tstate = wxPyBeginAllowThreads();
36449 (arg1)->CrossHair((wxPoint const &)*arg2);
36450 wxPyEndAllowThreads(__tstate);
36451 if (PyErr_Occurred()) SWIG_fail;
36452 }
36453 resultobj = SWIG_Py_Void();
36454 return resultobj;
36455fail:
36456 return NULL;
36457}
36458
36459
36460SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36461 PyObject *resultobj = 0;
36462 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36463 int arg2 ;
36464 int arg3 ;
36465 int arg4 ;
36466 int arg5 ;
36467 int arg6 ;
36468 int arg7 ;
36469 void *argp1 = 0 ;
36470 int res1 = 0 ;
36471 int val2 ;
36472 int ecode2 = 0 ;
36473 int val3 ;
36474 int ecode3 = 0 ;
36475 int val4 ;
36476 int ecode4 = 0 ;
36477 int val5 ;
36478 int ecode5 = 0 ;
36479 int val6 ;
36480 int ecode6 = 0 ;
36481 int val7 ;
36482 int ecode7 = 0 ;
36483 PyObject * obj0 = 0 ;
36484 PyObject * obj1 = 0 ;
36485 PyObject * obj2 = 0 ;
36486 PyObject * obj3 = 0 ;
36487 PyObject * obj4 = 0 ;
36488 PyObject * obj5 = 0 ;
36489 PyObject * obj6 = 0 ;
36490 char * kwnames[] = {
36491 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36492 };
36493
36494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36496 if (!SWIG_IsOK(res1)) {
36497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36498 }
36499 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36500 ecode2 = SWIG_AsVal_int(obj1, &val2);
36501 if (!SWIG_IsOK(ecode2)) {
36502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36503 }
36504 arg2 = static_cast< int >(val2);
36505 ecode3 = SWIG_AsVal_int(obj2, &val3);
36506 if (!SWIG_IsOK(ecode3)) {
36507 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36508 }
36509 arg3 = static_cast< int >(val3);
36510 ecode4 = SWIG_AsVal_int(obj3, &val4);
36511 if (!SWIG_IsOK(ecode4)) {
36512 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36513 }
36514 arg4 = static_cast< int >(val4);
36515 ecode5 = SWIG_AsVal_int(obj4, &val5);
36516 if (!SWIG_IsOK(ecode5)) {
36517 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36518 }
36519 arg5 = static_cast< int >(val5);
36520 ecode6 = SWIG_AsVal_int(obj5, &val6);
36521 if (!SWIG_IsOK(ecode6)) {
36522 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36523 }
36524 arg6 = static_cast< int >(val6);
36525 ecode7 = SWIG_AsVal_int(obj6, &val7);
36526 if (!SWIG_IsOK(ecode7)) {
36527 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36528 }
36529 arg7 = static_cast< int >(val7);
36530 {
36531 PyThreadState* __tstate = wxPyBeginAllowThreads();
36532 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36533 wxPyEndAllowThreads(__tstate);
36534 if (PyErr_Occurred()) SWIG_fail;
36535 }
36536 resultobj = SWIG_Py_Void();
36537 return resultobj;
36538fail:
36539 return NULL;
36540}
36541
36542
36543SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36544 PyObject *resultobj = 0;
36545 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36546 wxPoint *arg2 = 0 ;
36547 wxPoint *arg3 = 0 ;
36548 wxPoint *arg4 = 0 ;
36549 void *argp1 = 0 ;
36550 int res1 = 0 ;
36551 wxPoint temp2 ;
36552 wxPoint temp3 ;
36553 wxPoint temp4 ;
36554 PyObject * obj0 = 0 ;
36555 PyObject * obj1 = 0 ;
36556 PyObject * obj2 = 0 ;
36557 PyObject * obj3 = 0 ;
36558 char * kwnames[] = {
36559 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36560 };
36561
36562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36564 if (!SWIG_IsOK(res1)) {
36565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36566 }
36567 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36568 {
36569 arg2 = &temp2;
36570 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36571 }
36572 {
36573 arg3 = &temp3;
36574 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36575 }
36576 {
36577 arg4 = &temp4;
36578 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36579 }
36580 {
36581 PyThreadState* __tstate = wxPyBeginAllowThreads();
36582 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36583 wxPyEndAllowThreads(__tstate);
36584 if (PyErr_Occurred()) SWIG_fail;
36585 }
36586 resultobj = SWIG_Py_Void();
36587 return resultobj;
36588fail:
36589 return NULL;
36590}
36591
36592
36593SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36594 PyObject *resultobj = 0;
36595 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36596 int arg2 ;
36597 int arg3 ;
36598 int arg4 ;
36599 int arg5 ;
36600 void *argp1 = 0 ;
36601 int res1 = 0 ;
36602 int val2 ;
36603 int ecode2 = 0 ;
36604 int val3 ;
36605 int ecode3 = 0 ;
36606 int val4 ;
36607 int ecode4 = 0 ;
36608 int val5 ;
36609 int ecode5 = 0 ;
36610 PyObject * obj0 = 0 ;
36611 PyObject * obj1 = 0 ;
36612 PyObject * obj2 = 0 ;
36613 PyObject * obj3 = 0 ;
36614 PyObject * obj4 = 0 ;
36615 char * kwnames[] = {
36616 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36617 };
36618
36619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36621 if (!SWIG_IsOK(res1)) {
36622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36623 }
36624 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36625 ecode2 = SWIG_AsVal_int(obj1, &val2);
36626 if (!SWIG_IsOK(ecode2)) {
36627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36628 }
36629 arg2 = static_cast< int >(val2);
36630 ecode3 = SWIG_AsVal_int(obj2, &val3);
36631 if (!SWIG_IsOK(ecode3)) {
36632 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36633 }
36634 arg3 = static_cast< int >(val3);
36635 ecode4 = SWIG_AsVal_int(obj3, &val4);
36636 if (!SWIG_IsOK(ecode4)) {
36637 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36638 }
36639 arg4 = static_cast< int >(val4);
36640 ecode5 = SWIG_AsVal_int(obj4, &val5);
36641 if (!SWIG_IsOK(ecode5)) {
36642 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36643 }
36644 arg5 = static_cast< int >(val5);
36645 {
36646 PyThreadState* __tstate = wxPyBeginAllowThreads();
36647 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36648 wxPyEndAllowThreads(__tstate);
36649 if (PyErr_Occurred()) SWIG_fail;
36650 }
36651 resultobj = SWIG_Py_Void();
36652 return resultobj;
36653fail:
36654 return NULL;
36655}
36656
36657
36658SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36659 PyObject *resultobj = 0;
36660 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36661 wxRect *arg2 = 0 ;
36662 void *argp1 = 0 ;
36663 int res1 = 0 ;
36664 wxRect temp2 ;
36665 PyObject * obj0 = 0 ;
36666 PyObject * obj1 = 0 ;
36667 char * kwnames[] = {
36668 (char *) "self",(char *) "rect", NULL
36669 };
36670
36671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36673 if (!SWIG_IsOK(res1)) {
36674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36675 }
36676 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36677 {
36678 arg2 = &temp2;
36679 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36680 }
36681 {
36682 PyThreadState* __tstate = wxPyBeginAllowThreads();
36683 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36684 wxPyEndAllowThreads(__tstate);
36685 if (PyErr_Occurred()) SWIG_fail;
36686 }
36687 resultobj = SWIG_Py_Void();
36688 return resultobj;
36689fail:
36690 return NULL;
36691}
36692
36693
36694SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36695 PyObject *resultobj = 0;
36696 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36697 int arg2 ;
36698 int arg3 ;
36699 int arg4 ;
36700 int arg5 ;
36701 double arg6 ;
36702 double arg7 ;
36703 void *argp1 = 0 ;
36704 int res1 = 0 ;
36705 int val2 ;
36706 int ecode2 = 0 ;
36707 int val3 ;
36708 int ecode3 = 0 ;
36709 int val4 ;
36710 int ecode4 = 0 ;
36711 int val5 ;
36712 int ecode5 = 0 ;
36713 double val6 ;
36714 int ecode6 = 0 ;
36715 double val7 ;
36716 int ecode7 = 0 ;
36717 PyObject * obj0 = 0 ;
36718 PyObject * obj1 = 0 ;
36719 PyObject * obj2 = 0 ;
36720 PyObject * obj3 = 0 ;
36721 PyObject * obj4 = 0 ;
36722 PyObject * obj5 = 0 ;
36723 PyObject * obj6 = 0 ;
36724 char * kwnames[] = {
36725 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36726 };
36727
36728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36730 if (!SWIG_IsOK(res1)) {
36731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36732 }
36733 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36734 ecode2 = SWIG_AsVal_int(obj1, &val2);
36735 if (!SWIG_IsOK(ecode2)) {
36736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36737 }
36738 arg2 = static_cast< int >(val2);
36739 ecode3 = SWIG_AsVal_int(obj2, &val3);
36740 if (!SWIG_IsOK(ecode3)) {
36741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36742 }
36743 arg3 = static_cast< int >(val3);
36744 ecode4 = SWIG_AsVal_int(obj3, &val4);
36745 if (!SWIG_IsOK(ecode4)) {
36746 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36747 }
36748 arg4 = static_cast< int >(val4);
36749 ecode5 = SWIG_AsVal_int(obj4, &val5);
36750 if (!SWIG_IsOK(ecode5)) {
36751 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36752 }
36753 arg5 = static_cast< int >(val5);
36754 ecode6 = SWIG_AsVal_double(obj5, &val6);
36755 if (!SWIG_IsOK(ecode6)) {
36756 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36757 }
36758 arg6 = static_cast< double >(val6);
36759 ecode7 = SWIG_AsVal_double(obj6, &val7);
36760 if (!SWIG_IsOK(ecode7)) {
36761 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36762 }
36763 arg7 = static_cast< double >(val7);
36764 {
36765 PyThreadState* __tstate = wxPyBeginAllowThreads();
36766 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36767 wxPyEndAllowThreads(__tstate);
36768 if (PyErr_Occurred()) SWIG_fail;
36769 }
36770 resultobj = SWIG_Py_Void();
36771 return resultobj;
36772fail:
36773 return NULL;
36774}
36775
36776
36777SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36778 PyObject *resultobj = 0;
36779 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36780 wxPoint *arg2 = 0 ;
36781 wxSize *arg3 = 0 ;
36782 double arg4 ;
36783 double arg5 ;
36784 void *argp1 = 0 ;
36785 int res1 = 0 ;
36786 wxPoint temp2 ;
36787 wxSize temp3 ;
36788 double val4 ;
36789 int ecode4 = 0 ;
36790 double val5 ;
36791 int ecode5 = 0 ;
36792 PyObject * obj0 = 0 ;
36793 PyObject * obj1 = 0 ;
36794 PyObject * obj2 = 0 ;
36795 PyObject * obj3 = 0 ;
36796 PyObject * obj4 = 0 ;
36797 char * kwnames[] = {
36798 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36799 };
36800
36801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36803 if (!SWIG_IsOK(res1)) {
36804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36805 }
36806 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36807 {
36808 arg2 = &temp2;
36809 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36810 }
36811 {
36812 arg3 = &temp3;
36813 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36814 }
36815 ecode4 = SWIG_AsVal_double(obj3, &val4);
36816 if (!SWIG_IsOK(ecode4)) {
36817 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36818 }
36819 arg4 = static_cast< double >(val4);
36820 ecode5 = SWIG_AsVal_double(obj4, &val5);
36821 if (!SWIG_IsOK(ecode5)) {
36822 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36823 }
36824 arg5 = static_cast< double >(val5);
36825 {
36826 PyThreadState* __tstate = wxPyBeginAllowThreads();
36827 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36828 wxPyEndAllowThreads(__tstate);
36829 if (PyErr_Occurred()) SWIG_fail;
36830 }
36831 resultobj = SWIG_Py_Void();
36832 return resultobj;
36833fail:
36834 return NULL;
36835}
36836
36837
36838SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36839 PyObject *resultobj = 0;
36840 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36841 int arg2 ;
36842 int arg3 ;
36843 void *argp1 = 0 ;
36844 int res1 = 0 ;
36845 int val2 ;
36846 int ecode2 = 0 ;
36847 int val3 ;
36848 int ecode3 = 0 ;
36849 PyObject * obj0 = 0 ;
36850 PyObject * obj1 = 0 ;
36851 PyObject * obj2 = 0 ;
36852 char * kwnames[] = {
36853 (char *) "self",(char *) "x",(char *) "y", NULL
36854 };
36855
36856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36858 if (!SWIG_IsOK(res1)) {
36859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36860 }
36861 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36862 ecode2 = SWIG_AsVal_int(obj1, &val2);
36863 if (!SWIG_IsOK(ecode2)) {
36864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36865 }
36866 arg2 = static_cast< int >(val2);
36867 ecode3 = SWIG_AsVal_int(obj2, &val3);
36868 if (!SWIG_IsOK(ecode3)) {
36869 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36870 }
36871 arg3 = static_cast< int >(val3);
36872 {
36873 PyThreadState* __tstate = wxPyBeginAllowThreads();
36874 (arg1)->DrawPoint(arg2,arg3);
36875 wxPyEndAllowThreads(__tstate);
36876 if (PyErr_Occurred()) SWIG_fail;
36877 }
36878 resultobj = SWIG_Py_Void();
36879 return resultobj;
36880fail:
36881 return NULL;
36882}
36883
36884
36885SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36886 PyObject *resultobj = 0;
36887 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36888 wxPoint *arg2 = 0 ;
36889 void *argp1 = 0 ;
36890 int res1 = 0 ;
36891 wxPoint temp2 ;
36892 PyObject * obj0 = 0 ;
36893 PyObject * obj1 = 0 ;
36894 char * kwnames[] = {
36895 (char *) "self",(char *) "pt", NULL
36896 };
36897
36898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36900 if (!SWIG_IsOK(res1)) {
36901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36902 }
36903 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36904 {
36905 arg2 = &temp2;
36906 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36907 }
36908 {
36909 PyThreadState* __tstate = wxPyBeginAllowThreads();
36910 (arg1)->DrawPoint((wxPoint const &)*arg2);
36911 wxPyEndAllowThreads(__tstate);
36912 if (PyErr_Occurred()) SWIG_fail;
36913 }
36914 resultobj = SWIG_Py_Void();
36915 return resultobj;
36916fail:
36917 return NULL;
36918}
36919
36920
36921SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36922 PyObject *resultobj = 0;
36923 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36924 int arg2 ;
36925 int arg3 ;
36926 int arg4 ;
36927 int arg5 ;
36928 void *argp1 = 0 ;
36929 int res1 = 0 ;
36930 int val2 ;
36931 int ecode2 = 0 ;
36932 int val3 ;
36933 int ecode3 = 0 ;
36934 int val4 ;
36935 int ecode4 = 0 ;
36936 int val5 ;
36937 int ecode5 = 0 ;
36938 PyObject * obj0 = 0 ;
36939 PyObject * obj1 = 0 ;
36940 PyObject * obj2 = 0 ;
36941 PyObject * obj3 = 0 ;
36942 PyObject * obj4 = 0 ;
36943 char * kwnames[] = {
36944 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36945 };
36946
36947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36949 if (!SWIG_IsOK(res1)) {
36950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36951 }
36952 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36953 ecode2 = SWIG_AsVal_int(obj1, &val2);
36954 if (!SWIG_IsOK(ecode2)) {
36955 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36956 }
36957 arg2 = static_cast< int >(val2);
36958 ecode3 = SWIG_AsVal_int(obj2, &val3);
36959 if (!SWIG_IsOK(ecode3)) {
36960 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36961 }
36962 arg3 = static_cast< int >(val3);
36963 ecode4 = SWIG_AsVal_int(obj3, &val4);
36964 if (!SWIG_IsOK(ecode4)) {
36965 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36966 }
36967 arg4 = static_cast< int >(val4);
36968 ecode5 = SWIG_AsVal_int(obj4, &val5);
36969 if (!SWIG_IsOK(ecode5)) {
36970 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36971 }
36972 arg5 = static_cast< int >(val5);
36973 {
36974 PyThreadState* __tstate = wxPyBeginAllowThreads();
36975 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36976 wxPyEndAllowThreads(__tstate);
36977 if (PyErr_Occurred()) SWIG_fail;
36978 }
36979 resultobj = SWIG_Py_Void();
36980 return resultobj;
36981fail:
36982 return NULL;
36983}
36984
36985
36986SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36987 PyObject *resultobj = 0;
36988 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36989 wxRect *arg2 = 0 ;
36990 void *argp1 = 0 ;
36991 int res1 = 0 ;
36992 wxRect temp2 ;
36993 PyObject * obj0 = 0 ;
36994 PyObject * obj1 = 0 ;
36995 char * kwnames[] = {
36996 (char *) "self",(char *) "rect", NULL
36997 };
36998
36999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
37000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37001 if (!SWIG_IsOK(res1)) {
37002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37003 }
37004 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37005 {
37006 arg2 = &temp2;
37007 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37008 }
37009 {
37010 PyThreadState* __tstate = wxPyBeginAllowThreads();
37011 (arg1)->DrawRectangle((wxRect const &)*arg2);
37012 wxPyEndAllowThreads(__tstate);
37013 if (PyErr_Occurred()) SWIG_fail;
37014 }
37015 resultobj = SWIG_Py_Void();
37016 return resultobj;
37017fail:
37018 return NULL;
37019}
37020
37021
37022SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37023 PyObject *resultobj = 0;
37024 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37025 wxPoint *arg2 = 0 ;
37026 wxSize *arg3 = 0 ;
37027 void *argp1 = 0 ;
37028 int res1 = 0 ;
37029 wxPoint temp2 ;
37030 wxSize temp3 ;
37031 PyObject * obj0 = 0 ;
37032 PyObject * obj1 = 0 ;
37033 PyObject * obj2 = 0 ;
37034 char * kwnames[] = {
37035 (char *) "self",(char *) "pt",(char *) "sz", NULL
37036 };
37037
37038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37040 if (!SWIG_IsOK(res1)) {
37041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37042 }
37043 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37044 {
37045 arg2 = &temp2;
37046 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37047 }
37048 {
37049 arg3 = &temp3;
37050 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37051 }
37052 {
37053 PyThreadState* __tstate = wxPyBeginAllowThreads();
37054 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
37055 wxPyEndAllowThreads(__tstate);
37056 if (PyErr_Occurred()) SWIG_fail;
37057 }
37058 resultobj = SWIG_Py_Void();
37059 return resultobj;
37060fail:
37061 return NULL;
37062}
37063
37064
37065SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37066 PyObject *resultobj = 0;
37067 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37068 int arg2 ;
37069 int arg3 ;
37070 int arg4 ;
37071 int arg5 ;
37072 double arg6 ;
37073 void *argp1 = 0 ;
37074 int res1 = 0 ;
37075 int val2 ;
37076 int ecode2 = 0 ;
37077 int val3 ;
37078 int ecode3 = 0 ;
37079 int val4 ;
37080 int ecode4 = 0 ;
37081 int val5 ;
37082 int ecode5 = 0 ;
37083 double val6 ;
37084 int ecode6 = 0 ;
37085 PyObject * obj0 = 0 ;
37086 PyObject * obj1 = 0 ;
37087 PyObject * obj2 = 0 ;
37088 PyObject * obj3 = 0 ;
37089 PyObject * obj4 = 0 ;
37090 PyObject * obj5 = 0 ;
37091 char * kwnames[] = {
37092 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
37093 };
37094
37095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37097 if (!SWIG_IsOK(res1)) {
37098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37099 }
37100 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37101 ecode2 = SWIG_AsVal_int(obj1, &val2);
37102 if (!SWIG_IsOK(ecode2)) {
37103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
37104 }
37105 arg2 = static_cast< int >(val2);
37106 ecode3 = SWIG_AsVal_int(obj2, &val3);
37107 if (!SWIG_IsOK(ecode3)) {
37108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
37109 }
37110 arg3 = static_cast< int >(val3);
37111 ecode4 = SWIG_AsVal_int(obj3, &val4);
37112 if (!SWIG_IsOK(ecode4)) {
37113 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
37114 }
37115 arg4 = static_cast< int >(val4);
37116 ecode5 = SWIG_AsVal_int(obj4, &val5);
37117 if (!SWIG_IsOK(ecode5)) {
37118 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
37119 }
37120 arg5 = static_cast< int >(val5);
37121 ecode6 = SWIG_AsVal_double(obj5, &val6);
37122 if (!SWIG_IsOK(ecode6)) {
37123 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
37124 }
37125 arg6 = static_cast< double >(val6);
37126 {
37127 PyThreadState* __tstate = wxPyBeginAllowThreads();
37128 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
37129 wxPyEndAllowThreads(__tstate);
37130 if (PyErr_Occurred()) SWIG_fail;
37131 }
37132 resultobj = SWIG_Py_Void();
37133 return resultobj;
37134fail:
37135 return NULL;
37136}
37137
37138
37139SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37140 PyObject *resultobj = 0;
37141 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37142 wxRect *arg2 = 0 ;
37143 double arg3 ;
37144 void *argp1 = 0 ;
37145 int res1 = 0 ;
37146 wxRect temp2 ;
37147 double val3 ;
37148 int ecode3 = 0 ;
37149 PyObject * obj0 = 0 ;
37150 PyObject * obj1 = 0 ;
37151 PyObject * obj2 = 0 ;
37152 char * kwnames[] = {
37153 (char *) "self",(char *) "r",(char *) "radius", NULL
37154 };
37155
37156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37158 if (!SWIG_IsOK(res1)) {
37159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37160 }
37161 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37162 {
37163 arg2 = &temp2;
37164 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37165 }
37166 ecode3 = SWIG_AsVal_double(obj2, &val3);
37167 if (!SWIG_IsOK(ecode3)) {
37168 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
37169 }
37170 arg3 = static_cast< double >(val3);
37171 {
37172 PyThreadState* __tstate = wxPyBeginAllowThreads();
37173 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
37174 wxPyEndAllowThreads(__tstate);
37175 if (PyErr_Occurred()) SWIG_fail;
37176 }
37177 resultobj = SWIG_Py_Void();
37178 return resultobj;
37179fail:
37180 return NULL;
37181}
37182
37183
37184SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37185 PyObject *resultobj = 0;
37186 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37187 wxPoint *arg2 = 0 ;
37188 wxSize *arg3 = 0 ;
37189 double arg4 ;
37190 void *argp1 = 0 ;
37191 int res1 = 0 ;
37192 wxPoint temp2 ;
37193 wxSize temp3 ;
37194 double val4 ;
37195 int ecode4 = 0 ;
37196 PyObject * obj0 = 0 ;
37197 PyObject * obj1 = 0 ;
37198 PyObject * obj2 = 0 ;
37199 PyObject * obj3 = 0 ;
37200 char * kwnames[] = {
37201 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
37202 };
37203
37204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37206 if (!SWIG_IsOK(res1)) {
37207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37208 }
37209 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37210 {
37211 arg2 = &temp2;
37212 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37213 }
37214 {
37215 arg3 = &temp3;
37216 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37217 }
37218 ecode4 = SWIG_AsVal_double(obj3, &val4);
37219 if (!SWIG_IsOK(ecode4)) {
37220 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
37221 }
37222 arg4 = static_cast< double >(val4);
37223 {
37224 PyThreadState* __tstate = wxPyBeginAllowThreads();
37225 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
37226 wxPyEndAllowThreads(__tstate);
37227 if (PyErr_Occurred()) SWIG_fail;
37228 }
37229 resultobj = SWIG_Py_Void();
37230 return resultobj;
37231fail:
37232 return NULL;
37233}
37234
37235
37236SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37237 PyObject *resultobj = 0;
37238 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37239 int arg2 ;
37240 int arg3 ;
37241 int arg4 ;
37242 void *argp1 = 0 ;
37243 int res1 = 0 ;
37244 int val2 ;
37245 int ecode2 = 0 ;
37246 int val3 ;
37247 int ecode3 = 0 ;
37248 int val4 ;
37249 int ecode4 = 0 ;
37250 PyObject * obj0 = 0 ;
37251 PyObject * obj1 = 0 ;
37252 PyObject * obj2 = 0 ;
37253 PyObject * obj3 = 0 ;
37254 char * kwnames[] = {
37255 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
37256 };
37257
37258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37260 if (!SWIG_IsOK(res1)) {
37261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37262 }
37263 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37264 ecode2 = SWIG_AsVal_int(obj1, &val2);
37265 if (!SWIG_IsOK(ecode2)) {
37266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
37267 }
37268 arg2 = static_cast< int >(val2);
37269 ecode3 = SWIG_AsVal_int(obj2, &val3);
37270 if (!SWIG_IsOK(ecode3)) {
37271 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
37272 }
37273 arg3 = static_cast< int >(val3);
37274 ecode4 = SWIG_AsVal_int(obj3, &val4);
37275 if (!SWIG_IsOK(ecode4)) {
37276 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
37277 }
37278 arg4 = static_cast< int >(val4);
37279 {
37280 PyThreadState* __tstate = wxPyBeginAllowThreads();
37281 (arg1)->DrawCircle(arg2,arg3,arg4);
37282 wxPyEndAllowThreads(__tstate);
37283 if (PyErr_Occurred()) SWIG_fail;
37284 }
37285 resultobj = SWIG_Py_Void();
37286 return resultobj;
37287fail:
37288 return NULL;
37289}
37290
37291
37292SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37293 PyObject *resultobj = 0;
37294 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37295 wxPoint *arg2 = 0 ;
37296 int arg3 ;
37297 void *argp1 = 0 ;
37298 int res1 = 0 ;
37299 wxPoint temp2 ;
37300 int val3 ;
37301 int ecode3 = 0 ;
37302 PyObject * obj0 = 0 ;
37303 PyObject * obj1 = 0 ;
37304 PyObject * obj2 = 0 ;
37305 char * kwnames[] = {
37306 (char *) "self",(char *) "pt",(char *) "radius", NULL
37307 };
37308
37309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37311 if (!SWIG_IsOK(res1)) {
37312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37313 }
37314 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37315 {
37316 arg2 = &temp2;
37317 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37318 }
37319 ecode3 = SWIG_AsVal_int(obj2, &val3);
37320 if (!SWIG_IsOK(ecode3)) {
37321 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
37322 }
37323 arg3 = static_cast< int >(val3);
37324 {
37325 PyThreadState* __tstate = wxPyBeginAllowThreads();
37326 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
37327 wxPyEndAllowThreads(__tstate);
37328 if (PyErr_Occurred()) SWIG_fail;
37329 }
37330 resultobj = SWIG_Py_Void();
37331 return resultobj;
37332fail:
37333 return NULL;
37334}
37335
37336
37337SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37338 PyObject *resultobj = 0;
37339 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37340 int arg2 ;
37341 int arg3 ;
37342 int arg4 ;
37343 int arg5 ;
37344 void *argp1 = 0 ;
37345 int res1 = 0 ;
37346 int val2 ;
37347 int ecode2 = 0 ;
37348 int val3 ;
37349 int ecode3 = 0 ;
37350 int val4 ;
37351 int ecode4 = 0 ;
37352 int val5 ;
37353 int ecode5 = 0 ;
37354 PyObject * obj0 = 0 ;
37355 PyObject * obj1 = 0 ;
37356 PyObject * obj2 = 0 ;
37357 PyObject * obj3 = 0 ;
37358 PyObject * obj4 = 0 ;
37359 char * kwnames[] = {
37360 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37361 };
37362
37363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37365 if (!SWIG_IsOK(res1)) {
37366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37367 }
37368 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37369 ecode2 = SWIG_AsVal_int(obj1, &val2);
37370 if (!SWIG_IsOK(ecode2)) {
37371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
37372 }
37373 arg2 = static_cast< int >(val2);
37374 ecode3 = SWIG_AsVal_int(obj2, &val3);
37375 if (!SWIG_IsOK(ecode3)) {
37376 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
37377 }
37378 arg3 = static_cast< int >(val3);
37379 ecode4 = SWIG_AsVal_int(obj3, &val4);
37380 if (!SWIG_IsOK(ecode4)) {
37381 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
37382 }
37383 arg4 = static_cast< int >(val4);
37384 ecode5 = SWIG_AsVal_int(obj4, &val5);
37385 if (!SWIG_IsOK(ecode5)) {
37386 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
37387 }
37388 arg5 = static_cast< int >(val5);
37389 {
37390 PyThreadState* __tstate = wxPyBeginAllowThreads();
37391 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
37392 wxPyEndAllowThreads(__tstate);
37393 if (PyErr_Occurred()) SWIG_fail;
37394 }
37395 resultobj = SWIG_Py_Void();
37396 return resultobj;
37397fail:
37398 return NULL;
37399}
37400
37401
37402SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37403 PyObject *resultobj = 0;
37404 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37405 wxRect *arg2 = 0 ;
37406 void *argp1 = 0 ;
37407 int res1 = 0 ;
37408 wxRect temp2 ;
37409 PyObject * obj0 = 0 ;
37410 PyObject * obj1 = 0 ;
37411 char * kwnames[] = {
37412 (char *) "self",(char *) "rect", NULL
37413 };
37414
37415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37417 if (!SWIG_IsOK(res1)) {
37418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37419 }
37420 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37421 {
37422 arg2 = &temp2;
37423 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37424 }
37425 {
37426 PyThreadState* __tstate = wxPyBeginAllowThreads();
37427 (arg1)->DrawEllipse((wxRect const &)*arg2);
37428 wxPyEndAllowThreads(__tstate);
37429 if (PyErr_Occurred()) SWIG_fail;
37430 }
37431 resultobj = SWIG_Py_Void();
37432 return resultobj;
37433fail:
37434 return NULL;
37435}
37436
37437
37438SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37439 PyObject *resultobj = 0;
37440 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37441 wxPoint *arg2 = 0 ;
37442 wxSize *arg3 = 0 ;
37443 void *argp1 = 0 ;
37444 int res1 = 0 ;
37445 wxPoint temp2 ;
37446 wxSize temp3 ;
37447 PyObject * obj0 = 0 ;
37448 PyObject * obj1 = 0 ;
37449 PyObject * obj2 = 0 ;
37450 char * kwnames[] = {
37451 (char *) "self",(char *) "pt",(char *) "sz", NULL
37452 };
37453
37454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37456 if (!SWIG_IsOK(res1)) {
37457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37458 }
37459 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37460 {
37461 arg2 = &temp2;
37462 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37463 }
37464 {
37465 arg3 = &temp3;
37466 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37467 }
37468 {
37469 PyThreadState* __tstate = wxPyBeginAllowThreads();
37470 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37471 wxPyEndAllowThreads(__tstate);
37472 if (PyErr_Occurred()) SWIG_fail;
37473 }
37474 resultobj = SWIG_Py_Void();
37475 return resultobj;
37476fail:
37477 return NULL;
37478}
37479
37480
37481SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37482 PyObject *resultobj = 0;
37483 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37484 wxIcon *arg2 = 0 ;
37485 int arg3 ;
37486 int arg4 ;
37487 void *argp1 = 0 ;
37488 int res1 = 0 ;
37489 void *argp2 = 0 ;
37490 int res2 = 0 ;
37491 int val3 ;
37492 int ecode3 = 0 ;
37493 int val4 ;
37494 int ecode4 = 0 ;
37495 PyObject * obj0 = 0 ;
37496 PyObject * obj1 = 0 ;
37497 PyObject * obj2 = 0 ;
37498 PyObject * obj3 = 0 ;
37499 char * kwnames[] = {
37500 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37501 };
37502
37503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37505 if (!SWIG_IsOK(res1)) {
37506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37507 }
37508 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37509 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37510 if (!SWIG_IsOK(res2)) {
37511 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37512 }
37513 if (!argp2) {
37514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37515 }
37516 arg2 = reinterpret_cast< wxIcon * >(argp2);
37517 ecode3 = SWIG_AsVal_int(obj2, &val3);
37518 if (!SWIG_IsOK(ecode3)) {
37519 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37520 }
37521 arg3 = static_cast< int >(val3);
37522 ecode4 = SWIG_AsVal_int(obj3, &val4);
37523 if (!SWIG_IsOK(ecode4)) {
37524 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37525 }
37526 arg4 = static_cast< int >(val4);
37527 {
37528 PyThreadState* __tstate = wxPyBeginAllowThreads();
37529 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37530 wxPyEndAllowThreads(__tstate);
37531 if (PyErr_Occurred()) SWIG_fail;
37532 }
37533 resultobj = SWIG_Py_Void();
37534 return resultobj;
37535fail:
37536 return NULL;
37537}
37538
37539
37540SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37541 PyObject *resultobj = 0;
37542 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37543 wxIcon *arg2 = 0 ;
37544 wxPoint *arg3 = 0 ;
37545 void *argp1 = 0 ;
37546 int res1 = 0 ;
37547 void *argp2 = 0 ;
37548 int res2 = 0 ;
37549 wxPoint temp3 ;
37550 PyObject * obj0 = 0 ;
37551 PyObject * obj1 = 0 ;
37552 PyObject * obj2 = 0 ;
37553 char * kwnames[] = {
37554 (char *) "self",(char *) "icon",(char *) "pt", NULL
37555 };
37556
37557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37559 if (!SWIG_IsOK(res1)) {
37560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37561 }
37562 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37563 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37564 if (!SWIG_IsOK(res2)) {
37565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37566 }
37567 if (!argp2) {
37568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37569 }
37570 arg2 = reinterpret_cast< wxIcon * >(argp2);
37571 {
37572 arg3 = &temp3;
37573 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37574 }
37575 {
37576 PyThreadState* __tstate = wxPyBeginAllowThreads();
37577 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37578 wxPyEndAllowThreads(__tstate);
37579 if (PyErr_Occurred()) SWIG_fail;
37580 }
37581 resultobj = SWIG_Py_Void();
37582 return resultobj;
37583fail:
37584 return NULL;
37585}
37586
37587
37588SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37589 PyObject *resultobj = 0;
37590 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37591 wxBitmap *arg2 = 0 ;
37592 int arg3 ;
37593 int arg4 ;
37594 bool arg5 = (bool) false ;
37595 void *argp1 = 0 ;
37596 int res1 = 0 ;
37597 void *argp2 = 0 ;
37598 int res2 = 0 ;
37599 int val3 ;
37600 int ecode3 = 0 ;
37601 int val4 ;
37602 int ecode4 = 0 ;
37603 bool val5 ;
37604 int ecode5 = 0 ;
37605 PyObject * obj0 = 0 ;
37606 PyObject * obj1 = 0 ;
37607 PyObject * obj2 = 0 ;
37608 PyObject * obj3 = 0 ;
37609 PyObject * obj4 = 0 ;
37610 char * kwnames[] = {
37611 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37612 };
37613
37614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37616 if (!SWIG_IsOK(res1)) {
37617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37618 }
37619 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37620 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37621 if (!SWIG_IsOK(res2)) {
37622 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37623 }
37624 if (!argp2) {
37625 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37626 }
37627 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37628 ecode3 = SWIG_AsVal_int(obj2, &val3);
37629 if (!SWIG_IsOK(ecode3)) {
37630 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37631 }
37632 arg3 = static_cast< int >(val3);
37633 ecode4 = SWIG_AsVal_int(obj3, &val4);
37634 if (!SWIG_IsOK(ecode4)) {
37635 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37636 }
37637 arg4 = static_cast< int >(val4);
37638 if (obj4) {
37639 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37640 if (!SWIG_IsOK(ecode5)) {
37641 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37642 }
37643 arg5 = static_cast< bool >(val5);
37644 }
37645 {
37646 PyThreadState* __tstate = wxPyBeginAllowThreads();
37647 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37648 wxPyEndAllowThreads(__tstate);
37649 if (PyErr_Occurred()) SWIG_fail;
37650 }
37651 resultobj = SWIG_Py_Void();
37652 return resultobj;
37653fail:
37654 return NULL;
37655}
37656
37657
37658SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37659 PyObject *resultobj = 0;
37660 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37661 wxBitmap *arg2 = 0 ;
37662 wxPoint *arg3 = 0 ;
37663 bool arg4 = (bool) false ;
37664 void *argp1 = 0 ;
37665 int res1 = 0 ;
37666 void *argp2 = 0 ;
37667 int res2 = 0 ;
37668 wxPoint temp3 ;
37669 bool val4 ;
37670 int ecode4 = 0 ;
37671 PyObject * obj0 = 0 ;
37672 PyObject * obj1 = 0 ;
37673 PyObject * obj2 = 0 ;
37674 PyObject * obj3 = 0 ;
37675 char * kwnames[] = {
37676 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37677 };
37678
37679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37681 if (!SWIG_IsOK(res1)) {
37682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37683 }
37684 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37685 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37686 if (!SWIG_IsOK(res2)) {
37687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37688 }
37689 if (!argp2) {
37690 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37691 }
37692 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37693 {
37694 arg3 = &temp3;
37695 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37696 }
37697 if (obj3) {
37698 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37699 if (!SWIG_IsOK(ecode4)) {
37700 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37701 }
37702 arg4 = static_cast< bool >(val4);
37703 }
37704 {
37705 PyThreadState* __tstate = wxPyBeginAllowThreads();
37706 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37707 wxPyEndAllowThreads(__tstate);
37708 if (PyErr_Occurred()) SWIG_fail;
37709 }
37710 resultobj = SWIG_Py_Void();
37711 return resultobj;
37712fail:
37713 return NULL;
37714}
37715
37716
37717SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37718 PyObject *resultobj = 0;
37719 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37720 wxString *arg2 = 0 ;
37721 int arg3 ;
37722 int arg4 ;
37723 void *argp1 = 0 ;
37724 int res1 = 0 ;
37725 bool temp2 = false ;
37726 int val3 ;
37727 int ecode3 = 0 ;
37728 int val4 ;
37729 int ecode4 = 0 ;
37730 PyObject * obj0 = 0 ;
37731 PyObject * obj1 = 0 ;
37732 PyObject * obj2 = 0 ;
37733 PyObject * obj3 = 0 ;
37734 char * kwnames[] = {
37735 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37736 };
37737
37738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37740 if (!SWIG_IsOK(res1)) {
37741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37742 }
37743 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37744 {
37745 arg2 = wxString_in_helper(obj1);
37746 if (arg2 == NULL) SWIG_fail;
37747 temp2 = true;
37748 }
37749 ecode3 = SWIG_AsVal_int(obj2, &val3);
37750 if (!SWIG_IsOK(ecode3)) {
37751 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37752 }
37753 arg3 = static_cast< int >(val3);
37754 ecode4 = SWIG_AsVal_int(obj3, &val4);
37755 if (!SWIG_IsOK(ecode4)) {
37756 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37757 }
37758 arg4 = static_cast< int >(val4);
37759 {
37760 PyThreadState* __tstate = wxPyBeginAllowThreads();
37761 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37762 wxPyEndAllowThreads(__tstate);
37763 if (PyErr_Occurred()) SWIG_fail;
37764 }
37765 resultobj = SWIG_Py_Void();
37766 {
37767 if (temp2)
37768 delete arg2;
37769 }
37770 return resultobj;
37771fail:
37772 {
37773 if (temp2)
37774 delete arg2;
37775 }
37776 return NULL;
37777}
37778
37779
37780SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37781 PyObject *resultobj = 0;
37782 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37783 wxString *arg2 = 0 ;
37784 wxPoint *arg3 = 0 ;
37785 void *argp1 = 0 ;
37786 int res1 = 0 ;
37787 bool temp2 = false ;
37788 wxPoint temp3 ;
37789 PyObject * obj0 = 0 ;
37790 PyObject * obj1 = 0 ;
37791 PyObject * obj2 = 0 ;
37792 char * kwnames[] = {
37793 (char *) "self",(char *) "text",(char *) "pt", NULL
37794 };
37795
37796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37798 if (!SWIG_IsOK(res1)) {
37799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37800 }
37801 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37802 {
37803 arg2 = wxString_in_helper(obj1);
37804 if (arg2 == NULL) SWIG_fail;
37805 temp2 = true;
37806 }
37807 {
37808 arg3 = &temp3;
37809 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37810 }
37811 {
37812 PyThreadState* __tstate = wxPyBeginAllowThreads();
37813 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37814 wxPyEndAllowThreads(__tstate);
37815 if (PyErr_Occurred()) SWIG_fail;
37816 }
37817 resultobj = SWIG_Py_Void();
37818 {
37819 if (temp2)
37820 delete arg2;
37821 }
37822 return resultobj;
37823fail:
37824 {
37825 if (temp2)
37826 delete arg2;
37827 }
37828 return NULL;
37829}
37830
37831
37832SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37833 PyObject *resultobj = 0;
37834 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37835 wxString *arg2 = 0 ;
37836 int arg3 ;
37837 int arg4 ;
37838 double arg5 ;
37839 void *argp1 = 0 ;
37840 int res1 = 0 ;
37841 bool temp2 = false ;
37842 int val3 ;
37843 int ecode3 = 0 ;
37844 int val4 ;
37845 int ecode4 = 0 ;
37846 double val5 ;
37847 int ecode5 = 0 ;
37848 PyObject * obj0 = 0 ;
37849 PyObject * obj1 = 0 ;
37850 PyObject * obj2 = 0 ;
37851 PyObject * obj3 = 0 ;
37852 PyObject * obj4 = 0 ;
37853 char * kwnames[] = {
37854 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37855 };
37856
37857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37859 if (!SWIG_IsOK(res1)) {
37860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37861 }
37862 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37863 {
37864 arg2 = wxString_in_helper(obj1);
37865 if (arg2 == NULL) SWIG_fail;
37866 temp2 = true;
37867 }
37868 ecode3 = SWIG_AsVal_int(obj2, &val3);
37869 if (!SWIG_IsOK(ecode3)) {
37870 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37871 }
37872 arg3 = static_cast< int >(val3);
37873 ecode4 = SWIG_AsVal_int(obj3, &val4);
37874 if (!SWIG_IsOK(ecode4)) {
37875 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37876 }
37877 arg4 = static_cast< int >(val4);
37878 ecode5 = SWIG_AsVal_double(obj4, &val5);
37879 if (!SWIG_IsOK(ecode5)) {
37880 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37881 }
37882 arg5 = static_cast< double >(val5);
37883 {
37884 PyThreadState* __tstate = wxPyBeginAllowThreads();
37885 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37886 wxPyEndAllowThreads(__tstate);
37887 if (PyErr_Occurred()) SWIG_fail;
37888 }
37889 resultobj = SWIG_Py_Void();
37890 {
37891 if (temp2)
37892 delete arg2;
37893 }
37894 return resultobj;
37895fail:
37896 {
37897 if (temp2)
37898 delete arg2;
37899 }
37900 return NULL;
37901}
37902
37903
37904SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37905 PyObject *resultobj = 0;
37906 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37907 wxString *arg2 = 0 ;
37908 wxPoint *arg3 = 0 ;
37909 double arg4 ;
37910 void *argp1 = 0 ;
37911 int res1 = 0 ;
37912 bool temp2 = false ;
37913 wxPoint temp3 ;
37914 double val4 ;
37915 int ecode4 = 0 ;
37916 PyObject * obj0 = 0 ;
37917 PyObject * obj1 = 0 ;
37918 PyObject * obj2 = 0 ;
37919 PyObject * obj3 = 0 ;
37920 char * kwnames[] = {
37921 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37922 };
37923
37924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37926 if (!SWIG_IsOK(res1)) {
37927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37928 }
37929 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37930 {
37931 arg2 = wxString_in_helper(obj1);
37932 if (arg2 == NULL) SWIG_fail;
37933 temp2 = true;
37934 }
37935 {
37936 arg3 = &temp3;
37937 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37938 }
37939 ecode4 = SWIG_AsVal_double(obj3, &val4);
37940 if (!SWIG_IsOK(ecode4)) {
37941 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37942 }
37943 arg4 = static_cast< double >(val4);
37944 {
37945 PyThreadState* __tstate = wxPyBeginAllowThreads();
37946 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37947 wxPyEndAllowThreads(__tstate);
37948 if (PyErr_Occurred()) SWIG_fail;
37949 }
37950 resultobj = SWIG_Py_Void();
37951 {
37952 if (temp2)
37953 delete arg2;
37954 }
37955 return resultobj;
37956fail:
37957 {
37958 if (temp2)
37959 delete arg2;
37960 }
37961 return NULL;
37962}
37963
37964
37965SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37966 PyObject *resultobj = 0;
37967 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37968 int arg2 ;
37969 wxPoint *arg3 = (wxPoint *) 0 ;
37970 int arg4 = (int) 0 ;
37971 int arg5 = (int) 0 ;
37972 void *argp1 = 0 ;
37973 int res1 = 0 ;
37974 int val4 ;
37975 int ecode4 = 0 ;
37976 int val5 ;
37977 int ecode5 = 0 ;
37978 PyObject * obj0 = 0 ;
37979 PyObject * obj1 = 0 ;
37980 PyObject * obj2 = 0 ;
37981 PyObject * obj3 = 0 ;
37982 char * kwnames[] = {
37983 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37984 };
37985
37986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37988 if (!SWIG_IsOK(res1)) {
37989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37990 }
37991 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37992 {
37993 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37994 if (arg3 == NULL) SWIG_fail;
37995 }
37996 if (obj2) {
37997 ecode4 = SWIG_AsVal_int(obj2, &val4);
37998 if (!SWIG_IsOK(ecode4)) {
37999 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
38000 }
38001 arg4 = static_cast< int >(val4);
38002 }
38003 if (obj3) {
38004 ecode5 = SWIG_AsVal_int(obj3, &val5);
38005 if (!SWIG_IsOK(ecode5)) {
38006 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
38007 }
38008 arg5 = static_cast< int >(val5);
38009 }
38010 {
38011 PyThreadState* __tstate = wxPyBeginAllowThreads();
38012 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
38013 wxPyEndAllowThreads(__tstate);
38014 if (PyErr_Occurred()) SWIG_fail;
38015 }
38016 resultobj = SWIG_Py_Void();
38017 {
38018 if (arg3) delete [] arg3;
38019 }
38020 return resultobj;
38021fail:
38022 {
38023 if (arg3) delete [] arg3;
38024 }
38025 return NULL;
38026}
38027
38028
38029SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38030 PyObject *resultobj = 0;
38031 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38032 int arg2 ;
38033 wxPoint *arg3 = (wxPoint *) 0 ;
38034 int arg4 = (int) 0 ;
38035 int arg5 = (int) 0 ;
38036 int arg6 = (int) wxODDEVEN_RULE ;
38037 void *argp1 = 0 ;
38038 int res1 = 0 ;
38039 int val4 ;
38040 int ecode4 = 0 ;
38041 int val5 ;
38042 int ecode5 = 0 ;
38043 int val6 ;
38044 int ecode6 = 0 ;
38045 PyObject * obj0 = 0 ;
38046 PyObject * obj1 = 0 ;
38047 PyObject * obj2 = 0 ;
38048 PyObject * obj3 = 0 ;
38049 PyObject * obj4 = 0 ;
38050 char * kwnames[] = {
38051 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
38052 };
38053
38054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38056 if (!SWIG_IsOK(res1)) {
38057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38058 }
38059 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38060 {
38061 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38062 if (arg3 == NULL) SWIG_fail;
38063 }
38064 if (obj2) {
38065 ecode4 = SWIG_AsVal_int(obj2, &val4);
38066 if (!SWIG_IsOK(ecode4)) {
38067 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
38068 }
38069 arg4 = static_cast< int >(val4);
38070 }
38071 if (obj3) {
38072 ecode5 = SWIG_AsVal_int(obj3, &val5);
38073 if (!SWIG_IsOK(ecode5)) {
38074 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
38075 }
38076 arg5 = static_cast< int >(val5);
38077 }
38078 if (obj4) {
38079 ecode6 = SWIG_AsVal_int(obj4, &val6);
38080 if (!SWIG_IsOK(ecode6)) {
38081 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
38082 }
38083 arg6 = static_cast< int >(val6);
38084 }
38085 {
38086 PyThreadState* __tstate = wxPyBeginAllowThreads();
38087 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
38088 wxPyEndAllowThreads(__tstate);
38089 if (PyErr_Occurred()) SWIG_fail;
38090 }
38091 resultobj = SWIG_Py_Void();
38092 {
38093 if (arg3) delete [] arg3;
38094 }
38095 return resultobj;
38096fail:
38097 {
38098 if (arg3) delete [] arg3;
38099 }
38100 return NULL;
38101}
38102
38103
38104SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38105 PyObject *resultobj = 0;
38106 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38107 wxString *arg2 = 0 ;
38108 wxRect *arg3 = 0 ;
38109 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38110 int arg5 = (int) -1 ;
38111 void *argp1 = 0 ;
38112 int res1 = 0 ;
38113 bool temp2 = false ;
38114 wxRect temp3 ;
38115 int val4 ;
38116 int ecode4 = 0 ;
38117 int val5 ;
38118 int ecode5 = 0 ;
38119 PyObject * obj0 = 0 ;
38120 PyObject * obj1 = 0 ;
38121 PyObject * obj2 = 0 ;
38122 PyObject * obj3 = 0 ;
38123 PyObject * obj4 = 0 ;
38124 char * kwnames[] = {
38125 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38126 };
38127
38128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38130 if (!SWIG_IsOK(res1)) {
38131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38132 }
38133 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38134 {
38135 arg2 = wxString_in_helper(obj1);
38136 if (arg2 == NULL) SWIG_fail;
38137 temp2 = true;
38138 }
38139 {
38140 arg3 = &temp3;
38141 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
38142 }
38143 if (obj3) {
38144 ecode4 = SWIG_AsVal_int(obj3, &val4);
38145 if (!SWIG_IsOK(ecode4)) {
38146 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
38147 }
38148 arg4 = static_cast< int >(val4);
38149 }
38150 if (obj4) {
38151 ecode5 = SWIG_AsVal_int(obj4, &val5);
38152 if (!SWIG_IsOK(ecode5)) {
38153 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
38154 }
38155 arg5 = static_cast< int >(val5);
38156 }
38157 {
38158 PyThreadState* __tstate = wxPyBeginAllowThreads();
38159 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
38160 wxPyEndAllowThreads(__tstate);
38161 if (PyErr_Occurred()) SWIG_fail;
38162 }
38163 resultobj = SWIG_Py_Void();
38164 {
38165 if (temp2)
38166 delete arg2;
38167 }
38168 return resultobj;
38169fail:
38170 {
38171 if (temp2)
38172 delete arg2;
38173 }
38174 return NULL;
38175}
38176
38177
38178SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38179 PyObject *resultobj = 0;
38180 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38181 wxString *arg2 = 0 ;
38182 wxBitmap *arg3 = 0 ;
38183 wxRect *arg4 = 0 ;
38184 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38185 int arg6 = (int) -1 ;
38186 void *argp1 = 0 ;
38187 int res1 = 0 ;
38188 bool temp2 = false ;
38189 void *argp3 = 0 ;
38190 int res3 = 0 ;
38191 wxRect temp4 ;
38192 int val5 ;
38193 int ecode5 = 0 ;
38194 int val6 ;
38195 int ecode6 = 0 ;
38196 PyObject * obj0 = 0 ;
38197 PyObject * obj1 = 0 ;
38198 PyObject * obj2 = 0 ;
38199 PyObject * obj3 = 0 ;
38200 PyObject * obj4 = 0 ;
38201 PyObject * obj5 = 0 ;
38202 char * kwnames[] = {
38203 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38204 };
38205
38206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38208 if (!SWIG_IsOK(res1)) {
38209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38210 }
38211 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38212 {
38213 arg2 = wxString_in_helper(obj1);
38214 if (arg2 == NULL) SWIG_fail;
38215 temp2 = true;
38216 }
38217 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
38218 if (!SWIG_IsOK(res3)) {
38219 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38220 }
38221 if (!argp3) {
38222 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38223 }
38224 arg3 = reinterpret_cast< wxBitmap * >(argp3);
38225 {
38226 arg4 = &temp4;
38227 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
38228 }
38229 if (obj4) {
38230 ecode5 = SWIG_AsVal_int(obj4, &val5);
38231 if (!SWIG_IsOK(ecode5)) {
38232 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
38233 }
38234 arg5 = static_cast< int >(val5);
38235 }
38236 if (obj5) {
38237 ecode6 = SWIG_AsVal_int(obj5, &val6);
38238 if (!SWIG_IsOK(ecode6)) {
38239 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
38240 }
38241 arg6 = static_cast< int >(val6);
38242 }
38243 {
38244 PyThreadState* __tstate = wxPyBeginAllowThreads();
38245 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
38246 wxPyEndAllowThreads(__tstate);
38247 if (PyErr_Occurred()) SWIG_fail;
38248 }
38249 resultobj = SWIG_Py_Void();
38250 {
38251 if (temp2)
38252 delete arg2;
38253 }
38254 return resultobj;
38255fail:
38256 {
38257 if (temp2)
38258 delete arg2;
38259 }
38260 return NULL;
38261}
38262
38263
38264SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38265 PyObject *resultobj = 0;
38266 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38267 int arg2 ;
38268 wxPoint *arg3 = (wxPoint *) 0 ;
38269 void *argp1 = 0 ;
38270 int res1 = 0 ;
38271 PyObject * obj0 = 0 ;
38272 PyObject * obj1 = 0 ;
38273 char * kwnames[] = {
38274 (char *) "self",(char *) "points", NULL
38275 };
38276
38277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
38278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38279 if (!SWIG_IsOK(res1)) {
38280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38281 }
38282 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38283 {
38284 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38285 if (arg3 == NULL) SWIG_fail;
38286 }
38287 {
38288 PyThreadState* __tstate = wxPyBeginAllowThreads();
38289 (arg1)->DrawSpline(arg2,arg3);
38290 wxPyEndAllowThreads(__tstate);
38291 if (PyErr_Occurred()) SWIG_fail;
38292 }
38293 resultobj = SWIG_Py_Void();
38294 {
38295 if (arg3) delete [] arg3;
38296 }
38297 return resultobj;
38298fail:
38299 {
38300 if (arg3) delete [] arg3;
38301 }
38302 return NULL;
38303}
38304
38305
38306SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38307 PyObject *resultobj = 0;
38308 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38309 void *argp1 = 0 ;
38310 int res1 = 0 ;
38311 PyObject *swig_obj[1] ;
38312
38313 if (!args) SWIG_fail;
38314 swig_obj[0] = args;
38315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38316 if (!SWIG_IsOK(res1)) {
38317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38318 }
38319 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38320 {
38321 PyThreadState* __tstate = wxPyBeginAllowThreads();
38322 (arg1)->Clear();
38323 wxPyEndAllowThreads(__tstate);
38324 if (PyErr_Occurred()) SWIG_fail;
38325 }
38326 resultobj = SWIG_Py_Void();
38327 return resultobj;
38328fail:
38329 return NULL;
38330}
38331
38332
38333SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38334 PyObject *resultobj = 0;
38335 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38336 wxFont *arg2 = 0 ;
38337 void *argp1 = 0 ;
38338 int res1 = 0 ;
38339 void *argp2 = 0 ;
38340 int res2 = 0 ;
38341 PyObject * obj0 = 0 ;
38342 PyObject * obj1 = 0 ;
38343 char * kwnames[] = {
38344 (char *) "self",(char *) "font", NULL
38345 };
38346
38347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38349 if (!SWIG_IsOK(res1)) {
38350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38351 }
38352 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38353 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38354 if (!SWIG_IsOK(res2)) {
38355 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38356 }
38357 if (!argp2) {
38358 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38359 }
38360 arg2 = reinterpret_cast< wxFont * >(argp2);
38361 {
38362 PyThreadState* __tstate = wxPyBeginAllowThreads();
38363 (arg1)->SetFont((wxFont const &)*arg2);
38364 wxPyEndAllowThreads(__tstate);
38365 if (PyErr_Occurred()) SWIG_fail;
38366 }
38367 resultobj = SWIG_Py_Void();
38368 return resultobj;
38369fail:
38370 return NULL;
38371}
38372
38373
38374SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38375 PyObject *resultobj = 0;
38376 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38377 wxPen *arg2 = 0 ;
38378 void *argp1 = 0 ;
38379 int res1 = 0 ;
38380 void *argp2 = 0 ;
38381 int res2 = 0 ;
38382 PyObject * obj0 = 0 ;
38383 PyObject * obj1 = 0 ;
38384 char * kwnames[] = {
38385 (char *) "self",(char *) "pen", NULL
38386 };
38387
38388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
38389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38390 if (!SWIG_IsOK(res1)) {
38391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38392 }
38393 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38394 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
38395 if (!SWIG_IsOK(res2)) {
38396 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38397 }
38398 if (!argp2) {
38399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38400 }
38401 arg2 = reinterpret_cast< wxPen * >(argp2);
38402 {
38403 PyThreadState* __tstate = wxPyBeginAllowThreads();
38404 (arg1)->SetPen((wxPen const &)*arg2);
38405 wxPyEndAllowThreads(__tstate);
38406 if (PyErr_Occurred()) SWIG_fail;
38407 }
38408 resultobj = SWIG_Py_Void();
38409 return resultobj;
38410fail:
38411 return NULL;
38412}
38413
38414
38415SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38416 PyObject *resultobj = 0;
38417 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38418 wxBrush *arg2 = 0 ;
38419 void *argp1 = 0 ;
38420 int res1 = 0 ;
38421 void *argp2 = 0 ;
38422 int res2 = 0 ;
38423 PyObject * obj0 = 0 ;
38424 PyObject * obj1 = 0 ;
38425 char * kwnames[] = {
38426 (char *) "self",(char *) "brush", NULL
38427 };
38428
38429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38431 if (!SWIG_IsOK(res1)) {
38432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38433 }
38434 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38435 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38436 if (!SWIG_IsOK(res2)) {
38437 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38438 }
38439 if (!argp2) {
38440 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38441 }
38442 arg2 = reinterpret_cast< wxBrush * >(argp2);
38443 {
38444 PyThreadState* __tstate = wxPyBeginAllowThreads();
38445 (arg1)->SetBrush((wxBrush const &)*arg2);
38446 wxPyEndAllowThreads(__tstate);
38447 if (PyErr_Occurred()) SWIG_fail;
38448 }
38449 resultobj = SWIG_Py_Void();
38450 return resultobj;
38451fail:
38452 return NULL;
38453}
38454
38455
38456SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38457 PyObject *resultobj = 0;
38458 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38459 wxBrush *arg2 = 0 ;
38460 void *argp1 = 0 ;
38461 int res1 = 0 ;
38462 void *argp2 = 0 ;
38463 int res2 = 0 ;
38464 PyObject * obj0 = 0 ;
38465 PyObject * obj1 = 0 ;
38466 char * kwnames[] = {
38467 (char *) "self",(char *) "brush", NULL
38468 };
38469
38470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38472 if (!SWIG_IsOK(res1)) {
38473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38474 }
38475 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38476 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38477 if (!SWIG_IsOK(res2)) {
38478 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38479 }
38480 if (!argp2) {
38481 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38482 }
38483 arg2 = reinterpret_cast< wxBrush * >(argp2);
38484 {
38485 PyThreadState* __tstate = wxPyBeginAllowThreads();
38486 (arg1)->SetBackground((wxBrush const &)*arg2);
38487 wxPyEndAllowThreads(__tstate);
38488 if (PyErr_Occurred()) SWIG_fail;
38489 }
38490 resultobj = SWIG_Py_Void();
38491 return resultobj;
38492fail:
38493 return NULL;
38494}
38495
38496
38497SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38498 PyObject *resultobj = 0;
38499 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38500 int arg2 ;
38501 void *argp1 = 0 ;
38502 int res1 = 0 ;
38503 int val2 ;
38504 int ecode2 = 0 ;
38505 PyObject * obj0 = 0 ;
38506 PyObject * obj1 = 0 ;
38507 char * kwnames[] = {
38508 (char *) "self",(char *) "mode", NULL
38509 };
38510
38511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38513 if (!SWIG_IsOK(res1)) {
38514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38515 }
38516 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38517 ecode2 = SWIG_AsVal_int(obj1, &val2);
38518 if (!SWIG_IsOK(ecode2)) {
38519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38520 }
38521 arg2 = static_cast< int >(val2);
38522 {
38523 PyThreadState* __tstate = wxPyBeginAllowThreads();
38524 (arg1)->SetBackgroundMode(arg2);
38525 wxPyEndAllowThreads(__tstate);
38526 if (PyErr_Occurred()) SWIG_fail;
38527 }
38528 resultobj = SWIG_Py_Void();
38529 return resultobj;
38530fail:
38531 return NULL;
38532}
38533
38534
38535SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38536 PyObject *resultobj = 0;
38537 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38538 wxPalette *arg2 = 0 ;
38539 void *argp1 = 0 ;
38540 int res1 = 0 ;
38541 void *argp2 = 0 ;
38542 int res2 = 0 ;
38543 PyObject * obj0 = 0 ;
38544 PyObject * obj1 = 0 ;
38545 char * kwnames[] = {
38546 (char *) "self",(char *) "palette", NULL
38547 };
38548
38549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38551 if (!SWIG_IsOK(res1)) {
38552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38553 }
38554 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38555 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38556 if (!SWIG_IsOK(res2)) {
38557 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38558 }
38559 if (!argp2) {
38560 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38561 }
38562 arg2 = reinterpret_cast< wxPalette * >(argp2);
38563 {
38564 PyThreadState* __tstate = wxPyBeginAllowThreads();
38565 (arg1)->SetPalette((wxPalette const &)*arg2);
38566 wxPyEndAllowThreads(__tstate);
38567 if (PyErr_Occurred()) SWIG_fail;
38568 }
38569 resultobj = SWIG_Py_Void();
38570 return resultobj;
38571fail:
38572 return NULL;
38573}
38574
38575
38576SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38577 PyObject *resultobj = 0;
38578 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38579 wxColour *arg2 = 0 ;
38580 void *argp1 = 0 ;
38581 int res1 = 0 ;
38582 wxColour temp2 ;
38583 PyObject * obj0 = 0 ;
38584 PyObject * obj1 = 0 ;
38585 char * kwnames[] = {
38586 (char *) "self",(char *) "colour", NULL
38587 };
38588
38589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38591 if (!SWIG_IsOK(res1)) {
38592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38593 }
38594 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38595 {
38596 arg2 = &temp2;
38597 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38598 }
38599 {
38600 PyThreadState* __tstate = wxPyBeginAllowThreads();
38601 (arg1)->SetTextForeground((wxColour const &)*arg2);
38602 wxPyEndAllowThreads(__tstate);
38603 if (PyErr_Occurred()) SWIG_fail;
38604 }
38605 resultobj = SWIG_Py_Void();
38606 return resultobj;
38607fail:
38608 return NULL;
38609}
38610
38611
38612SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38613 PyObject *resultobj = 0;
38614 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38615 wxColour *arg2 = 0 ;
38616 void *argp1 = 0 ;
38617 int res1 = 0 ;
38618 wxColour temp2 ;
38619 PyObject * obj0 = 0 ;
38620 PyObject * obj1 = 0 ;
38621 char * kwnames[] = {
38622 (char *) "self",(char *) "colour", NULL
38623 };
38624
38625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38627 if (!SWIG_IsOK(res1)) {
38628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38629 }
38630 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38631 {
38632 arg2 = &temp2;
38633 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38634 }
38635 {
38636 PyThreadState* __tstate = wxPyBeginAllowThreads();
38637 (arg1)->SetTextBackground((wxColour const &)*arg2);
38638 wxPyEndAllowThreads(__tstate);
38639 if (PyErr_Occurred()) SWIG_fail;
38640 }
38641 resultobj = SWIG_Py_Void();
38642 return resultobj;
38643fail:
38644 return NULL;
38645}
38646
38647
38648SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38649 PyObject *resultobj = 0;
38650 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38651 int arg2 ;
38652 void *argp1 = 0 ;
38653 int res1 = 0 ;
38654 int val2 ;
38655 int ecode2 = 0 ;
38656 PyObject * obj0 = 0 ;
38657 PyObject * obj1 = 0 ;
38658 char * kwnames[] = {
38659 (char *) "self",(char *) "function", NULL
38660 };
38661
38662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38664 if (!SWIG_IsOK(res1)) {
38665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38666 }
38667 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38668 ecode2 = SWIG_AsVal_int(obj1, &val2);
38669 if (!SWIG_IsOK(ecode2)) {
38670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38671 }
38672 arg2 = static_cast< int >(val2);
38673 {
38674 PyThreadState* __tstate = wxPyBeginAllowThreads();
38675 (arg1)->SetLogicalFunction(arg2);
38676 wxPyEndAllowThreads(__tstate);
38677 if (PyErr_Occurred()) SWIG_fail;
38678 }
38679 resultobj = SWIG_Py_Void();
38680 return resultobj;
38681fail:
38682 return NULL;
38683}
38684
38685
38686SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38687 PyObject *obj;
38688 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38689 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38690 return SWIG_Py_Void();
38691}
38692
38693SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38694 return SWIG_Python_InitShadowInstance(args);
38695}
38696
38697static PyMethodDef SwigMethods[] = {
38698 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38699 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38700 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38701 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38702 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38703 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38704 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38705 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38706 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38707 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38708 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38709 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 38710 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 38711 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
38712 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38713 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38714 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38715 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38716 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38717 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38718 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 38719 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38720 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38721 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38722 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38723 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38724 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38725 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38726 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38727 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 38728 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
38729 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38730 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38731 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38732 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38733 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38734 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38735 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38736 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38737 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 38738 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
38739 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38740 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38741 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38742 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38743 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38744 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38745 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38746 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38747 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38748 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38749 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38750 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38751 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38752 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38753 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38754 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38755 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38756 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38757 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38758 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38759 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38760 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 38761 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
38762 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
38763 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
38764 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38765 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38766 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38767 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38768 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38769 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38770 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38771 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38772 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38773 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
38774 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38775 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38776 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38777 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38778 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38779 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38780 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38781 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38782 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38783 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38784 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38785 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38786 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38787 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38788 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38789 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38790 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4
RD
38791 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38792 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38793 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38794 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38795 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38796 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38797 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38798 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38799 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38800 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38801 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38802 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38803 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38804 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38805 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38806 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38807 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38808 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38809 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38810 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38811 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38812 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38813 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38814 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38815 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38816 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38817 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38818 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38819 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38820 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38821 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38822 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38823 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38824 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38825 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38826 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38827 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38828 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38829 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38830 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38831 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38832 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38833 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38834 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38835 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38836 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38837 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38838 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38839 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38840 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38841 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38842 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38843 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38844 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38845 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
38846 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38847 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38848 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38849 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38850 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38851 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38852 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38853 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38854 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38855 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38856 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
38857 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38858 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38859 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38860 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38861 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38862 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38863 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38864 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38865 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38866 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38867 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38868 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38869 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38870 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38871 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38872 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38873 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38874 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38875 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38876 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38877 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38878 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38879 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38880 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38881 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38882 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38883 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38884 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38885 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38886 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38887 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38888 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
38889 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38890 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38891 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38892 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38893 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38894 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38895 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38896 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38897 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38898 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38899 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38900 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38901 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38902 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38903 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38904 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38905 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38906 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 38907 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38908 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38909 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38910 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38911 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38912 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38913 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38914 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38915 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38916 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38917 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38918 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38919 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38920 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38921 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38922 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38923 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38924 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38925 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38926 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38927 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38928 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38929 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38930 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38931 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38932 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38933 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38934 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38935 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38936 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38937 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38938 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38939 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38940 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38941 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38942 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38943 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38944 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38945 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38946 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38947 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38948 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38949 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38950 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38951 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38952 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38953 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38954 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38955 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38956 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38957 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38958 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38959 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38960 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38961 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38962 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38963 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38964 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38965 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38966 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38967 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38968 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38969 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38970 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38971 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38972 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38973 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38974 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38975 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38976 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38977 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38978 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38979 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38980 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38981 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38982 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38983 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38984 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38985 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38986 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38987 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38988 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38989 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38990 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38991 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38992 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38993 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38994 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38995 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38996 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38997 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38998 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38999 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
27e45892 39000 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39001 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39002 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
39003 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
39004 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
39005 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
39006 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
39007 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
39008 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
39009 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
39010 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
39011 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
39012 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
39013 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
39014 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
39015 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39016 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39017 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39018 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39019 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39020 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39021 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39022 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39023 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39024 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
39025 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
39026 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
39027 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
39028 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
39029 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
39030 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
39031 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
39032 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39033 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
39034 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
39035 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
39036 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
39037 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39038 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
39039 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
39040 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
39041 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
39042 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39043 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
39044 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
39045 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
39046 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
39047 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
39048 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
39049 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
39050 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
39051 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
39052 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
39053 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
39054 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
39055 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
39056 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
39057 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
39058 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
39059 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
39060 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
39061 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
39062 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
39063 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
39064 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
39065 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 39066 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39067 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
39068 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39069 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
39070 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39071 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
39072 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
39073 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
39074 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
39075 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
39076 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
39077 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
39078 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39079 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
39080 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
39081 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
39082 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39083 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
39084 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
39085 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
39086 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
39087 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
39088 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
39089 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39090 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39091 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
39092 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
39093 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
39094 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
39095 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39096 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39097 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
39098 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
39099 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39100 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39101 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39102 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39103 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39104 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39105 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39106 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39107 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39108 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39109 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39110 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39111 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39112 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39113 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39114 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39115 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39116 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39117 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39118 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39119 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39120 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39121 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39122 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39123 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39124 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39125 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39126 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39127 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39128 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39129 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39130 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39131 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39132 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
39133 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
cbfc9df6
RD
39134 { (char *)"DC_StretchBlit", (PyCFunction) _wrap_DC_StretchBlit, METH_VARARGS | METH_KEYWORDS, NULL},
39135 { (char *)"DC_StretchBlitPointSize", (PyCFunction) _wrap_DC_StretchBlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 39136 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39137 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39138 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39139 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39140 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
39141 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39142 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39143 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39144 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39145 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39146 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
39147 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
39148 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
39149 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
39150 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
39151 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39152 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39153 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39154 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39155 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39156 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39157 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
39158 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
39159 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
39160 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
39161 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
39162 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39163 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39164 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39165 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39166 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
39167 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
39168 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
39169 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
39170 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
39171 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
39172 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39173 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39174 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
39175 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
39176 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39177 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39178 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
39179 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
39180 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
39181 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 39182 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
1bd55598
RD
39183 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
39184 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
39185 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
39186 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
39187 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
39188 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
39189 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
39190 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39191 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39192 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
39193 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
39194 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
39195 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
39196 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
39197 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
39198 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
39199 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
39200 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39201 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39202 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
39203 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
39204 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39205 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39206 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
39207 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
39208 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39209 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
39210 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
39211 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39212 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
39213 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
39214 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
39215 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
39216 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
39217 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
39218 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
39219 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39220 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
39221 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
39222 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
39223 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
39224 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
39225 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
39226 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39227 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39228 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
39229 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
39230 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
39231 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39232 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
39233 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
39234 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
39235 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39236 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
39237 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
39238 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
39239 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
39240 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
39241 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
39242 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39243 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
39244 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
39245 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
39246 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
39247 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
39248 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
39249 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
39250 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
39251 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39252 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
39253 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
39254 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
39255 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39256 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
39257 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
26c4d26f
RD
39258 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
39259 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
39260 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
39261 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
39262 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
39263 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
39264 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
39265 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
39266 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
b6df5cf9
RD
39267 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39268 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
24f6c4e8
RD
39269 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
39270 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
39271 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39272 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
39273 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
39274 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39275 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
39276 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 39277 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39278 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
39279 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
39280 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
39281 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
39282 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
39283 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
39284 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
39285 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
39286 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
39287 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
39288 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
39289 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
b39fe951 39290 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
1bd55598
RD
39291 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
39292 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
39293 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
39294 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
39295 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
39296 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
39297 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
39298 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
39299 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
39300 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
39301 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
39302 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
39303 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
39304 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
39305 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
39306 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
39307 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
39308 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
39309 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
39310 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
39311 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
39312 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
39313 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
39314 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
39315 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
39316 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
39317 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
39318 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
39319 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
39320 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
39321 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
5c8c7dd3
RD
39322 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
39323 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3 39324 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
248802d0 39325 { (char *)"GraphicsMatrix_Get", (PyCFunction)_wrap_GraphicsMatrix_Get, METH_O, NULL},
5c8c7dd3
RD
39326 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
39327 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39328 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
39329 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39330 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39331 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39332 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39333 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
39334 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
39335 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
72ef6efb 39336 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
70d7cb34
RD
39337 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
39338 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
39339 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
39340 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39341 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
39342 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
70d7cb34 39343 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
72ef6efb
RD
39344 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39345 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39346 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39347 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
39348 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39349 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39350 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
39351 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
39352 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
39353 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
39354 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
72ef6efb
RD
39355 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
39356 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394 39357 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
f89238b9 39358 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
0a27f394 39359 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39360 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 39361 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
70d7cb34
RD
39362 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39363 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39364 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39365 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39366 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39367 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39368 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
39369 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 39370 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 39371 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
39372 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
39373 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
c8aaaf9e
RD
39374 { (char *)"GraphicsContext_GetLogicalFunction", (PyCFunction)_wrap_GraphicsContext_GetLogicalFunction, METH_O, NULL},
39375 { (char *)"GraphicsContext_SetLogicalFunction", (PyCFunction) _wrap_GraphicsContext_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39376 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39377 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39378 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
39379 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39380 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39381 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
70d7cb34
RD
39382 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
39383 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
39384 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
72ef6efb
RD
39385 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
39386 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
39387 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
39388 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39389 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 39390 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39391 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39392 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39393 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39394 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39395 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39396 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 39397 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39398 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39399 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39400 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39401 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39402 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
72ef6efb 39403 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39404 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39405 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39406 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
f89238b9 39407 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
70d7cb34
RD
39408 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39409 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39410 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39411 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39412 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39413 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39414 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39415 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39416 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39417 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
48a0c021 39418 { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
72ef6efb 39419 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
39420 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39421 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39422 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39423 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
39424 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39425 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39426 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39427 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39428 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39429 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39430 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39431 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39432 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39433 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39434 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39435 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39436 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39437 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39438 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39439 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39440 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39441 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39442 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39443 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39444 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39445 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39446 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39447 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39448 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
39449 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39450 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39451 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39452 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39453 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39454 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39455 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39456 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39457 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39458 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39459 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39460 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39461 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39462 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39463 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
1bd55598 39464 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39465 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
1bd55598 39466 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39467 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
da91cb0f 39468 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 39469 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
1bd55598
RD
39470 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39471 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39472 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39473 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39474 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39475 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39476 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39477 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
39478 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39479 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39480 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39481 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
1bd55598
RD
39482 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39483 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39484 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39485 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39486 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39487 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39488 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39489 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39490 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39491 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39492 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39493 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39494 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39495 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39496 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39497 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39498 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39499 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39500 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39501 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39502 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39503 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39504 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
39505 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39506 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39507 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39508 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39509 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39510 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39511 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39512 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39513 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39514 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39515 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39516 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39517 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39518 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39519 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39520 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39521 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39522 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39523 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39524 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39525 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39526 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39527 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39528 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39529 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39530 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
39531 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39532 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39533 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39534 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39535 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39536 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39537 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
39538 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39539 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39540 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39541 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39542 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39543 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39544 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39545 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39546 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39547 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
39548 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39549 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39550 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39551 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39552 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39553 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39554 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39555 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39556 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39557 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39558 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39559 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39560 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39561 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39562 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39563 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39564 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39565 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39566 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39567 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39568 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39569 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39570 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39571 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39572 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39573 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39574 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39575 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39576 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39577 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39578 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39579 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39580 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39581 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39582 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39583 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39584 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39585 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39586 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39587 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39588 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39589 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39590 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39591 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39592 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39593 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39594 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39595 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39596 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39597 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39598 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39599 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39600 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39601 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39602 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39603 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39604 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39605 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39606 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39607 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39608 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39609 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39610 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39611 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39612 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39613 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39614 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39615 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39616 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39617 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39618 { NULL, NULL, 0, NULL }
39619};
39620
39621
39622/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39623
72ef6efb
RD
39624static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39625 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39626}
8e99bda9
RD
39627static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39628 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39629}
39630static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39631 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39632}
26c4d26f
RD
39633static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
39634 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39635}
39636static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
39637 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
39638}
72ef6efb
RD
39639static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39640 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39641}
39642static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39643 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39644}
26c4d26f
RD
39645static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
39646 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39647}
fc46b7f3
RD
39648static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39649 return (void *)((wxLocale *) ((wxPyLocale *) x));
39650}
70d7cb34
RD
39651static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39652 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39653}
39654static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39655 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39656}
39657static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39658 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39659}
39660static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39661 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39662}
39663static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39664 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39665}
39666static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39667 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39668}
1bd55598
RD
39669static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39670 return (void *)((wxGDIObject *) ((wxIcon *) x));
39671}
39672static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39673 return (void *)((wxGDIObject *) ((wxPalette *) x));
39674}
39675static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39676 return (void *)((wxGDIObject *) ((wxPen *) x));
39677}
39678static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39679 return (void *)((wxGDIObject *) ((wxFont *) x));
39680}
39681static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39682 return (void *)((wxGDIObject *) ((wxCursor *) x));
39683}
39684static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39685 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39686}
39687static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39688 return (void *)((wxGDIObject *) ((wxRegion *) x));
39689}
39690static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39691 return (void *)((wxGDIObject *) ((wxBrush *) x));
39692}
72ef6efb
RD
39693static void *_p_wxGCDCTo_p_wxDC(void *x) {
39694 return (void *)((wxDC *) ((wxGCDC *) x));
39695}
1bd55598
RD
39696static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39697 return (void *)((wxDC *) ((wxScreenDC *) x));
39698}
24f6c4e8 39699static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
26c4d26f 39700 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
24f6c4e8 39701}
1bd55598
RD
39702static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39703 return (void *)((wxDC *) ((wxMirrorDC *) x));
39704}
1bd55598
RD
39705static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39706 return (void *)((wxDC *) ((wxWindowDC *) x));
39707}
26c4d26f
RD
39708static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39709 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
39710}
1bd55598
RD
39711static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39712 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39713}
1bd55598 39714static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 39715 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
39716}
39717static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 39718 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
1bd55598 39719}
24f6c4e8 39720static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
26c4d26f 39721 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
24f6c4e8
RD
39722}
39723static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39724 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39725}
1bd55598
RD
39726static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39727 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39728}
39729static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39730 return (void *)((wxDC *) ((wxPrinterDC *) x));
39731}
da91cb0f
RD
39732static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39733 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39734}
39735static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39736 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39737}
39738static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39739 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39740}
1bd55598
RD
39741static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39742 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39743}
39744static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39745 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39746}
39747static void *_p_wxPenTo_p_wxObject(void *x) {
39748 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39749}
39750static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39751 return (void *)((wxObject *) ((wxRegionIterator *) x));
39752}
4976f996
RD
39753static void *_p_wxEventBlockerTo_p_wxObject(void *x) {
39754 return (void *)((wxObject *) (wxEvtHandler *) ((wxEventBlocker *) x));
39755}
1bd55598
RD
39756static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39757 return (void *)((wxObject *) ((wxSizerItem *) x));
39758}
34e0a3bb
RD
39759static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39760 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39761}
1bd55598
RD
39762static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39763 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39764}
39765static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39766 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39767}
39768static void *_p_wxIconTo_p_wxObject(void *x) {
39769 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39770}
39771static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39772 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39773}
39774static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39775 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39776}
39777static void *_p_wxSizerTo_p_wxObject(void *x) {
39778 return (void *)((wxObject *) ((wxSizer *) x));
39779}
39780static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39781 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39782}
39783static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39784 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39785}
1bd55598
RD
39786static void *_p_wxEventTo_p_wxObject(void *x) {
39787 return (void *)((wxObject *) ((wxEvent *) x));
39788}
1bd55598
RD
39789static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39790 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39791}
4976f996
RD
39792static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39793 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39794}
1bd55598
RD
39795static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39796 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39797}
27e45892
RD
39798static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39799 return (void *)((wxObject *) ((wxPseudoDC *) x));
39800}
2131d850
RD
39801static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39802 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39803}
1bd55598
RD
39804static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39805 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39806}
39807static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39808 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39809}
39810static void *_p_wxDCTo_p_wxObject(void *x) {
39811 return (void *)((wxObject *) ((wxDC *) x));
39812}
39813static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39814 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39815}
39816static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39817 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39818}
39819static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39820 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39821}
39822static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39823 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39824}
39825static void *_p_wxControlTo_p_wxObject(void *x) {
39826 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39827}
70d7cb34
RD
39828static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39829 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39830}
1bd55598
RD
39831static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39832 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39833}
39834static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 39835 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
39836}
39837static void *_p_wxFSFileTo_p_wxObject(void *x) {
39838 return (void *)((wxObject *) ((wxFSFile *) x));
39839}
39840static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
26c4d26f 39841 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
1bd55598
RD
39842}
39843static void *_p_wxRegionTo_p_wxObject(void *x) {
39844 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39845}
39846static void *_p_wxPySizerTo_p_wxObject(void *x) {
39847 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39848}
39849static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39850 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39851}
39852static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39853 return (void *)((wxObject *) ((wxGDIObject *) x));
39854}
70d7cb34
RD
39855static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39856 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39857}
39858static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39859 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39860}
1bd55598
RD
39861static void *_p_wxEffectsTo_p_wxObject(void *x) {
39862 return (void *)((wxObject *) ((wxEffects *) x));
39863}
39864static void *_p_wxPyEventTo_p_wxObject(void *x) {
39865 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39866}
39867static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39868 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39869}
39870static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39871 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39872}
70d7cb34
RD
39873static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39874 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39875}
1bd55598
RD
39876static void *_p_wxShowEventTo_p_wxObject(void *x) {
39877 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39878}
39879static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39880 return (void *)((wxObject *) ((wxMenuItem *) x));
39881}
39882static void *_p_wxDateEventTo_p_wxObject(void *x) {
39883 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39884}
39885static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39886 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39887}
39888static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39889 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39890}
39891static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39892 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39893}
39894static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39895 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39896}
39897static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39898 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39899}
39900static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39901 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39902}
39903static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39904 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39905}
39906static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39907 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39908}
39909static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39910 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39911}
39912static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39913 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39914}
39915static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39916 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39917}
39918static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39919 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39920}
39921static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39922 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39923}
39924static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39925 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39926}
39927static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39928 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39929}
39930static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39931 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39932}
39933static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39934 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39935}
39936static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39937 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39938}
39939static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39940 return (void *)((wxObject *) ((wxImageHandler *) x));
39941}
39942static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39943 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39944}
39945static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39946 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39947}
580080c5
RD
39948static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
39949 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
39950}
1bd55598
RD
39951static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39952 return (void *)((wxObject *) ((wxEvtHandler *) x));
39953}
34e0a3bb
RD
39954static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39955 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39956}
24f6c4e8
RD
39957static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39958 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39959}
1bd55598 39960static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
26c4d26f 39961 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
1bd55598 39962}
24f6c4e8
RD
39963static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39964 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
1bd55598
RD
39965}
39966static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39967 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39968}
39969static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39970 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39971}
1bd55598
RD
39972static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39973 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39974}
580080c5
RD
39975static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39976 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39977}
1bd55598
RD
39978static void *_p_wxImageTo_p_wxObject(void *x) {
39979 return (void *)((wxObject *) ((wxImage *) x));
39980}
39981static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39982 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39983}
70d7cb34
RD
39984static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39985 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39986}
39987static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39988 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39989}
1bd55598
RD
39990static void *_p_wxPaletteTo_p_wxObject(void *x) {
39991 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39992}
39993static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
26c4d26f 39994 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
1bd55598
RD
39995}
39996static void *_p_wxImageListTo_p_wxObject(void *x) {
39997 return (void *)((wxObject *) ((wxImageList *) x));
39998}
72ef6efb
RD
39999static void *_p_wxGCDCTo_p_wxObject(void *x) {
40000 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
40001}
1bd55598
RD
40002static void *_p_wxCursorTo_p_wxObject(void *x) {
40003 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
40004}
40005static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
40006 return (void *)((wxObject *) ((wxEncodingConverter *) x));
40007}
40008static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
40009 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
40010}
70d7cb34
RD
40011static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
40012 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
40013}
1bd55598
RD
40014static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
40015 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40016}
40017static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
40018 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
40019}
40020static void *_p_wxKeyEventTo_p_wxObject(void *x) {
40021 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
40022}
40023static void *_p_wxWindowTo_p_wxObject(void *x) {
40024 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
40025}
40026static void *_p_wxMenuTo_p_wxObject(void *x) {
40027 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
40028}
40029static void *_p_wxMenuBarTo_p_wxObject(void *x) {
40030 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
40031}
40032static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
40033 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
40034}
1bd55598
RD
40035static void *_p_wxFileSystemTo_p_wxObject(void *x) {
40036 return (void *)((wxObject *) ((wxFileSystem *) x));
40037}
40038static void *_p_wxBitmapTo_p_wxObject(void *x) {
40039 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
40040}
40041static void *_p_wxMaskTo_p_wxObject(void *x) {
40042 return (void *)((wxObject *) ((wxMask *) x));
40043}
70d7cb34
RD
40044static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
40045 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40046}
1bd55598
RD
40047static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
40048 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
40049}
40050static void *_p_wxMenuEventTo_p_wxObject(void *x) {
40051 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
40052}
40053static void *_p_wxPyAppTo_p_wxObject(void *x) {
40054 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
40055}
40056static void *_p_wxCloseEventTo_p_wxObject(void *x) {
40057 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
40058}
40059static void *_p_wxMouseEventTo_p_wxObject(void *x) {
40060 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
40061}
40062static void *_p_wxEraseEventTo_p_wxObject(void *x) {
40063 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
40064}
40065static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
40066 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
40067}
40068static void *_p_wxCommandEventTo_p_wxObject(void *x) {
40069 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
40070}
40071static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
40072 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
40073}
40074static void *_p_wxFocusEventTo_p_wxObject(void *x) {
40075 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
40076}
40077static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
40078 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
40079}
40080static void *_p_wxFontTo_p_wxObject(void *x) {
40081 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
40082}
40083static void *_p_wxBrushTo_p_wxObject(void *x) {
40084 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
40085}
40086static void *_p_wxMetaFileTo_p_wxObject(void *x) {
40087 return (void *)((wxObject *) ((wxMetaFile *) x));
40088}
40089static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
40090 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40091}
40092static void *_p_wxColourTo_p_wxObject(void *x) {
40093 return (void *)((wxObject *) ((wxColour *) x));
40094}
1bd55598
RD
40095static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
40096 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
40097}
40098static void *_p_wxValidatorTo_p_wxObject(void *x) {
40099 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
40100}
40101static void *_p_wxControlTo_p_wxWindow(void *x) {
40102 return (void *)((wxWindow *) ((wxControl *) x));
40103}
40104static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
40105 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
40106}
40107static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
40108 return (void *)((wxWindow *) ((wxMenuBar *) x));
40109}
fc46b7f3
RD
40110static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
40111 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
40112}
40113static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
40114 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
40115}
40116static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
1bd55598 40117static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 40118static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
40119static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
40120static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
40121static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
40122static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
40123static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 40124static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
40125static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
40126static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 40127static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
1bd55598
RD
40128static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
40129static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
40130static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
40131static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
40132static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
40133static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
40134static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
40135static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
40136static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
40137static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
70d7cb34
RD
40138static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
40139static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
b39fe951 40140static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
70d7cb34
RD
40141static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
40142static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
1bd55598
RD
40143static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
40144static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
40145static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
40146static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
40147static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
40148static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
40149static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 40150static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
da91cb0f 40151static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
1bd55598 40152static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
70d7cb34 40153static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
72ef6efb 40154static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
70d7cb34
RD
40155static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
40156static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
40157static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
72ef6efb 40158static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
70d7cb34
RD
40159static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
40160static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
33d6fd3b 40161static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
1bd55598
RD
40162static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
40163static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
40164static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
40165static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
40166static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
40167static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
40168static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
40169static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
40170static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
40171static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
40172static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
40173static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
40174static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
40175static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
40176static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
40177static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
1bd55598
RD
40178static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
40179static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
4976f996 40180static swig_type_info _swigt__p_wxEventBlocker = {"_p_wxEventBlocker", 0, 0, 0, 0, 0};
1bd55598 40181static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 40182static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
1bd55598
RD
40183static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
40184static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
40185static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
40186static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
40187static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
40188static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
40189static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
40190static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
40191static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
1bd55598 40192static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
4976f996 40193static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
1bd55598 40194static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 40195static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
40196static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
40197static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
40198static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
40199static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
40200static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
40201static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
40202static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
40203static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
40204static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
40205static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
40206static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
40207static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
40208static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
40209static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
1bd55598
RD
40210static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
40211static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
40212static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
40213static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
40214static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
40215static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40216static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40217static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
4976f996 40218static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
1bd55598 40219static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
580080c5 40220static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
70d7cb34
RD
40221static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
40222static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40223static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
40224static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
40225static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
40226static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
24f6c4e8 40227static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 40228static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 40229static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 40230static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
1bd55598
RD
40231static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40232static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40233static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 40234static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
1bd55598 40235static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 40236static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
1bd55598
RD
40237static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40238static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40239static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40240static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40241static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40242static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40243static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40244static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40245static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40246static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40247static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40248static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40249static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40250static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40251static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40252static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40253static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40254static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40255static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40256static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 40257static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
1bd55598
RD
40258static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
40259static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
40260static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
40261static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
40262static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 40263static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
1bd55598 40264static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 40265static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
1bd55598
RD
40266static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
40267static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
40268static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 40269static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
1bd55598 40270static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 40271static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
1bd55598 40272static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
4fe9ce47 40273static swig_type_info _swigt__p_wxRect2D = {"_p_wxRect2D", "wxRect2D *", 0, 0, (void*)0, 0};
1bd55598
RD
40274static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
40275static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
40276static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
40277static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
40278static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
40279static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40280static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
da91cb0f 40281static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
1bd55598
RD
40282static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40283static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40284static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
40285
40286static swig_type_info *swig_type_initial[] = {
fc46b7f3 40287 &_swigt__p_buffer,
1bd55598
RD
40288 &_swigt__p_char,
40289 &_swigt__p_double,
40290 &_swigt__p_form_ops_t,
40291 &_swigt__p_int,
40292 &_swigt__p_unsigned_char,
40293 &_swigt__p_unsigned_int,
40294 &_swigt__p_unsigned_long,
0a27f394 40295 &_swigt__p_void,
1bd55598
RD
40296 &_swigt__p_wxANIHandler,
40297 &_swigt__p_wxAcceleratorTable,
40298 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
40299 &_swigt__p_wxAlphaPixelData,
40300 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 40301 &_swigt__p_wxAutoBufferedPaintDC,
1bd55598
RD
40302 &_swigt__p_wxBMPHandler,
40303 &_swigt__p_wxBitmap,
40304 &_swigt__p_wxBoxSizer,
40305 &_swigt__p_wxBrush,
40306 &_swigt__p_wxBrushList,
40307 &_swigt__p_wxBufferedDC,
40308 &_swigt__p_wxBufferedPaintDC,
40309 &_swigt__p_wxCURHandler,
40310 &_swigt__p_wxChildFocusEvent,
40311 &_swigt__p_wxClientDC,
2131d850 40312 &_swigt__p_wxClipboardTextEvent,
1bd55598
RD
40313 &_swigt__p_wxCloseEvent,
40314 &_swigt__p_wxColour,
40315 &_swigt__p_wxColourDatabase,
40316 &_swigt__p_wxCommandEvent,
40317 &_swigt__p_wxContextMenuEvent,
40318 &_swigt__p_wxControl,
40319 &_swigt__p_wxControlWithItems,
40320 &_swigt__p_wxCursor,
40321 &_swigt__p_wxDC,
70d7cb34
RD
40322 &_swigt__p_wxDCBrushChanger,
40323 &_swigt__p_wxDCClipper,
b39fe951 40324 &_swigt__p_wxDCOverlay,
70d7cb34
RD
40325 &_swigt__p_wxDCPenChanger,
40326 &_swigt__p_wxDCTextColourChanger,
1bd55598
RD
40327 &_swigt__p_wxDash,
40328 &_swigt__p_wxDateEvent,
40329 &_swigt__p_wxDisplayChangedEvent,
40330 &_swigt__p_wxDropFilesEvent,
40331 &_swigt__p_wxDuplexMode,
40332 &_swigt__p_wxEffects,
40333 &_swigt__p_wxEncodingConverter,
40334 &_swigt__p_wxEraseEvent,
40335 &_swigt__p_wxEvent,
4976f996 40336 &_swigt__p_wxEventBlocker,
1bd55598
RD
40337 &_swigt__p_wxEvtHandler,
40338 &_swigt__p_wxFSFile,
40339 &_swigt__p_wxFileSystem,
40340 &_swigt__p_wxFlexGridSizer,
40341 &_swigt__p_wxFocusEvent,
40342 &_swigt__p_wxFont,
40343 &_swigt__p_wxFontList,
40344 &_swigt__p_wxFontMapper,
40345 &_swigt__p_wxGBSizerItem,
72ef6efb 40346 &_swigt__p_wxGCDC,
da91cb0f 40347 &_swigt__p_wxGDIObjListBase,
1bd55598
RD
40348 &_swigt__p_wxGDIObject,
40349 &_swigt__p_wxGIFHandler,
70d7cb34 40350 &_swigt__p_wxGraphicsBrush,
72ef6efb 40351 &_swigt__p_wxGraphicsContext,
70d7cb34
RD
40352 &_swigt__p_wxGraphicsFont,
40353 &_swigt__p_wxGraphicsMatrix,
40354 &_swigt__p_wxGraphicsObject,
72ef6efb 40355 &_swigt__p_wxGraphicsPath,
70d7cb34
RD
40356 &_swigt__p_wxGraphicsPen,
40357 &_swigt__p_wxGraphicsRenderer,
1bd55598
RD
40358 &_swigt__p_wxGridBagSizer,
40359 &_swigt__p_wxGridSizer,
33d6fd3b 40360 &_swigt__p_wxHeaderButtonParams,
1bd55598
RD
40361 &_swigt__p_wxICOHandler,
40362 &_swigt__p_wxIcon,
40363 &_swigt__p_wxIconBundle,
40364 &_swigt__p_wxIconLocation,
40365 &_swigt__p_wxIconizeEvent,
40366 &_swigt__p_wxIdleEvent,
40367 &_swigt__p_wxImage,
40368 &_swigt__p_wxImageHandler,
40369 &_swigt__p_wxImageList,
40370 &_swigt__p_wxIndividualLayoutConstraint,
40371 &_swigt__p_wxInitDialogEvent,
40372 &_swigt__p_wxJPEGHandler,
40373 &_swigt__p_wxKeyEvent,
40374 &_swigt__p_wxLanguageInfo,
40375 &_swigt__p_wxLayoutConstraints,
40376 &_swigt__p_wxLocale,
40377 &_swigt__p_wxMask,
40378 &_swigt__p_wxMaximizeEvent,
40379 &_swigt__p_wxMemoryDC,
40380 &_swigt__p_wxMenu,
40381 &_swigt__p_wxMenuBar,
40382 &_swigt__p_wxMenuEvent,
40383 &_swigt__p_wxMenuItem,
40384 &_swigt__p_wxMetaFile,
40385 &_swigt__p_wxMetaFileDC,
40386 &_swigt__p_wxMirrorDC,
40387 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 40388 &_swigt__p_wxMouseCaptureLostEvent,
1bd55598
RD
40389 &_swigt__p_wxMouseEvent,
40390 &_swigt__p_wxMoveEvent,
40391 &_swigt__p_wxNativeEncodingInfo,
40392 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
40393 &_swigt__p_wxNativePixelData,
40394 &_swigt__p_wxNativePixelData_Accessor,
1bd55598
RD
40395 &_swigt__p_wxNavigationKeyEvent,
40396 &_swigt__p_wxNcPaintEvent,
40397 &_swigt__p_wxNotifyEvent,
40398 &_swigt__p_wxObject,
b39fe951 40399 &_swigt__p_wxOverlay,
1bd55598
RD
40400 &_swigt__p_wxPCXHandler,
40401 &_swigt__p_wxPNGHandler,
40402 &_swigt__p_wxPNMHandler,
40403 &_swigt__p_wxPaintDC,
40404 &_swigt__p_wxPaintEvent,
40405 &_swigt__p_wxPalette,
40406 &_swigt__p_wxPaletteChangedEvent,
40407 &_swigt__p_wxPaperSize,
40408 &_swigt__p_wxPen,
40409 &_swigt__p_wxPenList,
fc46b7f3 40410 &_swigt__p_wxPixelDataBase,
1bd55598 40411 &_swigt__p_wxPoint,
72ef6efb 40412 &_swigt__p_wxPoint2D,
1bd55598
RD
40413 &_swigt__p_wxPostScriptDC,
40414 &_swigt__p_wxPrintData,
40415 &_swigt__p_wxPrinterDC,
27e45892 40416 &_swigt__p_wxPseudoDC,
1bd55598
RD
40417 &_swigt__p_wxPyApp,
40418 &_swigt__p_wxPyCommandEvent,
40419 &_swigt__p_wxPyEvent,
40420 &_swigt__p_wxPyFontEnumerator,
40421 &_swigt__p_wxPyImageHandler,
fc46b7f3 40422 &_swigt__p_wxPyLocale,
1bd55598
RD
40423 &_swigt__p_wxPySizer,
40424 &_swigt__p_wxPyValidator,
40425 &_swigt__p_wxQueryNewPaletteEvent,
40426 &_swigt__p_wxRect,
4fe9ce47 40427 &_swigt__p_wxRect2D,
1bd55598
RD
40428 &_swigt__p_wxRegion,
40429 &_swigt__p_wxRegionIterator,
40430 &_swigt__p_wxRendererNative,
40431 &_swigt__p_wxRendererVersion,
40432 &_swigt__p_wxScreenDC,
40433 &_swigt__p_wxScrollEvent,
40434 &_swigt__p_wxScrollWinEvent,
40435 &_swigt__p_wxSetCursorEvent,
40436 &_swigt__p_wxShowEvent,
40437 &_swigt__p_wxSize,
40438 &_swigt__p_wxSizeEvent,
40439 &_swigt__p_wxSizer,
40440 &_swigt__p_wxSizerItem,
40441 &_swigt__p_wxSplitterRenderParams,
40442 &_swigt__p_wxStaticBoxSizer,
40443 &_swigt__p_wxStdDialogButtonSizer,
da91cb0f 40444 &_swigt__p_wxStockGDI,
1bd55598
RD
40445 &_swigt__p_wxString,
40446 &_swigt__p_wxSysColourChangedEvent,
580080c5 40447 &_swigt__p_wxTGAHandler,
1bd55598
RD
40448 &_swigt__p_wxTIFFHandler,
40449 &_swigt__p_wxUpdateUIEvent,
40450 &_swigt__p_wxValidator,
40451 &_swigt__p_wxWindow,
40452 &_swigt__p_wxWindowCreateEvent,
40453 &_swigt__p_wxWindowDC,
40454 &_swigt__p_wxWindowDestroyEvent,
40455 &_swigt__p_wxXPMHandler,
40456};
40457
fc46b7f3 40458static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40459static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40460static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40461static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40462static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40463static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40464static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40465static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 40466static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40467static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40468static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40469static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40470static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40471static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40472static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40473static 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}};
40474static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40475static 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}};
1bd55598
RD
40476static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40477static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40478static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40479static 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
40480static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40481static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 40482static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40483static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40484static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40485static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40486static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40487static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40488static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40489static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40490static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40491static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40492static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 40493static swig_cast_info _swigc__p_wxGDIObjListBase[] = { {&_swigt__p_wxGDIObjListBase, 0, 0, 0}, {&_swigt__p_wxBrushList, _p_wxBrushListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxFontList, _p_wxFontListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxPenList, _p_wxPenListTo_p_wxGDIObjListBase, 0, 0},{0, 0, 0, 0}};
1bd55598 40494static 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 40495static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40496static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40497static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40498static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40499static 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 40500static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40501static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40502static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 40503static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40504static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40505static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40506static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40507static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40508static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40509static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40510static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxPyLocale, _p_wxPyLocaleTo_p_wxLocale, 0, 0}, {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40511static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 40512static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxMemoryDC, 0, 0}, {&_swigt__p_wxMemoryDC, 0, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxMemoryDC, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40513static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40514static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40515static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40516static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40517static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40518static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40519static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40520static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
4976f996 40521static swig_cast_info _swigc__p_wxEventBlocker[] = {{&_swigt__p_wxEventBlocker, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40522static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40523static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40524static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40525static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40526static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40527static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40528static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40529static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40530static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40531static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40532static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40533static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
4976f996 40534static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40535static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40536static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40537static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40538static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40539static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40540static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40541static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40542static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40543static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40544static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40545static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40546static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40547static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40548static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40549static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40550static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40551static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40552static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40553static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40554static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40555static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40556static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40557static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40558static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
4976f996 40559static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40560static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40561static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40562static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40563static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40564static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40565static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40566static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40567static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40568static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40569static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40570static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40571static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40572static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40573static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40574static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40575static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40576static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40577static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40578static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40579static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40580static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40581static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40582static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40583static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40584static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40585static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40586static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40587static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40588static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40589static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40590static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40591static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40592static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40593static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40594static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40595static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40596static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40597static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
4976f996 40598static 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_wxEventBlocker, _p_wxEventBlockerTo_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_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_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_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_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_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_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_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 40599static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40600static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40601static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40602static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40603static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40604static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40605static swig_cast_info _swigc__p_wxPixelDataBase[] = { {&_swigt__p_wxPixelDataBase, 0, 0, 0}, {&_swigt__p_wxNativePixelData, _p_wxNativePixelDataTo_p_wxPixelDataBase, 0, 0}, {&_swigt__p_wxAlphaPixelData, _p_wxAlphaPixelDataTo_p_wxPixelDataBase, 0, 0},{0, 0, 0, 0}};
1bd55598 40606static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40607static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40608static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40609static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40610static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40611static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40612static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40613static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40614static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
4fe9ce47 40615static swig_cast_info _swigc__p_wxRect2D[] = { {&_swigt__p_wxRect2D, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40616static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40617static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40618static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40619static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40620static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40621static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40622static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 40623static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40624static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40625static 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}};
26c4d26f 40626static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40627
40628static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 40629 _swigc__p_buffer,
1bd55598
RD
40630 _swigc__p_char,
40631 _swigc__p_double,
40632 _swigc__p_form_ops_t,
40633 _swigc__p_int,
40634 _swigc__p_unsigned_char,
40635 _swigc__p_unsigned_int,
40636 _swigc__p_unsigned_long,
0a27f394 40637 _swigc__p_void,
1bd55598
RD
40638 _swigc__p_wxANIHandler,
40639 _swigc__p_wxAcceleratorTable,
40640 _swigc__p_wxActivateEvent,
fc46b7f3
RD
40641 _swigc__p_wxAlphaPixelData,
40642 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 40643 _swigc__p_wxAutoBufferedPaintDC,
1bd55598
RD
40644 _swigc__p_wxBMPHandler,
40645 _swigc__p_wxBitmap,
40646 _swigc__p_wxBoxSizer,
40647 _swigc__p_wxBrush,
40648 _swigc__p_wxBrushList,
40649 _swigc__p_wxBufferedDC,
40650 _swigc__p_wxBufferedPaintDC,
40651 _swigc__p_wxCURHandler,
40652 _swigc__p_wxChildFocusEvent,
40653 _swigc__p_wxClientDC,
2131d850 40654 _swigc__p_wxClipboardTextEvent,
1bd55598
RD
40655 _swigc__p_wxCloseEvent,
40656 _swigc__p_wxColour,
40657 _swigc__p_wxColourDatabase,
40658 _swigc__p_wxCommandEvent,
40659 _swigc__p_wxContextMenuEvent,
40660 _swigc__p_wxControl,
40661 _swigc__p_wxControlWithItems,
40662 _swigc__p_wxCursor,
40663 _swigc__p_wxDC,
70d7cb34
RD
40664 _swigc__p_wxDCBrushChanger,
40665 _swigc__p_wxDCClipper,
b39fe951 40666 _swigc__p_wxDCOverlay,
70d7cb34
RD
40667 _swigc__p_wxDCPenChanger,
40668 _swigc__p_wxDCTextColourChanger,
1bd55598
RD
40669 _swigc__p_wxDash,
40670 _swigc__p_wxDateEvent,
40671 _swigc__p_wxDisplayChangedEvent,
40672 _swigc__p_wxDropFilesEvent,
40673 _swigc__p_wxDuplexMode,
40674 _swigc__p_wxEffects,
40675 _swigc__p_wxEncodingConverter,
40676 _swigc__p_wxEraseEvent,
40677 _swigc__p_wxEvent,
4976f996 40678 _swigc__p_wxEventBlocker,
1bd55598
RD
40679 _swigc__p_wxEvtHandler,
40680 _swigc__p_wxFSFile,
40681 _swigc__p_wxFileSystem,
40682 _swigc__p_wxFlexGridSizer,
40683 _swigc__p_wxFocusEvent,
40684 _swigc__p_wxFont,
40685 _swigc__p_wxFontList,
40686 _swigc__p_wxFontMapper,
40687 _swigc__p_wxGBSizerItem,
72ef6efb 40688 _swigc__p_wxGCDC,
da91cb0f 40689 _swigc__p_wxGDIObjListBase,
1bd55598
RD
40690 _swigc__p_wxGDIObject,
40691 _swigc__p_wxGIFHandler,
70d7cb34 40692 _swigc__p_wxGraphicsBrush,
72ef6efb 40693 _swigc__p_wxGraphicsContext,
70d7cb34
RD
40694 _swigc__p_wxGraphicsFont,
40695 _swigc__p_wxGraphicsMatrix,
40696 _swigc__p_wxGraphicsObject,
72ef6efb 40697 _swigc__p_wxGraphicsPath,
70d7cb34
RD
40698 _swigc__p_wxGraphicsPen,
40699 _swigc__p_wxGraphicsRenderer,
1bd55598
RD
40700 _swigc__p_wxGridBagSizer,
40701 _swigc__p_wxGridSizer,
33d6fd3b 40702 _swigc__p_wxHeaderButtonParams,
1bd55598
RD
40703 _swigc__p_wxICOHandler,
40704 _swigc__p_wxIcon,
40705 _swigc__p_wxIconBundle,
40706 _swigc__p_wxIconLocation,
40707 _swigc__p_wxIconizeEvent,
40708 _swigc__p_wxIdleEvent,
40709 _swigc__p_wxImage,
40710 _swigc__p_wxImageHandler,
40711 _swigc__p_wxImageList,
40712 _swigc__p_wxIndividualLayoutConstraint,
40713 _swigc__p_wxInitDialogEvent,
40714 _swigc__p_wxJPEGHandler,
40715 _swigc__p_wxKeyEvent,
40716 _swigc__p_wxLanguageInfo,
40717 _swigc__p_wxLayoutConstraints,
40718 _swigc__p_wxLocale,
40719 _swigc__p_wxMask,
40720 _swigc__p_wxMaximizeEvent,
40721 _swigc__p_wxMemoryDC,
40722 _swigc__p_wxMenu,
40723 _swigc__p_wxMenuBar,
40724 _swigc__p_wxMenuEvent,
40725 _swigc__p_wxMenuItem,
40726 _swigc__p_wxMetaFile,
40727 _swigc__p_wxMetaFileDC,
40728 _swigc__p_wxMirrorDC,
40729 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 40730 _swigc__p_wxMouseCaptureLostEvent,
1bd55598
RD
40731 _swigc__p_wxMouseEvent,
40732 _swigc__p_wxMoveEvent,
40733 _swigc__p_wxNativeEncodingInfo,
40734 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
40735 _swigc__p_wxNativePixelData,
40736 _swigc__p_wxNativePixelData_Accessor,
1bd55598
RD
40737 _swigc__p_wxNavigationKeyEvent,
40738 _swigc__p_wxNcPaintEvent,
40739 _swigc__p_wxNotifyEvent,
40740 _swigc__p_wxObject,
b39fe951 40741 _swigc__p_wxOverlay,
1bd55598
RD
40742 _swigc__p_wxPCXHandler,
40743 _swigc__p_wxPNGHandler,
40744 _swigc__p_wxPNMHandler,
40745 _swigc__p_wxPaintDC,
40746 _swigc__p_wxPaintEvent,
40747 _swigc__p_wxPalette,
40748 _swigc__p_wxPaletteChangedEvent,
40749 _swigc__p_wxPaperSize,
40750 _swigc__p_wxPen,
40751 _swigc__p_wxPenList,
fc46b7f3 40752 _swigc__p_wxPixelDataBase,
1bd55598 40753 _swigc__p_wxPoint,
72ef6efb 40754 _swigc__p_wxPoint2D,
1bd55598
RD
40755 _swigc__p_wxPostScriptDC,
40756 _swigc__p_wxPrintData,
40757 _swigc__p_wxPrinterDC,
27e45892 40758 _swigc__p_wxPseudoDC,
1bd55598
RD
40759 _swigc__p_wxPyApp,
40760 _swigc__p_wxPyCommandEvent,
40761 _swigc__p_wxPyEvent,
40762 _swigc__p_wxPyFontEnumerator,
40763 _swigc__p_wxPyImageHandler,
fc46b7f3 40764 _swigc__p_wxPyLocale,
1bd55598
RD
40765 _swigc__p_wxPySizer,
40766 _swigc__p_wxPyValidator,
40767 _swigc__p_wxQueryNewPaletteEvent,
40768 _swigc__p_wxRect,
4fe9ce47 40769 _swigc__p_wxRect2D,
1bd55598
RD
40770 _swigc__p_wxRegion,
40771 _swigc__p_wxRegionIterator,
40772 _swigc__p_wxRendererNative,
40773 _swigc__p_wxRendererVersion,
40774 _swigc__p_wxScreenDC,
40775 _swigc__p_wxScrollEvent,
40776 _swigc__p_wxScrollWinEvent,
40777 _swigc__p_wxSetCursorEvent,
40778 _swigc__p_wxShowEvent,
40779 _swigc__p_wxSize,
40780 _swigc__p_wxSizeEvent,
40781 _swigc__p_wxSizer,
40782 _swigc__p_wxSizerItem,
40783 _swigc__p_wxSplitterRenderParams,
40784 _swigc__p_wxStaticBoxSizer,
40785 _swigc__p_wxStdDialogButtonSizer,
da91cb0f 40786 _swigc__p_wxStockGDI,
1bd55598
RD
40787 _swigc__p_wxString,
40788 _swigc__p_wxSysColourChangedEvent,
580080c5 40789 _swigc__p_wxTGAHandler,
1bd55598
RD
40790 _swigc__p_wxTIFFHandler,
40791 _swigc__p_wxUpdateUIEvent,
40792 _swigc__p_wxValidator,
40793 _swigc__p_wxWindow,
40794 _swigc__p_wxWindowCreateEvent,
40795 _swigc__p_wxWindowDC,
40796 _swigc__p_wxWindowDestroyEvent,
40797 _swigc__p_wxXPMHandler,
40798};
40799
40800
40801/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40802
40803static swig_const_info swig_const_table[] = {
40804{0, 0, 0, 0.0, 0, 0}};
40805
40806#ifdef __cplusplus
40807}
40808#endif
40809/* -----------------------------------------------------------------------------
40810 * Type initialization:
40811 * This problem is tough by the requirement that no dynamic
40812 * memory is used. Also, since swig_type_info structures store pointers to
40813 * swig_cast_info structures and swig_cast_info structures store pointers back
40814 * to swig_type_info structures, we need some lookup code at initialization.
40815 * The idea is that swig generates all the structures that are needed.
40816 * The runtime then collects these partially filled structures.
40817 * The SWIG_InitializeModule function takes these initial arrays out of
40818 * swig_module, and does all the lookup, filling in the swig_module.types
40819 * array with the correct data and linking the correct swig_cast_info
40820 * structures together.
40821 *
40822 * The generated swig_type_info structures are assigned staticly to an initial
40823 * array. We just loop though that array, and handle each type individually.
40824 * First we lookup if this type has been already loaded, and if so, use the
40825 * loaded structure instead of the generated one. Then we have to fill in the
40826 * cast linked list. The cast data is initially stored in something like a
40827 * two-dimensional array. Each row corresponds to a type (there are the same
40828 * number of rows as there are in the swig_type_initial array). Each entry in
40829 * a column is one of the swig_cast_info structures for that type.
40830 * The cast_initial array is actually an array of arrays, because each row has
40831 * a variable number of columns. So to actually build the cast linked list,
40832 * we find the array of casts associated with the type, and loop through it
40833 * adding the casts to the list. The one last trick we need to do is making
40834 * sure the type pointer in the swig_cast_info struct is correct.
40835 *
40836 * First off, we lookup the cast->type name to see if it is already loaded.
40837 * There are three cases to handle:
40838 * 1) If the cast->type has already been loaded AND the type we are adding
40839 * casting info to has not been loaded (it is in this module), THEN we
40840 * replace the cast->type pointer with the type pointer that has already
40841 * been loaded.
40842 * 2) If BOTH types (the one we are adding casting info to, and the
40843 * cast->type) are loaded, THEN the cast info has already been loaded by
40844 * the previous module so we just ignore it.
40845 * 3) Finally, if cast->type has not already been loaded, then we add that
40846 * swig_cast_info to the linked list (because the cast->type) pointer will
40847 * be correct.
40848 * ----------------------------------------------------------------------------- */
40849
40850#ifdef __cplusplus
40851extern "C" {
40852#if 0
40853} /* c-mode */
40854#endif
40855#endif
40856
40857#if 0
40858#define SWIGRUNTIME_DEBUG
40859#endif
40860
40861SWIGRUNTIME void
40862SWIG_InitializeModule(void *clientdata) {
40863 size_t i;
40864 swig_module_info *module_head;
40865 static int init_run = 0;
40866
40867 clientdata = clientdata;
40868
40869 if (init_run) return;
40870 init_run = 1;
40871
40872 /* Initialize the swig_module */
40873 swig_module.type_initial = swig_type_initial;
40874 swig_module.cast_initial = swig_cast_initial;
40875
40876 /* Try and load any already created modules */
40877 module_head = SWIG_GetModule(clientdata);
40878 if (module_head) {
40879 swig_module.next = module_head->next;
40880 module_head->next = &swig_module;
40881 } else {
40882 /* This is the first module loaded */
40883 swig_module.next = &swig_module;
40884 SWIG_SetModule(clientdata, &swig_module);
40885 }
40886
40887 /* Now work on filling in swig_module.types */
40888#ifdef SWIGRUNTIME_DEBUG
40889 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40890#endif
40891 for (i = 0; i < swig_module.size; ++i) {
40892 swig_type_info *type = 0;
40893 swig_type_info *ret;
40894 swig_cast_info *cast;
40895
40896#ifdef SWIGRUNTIME_DEBUG
40897 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40898#endif
40899
40900 /* if there is another module already loaded */
40901 if (swig_module.next != &swig_module) {
40902 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 40903 }
1bd55598
RD
40904 if (type) {
40905 /* Overwrite clientdata field */
40906#ifdef SWIGRUNTIME_DEBUG
40907 printf("SWIG_InitializeModule: found type %s\n", type->name);
40908#endif
40909 if (swig_module.type_initial[i]->clientdata) {
40910 type->clientdata = swig_module.type_initial[i]->clientdata;
40911#ifdef SWIGRUNTIME_DEBUG
40912 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40913#endif
40914 }
40915 } else {
40916 type = swig_module.type_initial[i];
be9b1dca 40917 }
1bd55598
RD
40918
40919 /* Insert casting types */
40920 cast = swig_module.cast_initial[i];
40921 while (cast->type) {
40922 /* Don't need to add information already in the list */
40923 ret = 0;
40924#ifdef SWIGRUNTIME_DEBUG
40925 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40926#endif
40927 if (swig_module.next != &swig_module) {
40928 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40929#ifdef SWIGRUNTIME_DEBUG
40930 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40931#endif
40932 }
40933 if (ret) {
40934 if (type == swig_module.type_initial[i]) {
40935#ifdef SWIGRUNTIME_DEBUG
40936 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40937#endif
40938 cast->type = ret;
40939 ret = 0;
40940 } else {
40941 /* Check for casting already in the list */
40942 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40943#ifdef SWIGRUNTIME_DEBUG
40944 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40945#endif
40946 if (!ocast) ret = 0;
40947 }
40948 }
40949
40950 if (!ret) {
40951#ifdef SWIGRUNTIME_DEBUG
40952 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40953#endif
40954 if (type->cast) {
40955 type->cast->prev = cast;
40956 cast->next = type->cast;
40957 }
40958 type->cast = cast;
40959 }
40960 cast++;
be9b1dca 40961 }
1bd55598
RD
40962 /* Set entry in modules->types array equal to the type */
40963 swig_module.types[i] = type;
40964 }
40965 swig_module.types[i] = 0;
40966
40967#ifdef SWIGRUNTIME_DEBUG
40968 printf("**** SWIG_InitializeModule: Cast List ******\n");
40969 for (i = 0; i < swig_module.size; ++i) {
40970 int j = 0;
40971 swig_cast_info *cast = swig_module.cast_initial[i];
40972 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40973 while (cast->type) {
40974 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40975 cast++;
40976 ++j;
40977 }
40978 printf("---- Total casts: %d\n",j);
40979 }
40980 printf("**** SWIG_InitializeModule: Cast List ******\n");
40981#endif
40982}
40983
40984/* This function will propagate the clientdata field of type to
40985* any new swig_type_info structures that have been added into the list
40986* of equivalent types. It is like calling
40987* SWIG_TypeClientData(type, clientdata) a second time.
40988*/
40989SWIGRUNTIME void
40990SWIG_PropagateClientData(void) {
40991 size_t i;
40992 swig_cast_info *equiv;
40993 static int init_run = 0;
40994
40995 if (init_run) return;
40996 init_run = 1;
40997
40998 for (i = 0; i < swig_module.size; i++) {
40999 if (swig_module.types[i]->clientdata) {
41000 equiv = swig_module.types[i]->cast;
41001 while (equiv) {
41002 if (!equiv->converter) {
41003 if (equiv->type && !equiv->type->clientdata)
41004 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
41005 }
41006 equiv = equiv->next;
41007 }
be9b1dca 41008 }
1bd55598
RD
41009 }
41010}
41011
41012#ifdef __cplusplus
41013#if 0
41014{
41015 /* c-mode */
41016#endif
41017}
41018#endif
41019
41020
41021
41022#ifdef __cplusplus
41023extern "C" {
41024#endif
41025
41026 /* Python-specific SWIG API */
41027#define SWIG_newvarlink() SWIG_Python_newvarlink()
41028#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
41029#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
41030
41031 /* -----------------------------------------------------------------------------
41032 * global variable support code.
41033 * ----------------------------------------------------------------------------- */
41034
41035 typedef struct swig_globalvar {
41036 char *name; /* Name of global variable */
41037 PyObject *(*get_attr)(void); /* Return the current value */
41038 int (*set_attr)(PyObject *); /* Set the value */
41039 struct swig_globalvar *next;
41040 } swig_globalvar;
41041
41042 typedef struct swig_varlinkobject {
41043 PyObject_HEAD
41044 swig_globalvar *vars;
41045 } swig_varlinkobject;
41046
41047 SWIGINTERN PyObject *
41048 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
41049 return PyString_FromString("<Swig global variables>");
41050 }
41051
41052 SWIGINTERN PyObject *
41053 swig_varlink_str(swig_varlinkobject *v) {
41054 PyObject *str = PyString_FromString("(");
41055 swig_globalvar *var;
41056 for (var = v->vars; var; var=var->next) {
41057 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
41058 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
41059 }
41060 PyString_ConcatAndDel(&str,PyString_FromString(")"));
41061 return str;
41062 }
41063
41064 SWIGINTERN int
41065 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
41066 PyObject *str = swig_varlink_str(v);
41067 fprintf(fp,"Swig global variables ");
41068 fprintf(fp,"%s\n", PyString_AsString(str));
41069 Py_DECREF(str);
41070 return 0;
41071 }
41072
41073 SWIGINTERN void
41074 swig_varlink_dealloc(swig_varlinkobject *v) {
41075 swig_globalvar *var = v->vars;
41076 while (var) {
41077 swig_globalvar *n = var->next;
41078 free(var->name);
41079 free(var);
41080 var = n;
be9b1dca 41081 }
1bd55598
RD
41082 }
41083
41084 SWIGINTERN PyObject *
41085 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
41086 PyObject *res = NULL;
41087 swig_globalvar *var = v->vars;
41088 while (var) {
41089 if (strcmp(var->name,n) == 0) {
41090 res = (*var->get_attr)();
41091 break;
41092 }
41093 var = var->next;
be9b1dca 41094 }
1bd55598
RD
41095 if (res == NULL && !PyErr_Occurred()) {
41096 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 41097 }
1bd55598
RD
41098 return res;
41099 }
41100
41101 SWIGINTERN int
41102 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
41103 int res = 1;
41104 swig_globalvar *var = v->vars;
41105 while (var) {
41106 if (strcmp(var->name,n) == 0) {
41107 res = (*var->set_attr)(p);
41108 break;
41109 }
41110 var = var->next;
be9b1dca 41111 }
1bd55598
RD
41112 if (res == 1 && !PyErr_Occurred()) {
41113 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 41114 }
1bd55598
RD
41115 return res;
41116 }
41117
41118 SWIGINTERN PyTypeObject*
41119 swig_varlink_type(void) {
41120 static char varlink__doc__[] = "Swig var link object";
41121 static PyTypeObject varlink_type;
41122 static int type_init = 0;
41123 if (!type_init) {
41124 const PyTypeObject tmp
41125 = {
41126 PyObject_HEAD_INIT(NULL)
41127 0, /* Number of items in variable part (ob_size) */
41128 (char *)"swigvarlink", /* Type name (tp_name) */
41129 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
41130 0, /* Itemsize (tp_itemsize) */
41131 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
41132 (printfunc) swig_varlink_print, /* Print (tp_print) */
41133 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
41134 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
41135 0, /* tp_compare */
41136 (reprfunc) swig_varlink_repr, /* tp_repr */
41137 0, /* tp_as_number */
41138 0, /* tp_as_sequence */
41139 0, /* tp_as_mapping */
41140 0, /* tp_hash */
41141 0, /* tp_call */
41142 (reprfunc)swig_varlink_str, /* tp_str */
41143 0, /* tp_getattro */
41144 0, /* tp_setattro */
41145 0, /* tp_as_buffer */
41146 0, /* tp_flags */
41147 varlink__doc__, /* tp_doc */
41148 0, /* tp_traverse */
41149 0, /* tp_clear */
41150 0, /* tp_richcompare */
41151 0, /* tp_weaklistoffset */
41152#if PY_VERSION_HEX >= 0x02020000
41153 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
41154#endif
41155#if PY_VERSION_HEX >= 0x02030000
41156 0, /* tp_del */
41157#endif
41158#ifdef COUNT_ALLOCS
41159 0,0,0,0 /* tp_alloc -> tp_next */
41160#endif
41161 };
41162 varlink_type = tmp;
41163 varlink_type.ob_type = &PyType_Type;
41164 type_init = 1;
be9b1dca 41165 }
1bd55598
RD
41166 return &varlink_type;
41167 }
41168
41169 /* Create a variable linking object for use later */
41170 SWIGINTERN PyObject *
41171 SWIG_Python_newvarlink(void) {
41172 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
41173 if (result) {
41174 result->vars = 0;
41175 }
41176 return ((PyObject*) result);
41177 }
41178
41179 SWIGINTERN void
41180 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
41181 swig_varlinkobject *v = (swig_varlinkobject *) p;
41182 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
41183 if (gv) {
41184 size_t size = strlen(name)+1;
41185 gv->name = (char *)malloc(size);
41186 if (gv->name) {
41187 strncpy(gv->name,name,size);
41188 gv->get_attr = get_attr;
41189 gv->set_attr = set_attr;
41190 gv->next = v->vars;
41191 }
be9b1dca 41192 }
1bd55598
RD
41193 v->vars = gv;
41194 }
41195
41196 SWIGINTERN PyObject *
41197 SWIG_globals() {
41198 static PyObject *_SWIG_globals = 0;
41199 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
41200 return _SWIG_globals;
41201 }
41202
41203 /* -----------------------------------------------------------------------------
41204 * constants/methods manipulation
41205 * ----------------------------------------------------------------------------- */
41206
41207 /* Install Constants */
41208 SWIGINTERN void
41209 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
41210 PyObject *obj = 0;
41211 size_t i;
41212 for (i = 0; constants[i].type; ++i) {
41213 switch(constants[i].type) {
41214 case SWIG_PY_POINTER:
41215 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41216 break;
41217 case SWIG_PY_BINARY:
41218 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41219 break;
41220 default:
41221 obj = 0;
41222 break;
41223 }
41224 if (obj) {
41225 PyDict_SetItemString(d, constants[i].name, obj);
41226 Py_DECREF(obj);
41227 }
be9b1dca 41228 }
1bd55598
RD
41229 }
41230
41231 /* -----------------------------------------------------------------------------*/
41232 /* Fix SwigMethods to carry the callback ptrs when needed */
41233 /* -----------------------------------------------------------------------------*/
41234
41235 SWIGINTERN void
41236 SWIG_Python_FixMethods(PyMethodDef *methods,
41237 swig_const_info *const_table,
41238 swig_type_info **types,
41239 swig_type_info **types_initial) {
41240 size_t i;
41241 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 41242 const char *c = methods[i].ml_doc;
1bd55598
RD
41243 if (c && (c = strstr(c, "swig_ptr: "))) {
41244 int j;
41245 swig_const_info *ci = 0;
3d6c9062 41246 const char *name = c + 10;
1bd55598
RD
41247 for (j = 0; const_table[j].type; ++j) {
41248 if (strncmp(const_table[j].name, name,
41249 strlen(const_table[j].name)) == 0) {
41250 ci = &(const_table[j]);
41251 break;
41252 }
41253 }
41254 if (ci) {
41255 size_t shift = (ci->ptype) - types;
41256 swig_type_info *ty = types_initial[shift];
41257 size_t ldoc = (c - methods[i].ml_doc);
41258 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41259 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41260 if (ndoc) {
41261 char *buff = ndoc;
41262 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41263 if (ptr) {
41264 strncpy(buff, methods[i].ml_doc, ldoc);
41265 buff += ldoc;
41266 strncpy(buff, "swig_ptr: ", 10);
41267 buff += 10;
41268 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41269 methods[i].ml_doc = ndoc;
41270 }
41271 }
41272 }
41273 }
be9b1dca 41274 }
1bd55598
RD
41275 }
41276
41277#ifdef __cplusplus
41278}
41279#endif
41280
41281/* -----------------------------------------------------------------------------*
41282 * Partial Init method
41283 * -----------------------------------------------------------------------------*/
41284
41285#ifdef __cplusplus
41286extern "C"
41287#endif
41288SWIGEXPORT void SWIG_init(void) {
41289 PyObject *m, *d;
41290
41291 /* Fix SwigMethods to carry the callback ptrs when needed */
41292 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41293
41294 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41295 d = PyModule_GetDict(m);
41296
41297 SWIG_InitializeModule(0);
41298 SWIG_InstallConstants(d,swig_const_table);
41299
41300
2131d850
RD
41301 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
41302 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
41303 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
41304 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
41305 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
1bd55598
RD
41306 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
41307 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
41308 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
41309 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
41310 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
41311 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
41312 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
41313 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
41314 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
41315 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
41316 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
41317 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
41318 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
41319 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
41320 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
41321 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
41322 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
41323 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
41324 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
41325 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
41326 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
41327 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
41328 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
41329 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
41330 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
41331 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
41332 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
41333 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
41334 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
41335 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
41336 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
41337 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
41338 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
41339 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
41340 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
41341 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
41342 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
41343 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
41344 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
41345 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
41346 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
41347 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
41348 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
41349 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
41350 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
41351 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
41352 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
41353 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
41354 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
41355 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
41356 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
41357 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
41358 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
41359 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
41360 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
41361 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
41362 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
41363 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
41364 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
41365 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
41366 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
41367 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
41368 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
41369 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
41370 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
41371 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
41372 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
41373 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
41374 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
41375 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
41376 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
41377 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
41378 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
41379 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
41380 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
41381 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
41382 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
41383 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
41384 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
41385 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
41386 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
41387 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
41388 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
41389 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
41390 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
41391 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
41392 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
41393 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
41394 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
41395 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
41396 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
41397 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
41398 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
41399 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
41400 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
41401 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41402 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41403 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41404 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41405 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41406 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41407 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41408 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41409 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41410 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41411 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41412 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41413 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41414 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41415 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41416 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41417 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41418 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41419 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41420 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41421 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41422 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41423 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41424 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41425 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41426 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41427 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41428 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41429 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41430 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41431 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41432 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41433
41434 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41435
41436 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41437 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41438 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41439 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41440 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41441 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41442 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41443 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41444 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41445 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41446 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41447 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41448 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41449 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41450 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41451 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41452 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41453 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41454 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41455 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41456 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41457 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41458 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41459 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41460 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41461 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41462 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41463 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41464 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41465 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41466 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41467 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41468 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41469 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41470 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41471 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41472 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41473 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41474 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41475 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41476 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41477 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41478 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41479 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41480 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41481 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41482 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41483 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41484 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41485 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41486 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41487 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41488 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41489 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41490 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41491 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41492 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41493 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41494 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41495 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41496 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41497 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41498 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41499 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41500 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41501 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41502 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41503 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41504 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41505 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41506 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41507 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41508 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41509 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41510 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41511 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41512 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41513 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41514 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41515 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41516 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41517 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41518 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41519 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41520 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41521 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41522 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41523 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41524 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41525 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41526 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41527 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41528 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41529 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41530 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41531 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41532 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41533 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41534 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41535 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41536 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41537 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41538 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41539 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41540 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41541 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41542 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41543 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41544 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41545 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41546 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41547 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41548 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41549 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41550 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41551 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41552 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41553 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41554 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41555 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41556 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41557 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41558 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41559 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41560 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41561 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41562 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41563 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41564 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41565 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41566 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41567 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41568 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41569 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41570 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41571 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41572 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41573 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41574 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41575 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41576 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41577 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41578 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41579 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41580 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41581 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41582 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41583 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41584 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41585 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41586 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41587 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41588 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41589 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41590 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41591 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41592 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41593 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41594 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41595 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41596 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41597 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41598 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41599 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41600 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41601 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41602 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41603 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41604 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41605 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41606 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41607 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41608 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41609 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41610 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41611 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41612 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41613 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41614 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41615 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41616 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41617 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41618 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41619 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41620 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41621 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41622 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41623 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41624 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41625 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41626 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41627 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41628 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41629 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41630 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41631 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41632 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41633 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41634 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41635 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41636 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41637 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41638 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41639 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41640 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41641 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41642 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41643 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41644 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41645 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41646 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41647 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41648 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41649 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41650 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41651 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41652 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41653 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41654 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41655 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41656 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41657 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41658 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41659 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41660 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41661 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41662 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41663 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41664 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41665 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41666 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41667 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41668 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41669 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41670 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41671 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41672 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41673 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41674 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41675 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41676 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41677 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41678 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41679 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41680 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41681 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41682 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41683 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
cbfc9df6 41684 SWIG_Python_SetConstant(d, "BUFFER_USES_SHARED_BUFFER",SWIG_From_int(static_cast< int >(wxBUFFER_USES_SHARED_BUFFER)));
70d7cb34
RD
41685 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41686 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41687 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41688 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
5c8c7dd3
RD
41689 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41690 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
1bd55598
RD
41691 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41692 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41693 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41694 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41695 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41696 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41697 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
da91cb0f
RD
41698 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41699 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41700 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41701 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41702 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41703 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41704 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41705 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41706 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41707 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41708 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41709 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41710 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41711 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41712 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41713 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41714 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41715 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41716 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41717 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41718 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41719 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41720 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41721 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41722 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41723 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41724 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41725 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41726 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41727 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41728 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41729 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41730 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41731 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41732 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
1bd55598
RD
41733 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41734 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41735 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41736 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41737 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41738 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41739 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41740 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
1bd55598
RD
41741 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41742 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41743 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 41744 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
1bd55598
RD
41745 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41746 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41747 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 41748 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
1bd55598
RD
41749 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41750 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41751 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41752 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41753 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41754 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41755 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
41756 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41757 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41758 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
1bd55598
RD
41759 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41760 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41761
41762 // Work around a chicken/egg problem in drawlist.cpp
41763 wxPyDrawList_SetAPIPtr();
41764
d55e5bfc
RD
41765}
41766